/* Reporter portal & anonymous tracking UX — Premium design system */

.reporter-portal {
    --rp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rp-surface: #ffffff;
    --rp-surface-muted: #fafafa;
    --rp-surface-subtle: #f4f4f5;
    --rp-border: #e4e4e7;
    --rp-border-strong: #d4d4d8;
    --rp-text: #18181b;
    --rp-text-secondary: #52525b;
    --rp-text-tertiary: #71717a;
    --rp-accent: var(--primary, #FF88C8);
    --rp-button-bg: var(--button-bg, var(--primary, #FF88C8));
    --rp-button-text: var(--button-text, #fff);
    --rp-button-hover-bg: var(--button-hover-bg, var(--button-bg, var(--primary, #FF88C8)));
    --rp-button-hover-text: var(--button-hover-text, var(--button-text, #fff));
    --rp-accent-muted: color-mix(in srgb, var(--primary, #FF88C8) 18%, white);
    --rp-accent-soft: color-mix(in srgb, var(--primary, #FF88C8) 10%, white);
    --rp-success: #059669;
    --rp-success-bg: #ecfdf5;
    --rp-success-border: #bbf7d0;
    --rp-warning-bg: #fef3c7;
    --rp-warning-text: #92400e;
    --rp-info-bg: color-mix(in srgb, var(--primary, #FF88C8) 8%, white);
    --rp-info-border: color-mix(in srgb, var(--primary, #FF88C8) 25%, white);
    --rp-radius-sm: 6px;
    --rp-radius: 10px;
    --rp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --rp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    font-family: var(--rp-font);
    -webkit-font-smoothing: antialiased;
    color: var(--rp-text);
}

.reporter-detail,
.reporter-dashboard,
.reporter-auth {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--rp-text);
}

.reporter-detail .follow-report,
.reporter-dashboard .follow-report,
.reporter-auth .follow-report {
    display: none !important;
}

/* Kicker */
.rp-kicker {
    color: var(--rp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
}

/* Buttons */
.rp-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--rp-radius-sm);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.375rem;
    justify-content: center;
    line-height: 1;
    min-height: 2.25rem;
    padding: 0 0.875rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rp-btn--primary {
    background: var(--rp-button-bg);
    border-color: var(--rp-button-bg);
    color: var(--rp-button-text);
}

.rp-btn--primary:hover {
    background: var(--rp-button-hover-bg);
    border-color: var(--rp-button-hover-bg);
    color: var(--rp-button-hover-text);
    filter: none;
    text-decoration: none;
}

.rp-btn--secondary {
    background: var(--rp-surface);
    border-color: var(--rp-border-strong);
    color: var(--rp-text-secondary);
}

.rp-btn--secondary:hover {
    background: var(--rp-surface-muted);
    color: var(--rp-text);
    text-decoration: none;
}

.rp-btn--ghost {
    background: transparent;
    border-color: var(--rp-border);
    color: var(--rp-text-secondary);
}

.rp-btn--ghost:hover {
    background: var(--rp-surface-muted);
    color: var(--rp-text);
}

.rp-btn--sm {
    font-size: 0.75rem;
    min-height: 2rem;
    padding: 0 0.625rem;
}

.rp-btn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rp-btn-actions--end {
    justify-content: flex-end;
}

/* Pills */
.rp-pill {
    align-items: center;
    background: var(--rp-surface-subtle);
    border: 1px solid var(--rp-border);
    border-radius: 999px;
    color: var(--rp-text-secondary);
    display: inline-flex;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    min-height: 1.375rem;
    padding: 0.2rem 0.5rem;
}

.rp-pill--accent {
    background: var(--rp-accent-soft);
    border-color: var(--rp-accent-muted);
    color: var(--rp-accent);
}

.rp-pill--warning {
    background: var(--rp-warning-bg);
    border-color: #fde68a;
    color: var(--rp-warning-text);
}

.rp-pill--success {
    background: var(--rp-success-bg);
    border-color: var(--rp-success-border);
    color: var(--rp-success);
}

.rp-pill--neutral {
    background: var(--rp-surface-muted);
    border-color: var(--rp-border);
    color: var(--rp-text-tertiary);
}

/* Callouts */
.rp-callout {
    align-items: flex-start;
    background: var(--rp-surface-muted);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text-secondary);
    display: flex;
    font-size: 0.8125rem;
    gap: 0.625rem;
    line-height: 1.45;
    padding: 0.75rem 0.875rem;
}

.rp-callout--good {
    background: var(--rp-success-bg);
    border-color: var(--rp-success-border);
    color: var(--rp-success);
}

.rp-callout--warn {
    background: var(--rp-warning-bg);
    border-color: #fde68a;
    color: var(--rp-warning-text);
}

.rp-callout--accent {
    background: var(--rp-info-bg);
    border-color: var(--rp-info-border);
    color: var(--rp-text-secondary);
}

.rp-callout__icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.rp-callout__body {
    flex: 1;
    min-width: 0;
}

.rp-callout__title {
    color: var(--rp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rp-callout__link {
    color: var(--rp-accent);
    font-weight: 500;
    text-decoration: none;
}

.rp-callout__link:hover {
    text-decoration: underline;
}

/* Help button */
.rp-help-btn,
.success-help-btn {
    align-items: center;
    background: var(--rp-surface-muted);
    border: 1px solid var(--rp-border);
    border-radius: 50%;
    color: var(--rp-text-tertiary);
    cursor: help;
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 600;
    height: 1rem;
    justify-content: center;
    line-height: 1;
    margin-left: 0.25rem;
    vertical-align: middle;
    width: 1rem;
}

/* Fields (composer) */
.rp-field {
    margin-bottom: 1rem;
}

.rp-field__label-row {
    align-items: center;
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

.rp-field__label {
    color: var(--rp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0;
}

.rp-field__helper {
    color: var(--rp-text-tertiary);
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.375rem;
}

.rp-field .form-control,
.rp-field .custom-file-input {
    border-color: var(--rp-border);
    border-radius: var(--rp-radius-sm);
    font-size: 0.8125rem;
}

.rp-field .form-control:focus {
    border-color: var(--rp-accent);
    box-shadow: 0 0 0 3px var(--rp-accent-soft);
}

/* Auth card */
.reporter-auth {
    max-width: 32rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.reporter-auth-card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-sm);
    max-width: 26.25rem;
    padding: 2rem;
    width: 100%;
}

.reporter-auth-card--centered {
    margin-left: auto;
    margin-right: auto;
}

.reporter-auth-card__title {
    color: var(--rp-text);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    text-align: center;
}

.reporter-auth-card__subtitle {
    color: var(--rp-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    text-align: center;
}

.reporter-auth-badge {
    align-items: center;
    background: var(--rp-success-bg);
    border: 1px solid var(--rp-success-border);
    border-radius: 999px;
    color: var(--rp-success);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.375rem;
    margin-top: 1rem;
    padding: 0.375rem 0.75rem;
}

.reporter-auth-badge svg {
    height: 0.875rem;
    width: 0.875rem;
}

.reporter-auth-footer-link {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    margin-top: 1rem;
    text-align: center;
}

.reporter-auth-footer-link a {
    color: var(--rp-accent);
    font-weight: 500;
    text-decoration: none;
}

.reporter-auth-footer-link a:hover {
    text-decoration: underline;
}

.reporter-auth .auth-field {
    margin-bottom: 1.25rem;
}

.reporter-auth .auth-submit {
    margin-top: 0.5rem;
}

.reporter-auth .auth-submit .btn {
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 2.5rem;
}

/* Protocol search page */
.protocol-search {
    max-width: 32rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.protocol-search .reporter-auth-card {
    margin-bottom: 0;
    padding: 2rem 1.75rem;
}

.protocol-search .rp-kicker {
    text-align: center;
}

.protocol-search__subtitle {
    margin-bottom: 1.75rem !important;
}

.protocol-search .auth-field {
    margin-bottom: 0;
}

.protocol-search .auth-field .form-control {
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
}

.protocol-search .auth-helper {
    margin-top: 0.5rem;
}

.protocol-search-form__submit {
    margin-top: 1.25rem;
    min-height: 2.75rem;
    width: 100%;
}

.protocol-search-form__input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.protocol-search__journey {
    margin-top: 1.25rem;
    max-width: 26.25rem;
    margin-left: auto;
    margin-right: auto;
}

.protocol-search__journey.reporter-journey-intro {
    padding: 1.125rem 1.25rem;
}

.protocol-search__journey .reporter-journey-intro__steps {
    gap: 1rem;
}

.protocol-search__journey .reporter-journey-intro__step-desc {
    color: var(--rp-text-secondary);
    font-size: 0.75rem;
    line-height: 1.45;
}

.protocol-search__alt {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1.25rem;
    max-width: 26.25rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.protocol-search__alt-text {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    margin: 0;
}

.protocol-search .reporter-trust-wrap {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.protocol-search-form--modal .protocol-search-form__label {
    color: var(--rp-text);
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.protocol-search-form--modal .protocol-search-form__helper {
    color: var(--rp-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.protocol-search-form--modal .protocol-search-form__row {
    display: flex;
    gap: 0.5rem;
}

.protocol-search-form--modal .protocol-search-form__input {
    flex: 1;
    min-width: 0;
}

.protocol-search-form--modal .protocol-search-form__submit {
    flex-shrink: 0;
    margin-top: 0;
    width: auto;
}

.protocol-search-form__error {
    color: #ef4444;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0.5rem 0 0;
}

/* Process stepper */
.reporter-stepper {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-xs);
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.reporter-stepper--compact .reporter-stepper__steps {
    gap: 0.25rem;
}

.reporter-stepper__title-row {
    align-items: center;
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.reporter-stepper__title {
    color: var(--rp-text);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.reporter-stepper__steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
}

.reporter-stepper__steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--rp-border);
    z-index: 0;
}

.reporter-company-notice {
    align-items: flex-start;
    background: var(--rp-info-bg);
    border: 1px solid var(--rp-info-border);
    border-left: 3px solid var(--rp-accent);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text-secondary);
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
}

.reporter-company-notice__icon {
    color: var(--rp-accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.reporter-company-notice__title {
    color: var(--rp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reporter-company-notice__message {
    color: var(--rp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.reporter-stepper__step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.reporter-stepper__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rp-surface);
    border: 2px solid var(--rp-border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rp-text-tertiary);
    margin-bottom: 0.5rem;
}

.reporter-stepper__step--done .reporter-stepper__dot {
    background: var(--rp-success-bg);
    border-color: var(--rp-success);
    color: var(--rp-success);
}

.reporter-stepper__step--current .reporter-stepper__dot {
    background: var(--rp-accent);
    border-color: var(--rp-accent);
    color: #fff;
    box-shadow: 0 0 0 4px var(--rp-accent-soft);
}

.reporter-stepper__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rp-text-secondary);
    line-height: 1.2;
    padding: 0 0.15rem;
}

.reporter-stepper__description {
    color: var(--rp-text-tertiary);
    display: block;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.25rem;
    padding: 0 0.15rem;
}

.reporter-stepper__step--current .reporter-stepper__label {
    color: var(--rp-text);
}

.reporter-stepper__step--done .reporter-stepper__label {
    color: var(--rp-text-secondary);
}

.reporter-stepper__status {
    margin-top: 1rem;
}

.reporter-stepper__status-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reporter-stepper__status-label {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
}

.reporter-stepper__status-explanation {
    color: var(--rp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0.5rem 0 0;
}

/* Info cards */
.reporter-card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-xs);
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.reporter-card__kicker {
    color: var(--rp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
}

.reporter-card__title {
    color: var(--rp-text);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.reporter-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reporter-card__list li {
    align-items: flex-start;
    color: var(--rp-text-secondary);
    display: flex;
    font-size: 0.8125rem;
    gap: 0.5rem;
    line-height: 1.45;
    margin-bottom: 0.625rem;
}

.reporter-card__list li:last-child {
    margin-bottom: 0;
}

.reporter-card__list-icon {
    color: var(--rp-success);
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.125rem;
}

.reporter-card__list-icon::before {
    content: '✓';
}

/* Capabilities */
.reporter-capabilities__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.reporter-capabilities__item--disabled {
    color: #adb5bd;
}

.reporter-capabilities__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Trust banner */
.reporter-trust {
    align-items: center;
    background: var(--rp-success-bg);
    border: 1px solid var(--rp-success-border);
    border-radius: 999px;
    color: var(--rp-success);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.375rem;
    margin: 1rem auto;
    padding: 0.375rem 0.75rem;
    width: fit-content;
}

.reporter-trust-wrap {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.reporter-trust--compact {
    font-size: 0.6875rem;
    margin: 0.75rem 0;
    padding: 0.3rem 0.625rem;
}

.reporter-trust-wrap--compact {
    justify-content: flex-start;
    margin: 0 0 1rem;
}

/* Report header */
.reporter-report-header {
    border-bottom: 1px solid var(--rp-border);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.reporter-report-header__row {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.reporter-report-header__back {
    align-items: center;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text-secondary);
    display: inline-flex;
    flex-shrink: 0;
    height: 2rem;
    justify-content: center;
    margin-top: 0.125rem;
    text-decoration: none;
    width: 2rem;
}

.reporter-report-header__back:hover {
    background: var(--rp-surface-muted);
    color: var(--rp-text);
    text-decoration: none;
}

.reporter-report-header__kicker {
    color: var(--rp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.reporter-report-header__protocol {
    color: var(--rp-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin: 0;
}

.reporter-report-header__meta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.375rem;
}

.reporter-report-header__meta {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    margin: 0;
}

.reporter-report-header__copy-btn {
    align-items: center;
    background: var(--rp-surface-muted);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text-secondary);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
}

.reporter-report-header__copy-btn:hover {
    background: var(--rp-surface-subtle);
    color: var(--rp-text);
}

/* Journey intro (dashboard) */
.reporter-journey-intro {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-xs);
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
}

.reporter-journey-intro__header {
    align-items: center;
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.reporter-journey-intro__title {
    color: var(--rp-text);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0;
}

.reporter-journey-intro__steps {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reporter-journey-intro__step-label {
    color: var(--rp-text);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.reporter-journey-intro__step-desc {
    color: var(--rp-text-tertiary);
    display: block;
    font-size: 0.6875rem;
    line-height: 1.35;
}

/* Tabs */
.reporter-tabs {
    border-bottom: 1px solid var(--rp-border);
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reporter-tab {
    align-items: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--rp-text-tertiary);
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    gap: 0.375rem;
    margin-bottom: -1px;
    min-height: 2.625rem;
    padding: 0 0.875rem;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.reporter-tab:hover {
    color: var(--rp-text-secondary);
}

.reporter-tab.active {
    border-bottom-color: var(--rp-accent);
    color: var(--rp-accent);
}

.reporter-tab__badge {
    align-items: center;
    background: var(--rp-surface-subtle);
    border: 1px solid var(--rp-border);
    border-radius: 999px;
    color: var(--rp-text-secondary);
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 600;
    height: 1.125rem;
    justify-content: center;
    min-width: 1.125rem;
    padding: 0 0.3rem;
}

.reporter-tab-content {
    display: none;
}

.reporter-tab-content.active {
    display: block;
}

/* Messages */
.reporter-message-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reporter-message {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-xs);
    padding: 1rem 1.125rem;
}

.reporter-message--from-reporter {
    background: var(--rp-accent-soft);
    border-color: var(--rp-accent-muted);
}

.reporter-message__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reporter-message__sender {
    color: var(--rp-text);
    font-size: 0.8125rem;
    font-weight: 600;
}

.reporter-message__time {
    color: var(--rp-text-tertiary);
    font-size: 0.75rem;
}

.reporter-message-body {
    color: var(--rp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Empty state */
.reporter-empty-state {
    background: var(--rp-surface-muted);
    border: 1px dashed var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.reporter-empty-state__icon {
    color: var(--rp-text-tertiary);
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.reporter-empty-state__title {
    color: var(--rp-text);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.reporter-empty-state__hint {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.reporter-empty-state__suggestions {
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.reporter-empty-state__suggestions li {
    align-items: flex-start;
    color: var(--rp-text-secondary);
    display: flex;
    font-size: 0.75rem;
    gap: 0.375rem;
    line-height: 1.4;
}

.reporter-empty-state__suggestions li::before {
    color: var(--rp-accent);
    content: '•';
    flex-shrink: 0;
}

/* Definition list (details tab) */
.reporter-dl {
    margin: 0;
}

.reporter-dl__row {
    border-bottom: 1px solid var(--rp-border);
    display: grid;
    gap: 0.25rem 1rem;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    padding: 0.75rem 0;
}

.reporter-dl__row:last-child {
    border-bottom: none;
}

.reporter-dl__label {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.reporter-dl__value {
    color: var(--rp-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
}

/* Closed report card */
.reporter-closed-card {
    border-left: 3px solid var(--rp-success);
}

.reporter-closed-card__title-row {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.reporter-closed-card__title {
    color: var(--rp-text);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.reporter-closed-card__message {
    background: var(--rp-surface-muted);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-top: 0.75rem;
    padding: 0.75rem;
}

/* Dashboard */
.reporter-dashboard__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--rp-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.reporter-dashboard__title {
    color: var(--rp-text);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
}

.reporter-dashboard__meta {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    margin: 0;
}

.reporter-dashboard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reporter-dashboard__section-title {
    color: var(--rp-text);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.reporter-table {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-xs);
    overflow: hidden;
}

.reporter-table table {
    margin: 0;
    width: 100%;
}

.reporter-table thead {
    background: var(--rp-surface-muted);
}

.reporter-table th {
    color: var(--rp-text-tertiary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reporter-table th,
.reporter-table td {
    border-bottom: 1px solid var(--rp-border);
    padding: 0.875rem 1rem;
    text-align: left;
    vertical-align: top;
}

.reporter-table tbody tr:last-child td {
    border-bottom: none;
}

.reporter-table tbody tr:hover {
    background: var(--rp-surface-muted);
    cursor: pointer;
}

.status-badge {
    display: inline-block;
}

.reporter-table .protocol-badge {
    background: var(--rp-surface-muted);
    border: 1px solid var(--rp-border);
    border-radius: 999px;
    color: var(--rp-text);
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.625rem;
}

.reporter-next-step-cell {
    color: var(--rp-text-secondary);
    font-size: 0.8125rem;
    max-width: 220px;
}

.reporter-link-card__helper {
    color: var(--rp-text-tertiary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

/* Success page */
.success-page {
    --sp-surface: #ffffff;
    --sp-surface-muted: #fafafa;
    --sp-border: #e4e4e7;
    --sp-border-strong: #d4d4d8;
    --sp-text: #18181b;
    --sp-text-secondary: #52525b;
    --sp-text-tertiary: #71717a;
    --sp-success: #16a34a;
    --sp-success-bg: #ecfdf5;
    --sp-success-border: #bbf7d0;
    --sp-radius: 10px;
    --sp-radius-sm: 8px;
    --sp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.reporter-success-journey {
    margin-top: 0;
    margin-bottom: 1rem;
}

.reporter-success-journey__label {
    color: var(--sp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.reporter-protocol-confirm {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.reporter-protocol-confirm .form-check-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.reporter-cta-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.success-page {
    max-width: 36rem;
    color: var(--sp-text);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.success-page--layout-split {
    max-width: 56rem;
}

.success-page--layout-stack,
.success-page--layout-required {
    max-width: 36rem;
}

.success-page__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.success-page--layout-required .success-page__actions {
    max-width: none;
    margin-top: 0.5rem !important;
}

.success-page--layout-stack:not(.success-page--layout-required) .success-page__actions {
    margin-top: 1rem !important;
}

.success-page,
.success-page p,
.success-page label,
.success-page li,
.success-page h1,
.success-page h2,
.success-page h3,
.success-page h4,
.success-page h5,
.success-page h6 {
    color: var(--sp-text);
}

.success-page .text-muted,
.success-page p.text-muted,
.success-page li.text-muted,
.success-page .small.text-muted {
    color: var(--sp-text-tertiary) !important;
}

.success-page__hero {
    margin-bottom: 1.5rem;
    max-width: 34rem;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.success-page__kicker {
    color: var(--sp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
}

.success-page__hero-icon {
    align-items: center;
    background: var(--sp-success-bg);
    border: 1px solid var(--sp-success-border);
    border-radius: var(--sp-radius-sm);
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 3rem;
}

.success-page__hero-icon-svg,
.success-page__hero-icon svg {
    height: 1.375rem;
    width: 1.375rem;
}

.success-page__layout--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.success-page__main,
.success-page__aside {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.success-page__main > *,
.success-page__aside > * {
    flex: 1 1 auto;
}

.success-page__title {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.625rem;
}

.success-page__lead {
    color: var(--sp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
}

.success-status-strip {
    background: var(--sp-surface-muted);
    border: 1px solid var(--sp-border);
    border-left: 3px solid var(--primary, #e91e8c);
    border-radius: var(--sp-radius-sm);
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
}

.success-status-strip__kicker {
    color: var(--sp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.success-status-strip__text {
    color: var(--sp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.success-page__cta {
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 2.5rem;
}

.success-page__actions {
    max-width: 36rem;
    margin-right: auto;
    margin-left: auto;
}

.success-page__cta-hint {
    color: var(--sp-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
    text-align: center;
}

.success-page__cta-hint.is-hidden {
    display: none;
}

.success-page__secondary-link {
    color: var(--sp-text-tertiary);
    font-size: 0.8125rem;
    text-decoration: none;
}

.success-page__secondary-link:hover {
    color: var(--sp-text-secondary);
    text-decoration: underline;
}

.success-protocol-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-xs);
    min-height: auto;
    overflow: visible;
}

.success-protocol-card__body {
    padding: 1.25rem;
}

.success-protocol-card__header {
    margin-bottom: 1rem;
}

.success-protocol-card__kicker {
    color: var(--sp-text-tertiary);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.success-protocol-card__title {
    color: var(--sp-text);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0;
}

.success-protocol__code-box {
    background: var(--sp-surface-muted);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
}

.success-protocol__code {
    color: var(--sp-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    text-align: center;
    user-select: all;
    word-break: break-word;
}

.success-protocol__helper {
    color: var(--sp-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    text-align: center;
}

.success-protocol-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.success-protocol-actions__btn {
    align-items: center;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 500;
    justify-content: center;
    min-height: 2.25rem;
}

.success-protocol-card__email-label {
    color: var(--sp-text);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.success-protocol-card__email-hint {
    color: var(--sp-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.4;
}

.success-help-btn {
    align-items: center;
    background: var(--sp-surface-muted);
    border: 1px solid var(--sp-border);
    border-radius: 50%;
    color: var(--sp-text-tertiary);
    cursor: help;
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 600;
    height: 1rem;
    justify-content: center;
    line-height: 1;
    margin-left: 0.25rem;
    vertical-align: middle;
    width: 1rem;
}

.success-confirm {
    background: var(--sp-surface-muted);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-sm);
    padding: 0.75rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.success-confirm--checked {
    background: var(--sp-success-bg);
    border-color: var(--sp-success-border);
}

.success-confirm .form-check-label {
    color: var(--sp-text);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.success-confirm__hint {
    color: var(--sp-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 0.25rem;
    padding-left: 1.5rem;
}

.success-portal-linked__card,
.success-portal-required__card {
    border-radius: var(--sp-radius);
    height: 100%;
}

.success-portal-linked__card {
    background: var(--sp-success-bg);
    border: 1px solid var(--sp-success-border);
}

.success-portal-required__card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow-xs);
}

.success-portal-panel,
.success-portal-linked,
.success-portal-required {
    height: 100%;
}

.success-portal-panel__card {
    background: var(--sp-surface-muted);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    height: 100%;
    padding: 1.25rem;
}

.success-portal-panel__header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.success-portal-panel__title {
    color: var(--sp-text);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0;
}

.success-portal-panel__badge {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    color: var(--sp-text-tertiary);
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.3rem 0.5rem;
    text-transform: uppercase;
}

.success-portal-panel__body {
    color: var(--sp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.success-portal-panel__benefits {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.success-portal-panel__benefits li {
    align-items: flex-start;
    color: var(--sp-text-tertiary);
    display: flex;
    font-size: 0.75rem;
    gap: 0.375rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.success-portal-panel__benefits li:last-child {
    margin-bottom: 0;
}

.success-portal-panel__benefits li i {
    color: var(--sp-success);
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.success-portal-panel__check {
    align-items: center;
    background: var(--sp-success-bg);
    border: 1px solid var(--sp-success-border);
    border-radius: 50%;
    color: var(--sp-success);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.5rem;
    font-weight: 700;
    height: 0.875rem;
    justify-content: center;
    line-height: 1;
    margin-top: 0.125rem;
    width: 0.875rem;
}

.success-portal-panel__check::before {
    content: '✓';
}

.success-portal-panel__actions .btn {
    font-size: 0.8125rem;
    font-weight: 500;
    min-height: 2.25rem;
}

.success-portal-required__title {
    color: var(--sp-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.375rem;
}

.success-portal-required__body {
    color: var(--sp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.success-portal-required__benefits {
    list-style: none;
    margin-bottom: 1.25rem;
    padding-left: 0;
}

.success-portal-required__benefits li {
    align-items: flex-start;
    color: var(--sp-text-tertiary);
    display: flex;
    font-size: 0.75rem;
    gap: 0.375rem;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

.success-portal-required__benefits li i {
    color: var(--sp-success);
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.success-portal-required__benefits .success-portal-panel__check {
    margin-top: 0.125rem;
}

.success-portal-linked__title {
    color: var(--sp-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.375rem;
}

.success-portal-linked__body {
    color: var(--sp-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.success-portal-linked__hint {
    color: var(--sp-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0;
    margin-top: 0.75rem;
    text-align: center;
}

.success-portal-accordion__card {
    background: #f8f9fa;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.success-portal-accordion__toggle {
    padding: 0.5rem 0;
    color: inherit;
    text-decoration: none;
    box-shadow: none !important;
}

.success-portal-accordion__toggle:hover,
.success-portal-accordion__toggle:focus {
    text-decoration: none;
    color: inherit;
}

.success-portal-accordion__chevron::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: rotate(45deg);
    margin-top: 0.35rem;
    transition: transform 0.2s ease;
}

.success-portal-accordion__toggle:not(.collapsed) .success-portal-accordion__chevron::after {
    transform: rotate(-135deg);
    margin-top: 0.6rem;
}

.gap-2 > * + * {
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .success-page--layout-split .success-page__hero {
        max-width: 40rem;
        margin-right: auto;
        margin-left: auto;
    }

    .success-page__layout--split {
        grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
    }

    .success-page--layout-split .success-page__aside {
        position: sticky;
        top: 5.5rem;
    }

    .success-page--layout-split .success-page__actions {
        max-width: none;
    }

    .success-page__main .reporter-success-journey {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .reporter-stepper__label {
        font-size: 0.6rem;
    }

    .reporter-stepper__description {
        display: none;
    }

    .reporter-stepper__dot {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .reporter-detail,
    .reporter-dashboard,
    .reporter-auth,
    .protocol-search {
        padding: 1rem 0.75rem;
    }

    .reporter-journey-intro__steps {
        grid-template-columns: 1fr;
    }

    .reporter-dl__row {
        grid-template-columns: 1fr;
    }

    .reporter-table th:nth-child(4),
    .reporter-table td:nth-child(4) {
        display: none;
    }

    .reporter-link-card .row {
        flex-direction: column;
    }
}
