/* Detail pages v2 */
html.route-detail,
body.route-detail {
    background:
        radial-gradient(circle at top center, rgba(67, 96, 171, 0.24) 0%, rgba(67, 96, 171, 0) 32%),
        radial-gradient(circle at 88% 16%, rgba(31, 196, 150, 0.12) 0%, rgba(31, 196, 150, 0) 24%),
        linear-gradient(180deg, #08111d 0%, #091423 22%, #091524 55%, #07111c 100%);
    color: #eef3fb;
}

body.route-detail,
body.route-detail button,
body.route-detail input,
body.route-detail textarea,
body.route-detail select {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

.route-detail .container {
    width: var(--public-content-width);
    max-width: none;
}

.route-detail .page-main--detail {
    padding-top: 18px;
    padding-bottom: 90px;
}

.route-detail .breadcrumbs {
    color: rgba(224, 233, 247, 0.78);
    min-width: 0;
    overflow-wrap: anywhere;
}

.route-detail .breadcrumbs a {
    color: #dbe8ff;
    min-width: 0;
    overflow-wrap: anywhere;
}

.route-detail .breadcrumb-sep {
    color: rgba(166, 181, 209, 0.7);
}

.detail-page {
    margin-bottom: 18px;
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid rgba(54, 68, 97, 0.92);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(77, 92, 238, 0.18) 0%, rgba(77, 92, 238, 0) 34%),
        radial-gradient(circle at bottom right, rgba(34, 191, 149, 0.12) 0%, rgba(34, 191, 149, 0) 38%),
        linear-gradient(145deg, rgba(18, 24, 39, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
    padding: 18px;
    box-shadow: 0 22px 46px rgba(3, 7, 18, 0.34);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%);
    pointer-events: none;
}

.detail-hero--group {
    background:
        radial-gradient(circle at top left, rgba(77, 92, 238, 0.22) 0%, rgba(77, 92, 238, 0) 36%),
        radial-gradient(circle at bottom right, rgba(35, 206, 152, 0.12) 0%, rgba(35, 206, 152, 0) 40%),
        linear-gradient(145deg, rgba(18, 24, 39, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
}

.detail-hero--oa {
    background:
        radial-gradient(circle at top left, rgba(77, 92, 238, 0.18) 0%, rgba(77, 92, 238, 0) 34%),
        radial-gradient(circle at bottom right, rgba(56, 181, 255, 0.14) 0%, rgba(56, 181, 255, 0) 36%),
        linear-gradient(145deg, rgba(18, 24, 39, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
}

.detail-hero--mini-app {
    background:
        radial-gradient(circle at top left, rgba(123, 104, 238, 0.18) 0%, rgba(123, 104, 238, 0) 34%),
        radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.12) 0%, rgba(52, 211, 153, 0) 38%),
        linear-gradient(145deg, rgba(18, 24, 39, 0.98) 0%, rgba(11, 16, 27, 0.98) 100%);
}

.detail-hero--single-frame {
    gap: 18px;
}

.detail-profile {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    align-content: start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.detail-single-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "profile"
        "side"
        "content";
}

.detail-single-shell__side {
    grid-area: side;
    display: grid;
    gap: 14px;
    align-content: start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.detail-single-shell__content {
    grid-area: content;
    display: grid;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.detail-profile > img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex: none;
    border-radius: 18px;
    border: 1px solid rgba(116, 136, 178, 0.38);
    box-shadow: 0 10px 22px rgba(4, 9, 19, 0.35);
    background: rgba(10, 14, 24, 0.9);
}

.detail-profile__avatar {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    justify-self: center;
    margin: 0 auto 4px;
    border-radius: 18px;
    border: 1px solid rgba(116, 136, 178, 0.38);
    box-shadow: 0 10px 22px rgba(4, 9, 19, 0.35);
    background: rgba(10, 14, 24, 0.9);
}

.detail-profile--single-frame {
    grid-area: profile;
    gap: 0;
}

.detail-profile-body {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 12px;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 18px 18px;
    border: 1px solid rgba(63, 80, 114, 0.76);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 27, 43, 0.76) 0%, rgba(12, 18, 30, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 30px rgba(4, 9, 18, 0.16);
}

.detail-profile-body--single-frame {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    gap: 16px;
}

.detail-profile__cta {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.detail-profile--single-frame .detail-profile__avatar {
    justify-self: center;
    margin: 0 auto;
}

.detail-profile h1 {
    margin: 0;
    color: #f5f8ff;
    font-size: clamp(1.48rem, 3.8vw, 2.45rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.detail-page .badge-row,
.detail-page .ui-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.detail-page .badge,
.detail-page .status-chip {
    box-shadow: none;
}

.detail-identity-line {
    margin: -4px 0 0;
    color: rgba(183, 210, 242, 0.92);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.detail-description-stack {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.detail-description-card {
    margin: 0;
    min-width: 0;
    border: 1px solid rgba(63, 78, 107, 0.88);
    border-radius: 18px;
    background: rgba(16, 22, 35, 0.86);
    padding: 12px 14px;
}

.detail-description-card[open] {
    padding-bottom: 14px;
}

.detail-description-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}

.detail-description-card__summary::-webkit-details-marker {
    display: none;
}

.detail-description-card--source {
    background: rgba(15, 23, 36, 0.92);
    border-color: rgba(86, 108, 146, 0.9);
}

.detail-description-card--ai {
    background: rgba(14, 27, 20, 0.88);
    border-color: rgba(62, 121, 84, 0.62);
}

.detail-description-card__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 11px;
    color: #eef4ff;
    background: rgba(29, 39, 57, 0.92);
    border: 1px solid rgba(86, 104, 138, 0.56);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.detail-description-card--ai .detail-description-card__label {
    color: #b8ffd1;
    background: rgba(18, 45, 30, 0.86);
    border-color: rgba(72, 140, 99, 0.46);
}

.detail-description-card__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: rgba(201, 214, 237, 0.82);
    background: rgba(20, 29, 46, 0.84);
    border: 1px solid rgba(72, 90, 125, 0.72);
    transition: transform 0.18s ease;
}

.detail-description-card__chevron svg {
    width: 14px;
    height: 14px;
}

.detail-description-card[open] .detail-description-card__chevron {
    transform: rotate(180deg);
}

.detail-description-card__content {
    padding-top: 10px;
    min-width: 0;
}

.detail-description-card__content--static {
    padding-top: 10px;
    min-width: 0;
}

.detail-description-card__body {
    margin: 0;
    min-width: 0;
    color: rgba(214, 223, 238, 0.84);
    font-size: 0.92rem;
    line-height: 1.68;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-description-card--collapsible .detail-description-card__body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.detail-description-card--collapsible.is-expanded .detail-description-card__body {
    display: block;
}

.detail-description-card__toggle-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    border: 0;
    background: none;
    color: #dce8ff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail-description-card__toggle-btn:hover {
    color: #f3f8ff;
}

:is(.detail-hero--group, .detail-hero--oa, .detail-hero--mini-app) .detail-description-card--collapsible {
    position: relative;
}

:is(.detail-hero--group, .detail-hero--oa, .detail-hero--mini-app) .detail-description-card--collapsible .detail-description-card__body {
    -webkit-line-clamp: 2;
}

:is(.detail-hero--group, .detail-hero--oa, .detail-hero--mini-app) .detail-description-card--collapsible:not(.is-expanded) .detail-description-card__content--static {
    padding-right: 80px;
}

:is(.detail-hero--group, .detail-hero--oa, .detail-hero--mini-app) .detail-description-card--collapsible:not(.is-expanded) .detail-description-card__toggle-btn {
    position: absolute;
    right: 14px;
    bottom: 13px;
    margin: 0;
    padding-left: 18px;
}

:is(.detail-hero--group, .detail-hero--oa, .detail-hero--mini-app) .detail-description-card--source.detail-description-card--collapsible:not(.is-expanded) .detail-description-card__toggle-btn {
    background: linear-gradient(90deg, rgba(15, 23, 36, 0) 0%, rgba(15, 23, 36, 0.98) 30%, rgba(15, 23, 36, 0.98) 100%);
}

:is(.detail-hero--group, .detail-hero--oa, .detail-hero--mini-app) .detail-description-card--ai.detail-description-card--collapsible:not(.is-expanded) .detail-description-card__toggle-btn {
    background: linear-gradient(90deg, rgba(14, 27, 20, 0) 0%, rgba(14, 27, 20, 0.98) 30%, rgba(14, 27, 20, 0.98) 100%);
}

.detail-insight-panel {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(67, 84, 118, 0.78);
    border-radius: 18px;
    background: rgba(11, 18, 29, 0.28);
}

.detail-insight-panel > * + * {
    border-top: 0;
    padding-top: 0;
}

.detail-insight-panel .detail-trust-line,
.detail-insight-panel .detail-interest-strip,
.detail-insight-panel .detail-signal-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.detail-trust-line {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: rgba(201, 214, 237, 0.86);
    font-size: 0.84rem;
    line-height: 1.62;
}

.detail-interest-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.detail-interest-strip__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(198, 212, 235, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.detail-interest-strip__label svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.detail-interest-strip__value {
    color: #f5f8ff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.detail-interest-strip__main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.detail-interest-strip__summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-interest-strip__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.detail-interest-strip__meta-item {
    color: rgba(187, 201, 223, 0.76);
    font-size: 0.8rem;
    line-height: 1.5;
}

.detail-interest-strip__meta-item + .detail-interest-strip__meta-item::before {
    content: "•";
    margin: 0 8px;
    color: rgba(148, 166, 198, 0.68);
}

.detail-interest-strip__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-interest-strip__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(86, 108, 146, 0.42);
    background: rgba(18, 27, 43, 0.62);
    color: #dbe8ff;
    cursor: pointer;
}

.detail-interest-strip__action:hover {
    background: rgba(24, 36, 57, 0.84);
    border-color: rgba(136, 162, 210, 0.58);
}

.detail-interest-strip__action svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.detail-signal-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.detail-signal-chip {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.detail-signal-chip__label {
    display: block;
    color: rgba(156, 175, 207, 0.82);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-signal-chip__value {
    display: block;
    color: #f5f8ff;
    font-size: 0.92rem;
    line-height: 1.45;
}

.detail-dead-alert {
    margin-top: 0;
    border: 1px solid rgba(158, 67, 79, 0.55);
    border-radius: 18px;
    background: rgba(73, 21, 29, 0.78);
    color: #ffd7dd;
    font-size: 0.92rem;
    line-height: 1.62;
    padding: 12px 14px;
}

.detail-retention-block {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(57, 74, 106, 0.94);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 23, 38, 0.96) 0%, rgba(11, 17, 28, 0.98) 100%);
    padding: 14px;
    box-shadow: 0 16px 30px rgba(4, 9, 18, 0.18);
}

.detail-retention-block__head {
    display: grid;
    gap: 5px;
}

.detail-retention-block__head h2 {
    margin: 0;
    color: #f4f8ff;
    font-size: 0.98rem;
}

.detail-retention-block__head p {
    margin: 0;
    color: rgba(201, 214, 237, 0.78);
    font-size: 0.82rem;
    line-height: 1.56;
}

.detail-retention-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-retention-card {
    display: grid;
    gap: 5px;
    min-height: 100%;
    border: 1px solid rgba(78, 99, 138, 0.88);
    border-radius: 18px;
    background: rgba(14, 21, 34, 0.9);
    padding: 12px;
    text-decoration: none;
}

.detail-retention-card:hover {
    text-decoration: none;
    border-color: rgba(124, 148, 194, 0.94);
    background: rgba(18, 27, 43, 0.96);
}

.detail-retention-card__eyebrow {
    color: rgba(164, 184, 220, 0.76);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-retention-card__title {
    color: #f5f8ff;
    font-size: 0.92rem;
    line-height: 1.42;
}

.detail-retention-card__meta {
    color: rgba(197, 211, 236, 0.74);
    font-size: 0.78rem;
    line-height: 1.45;
}

.detail-section,
.related-block {
    border: 1px solid rgba(47, 61, 87, 0.96);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 23, 37, 0.96) 0%, rgba(11, 16, 26, 0.98) 100%);
    padding: 16px;
    box-shadow: 0 18px 36px rgba(4, 9, 18, 0.24);
}

.detail-hero--single-frame .detail-single-shell__content .detail-section,
.detail-hero--single-frame .detail-single-shell__content .related-block {
    border-width: 1px 0 0;
    border-color: rgba(63, 80, 114, 0.76);
    border-radius: 0;
    background: none;
    padding: 18px 0 0;
    box-shadow: none;
}

.detail-hero--single-frame .detail-single-shell__side .detail-section {
    border: 1px solid rgba(57, 74, 106, 0.94);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 23, 38, 0.96) 0%, rgba(11, 17, 28, 0.98) 100%);
    padding: 14px;
    box-shadow: 0 16px 30px rgba(4, 9, 18, 0.18);
}

.detail-single-shell__side .detail-section--guide {
    gap: 10px;
    padding: 12px 13px;
}

.detail-single-shell__side .detail-section--guide h2 {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.detail-hero--single-frame .detail-single-shell__content > :first-child {
    margin-top: 0;
}

.detail-section h2,
.related-block h2,
.related-row h3 {
    margin: 0 0 10px;
    color: #f3f7ff;
}

.detail-section h2 {
    font-size: 1.03rem;
}

.detail-section p,
.detail-list,
.faq-list details p,
.stats-empty-text {
    color: rgba(210, 220, 236, 0.84);
}

.detail-taxonomy-inline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: rgba(210, 220, 236, 0.84);
    font-size: 0.84rem;
    line-height: 1.6;
}

.detail-taxonomy-inline__section {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.detail-taxonomy-inline__label {
    color: rgba(185, 201, 228, 0.9);
    font-weight: 700;
}

.detail-taxonomy-inline__items {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.detail-taxonomy-inline__link {
    color: #dce8ff;
    font-weight: 600;
    text-decoration: none;
}

.detail-taxonomy-inline__link:hover {
    color: #f2f7ff;
    text-decoration: underline;
}

.detail-taxonomy-inline__punctuation,
.detail-taxonomy-inline__group-separator {
    color: rgba(168, 186, 216, 0.7);
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.72;
}

.detail-list li + li {
    margin-top: 8px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid rgba(60, 75, 106, 0.84);
    border-radius: 16px;
    background: rgba(16, 22, 35, 0.92);
    padding: 11px 12px;
}

.faq-list summary {
    cursor: pointer;
    color: #f1f6ff;
    font-size: 0.92rem;
    font-weight: 700;
}

.detail-section--compact {
    padding: 14px 15px;
}

.detail-section--compact h2 {
    margin-bottom: 8px;
    font-size: 0.97rem;
}

.detail-section--compact .detail-list {
    line-height: 1.64;
}

.detail-section--compact .faq-list {
    gap: 8px;
}

.detail-section--compact .faq-list details {
    padding: 10px 11px;
}

.detail-callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.detail-hero--single-frame .detail-callout-grid {
    padding-top: 4px;
}

.detail-single-shell__side .detail-callout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 0;
}

.detail-callout-card {
    border: 1px solid rgba(123, 151, 206, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 21, 36, 0.95) 0%, rgba(10, 16, 29, 0.9) 100%);
    padding: 16px 17px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.detail-single-shell__side .detail-callout-card {
    padding: 12px 13px;
    border-radius: 16px;
}

.detail-callout-card h3 {
    margin: 0 0 10px;
    font-size: 0.98rem;
    color: #f3f8ff;
}

.detail-single-shell__side .detail-callout-card h3 {
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.detail-single-shell__side .detail-callout-card--info .detail-trust-line {
    margin-bottom: 10px;
}

.detail-single-shell__side .detail-callout-card--info .detail-insight-panel {
    gap: 10px;
}

.detail-single-shell__side .detail-callout-card--info .detail-interest-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.detail-single-shell__side .detail-callout-card--info .detail-interest-strip__main {
    width: 100%;
}

.detail-single-shell__side .detail-callout-card--info .detail-interest-strip__summary {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
}

.detail-single-shell__side .detail-callout-card--info .detail-interest-strip__meta {
    gap: 2px 0;
}

.detail-single-shell__side .detail-callout-card--info .detail-signal-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.detail-callout-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #aebfd7;
    line-height: 1.62;
}

.detail-single-shell__side .detail-callout-list {
    list-style: none;
    padding-left: 0;
    gap: 6px;
    font-size: 0.82rem;
    line-height: 1.52;
}

.detail-single-shell__side .detail-callout-list li {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
}

.detail-single-shell__side .detail-callout-list li::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: rgba(180, 201, 236, 0.78);
}

.detail-callout-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.detail-single-shell__side .detail-callout-actions {
    gap: 5px;
    margin-top: 10px;
}

.detail-callout-actions .detail-interest-strip__action {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.detail-callout-actions .detail-interest-strip__action svg {
    width: 16px;
    height: 16px;
}

.detail-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-share-row__button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.detail-share-row__button svg {
    width: 16px;
    height: 16px;
}

.detail-share-row__status {
    min-height: 1.2em;
    margin: 10px 0 0;
    color: rgba(187, 201, 223, 0.76);
    font-size: 0.78rem;
    line-height: 1.45;
}

.detail-share-row__status.is-success {
    color: #a8f0ca;
}

.detail-share-row__status.is-error {
    color: #ffb8b8;
}

.related-block {
    padding: 14px;
}

.detail-hero--single-frame > .related-block {
    margin-top: 18px;
}

.related-row + .related-row {
    margin-top: 16px;
}

.related-row h3 {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(231, 238, 250, 0.9);
}

.route-detail .section-head a {
    color: #dce8ff;
}

.route-detail .related-items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    scroll-snap-type: none;
}

.route-detail .related-items .section-item-card {
    flex: initial;
}

.route-detail .related-items--compact {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 10px;
}

.route-detail .related-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid rgba(62, 78, 110, 0.88);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 25, 40, 0.94) 0%, rgba(12, 18, 31, 0.98) 100%);
    padding: 10px;
    color: #edf4ff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(4, 9, 18, 0.18);
}

.route-detail .related-card:hover {
    border-color: rgba(128, 157, 211, 0.82);
    background: linear-gradient(180deg, rgba(22, 31, 50, 0.98) 0%, rgba(14, 21, 36, 0.99) 100%);
}

.route-detail .related-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(226, 234, 248, 0.08);
}

.route-detail .related-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.route-detail .related-card__title,
.route-detail .related-card__meta {
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-detail .related-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #f4f8ff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.route-detail .related-card__meta {
    white-space: nowrap;
    color: rgba(188, 207, 238, 0.84);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.route-detail .empty-state {
    border: 1px dashed rgba(87, 106, 146, 0.82);
    border-radius: 18px;
    background: rgba(16, 22, 35, 0.88);
    color: rgba(212, 221, 237, 0.78);
    padding: 14px 15px;
}

@supports (content-visibility: auto) {
    .route-detail .related-block,
    .route-detail .detail-retention-block,
    .route-detail .site-footer {
        content-visibility: auto;
    }

    .route-detail .related-block {
        contain-intrinsic-size: 1600px;
    }

    .route-detail .detail-retention-block {
        contain-intrinsic-size: 720px;
    }

    .route-detail .site-footer {
        contain-intrinsic-size: 460px;
    }
}

.cta-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(78, 95, 132, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 24, 40, 0.94) 0%, rgba(10, 16, 27, 0.98) 100%);
    padding: 16px;
    text-align: center;
}

