/*
 * Public dashboard presentation.
 *
 * These rules intentionally apply only to the public composition.
 * Shared component styling belongs in dashboard_shared/css/.
 */

/* Page shell */

.public-page {
    width: min(1180px, calc(100% - 32px));
    padding-top: 30px;
    padding-bottom: 42px;
}

/* Compact public hero */

.public-page .hero {
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.public-page h1 {
    font-size: clamp(2.35rem, 5.5vw, 4.4rem);
    line-height: 0.94;
}

.public-page .hero-copy {
    max-width: 620px;
    margin-top: 12px;
    font-size: 0.96rem;
    line-height: 1.55;
}

.public-page .eyebrow {
    margin-bottom: 7px;
}

.public-page .live-indicator {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.78rem;
}

/* Dashboard rhythm */

.public-page .dashboard-grid {
    gap: 16px;
}

.public-page .card {
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.public-page .card-heading {
    gap: 16px;
    padding: 19px 22px;
}

.public-page .card-kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
}

.public-page h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.public-page .status-pill {
    padding: 7px 11px;
    font-size: 0.75rem;
}

.public-page .card-footer {
    padding: 11px 22px;
    font-size: 0.75rem;
}

/* Owner-approved challenge diary */

.public-page .challenge-gallery-card {
    grid-column: 1 / -1;
    overflow: hidden;
}

.challenge-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    padding: 0 22px 22px;
}

.challenge-gallery-item {
    position: relative;
    grid-column: span 4;
    grid-row: span 2;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin: 0;
    background: #090a0d;
}

.challenge-gallery-item:first-child {
    grid-column: span 8;
}

.challenge-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.challenge-gallery-item:hover img {
    transform: scale(1.025);
}

.challenge-gallery-item::after {
    position: absolute;
    inset: 35% 0 0;
    content: "";
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.88)
    );
    pointer-events: none;
}

.challenge-gallery-item figcaption {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 3px;
    padding: 17px;
}

.challenge-gallery-item figcaption strong {
    color: #fff;
    font-size: 0.92rem;
}

.challenge-gallery-item figcaption span,
.challenge-gallery-item figcaption small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
}

.challenge-gallery-item figcaption small {
    color: rgba(255, 255, 255, 0.58);
}

.challenge-gallery-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 22px 22px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.018);
}

.challenge-gallery-empty > span {
    font-size: 2rem;
}

.challenge-gallery-empty strong {
    color: var(--text);
}

.challenge-gallery-empty p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Owner-approved adventure passport */

.public-page .passport-card {
    grid-column: 1 / -1;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(232, 33, 39, 0.11),
            transparent 34%
        ),
        var(--surface);
}

.passport-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 22px 20px;
}

.passport-summary article {
    display: flex;
    align-items: baseline;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.025);
}

.passport-summary strong {
    color: var(--text);
    font-size: 1.7rem;
}

.passport-summary span,
.passport-stamp span,
.passport-stamp time {
    color: var(--muted);
    font-size: 0.72rem;
}

.passport-section {
    padding: 0 22px 22px;
}

.passport-section h3 {
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.passport-stamp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.passport-stamp {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.passport-stamp-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(232, 33, 39, 0.4);
    border-radius: 50%;
    color: #ff7074;
    font-size: 1.25rem;
    background: rgba(232, 33, 39, 0.09);
}

.passport-stamp > div,
.passport-achievement > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.passport-stamp strong,
.passport-achievement strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passport-stamp time {
    color: rgba(255, 255, 255, 0.42);
}

.passport-achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.passport-achievement {
    display: flex;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 193, 7, 0.07),
            rgba(255, 255, 255, 0.015)
        );
}

.passport-achievement > span {
    color: #ffd76a;
    font-size: 1.35rem;
}

.passport-achievement small {
    color: #e4bf5b;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.passport-achievement p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.passport-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 22px 22px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.018);
}

.passport-empty > span {
    color: #ff7074;
    font-size: 2rem;
}

.passport-empty strong {
    color: var(--text);
}

.passport-empty p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Footer */