.detail-hero .cta-panel {
    height: 100%;
    align-content: start;
}

.cta-panel__profile {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(100%, 860px);
    margin: 0 auto 4px;
    text-align: center;
    min-width: 0;
}

.cta-panel__profile .detail-profile__avatar {
    width: clamp(82px, 7vw, 108px);
    height: clamp(82px, 7vw, 108px);
    margin: 0 auto 2px;
}

.cta-panel__profile .detail-identity-line {
    margin: 0;
    color: rgba(188, 214, 246, 0.95);
    font-size: 0.9rem;
}

.cta-panel__profile h1 {
    max-width: min(780px, 100%);
    text-align: center;
}

.cta-panel__profile .badge-row,
.cta-panel__profile .ui-badges {
    justify-content: center;
}

.cta-panel.is-disabled {
    border-color: rgba(137, 78, 88, 0.72);
    background: linear-gradient(180deg, rgba(44, 20, 26, 0.94) 0%, rgba(26, 12, 15, 0.98) 100%);
}

.cta-panel.is-ready .cta-actions,
.cta-panel.is-ready .cta-panel__locked-note,
.cta-panel.is-ready .detail-metrics {
    display: none !important;
}

.cta-panel__locked,
.cta-panel__ready {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.cta-panel__ready[hidden],
.cta-panel__qr[hidden],
.cta-panel__turnstile[hidden] {
    display: none !important;
}

.cta-panel__locked {
    justify-items: center;
    gap: 10px;
}

.cta-panel__ready {
    justify-items: center;
    padding-top: 2px;
}

.cta-panel__focus {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 14px 14px 15px;
    border: 1px solid rgba(82, 101, 143, 0.76);
    border-radius: 20px;
    background:
        radial-gradient(circle at top center, rgba(84, 110, 183, 0.12) 0%, rgba(84, 110, 183, 0) 48%),
        linear-gradient(180deg, rgba(18, 27, 44, 0.9) 0%, rgba(11, 18, 31, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.cta-panel__focus--dead {
    border-color: rgba(147, 86, 100, 0.74);
    background:
        radial-gradient(circle at top center, rgba(143, 58, 78, 0.16) 0%, rgba(143, 58, 78, 0) 48%),
        linear-gradient(180deg, rgba(48, 20, 27, 0.88) 0%, rgba(27, 12, 16, 0.96) 100%);
}

.cta-panel__turnstile {
    display: grid;
    justify-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.cta-panel__locked-note {
    margin: 0;
    width: 100%;
    max-width: none;
    color: rgba(201, 214, 236, 0.76);
    font-size: 0.8rem;
    line-height: 1.55;
}

.cta-panel__turnstile .cf-turnstile,
.cta-panel__turnstile .js-turnstile-widget {
    width: min(100%, 300px);
    max-width: 300px;
    min-width: 0;
    min-height: 65px;
}

.cta-panel__turnstile .cf-turnstile > div,
.cta-panel__turnstile .js-turnstile-widget > div {
    width: 100% !important;
    max-width: 100% !important;
}

.cta-panel__turnstile iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    border: 0;
}

.join-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbe7ff 0%, #a8c3ff 100%);
    color: #08101d;
    font-weight: 700;
    padding: 0 18px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
    box-shadow: 0 16px 30px rgba(82, 111, 188, 0.22);
    font-family: inherit;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.join-btn-primary:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(82, 111, 188, 0.3);
}

.join-btn-primary:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.join-btn-primary--large {
    width: min(100%, 320px);
    margin-inline: auto;
    font-size: 1rem;
    min-height: 52px;
}

.join-btn-primary.is-loading {
    cursor: wait;
    opacity: 0.76;
}

.join-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 42px;
    min-width: 132px;
    border: 1px solid rgba(97, 118, 161, 0.9);
    border-radius: 12px;
    background: rgba(16, 24, 39, 0.86);
    color: #ebf2ff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
    font-family: inherit;
}

.join-btn-secondary:hover {
    border-color: rgba(153, 177, 226, 0.98);
    background: rgba(24, 34, 56, 0.94);
    transform: translateY(-1px);
}

.cta-panel__qr {
    position: relative;
    justify-self: center;
    display: grid;
    place-items: center;
    width: clamp(156px, 14vw, 198px);
    height: clamp(156px, 14vw, 198px);
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(133, 156, 206, 0.7);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(224, 233, 252, 0.96) 100%),
        #f8fbff;
    box-shadow:
        0 18px 44px rgba(30, 54, 116, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.cta-panel__qr canvas,
.cta-panel__qr img {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: #f8fbff;
    object-fit: contain;
}

.cta-panel__type {
    margin: -2px 0 0;
    color: #edf4ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-panel__ready-actions {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.cta-panel__expiry,
.cta-hint,
.cta-message,
.stats-empty-text {
    margin: 0;
    font-size: 0.84rem;
}

.cta-panel__expiry,
.cta-hint {
    color: rgba(205, 218, 238, 0.76);
}

.cta-message {
    min-height: 1.2em;
    color: rgba(208, 220, 240, 0.82);
    font-size: 0.82rem;
}

.cta-message:empty {
    display: none;
}

.cta-message.is-error {
    color: #ffc6cf;
}

.cta-message.is-success {
    color: #bbffd5;
}

.cta-dead-alert {
    margin: 0;
    border: 1px solid rgba(168, 92, 108, 0.66);
    border-radius: 14px;
    background: rgba(73, 21, 29, 0.72);
    color: #ffd6dd;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.55;
    padding: 10px 12px;
}

.cta-panel__why-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cta-panel__why-row .why-popover--inline {
    margin-left: 0;
}

.detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.detail-metrics .metric {
    border: 1px solid rgba(74, 91, 126, 0.84);
    border-radius: 999px;
    background: rgba(17, 24, 40, 0.74);
    color: #dde8ff;
    font-size: 0.77rem;
    font-weight: 600;
    padding: 6px 10px;
}

@media (min-width: 980px) {
    .detail-hero {
        padding: 22px;
    }

    .detail-single-shell {
        grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
        grid-template-areas:
            "profile side"
            "content side";
        align-items: start;
    }

    .detail-single-shell__side {
        position: sticky;
        top: 92px;
    }

    .detail-profile {
        min-height: 100%;
        padding: 4px 0;
    }

    .detail-profile--single-frame .detail-profile__avatar {
        justify-self: center;
        margin: 0;
    }

    .detail-signal-panel {
        gap: 10px 18px;
    }

    .route-detail .related-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 979px) {
    .detail-hero {
        border-radius: 24px;
    }

    .detail-single-shell {
        gap: 16px;
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "profile"
            "side"
            "content";
    }

    .detail-signal-panel {
        gap: 8px;
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-signal-chip {
        min-width: 0;
    }

    .detail-profile {
        order: 2;
        padding: 0;
    }

    .detail-profile--single-frame .detail-profile__avatar {
        justify-self: center;
        margin: 0 auto;
    }

    .cta-panel__focus {
        padding: 13px 13px 14px;
        border-radius: 18px;
    }

    .detail-section,
    .related-block,
    .cta-panel {
        border-radius: 20px;
    }

    .detail-profile-body:not(.detail-profile-body--single-frame) {
        padding: 14px 15px 15px;
        border-radius: 20px;
    }

    .route-detail .related-items--compact .section-item-card:nth-child(n+5) {
        display: none;
    }

    .detail-interest-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-interest-strip__value {
        white-space: normal;
    }

    .detail-retention-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .detail-retention-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