.public-page .page-footer {
    margin-top: 15px;
    font-size: 0.73rem;
}

/* Small screens */

@media (max-width: 620px) {
    .public-page {
        width: min(100% - 18px, 1180px);
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .public-page .hero {
        gap: 14px;
        margin-bottom: 16px;
    }

    .public-page h1 {
        font-size: clamp(2.15rem, 13vw, 3.4rem);
    }

    .public-page .hero-copy {
        margin-top: 10px;
        font-size: 0.9rem;
    }

    .public-page .dashboard-grid {
        gap: 13px;
    }

    .public-page .card {
        border-radius: 17px;
    }

    .public-page .card-heading {
        gap: 12px;
        padding: 17px 18px;
    }

    .public-page .card-footer {
        padding: 10px 18px;
    }

    .challenge-gallery-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 0 18px 18px;
        scroll-snap-type: x mandatory;
    }

    .challenge-gallery-item,
    .challenge-gallery-item:first-child {
        flex: 0 0 min(82vw, 310px);
        height: 280px;
        scroll-snap-align: start;
    }

    .challenge-gallery-empty {
        margin: 0 18px 18px;
        padding: 20px;
    }

    .passport-summary {
        padding: 0 18px 18px;
    }

    .passport-section {
        padding: 0 18px 18px;
    }

    .passport-stamp-grid,
    .passport-achievement-grid {
        grid-template-columns: 1fr;
    }

    .passport-empty {
        margin: 0 18px 18px;
        padding: 20px;
    }
}

/* Mission and FSD summary cards */

.public-page .challenge-card {
    background:
        linear-gradient(
            145deg,
            rgba(232, 33, 39, 0.11),
            rgba(255, 255, 255, 0.012)
        ),
        var(--surface);
}

.public-page .challenge-card .challenge-count {
    padding: 22px 22px 0;
}

.public-page .challenge-card .challenge-count strong {
    font-size: clamp(3rem, 5vw, 4.25rem);
}

.public-page .challenge-card .headline-caption {
    margin: 9px 22px 20px;
    font-size: 0.9rem;
}

.public-page .challenge-card .progress-track {
    height: 11px;
    margin: 0 22px;
}

.public-page .challenge-card .progress-meta {
    padding: 13px 22px 20px;
    font-size: 0.8rem;
}

/* FSD is useful context, but secondary to the mission. */

.public-page .fsd-card .headline-metric {
    padding: 20px 22px 0;
}

.public-page .fsd-card .headline-metric strong {
    font-size: clamp(2.7rem, 4.5vw, 3.8rem);
}

.public-page .fsd-card .headline-metric > span {
    margin-left: 7px;
    font-size: 1rem;
}

.public-page .fsd-card .headline-caption {
    margin: 8px 22px 17px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.public-page .fsd-card .fsd-gauge {
    height: 11px;
    margin: 0 22px;
}

.public-page .fsd-card .fsd-gauge-legend {
    gap: 14px;
    padding: 10px 22px 16px;
    font-size: 0.7rem;
}

.public-page .fsd-card .fsd-gauge-legend span {
    gap: 6px;
}

.public-page .fsd-card .fsd-gauge-key {
    width: 8px;
    height: 8px;
}

.public-page .fsd-card .split-metrics article {
    padding: 16px 18px;
}

.public-page .fsd-card .split-metrics article > span {
    margin-bottom: 7px;
    font-size: 0.65rem;
}

.public-page .fsd-card .split-metrics strong {
    gap: 5px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.public-page .fsd-card .split-metrics strong small {
    font-size: 0.68rem;
}

@media (max-width: 760px) {
    .public-page .challenge-card .challenge-count,
    .public-page .fsd-card .headline-metric {
        padding-right: 18px;
        padding-left: 18px;
    }

    .public-page .challenge-card .headline-caption,
    .public-page .fsd-card .headline-caption {
        margin-right: 18px;
        margin-left: 18px;
    }

    .public-page .challenge-card .progress-track,
    .public-page .fsd-card .fsd-gauge {
        margin-right: 18px;
        margin-left: 18px;
    }

    .public-page .challenge-card .progress-meta,
    .public-page .fsd-card .fsd-gauge-legend {
        padding-right: 18px;
        padding-left: 18px;
    }

    .public-page .fsd-card .split-metrics article {
        padding: 14px 18px;
    }
}

.page-footer .public-sharing-notice {
    width: 100%;
    margin-top: 0.5rem;
}

.public-sharing-notice summary {
    cursor: pointer;
    font-weight: 700;
}

.public-sharing-notice-content {
    max-width: 42rem;
    margin-top: 0.55rem;
}

.public-sharing-notice-content p {
    margin: 0.4rem 0 0;
}

/* Public vehicle summary */

.public-page .vehicle-card .vehicle-content {
    grid-template-columns:
        minmax(220px, 0.62fr)
        minmax(0, 1.38fr);
    gap: 24px;
    padding: 24px 22px;
}

.public-page .vehicle-card .battery-display {
    gap: 17px;
}

.public-page .vehicle-card .battery-shell {
    width: 126px;
    height: 56px;
    border-width: 2px;
    border-radius: 11px;
}

.public-page .vehicle-card .battery-shell::after {
    top: 15px;
    right: -8px;
    width: 6px;
    height: 21px;
}

.public-page .vehicle-card .battery-number {
    font-size: clamp(2.8rem, 5vw, 4rem);
}

.public-page .vehicle-card .battery-number small {
    font-size: 0.9rem;
}

.public-page .vehicle-card .live-metrics {
    border-radius: 14px;
}

.public-page .vehicle-card .metric {
    min-height: 96px;
    padding: 17px 18px;
}

.public-page .vehicle-card .metric-label {
    font-size: 0.65rem;
}

.public-page .vehicle-card .metric strong {
    margin-top: 13px;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.public-page .vehicle-card .metric small {
    font-size: 0.72rem;
}

.public-page .vehicle-card .card-footer {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 820px) {
    .public-page .vehicle-card .vehicle-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .public-page .vehicle-card .battery-display {
        justify-content: center;
    }

    .public-page .vehicle-card .live-metrics {
        grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 620px) {
    .public-page .vehicle-card .vehicle-content {
        gap: 15px;
        padding: 19px 18px;
    }

    .public-page .vehicle-card .battery-display {
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
    }

    .public-page .vehicle-card .battery-shell {
        width: 112px;
        height: 50px;
    }

    .public-page .vehicle-card .battery-shell::after {
        top: 14px;
        height: 18px;
    }

    .public-page .vehicle-card .battery-number {
        font-size: 2.8rem;
    }

    .public-page .vehicle-card .live-metrics {
        grid-template-columns: 1fr;
    }

    .public-page .vehicle-card .metric {
        min-height: auto;
        padding: 14px 16px;
    }

    .public-page .vehicle-card .metric strong {
        margin-top: 8px;
    }
}

/* Public journey progress section */

/* Geographic overview */

.public-page .map-card .network-toolbar {
    gap: 8px;
    padding: 13px 22px;
}

.public-page .map-card .map-filter {
    min-height: 44px;
    gap: 7px;
    padding: 6px 10px;
    font-size: 0.75rem;
}

.public-page .map-card .map-filter span {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.67rem;
}

.public-page .map-card .map-legend {
    gap: 10px 18px;
    margin: 0;
    padding: 10px 22px;
    border-width: 0 0 1px;
    border-radius: 0;
    font-size: 0.72rem;
}

.public-page .map-card .charger-map {
    height: clamp(410px, 50vh, 590px);
    border: 0;
    border-radius: 0;
}

/* State progress and recent stops */

.public-page .state-progress-card .state-row,
.public-page .recent-visits-card .recent-row {
    padding: 13px 22px;
}

.public-page .state-progress-card .state-row-heading {
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.public-page .state-progress-card
.state-row-heading span:last-child,
.public-page .recent-visits-card .recent-row time {
    font-size: 0.72rem;
}

.public-page .state-progress-card
.state-row .progress-track {
    height: 6px;
}

.public-page .recent-visits-card .recent-row {
    gap: 14px;
    font-size: 0.88rem;
}

/* Nearest unvisited chargers */

.public-page .next-up-card th,
.public-page .next-up-card td {
    padding: 13px 18px;
}

.public-page .next-up-card th {
    font-size: 0.64rem;
}

.public-page .next-up-card td {
    font-size: 0.84rem;
}

.public-page .next-up-card td small {
    margin-top: 3px;
    font-size: 0.72rem;
}

.public-page .next-up-card .table-pill {
    padding: 5px 8px;
    font-size: 0.67rem;
}

@media (max-width: 720px) {
    .public-page .map-card .network-toolbar {
        padding: 12px 18px;
    }

    .public-page .map-card .map-filter {
        flex: 1 1 calc(50% - 5px);
        justify-content: space-between;
    }

    .public-page .map-card .map-legend {
        padding-right: 18px;
        padding-left: 18px;
    }

    .public-page .map-card .charger-map {
        height: 470px;
    }

    .public-page .state-progress-card .state-row,
    .public-page .recent-visits-card .recent-row {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 620px) {
    .public-page .next-up-card th,
    .public-page .next-up-card td {
        padding: 11px 13px;
    }

    .public-page .next-up-card th:nth-child(2),
    .public-page .next-up-card td:nth-child(2) {
        display: none;
    }

    .public-page .map-card .charger-map {
        height: 430px;
    }
}

/* Public route explorer */

/*
 * Keep this section presentation-only.
 * Graph layout and planner integration will be revisited separately.
 */

.public-page .network-card {
    min-height: 0;
}

.public-page .network-card .network-toolbar {
    gap: 8px;
    padding: 13px 22px;
}

.public-page .network-card .network-filter {
    gap: 7px;
    padding: 7px 10px;
    font-size: 0.74rem;
}

.public-page .network-card .network-filter span {
    min-width: 22px;
    height: 19px;
    padding: 0 6px;
    font-size: 0.65rem;
}

.public-page .network-card .network-button {
    padding: 7px 11px;
    font-size: 0.74rem;
}

.public-page .network-card .network-legend {
    align-items: center;
    gap: 12px 20px;
    padding: 11px 22px;
}

.public-page .network-card .network-legend-section {
    gap: 6px;
}

.public-page
.network-card
.network-legend-section > strong {
    font-size: 0.65rem;
}

.public-page .network-card .network-legend-items {
    gap: 7px 14px;
}

.public-page .network-card .network-legend-item {
    min-height: 20px;
    gap: 6px;
    font-size: 0.7rem;
}

.public-page .network-card .network-legend-divider {
    min-height: 30px;
}

.public-page .network-card .network-link-sample {
    width: 27px;
    border-top-width: 2px;
}

.public-page
.network-card
.network-link-sample.ferry {
    border-top-width: 3px;
}

.public-page .network-card .network-help {
    font-size: 0.68rem;
}

.public-page .network-card .charger-network {
    height: 500px;
}

.public-page .network-card .network-details {
    top: 14px;
    right: 14px;
    width: min(290px, calc(100% - 28px));
    padding: 18px;
    border-radius: 16px;
}

.public-page .network-card .network-details h3 {
    font-size: 1.2rem;
}

.public-page
.network-card
#network-details-location {
    margin-bottom: 15px;
    font-size: 0.78rem;
}

.public-page .network-card .network-details dl {
    gap: 9px;
}

.public-page .network-card .network-details dl div {
    gap: 14px;
    padding-top: 9px;
}

.public-page .network-card .network-details dt,
.public-page .network-card .network-details dd {
    font-size: 0.7rem;
}

@media (max-width: 900px) {
    .public-page .network-card .network-legend {
        align-items: flex-start;
    }

    .public-page .network-card .network-help {
        width: 100%;
    }

    .public-page .network-card .charger-network {
        height: 470px;
    }
}

@media (max-width: 620px) {
    .public-page .network-card .network-toolbar {
        gap: 7px;
        padding: 12px 18px;
    }

    .public-page .network-card .network-filter {
        flex: 1 1 calc(50% - 4px);
        justify-content: space-between;
    }

    .public-page .network-card .network-legend {
        gap: 11px;
        padding: 11px 18px;
    }

    .public-page .network-card .network-legend-section {
        width: 100%;
    }

    .public-page .network-card .network-legend-items {
        gap: 7px 12px;
    }

    .public-page .network-card .network-legend-divider {
        display: none;
    }

    .public-page .network-card .network-help {
        line-height: 1.4;
    }

    .public-page .network-card .charger-network {
        height: 430px;
    }

    .public-page .network-card .network-details {
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
        padding: 16px;
    }
}

/* Public adventure updates */

.public-page .subscription-card {
    grid-column: 1 / -1;
}

.public-page .subscription-content {
    padding: 0 22px 22px;
}

.public-page .subscription-copy {
    max-width: 660px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.public-page .subscription-message {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.82rem;
}

.public-page .subscription-message-error {
    border-color: rgba(232, 33, 39, 0.45);
}

.public-page .subscription-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-page .subscription-fields {
    display: flex;
    gap: 10px;
}

.public-page .subscription-fields input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: inherit;
    font: inherit;
}

.public-page .subscription-fields input:focus {
    outline: 2px solid rgba(232, 33, 39, 0.55);
    outline-offset: 2px;
}

.public-page .subscription-fields button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.public-page .subscription-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.7rem;
}

@media (max-width: 620px) {
    .public-page .subscription-content {
        padding: 0 18px 18px;
    }

    .public-page .subscription-fields {
        flex-direction: column;
    }

    .public-page .subscription-fields button {
        width: 100%;
    }
}

/* Subscription submission state */

.public-page .subscription-fields button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.public-page .subscription-form[aria-busy="true"] input {
    pointer-events: none;
    opacity: 0.72;
}

/* Dedicated subscription result page */

.subscription-result-page {
    display: flex;
    width: min(620px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 0 30px;
    flex-direction: column;
    justify-content: center;
}

.subscription-result-card {
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(232, 33, 39, 0.11),
            rgba(255, 255, 255, 0.012)
        ),
        var(--surface-solid);
    box-shadow: var(--shadow);
}

.subscription-result-brand {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    border-radius: 15px;
    place-items: center;
    background: var(--accent);
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.subscription-result-kicker {
    margin: 0 0 8px;
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subscription-result-card h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    line-height: 0.98;
}

.subscription-result-copy {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.subscription-result-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(66, 211, 146, 0.25);
    border-radius: 14px;
    background: rgba(66, 211, 146, 0.08);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
}

.subscription-result-status > span:first-child {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 50%;
    place-items: center;
    background: var(--success);
    color: #07120d;
    font-size: 0.8rem;
}

.subscription-result-button {
    display: inline-flex;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    text-decoration: none;
}

.subscription-result-button:hover {
    background: var(--accent-light);
}

.subscription-result-button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.subscription-result-footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

@media (max-width: 620px) {
    .subscription-result-page {
        width: min(100% - 18px, 620px);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .subscription-result-card {
        padding: 27px 22px;
        border-radius: 20px;
    }

    .subscription-result-brand {
        margin-bottom: 22px;
    }

    .subscription-result-button {
        width: 100%;
    }
}

/* Subscription unsubscribe confirmation */

.subscription-result-actions {
    display: flex;
    margin-top: 28px;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.subscription-result-actions form {
    margin: 0;
}

.subscription-result-actions .subscription-result-button {
    margin-top: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.subscription-result-secondary {
    display: inline-flex;
    min-height: 48px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.subscription-result-secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.045);
}

.subscription-result-secondary:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

@media (max-width: 620px) {
    .subscription-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .subscription-result-actions form,
    .subscription-result-actions button,
    .subscription-result-secondary {
        width: 100%;
    }
}
.public-history-card {
    grid-column: span 2;
}

.public-history-card select {
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.55rem 0.75rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.28);
}

.public-history-card select:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 3px;
}

.public-history-chart {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
}

.public-history-line {
    fill: none;
    stroke: #e82127;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

@media (max-width: 760px) {
    .public-history-card {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-page *,
    .subscription-result-page * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
