/* Data-first observatory. Structural lines are context, never selection targets. */
/* A short explanation stays beside the controls after playback in every view.
   It does not intercept the track gestures underneath it. */
#particleEventCanvas .detector-toolbar .detector-replay-hypothesis {
    position: static;
    display: none;
    align-self: flex-end;
    width: min(320px, calc(100vw - 36px));
    max-width: 100%;
    box-sizing: border-box;
    margin: .4rem 0 0 auto;
    padding: .65rem .8rem;
    border: 1px solid #7289a740;
    border-radius: .6rem;
    background: #0b1728e8;
    color: #e4edf7;
    text-align: left;
    pointer-events: none;
    transform: none;
    animation: none;
}

#particleEventCanvas .detector-toolbar .detector-replay-hypothesis.is-visible {
    display: grid;
    gap: .2rem;
    opacity: 1;
    visibility: visible;
}

#particleEventCanvas .detector-replay-hypothesis strong {
    font-size: .875rem;
    line-height: 1.6;
}

#particleEventCanvas .detector-replay-hypothesis :is(span, small) {
    font-size: .75rem;
    line-height: 1.5;
    color: #b8c8db;
}

.detector-shell-clean {
    background: #03070d;
}

.detector-shell-clean .detector-plot-bg {
    fill: #03070d;
}

.detector-shell-clean .detector-visual-stage {
    background: radial-gradient(ellipse at center, #101d2a 0%, #03070d 68%);
    container-type: size;
}

/* Match HTML controls to SVG's centered, aspect-preserving drawing area. */
.detector-shell-clean .detector-visual-stage .detector-hit-layer {
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(100cqw, calc(100cqh * 760 / 620));
    height: min(100cqh, calc(100cqw * 620 / 760));
    transform: translate(-50%, -50%);
}

.detector-shell-clean .detector3d-cage {
    opacity: 0.64;
}

.detector-shell-clean .detector3d-ring {
    stroke: #95adbf;
    stroke-width: 0.7;
    stroke-opacity: 0.33;
    stroke-dasharray: none;
    vector-effect: non-scaling-stroke;
}

.detector-shell-clean .detector3d-ring-calo {
    stroke: #cfbc98;
    stroke-opacity: 0.42;
}

.detector-shell-clean .detector3d-rail {
    stroke: #a8baca;
    stroke-opacity: 0.15;
    stroke-width: 0.65;
    stroke-dasharray: none;
}

.detector-shell-clean :is(.detector3d-track-path, .detector-track-path) {
    stroke-width: 2;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--track-color) 40%, transparent));
}

.detector-shell-clean :is(.detector3d-track.is-mass-pair .detector3d-track-path, .detector-track-path.is-mass-pair) {
    stroke-width: 3;
}

.detector-shell-clean :is(.detector3d-photon-guide, .detector-photon-guide) {
    stroke-dasharray: 20 30;
}

.detector-shell-clean .detector3d-em-cluster-cell {
    fill: color-mix(in srgb, var(--track-color) 48%, #ffebc0);
    stroke: #fff0d2;
    stroke-width: 0.5;
    opacity: 0.88;
}

.detector-shell-clean .detector3d-jet-cone {
    fill: color-mix(in srgb, var(--track-color) 13%, transparent);
    stroke-opacity: 0.56;
    stroke-width: 0.8;
}

.detector-shell-clean .detector-xy-structure {
    opacity: 0.53;
}

.detector-shell-clean :is(.detector-fine-ring, .detector-ring) {
    stroke-width: 0.8;
}

.detector-shell-clean .detector-tracker-spoke {
    stroke-opacity: 0.25;
}

.detector-shell-clean :is(.detector-em-cluster-cell, .detector-calo-response-jet) {
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--track-color) 28%, transparent));
}

.detector-shell-clean :is(.detector3d-axis, .detector-axis) {
    opacity: 0.45;
}

.detector-shell-clean:has(.detector-track-touch-target.is-track-hovered, .event-track-hit:hover, .event-track-hit:focus-visible) :is(.detector3d-cage, .detector-xy-structure) {
    opacity: 0.18;
}

.detector-motion-front {
    fill: none;
    stroke: color-mix(in srgb, var(--track-color, #b8d5e6) 34%, white);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 0.035 1;
    opacity: 0;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 4px var(--track-color, #b8d5e6));
}

/* One shared clock for XY and 3D. These selectors also override the older
   3D-specific delays: products must never precede the incoming beams. */
.detector-shell-clean {
    --collision-time: 1100ms;
    --products-start: 1200ms;
    --products-duration: 1500ms;
    --response-start: 2700ms;
}

.detector-shell-clean .event-detector-svg.is-event-entering .detector-motion-front {
    animation: collision-travel var(--products-duration) linear calc(var(--products-start) - var(--playback-elapsed, 0ms)) both;
}

.detector-shell-clean .event-detector-svg.is-event-entering .detector-motion-front.is-incoming {
    animation: collision-travel 1000ms cubic-bezier(0.4, 0, 0.75, 1) calc(100ms - var(--playback-elapsed, 0ms)) both;
}

.detector-shell-clean .event-detector-svg.is-event-entering :is(.detector-track-path, .detector-track-bloom, .detector-photon-guide, .detector-jet-axis, .detector3d-track-path) {
    animation: collision-track-out var(--products-duration) linear calc(var(--products-start) - var(--playback-elapsed, 0ms)) backwards;
}

.detector-shell-clean .event-detector-svg.is-event-entering :is(.detector-em-cluster, .detector-calo-response-jet, .detector-jet-cone, .detector3d-em-cluster, .detector3d-jet-cone, .detector-met-line, .detector-met-label) {
    animation: detector-event-response-arrive 450ms ease-out calc(var(--response-start) - var(--playback-elapsed, 0ms)) backwards;
}

.detector-shell-clean .event-detector-svg.is-event-entering .detector-track-hit-dot {
    animation: detector-event-response-arrive 340ms ease-out calc(var(--response-start) - var(--playback-elapsed, 0ms)) backwards;
}

.detector-shell-clean .event-detector-svg.is-event-entering:not(.event-detector-svg-3d) .detector-collision-vertex,
.detector-shell-clean .event-detector-svg.event-detector-svg-3d.is-event-entering .detector-track-core {
    animation-delay: calc(var(--collision-time) - var(--playback-elapsed, 0ms));
}

.detector-shell-clean .event-detector-svg.is-event-entering .detector3d-proton-beam {
    animation-delay: calc(0ms - var(--playback-elapsed, 0ms));
}
.detector-shell-clean .event-detector-svg.is-event-entering .detector3d-proton-label {
    animation-delay: calc(40ms - var(--playback-elapsed, 0ms));
}

/* Endpoint markers, labels and their leaders only appear once the outgoing
   tracks reach them. Detector controls remain usable during the replay. */
.event-detector-svg.is-event-entering + .detector-hit-layer {
    animation: none;
}

.detector-shell-clean .event-detector-svg.is-event-entering .detector-track-touch-target,
.detector-shell-clean .event-detector-svg.is-event-entering :is(.detector-mass-track-label, .detector-mass-label-leader),
.detector-shell-clean .event-detector-svg.is-event-entering + .detector-hit-layer :is(.event-track-hit, .detector-comparison-particle-label) {
    animation: collision-target-reveal 1ms step-end calc(var(--response-start) - var(--playback-elapsed, 0ms)) backwards;
}

@keyframes collision-track-out {
    from { opacity: 0; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
    1% { opacity: 1; }
    to { opacity: 1; stroke-dasharray: 1200; stroke-dashoffset: 0; }
}

@keyframes collision-target-reveal {
    from { visibility: hidden; }
    to { visibility: visible; }
}

@keyframes collision-travel {
    0% { opacity: 0; stroke-dashoffset: 0; }
    5% { opacity: 1; }
    92% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: -1; }
}

/* The LP opens on the event, not a separate screen of introduction. */
.home-header-particle-wordmark {
    display: block;
    width: clamp(150px, 43vw, 210px);
    height: auto;
    /* Same particle-letter artwork as desktop, with ink contrast on the
       mobile header's light background. */
    filter: brightness(0) saturate(100%);
}

@media (min-width: 701px) {
    body.home-event-page.research-look-page > header.nav .brand {
        display: none;
    }
}

body.home-event-page.research-look-page .home-event-shell {
    padding-top: 8px;
}

/* A brief introduction stays in the page flow; the creator credit is in the footer. */
.home-site-intro { position: relative; scroll-margin-top: 120px; }
.home-site-intro[hidden], .home-site-intro-dismiss[hidden] { display: none; }
body.home-event-page.research-look-page .home-site-intro-dismiss {
    position: absolute;
    top: 0;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #52667e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.home-site-intro-dismiss:hover { background: #e1e8f1; }
.home-site-intro-dismiss:focus-visible { outline: 2px solid #3a577d; outline-offset: -3px; }
body.home-event-page.research-look-page .home-site-about {
    margin: 0 8px 8px;
    border: 0;
    border-bottom: 1px solid #d7e0ea;
    border-radius: 0;
    background: transparent;
    color: #33465d;
}
body.home-event-page.research-look-page .home-site-about > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 44px;
    padding: 9px 58px 9px 6px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}
.home-site-about > summary::-webkit-details-marker { display: none; }
.home-site-about-intro { min-width: 0; }
.home-site-about-more { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #3a577d; font-size: 12px; }
.home-site-about-more i { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.home-site-about[open] .home-site-about-more i { transform: rotate(225deg); }
.home-site-about > summary:hover .home-site-about-more { text-decoration: underline; text-underline-offset: 4px; }
body.home-event-page.research-look-page .home-site-about-body {
    padding: 18px 6px 24px;
    max-width: 780px;
}
body.home-event-page.research-look-page .home-site-about-body h2 { margin: 0 0 12px; color: #23364e; font-size: 18px; line-height: 1.5; font-weight: 600; }
body.home-event-page.research-look-page .home-site-about-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.9; letter-spacing: normal; }
body.home-event-page.research-look-page .home-site-about-body .home-site-about-note { color: #607187; font-size: 12px; line-height: 1.8; }
body.home-event-page.research-look-page .home-footer-creator {
    width: min(1520px, 100%);
    margin: 24px auto 0;
    color: rgba(206, 223, 234, 0.74);
    font-size: 12px;
    line-height: 1.8;
}
body.home-event-page.research-look-page .home-footer-creator p { margin: 0; color: inherit; }
@media (max-width: 700px) {
    body.home-event-page.research-look-page .home-site-about { margin-inline: 6px; }
    body.home-event-page.research-look-page .home-site-about > summary { gap: 12px; padding: 7px 54px 7px 4px; font-size: 13px; }
    body.home-event-page.research-look-page .home-site-about-body { padding: 14px 4px 22px; }
}

body.home-event-page.research-look-page .home-immersive-stage {
    width: calc(100vw - 16px);
    padding: 0;
    border-radius: 18px;
    background: #03070d;
    box-shadow: 0 18px 60px #07132120;
}

body.home-event-page.research-look-page .home-immersive-stage > .home-event-hero {
    position: absolute;
    top: 30px;
    left: 34px;
    z-index: 14;
    width: min(390px, 38%);
    padding: 0;
    pointer-events: none;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-copy .eyebrow {
    order: 2;
    margin: 0;
    color: #a5b8c8;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.7;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-copy h1.home-brand-hero {
    font-size: 2.7rem;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-copy :is(.home-hero-support, .lede, .home-event-actions, .home-brand-collision) {
    display: none !important;
}

body.home-event-page.research-look-page .home-immersive-stage .home-board-intro {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-card.glass,
body.home-event-page.research-look-page .home-immersive-stage .home-event-card.glass:hover {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-canvas {
    height: calc(100svh - 86px - var(--home-about-summary-height, 0px));
    min-height: 420px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.home-event-page.research-look-page .home-immersive-stage .detector-toolbar {
    position: absolute;
    inset: 18px 20px auto auto;
    z-index: 15;
    width: auto;
    border: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

body.home-event-page.research-look-page .home-immersive-stage .detector-toolbar :is(button, select) {
    pointer-events: auto;
}

@media (min-width: 701px) {
    /* Reserve the same width as the wordmark plus breathing room. Controls
       wrap inside their own area instead of growing over the title. */
    body.home-event-page.research-look-page .home-immersive-stage .home-event-canvas:not(:fullscreen):not(.is-detector-fullscreen-fallback) .detector-toolbar {
        max-width: calc(100% - min(390px, 38%) - 80px);
    }
}

#particleEventCanvas :is(.detector-toolbar-controls, .detector3d-controls) {
    pointer-events: none;
}

body.home-event-page.research-look-page .home-immersive-stage .detector-shell {
    padding-top: 0;
    height: 100%;
}

body.home-event-page.research-look-page .home-immersive-stage .detector-visual-stage {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 0;
}

body.home-event-page.research-look-page .home-immersive-stage .detector3d-control-btn {
    border-color: #9cb2c326;
    background: #111e2999;
}

body.home-event-page.research-look-page .home-immersive-stage .event-detector-svg .etaphi-caption {
    display: none;
}

body.home-event-page.research-look-page .home-immersive-stage .home-event-stepper {
    margin: 0;
    border-inline: 0;
    border-radius: 0;
    background: #0a111b;
}

/* A compact type selector shares the existing previous/next navigation. */
.event-navigation-scope {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.event-canvas .event-type-select,
body.home-event-page.research-look-page .home-event-stepper .event-type-select {
    width: var(--event-type-width, 205px);
    min-height: 44px;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid #71879b55;
    border-radius: 8px;
    background: #111c30;
    color: #d9e5f0;
    color-scheme: dark;
    font: 400 var(--event-type-font-size, 12px)/1.4 "Figtree", "Noto Sans JP", sans-serif;
    text-overflow: ellipsis;
    cursor: pointer;
}

.event-type-select:focus-visible {
    outline: 2px solid #8db7f5;
    outline-offset: 2px;
}

.detector-fullscreen-event-nav button:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 700px), (pointer: coarse) {
    .event-navigation-scope {
        display: grid;
        justify-items: center;
        gap: 2px;
    }

    .event-type-select {
        --event-type-width: 136px;
        --event-type-font-size: 11px;
    }

    .event-navigation-scope :is(.home-event-progress, .detector-fullscreen-event-count) {
        margin: 0;
        line-height: 1.2;
    }

    .detector-fullscreen-event-nav button {
        padding-inline: 8px;
        font-size: 11px;
    }

    .detector-fullscreen-event-nav button span {
        display: none;
    }
}

/* Desktop event navigation stays inside the first viewport with the display. */
@media (min-width: 701px) and (pointer: fine) {
    body.home-event-page.research-look-page .home-event-canvas.has-detector-workspace .detector-fullscreen-event-nav {
        display: flex;
        flex: 0 0 100%;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin: 0;
        pointer-events: auto;
    }

    body.home-event-page.research-look-page .home-event-card:has(.home-event-canvas.has-detector-workspace) > .home-event-stepper {
        display: none;
    }
}

body.home-event-page.research-look-page .home-immersive-stage :is(.home-questions-card, .home-mission-rail-simple) {
    margin-inline: clamp(16px, 3vw, 42px);
}

body.home-event-page.research-look-page .home-immersive-stage :is(.home-mass-pair-help, .home-cern-learning-links, .home-cern-learning-links a) {
    color: #bacbda;
}

@media (max-width: 700px) {
    body.home-event-page.research-look-page .home-immersive-stage {
        width: 100vw;
        margin-left: calc((100% - 100vw) / 2);
        border: 0;
        border-radius: 0;
    }

    body.home-event-page.research-look-page .home-immersive-stage > .home-event-hero {
        display: none;
    }

    body.home-event-page.research-look-page .home-immersive-stage .home-event-canvas {
        height: calc(100svh - 116px - var(--home-about-summary-height, 0px));
        min-height: 360px;
    }

    body.home-event-page.research-look-page .home-immersive-stage .detector-toolbar {
        inset: 8px 10px auto auto;
    }

    body.home-event-page.research-look-page .home-immersive-stage .detector-shell.is-3d .event-detector-svg {
        width: 150%;
        max-width: none;
        left: -25%;
    }

    body.home-event-page.research-look-page .home-immersive-stage .detector-shell.is-3d .detector-hit-layer {
        width: min(150cqw, calc(100cqh * 760 / 620));
        height: min(100cqh, calc(150cqw * 620 / 760));
    }

    .detector-shell-clean .detector-view-select {
        background: #101b26 !important;
        color: #e4edf4 !important;
        border-color: #91acbf36 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Positioning is not motion: retain alignment with the SVG when the old
       reduced-motion rule removes animation transforms from the hit layer. */
    .detector-shell-clean .detector-visual-stage .detector-hit-layer {
        transform: translate(-50%, -50%) !important;
    }

    .event-detector-svg.is-event-entering .detector-motion-front {
        animation: none !important;
        opacity: 0 !important;
    }

    .detector-shell-clean .event-detector-svg.is-event-entering .detector-track-touch-target,
    .detector-shell-clean .event-detector-svg.is-event-entering :is(.detector-mass-track-label, .detector-mass-label-leader),
    .detector-shell-clean .event-detector-svg.is-event-entering + .detector-hit-layer :is(.event-track-hit, .detector-comparison-particle-label) {
        animation: none !important;
        visibility: visible !important;
    }
}

/* Keep observation, calculation and a small composer on the event itself.
   Answer reading remains a separate, full-size dialog. */
#particleEventCanvas.has-detector-workspace .home-display-question-dock {
    position: absolute;
    inset: auto 20px 58px auto;
    z-index: 16;
    width: clamp(320px, 30vw, 410px);
    min-width: 0;
    max-height: calc(100% - 150px);
    margin: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #738caa4a;
    border-radius: 15px;
    background: #0a1525ed;
    box-shadow: 0 12px 36px #0005;
    color: #e5edf7;
    overflow: visible;
}

#particleEventCanvas .home-display-question-dock::before,
#particleEventCanvas .home-display-question-dock::after,
#particleEventCanvas .home-display-question-dock > .home-board-head {
    display: none;
}

#particleEventCanvas .home-question-dock-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 6px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #d7e4f5;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

#particleEventCanvas .home-question-dock-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 6px 8px;
    border: 1px solid #738caa75;
    border-radius: 6px;
    color: #d7e4f5;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
#particleEventCanvas .home-question-dock-action i { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
#particleEventCanvas .home-question-dock-toggle .dock-action-open,
#particleEventCanvas .home-question-dock-toggle[aria-expanded="false"] .dock-action-collapse { display: none; }
#particleEventCanvas .home-question-dock-toggle[aria-expanded="false"] .dock-action-open { display: inline; }
#particleEventCanvas .home-question-dock-toggle[aria-expanded="false"] .home-question-dock-action i { transform: rotate(225deg); }
#particleEventCanvas .home-question-dock-toggle:focus-visible { outline: 2px solid #91bee3; outline-offset: 2px; }
#particleEventCanvas .home-question-dock-toggle small { color: #97c8eb; font-size: 11px; }
#particleEventCanvas .home-question-dock-read {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid #7fa2c76b;
    border-radius: 9px;
    background: #193550;
    color: #eff7ff;
    font-size: 14px;
    cursor: pointer;
}
#particleEventCanvas .home-question-dock-read[hidden] { display: none; }
#homeDiscoveryFeedRetry[hidden] { display: none !important; }

.detector-reaction-summary { position: relative; z-index: 26; pointer-events: auto; }
.detector-atlas-structure, .detector-atlas-structure * { pointer-events: none !important; }
/* Fade the assembled detector as one layer so overlapping transparent panels
   cannot build up a bright wall behind the real particle tracks. */
.detector-shell .detector-atlas-structure { opacity: 0.24; }
.detector-shell[data-open-detector-layer]:not([data-open-detector-layer=""]) .detector-atlas-structure { opacity: 1; }
.detector-shell[data-open-detector-layer]:not([data-open-detector-layer=""]) :where(.detector-atlas-structure [data-atlas-part]) { opacity: 0.12; }
body.home-event-page.research-look-page .home-immersive-stage .home-current-event-reference-overlay {
    color: #d2deed;
    font-size: 0.875rem;
    line-height: 1.4;
}
.detector-layer-control-tgc { color: #9ce7ed; border-color: rgba(113, 201, 214, 0.45); }
/* The ATLAS mesh uses polygons, not the rings in the older detector drawing.
   Tie every labelled control to its actual geometry, and clear on close. */
.detector-shell[data-open-detector-layer="tracker"] { --detector-layer-highlight: #8effd6; }
.detector-shell[data-open-detector-layer="electromagnetic"] { --detector-layer-highlight: #ffd08a; }
.detector-shell[data-open-detector-layer="hadronic"] { --detector-layer-highlight: #99c8ff; }
.detector-shell[data-open-detector-layer="muon"] { --detector-layer-highlight: #c5eaff; }
.detector-shell[data-open-detector-layer="tgc"] { --detector-layer-highlight: #72fff0; }
.detector-shell[data-open-detector-layer="tracker"] :is([data-atlas-part="pixel"], [data-atlas-part="tracker"]),
.detector-shell[data-open-detector-layer="electromagnetic"] [data-atlas-part="lar"],
.detector-shell[data-open-detector-layer="hadronic"] [data-atlas-part="tile"],
.detector-shell[data-open-detector-layer="muon"] :is([data-atlas-part="muon"], [data-atlas-part^="mdt-endcap-"]),
.detector-shell[data-open-detector-layer="tgc"] :is([data-atlas-part^="tgc-"], [data-atlas-part^="rpc-barrel-"]) {
    opacity: 1;
    fill: var(--detector-layer-highlight);
    stroke: var(--detector-layer-highlight);
    fill-opacity: 0.18;
    stroke-opacity: 1;
    stroke-width: 1.2;
}
.detector-layer-explanation[data-detector-layer="tgc"] {
    width: min(440px, calc(100% - 1.2rem));
    max-height: min(520px, calc(100% - 1.2rem));
    overflow: auto;
}
.detector-layer-explanation[data-detector-layer="tgc"] p,
.detector-layer-explanation[data-detector-layer="tgc"] small {
    color: #dce9ee;
    font-size: 0.875rem;
    line-height: 1.65;
}
.detector-layer-explanation[data-detector-layer="tgc"] a { font-size: 0.875rem; }
.detector-shell-clean.is-atlas-structure .detector-ring { opacity: 0.08; }
.detector-shell-clean .detector-atlas-toggle { white-space: nowrap; }
.detector-shell-clean .detector-atlas-source { align-self: flex-end; max-width: 100%; padding: 6px 3px; color: #b8c8db; font-size: 12px; line-height: 1.5; pointer-events: auto; text-decoration: none; }
.detector-shell-clean .detector-atlas-source:hover { color: #eef5ff; text-decoration: underline; }
.detector-shell-clean.is-atlas-structure .detector-view-select { width: 108px; }
.detector-reaction-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 10px; border: 1px solid #657b984d; border-radius: 8px; background: #0b1728dd; color: #c8d8e9; font: 500 12px/1.4 "Noto Sans JP", sans-serif; cursor: pointer; }
.detector-reaction-trigger:focus-visible { outline: 2px solid #91bee3; outline-offset: 3px; }
.detector-reaction-popover { box-sizing: border-box; position: absolute; top: 48px; left: 0; z-index: 40; width: min(320px, calc(100vw - 24px)); max-height: 65dvh; margin: 0; padding: 16px; overflow-y: auto; border: 1px solid #7289a75c; border-radius: 12px; background: #0b1728; color: #e4edf7; box-shadow: 0 12px 36px #0006; text-align: left; pointer-events: auto; }
.detector-reaction-popover[hidden], .detector-reaction-popover[popover]:not(:popover-open) { display: none !important; }
.detector-reaction-popover:popover-open { position: fixed; inset: var(--reaction-top, 60px) auto auto var(--reaction-left, 12px); width: var(--reaction-width, 320px); max-height: var(--reaction-height, 65dvh); }
.detector-reaction-popover strong { display: block; padding-right: 32px; color: #f0f6fd; font-size: 14px; line-height: 1.65; }
#particleEventCanvas .detector-reaction-popover p { margin: 10px 0; color: #d2deed; font-size: 14px; line-height: 1.85; }
.detector-reaction-popover small { display: block; color: #aabdd3; font-size: 12px; line-height: 1.7; }
.detector-reaction-popover [data-detector-reaction-close] { position: absolute; top: 5px; right: 5px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #d2deed; font-size: 23px; cursor: pointer; }
@media (max-width: 700px), (max-width: 950px) and (pointer: coarse) {
    .detector-reaction-trigger { min-height: 44px; padding-inline: 8px; }
    #particleEventCanvas .detector-toolbar-controls .detector3d-controls { width: auto; flex: 0 0 auto; }
    /* TGC labels follow the same mobile visibility rules as the other layers. */
}
#particleEventCanvas .home-display-question-dock.is-collapsed { padding-block: 7px; }
#particleEventCanvas .home-display-question-dock.is-collapsed .home-question-dock-toggle { margin: 0; }
#particleEventCanvas .home-display-question-dock.is-collapsed > :not(.home-question-dock-header) { display: none !important; }
#particleEventCanvas .home-display-question-dock.is-collapsed > .home-ai-status:not(:empty) { display: block !important; }

#particleEventCanvas .home-display-question-dock .home-ai-console,
#particleEventCanvas .home-display-question-dock .home-chat-composer {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#particleEventCanvas .home-display-question-dock .home-ai-console { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
#particleEventCanvas .home-display-question-dock .home-chat-composer { flex: 0 0 auto; }

#particleEventCanvas .home-display-question-dock .home-input-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

#particleEventCanvas .home-display-question-dock .home-chat-keyboard-hint,
#particleEventCanvas .home-display-question-dock .home-chat-session-meta { display: none !important; }

#particleEventCanvas .home-display-question-dock textarea.home-event-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    height: 64px;
    max-height: 190px;
    padding: 10px 12px;
    border: 1px solid #667e9d80;
    border-radius: 10px;
    background: #101f31;
    color: #f0f5fd;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
}

#particleEventCanvas .home-display-question-dock.is-composing textarea.home-event-input {
    min-height: 144px;
    height: 144px;
    padding-bottom: 38px;
}
#particleEventCanvas .home-display-question-dock:not(.is-composing) .home-question-input-shell details {
    display: none !important;
}

#particleEventCanvas .home-display-question-dock textarea::placeholder { color: #9cacc0; }
#particleEventCanvas .home-display-question-dock .home-event-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
#particleEventCanvas .home-display-question-dock .home-event-ask-actions button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
#particleEventCanvas .home-display-question-dock #homeAiResetBtn { background: transparent; color: #acbbd0; border-color: #657b9859; box-shadow: none; }
#particleEventCanvas .home-display-question-dock .home-ai-status:empty { display: none; }
#particleEventCanvas .home-display-question-dock .home-ai-status { margin: 0; font-size: 12px; }
#particleEventCanvas .home-display-question-dock > .home-ai-status:not(:empty) {
    padding: 8px 10px; margin: 6px 0; border-radius: 8px;
    background: #18344b; color: #e4f1fb; font-size: 14px; line-height: 1.55;
}
#particleEventCanvas .home-display-question-dock .home-chat-session { display: block; min-height: 0; flex: 0 0 auto; padding: 0; border: 0; background: transparent; overflow-y: auto; }
#particleEventCanvas .home-display-question-dock .home-chat-session.is-empty { display: none; }

/* Answers are readable here; the full-screen reader is an optional view. */
#particleEventCanvas .home-display-question-dock .home-ai-answer {
    min-height: 0;
    height: auto;
    max-height: min(27dvh, 220px);
    padding: 8px;
    overflow-y: auto;
    background: #f4f7fc;
    color: #202d42;
    border-radius: 10px;
    font-size: 14px;
}
#particleEventCanvas .home-display-question-dock .home-ai-turn-meta,
#particleEventCanvas .home-display-question-dock :is(.home-ai-discovery-path, .home-ai-paper-path, .home-ai-deeper-question, .home-ai-research-actions) { display: none; }
#particleEventCanvas .home-display-question-dock .home-ai-answer-body { display: block; -webkit-line-clamp: unset; max-height: none; min-width: 0; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; overflow: visible; overflow-wrap: anywhere; }
#particleEventCanvas .home-display-question-dock .home-ai-answer-preview { min-width: 0; grid-template-columns: minmax(0, 1fr); }
#particleEventCanvas .home-display-question-dock .home-ai-answer-expand { min-height: 36px; font-size: 13px; }
#particleEventCanvas .home-display-question-dock .home-ai-bubble-user p { font-size: 12px; }
#particleEventCanvas .home-display-question-dock .home-ai-bubble { min-width: 0; margin-inline: 0; padding: 6px 8px; }
#particleEventCanvas .home-display-question-dock .home-ai-bubble-user { border: 0; background: transparent; }
#particleEventCanvas .home-display-question-dock .home-ai-other-event { color: #526481; font-size: 11px; }
#particleEventCanvas .home-display-question-dock .home-discovery-publish-review { flex: 0 0 auto; max-height: none; overflow: visible; }
#particleEventCanvas .home-discovery-publish-review:not([open]) { padding: 0; border: 0; background: transparent; }
#particleEventCanvas .home-publish-review-toggle { display: list-item; min-height: 44px; padding: 12px 4px; color: #c3d4e8; font-size: 13px; cursor: pointer; }
#particleEventCanvas .home-discovery-publish-review[open] > .home-publish-review-toggle { margin-bottom: 12px; }
#particleEventCanvas .home-display-question-dock .home-question-example-popover { top: auto; bottom: calc(100% + 10px); max-height: min(50dvh, 360px); overflow-y: auto; }
#particleEventCanvas .home-display-question-dock .particle-symbol-list { top: auto; bottom: calc(100% + 8px); }
#particleEventCanvas .home-composer-popover[popover]:not(:popover-open) { display: none !important; }
#particleEventCanvas .home-composer-popover:popover-open {
    position: fixed;
    inset: var(--picker-top, 12px) auto auto var(--picker-left, 12px);
    width: var(--picker-width, 280px);
    max-height: var(--picker-height, 300px);
    margin: 0;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid #718ba9;
    border-radius: 12px;
    background: #0e1c2d;
    color: #e7f0fa;
    box-shadow: 0 12px 44px #0008;
}
#particleEventCanvas .home-question-example-close { display: block; position: sticky; top: 0; z-index: 1; min-height: 44px; background: #193550; color: #e7f0fa; }
#particleEventCanvas .home-composer-popover .home-question-example-section > header strong { color: #e7f0fa; }
#particleEventCanvas .home-composer-popover :is(.home-question-example-section > header small, .home-discovery-examples-note) { color: #b5c6d9; }
#particleEventCanvas .home-composer-popover :is(.home-question-starter, .home-discovery-example) { background: #f0f5fb; color: #213146; }
#particleEventCanvas .home-composer-popover :is(.home-question-starter em, .home-question-starter small, .home-discovery-example-label, .home-discovery-example em) { color: #52647c; font-size: 12px; }
#particleEventCanvas .home-composer-popover .home-discovery-example-copy { color: #213146; }
#particleEventCanvas .home-display-question-dock :is(.home-question-example-popover, .particle-symbol-list):not(.home-composer-popover) { position: static; width: 100%; margin-top: 8px; max-height: 45dvh; overflow-y: auto; }

#particleEventCanvas.has-detector-workspace .detector-mass-overlay {
    position: absolute;
    inset: auto auto 58px 22px;
    z-index: 14;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: min(340px, 32%);
    min-height: 0;
    max-height: min(44dvh, 300px);
    margin: 0;
    padding: 12px 14px;
    overflow-y: auto;
    border: 1px solid #738caa4a;
    border-radius: 14px;
    background: #0a1525ed;
    color: #e5edf7;
}
#particleEventCanvas.has-detector-workspace .detector-fullscreen-mass-content { display: grid; gap: 8px; }
#particleEventCanvas .detector-fullscreen-mass-first { display: flex; }
#particleEventCanvas.has-detector-workspace .detector-fullscreen-mass-first { display: flex; }
#particleEventCanvas .detector-fullscreen-mass-first p { grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 4px 8px; }
#particleEventCanvas .detector-fullscreen-mass-first .mass-charge-label { grid-column: 1 / -1; }
#particleEventCanvas .detector-fullscreen-mass-first small { font-size: 0.75rem; }
#particleEventCanvas .detector-fullscreen-mass-first strong,
#particleEventCanvas .mass-charge-label { color: #e5edf7; font-size: 0.875rem; line-height: 1.4; }
.mass-charge-label { display: block; font-weight: 600; }
.home-mass-object:disabled { opacity: .55; cursor: not-allowed; }
#particleEventCanvas.has-detector-workspace .detector-fullscreen-mass-partners { display: grid; grid-template-columns: 1fr; }
#particleEventCanvas.has-detector-workspace .detector-fullscreen-mass-partners > div { flex-wrap: wrap; overflow: visible; }
#particleEventCanvas.has-detector-workspace .detector-fullscreen-mass-partners button { min-height: 44px; }
#particleEventCanvas.has-detector-workspace .detector-fullscreen-mass-tool > header strong { white-space: normal; font-size: 12px; }
#particleEventCanvas .detector-mass-overlay > header { position: sticky; top: -9px; z-index: 1; background: #0a1525; }
#particleEventCanvas [data-detector-mass-close] { margin-left: auto; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #d5e5f5; font-size: 22px; cursor: pointer; }
#particleEventCanvas .detector-mass-details-link { justify-self: start; padding: 4px 0; border: 0; background: transparent; color: #abd2ef; font-size: 12px; cursor: pointer; }
.detector-mass-footer { display: flex; align-items: center; gap: 12px; }
.detector-mass-footer [data-fullscreen-mass-reset] {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid #6d88a2;
    border-radius: 8px;
    color: #eef7fb;
    background: #ffffff09;
    font-size: 12px;
    cursor: pointer;
}
.detector-mass-footer .detector-mass-details-link { min-width: 0; }
.detector-fullscreen-mass-actions:not(:has(button)) { display: none; }

.home-mass-details-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: min(84dvh, 820px);
    margin: auto;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #c6d0de;
    border-radius: 18px;
    background: #f4f7fc;
    color: #202d42;
}
.home-mass-details-dialog::backdrop { background: #020710b8; }
.home-ai-answer-dialog-header > div { min-width: 0; }
#homeAiAnswerTurnSelect { max-width: 100%; min-height: 36px; margin-top: 6px; padding: 4px 8px; border: 1px solid #bdccdc; border-radius: 6px; background: #f4f7fc; color: #202d42; font-size: 13px; }
.home-mass-details-dialog > header { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-bottom: 16px; }
.home-mass-details-dialog > header { position: sticky; top: -20px; z-index: 2; margin: -20px -20px 16px; padding: 12px 20px; background: #f4f7fc; border-bottom: 1px solid #d5deea; }
.home-mass-details-dialog > header h2 { margin: 0; font-size: 18px; color: #202d42; }
.home-mass-details-dialog > header button { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #b6c4d8; border-radius: 50%; background: #fff; color: #202d42; font-size: 24px; cursor: pointer; }
#homeMassDetailsDialog #homeMassReconstruction { margin: 0; padding: 0; border: 0; background: transparent; }
#homeMassDetailsDialog #homeMassReconstruction > summary { display: none; }
#homeMassDetailsDialog .home-mass-reconstruction-body { padding: 0; }
#homeMassDetailsDialog .home-mass-reconstruction-body summary { color: #202d42; }
#homeMassDetailsDialog .home-mass-reconstruction-body summary small { color: #64748b; }

@media (max-width: 700px), (max-width: 950px) and (pointer: coarse) {
    #particleEventCanvas.has-detector-workspace .home-display-question-dock {
        inset: auto 12px 54px 12px;
        width: auto;
        max-height: calc(100% - 110px);
        padding: 9px;
    }
    #particleEventCanvas.has-detector-workspace .home-display-question-dock.is-collapsed { left: auto; width: 236px; }
    #particleEventCanvas .home-question-dock-toggle { min-height: 44px; gap: 6px; }
    #particleEventCanvas .home-display-question-dock .home-event-ask-actions { display: flex; flex-wrap: wrap; }
    #particleEventCanvas .home-display-question-dock .home-event-ask-actions #homeAiAskBtn { flex: 1 1 150px; width: auto; }
    #particleEventCanvas .home-display-question-dock .home-event-ask-actions #homeAiResetBtn { flex: 0 0 auto; width: auto; }
    #particleEventCanvas .home-display-question-dock .home-event-ask-actions button { min-height: 44px; }
    /* Keep the answer available even after closing the full-screen reader. */
    #particleEventCanvas .home-display-question-dock .home-ai-answer-body { font-size: 16px; }
    #particleEventCanvas .home-display-question-dock textarea.home-event-input { font-size: 16px; }
    #particleEventCanvas .home-display-question-dock .home-ai-answer { max-height: min(30dvh, 240px); }
    #particleEventCanvas.has-detector-workspace .detector-mass-overlay { inset: 66px 12px auto 12px; width: auto; max-height: min(27dvh, 205px); padding: 9px 12px; }
    #particleEventCanvas .detector-mass-details-link { min-height: 30px; }
    #particleEventCanvas:has(.home-display-question-dock:not(.is-collapsed)) .detector-mass-overlay { display: none; }
    body.home-event-page.research-look-page .home-ai-answer-dialog-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
    body.home-event-page.research-look-page .home-ai-answer-dialog-footer :is(.primary-btn, .secondary-btn) { width: auto; min-height: 48px; padding-inline: 12px; font-size: 13px; }
    .home-ai-answer-dialog-header .label { display: none; }
    .home-ai-answer-dialog-meta { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Clipping the drawing must not create an invisible scroll area that focus
   can pan sideways, leaving tracks and overlay controls off screen. */
body.home-event-page.research-look-page .home-immersive-stage,
body.home-event-page.research-look-page .home-immersive-stage .home-event-canvas { overflow: clip; }

@media (pointer: coarse) and (max-height: 500px) {
    .detector-shell-clean .detector-view-toggle,
    .detector-shell-clean [data-3d-action]:not([data-3d-action="fullscreen"]),
    .detector-shell-clean [data-xy-action]:not([data-xy-action="fullscreen"]) { display: none; }
    .detector-shell-clean .detector-view-select { display: block; width: 64px; min-height: 44px; }
    #particleEventCanvas.has-detector-workspace .home-display-question-dock { left: auto; width: min(360px, calc(100% - 24px)); }
}

/* One compact reaction control replaces the persistent mobile explanation card. */
.detector-reaction-result { display: none; }
@media (max-width: 700px), (max-width: 950px) and (pointer: coarse) {
    #particleEventCanvas .detector-toolbar .detector-replay-hypothesis { display: none; }
    #particleEventCanvas .detector-toolbar .detector-replay-hypothesis.is-visible { display: none; }
    .detector-reaction-trigger.is-reaction-ready .detector-reaction-label { display: none; }
    .detector-reaction-trigger.is-reaction-ready .detector-reaction-result { display: inline; }
    #particleEventCanvas .detector-view-select { display: none; }
    #particleEventCanvas .detector-view-toggle { display: flex !important; padding: 0; border: 0; background: transparent; }
    #particleEventCanvas .detector-view-toggle [data-view-mode] { display: none; }
    #particleEventCanvas .detector-atlas-toggle {
        display: block;
        min-height: 44px;
        padding: 6px 9px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: #b9cada;
        font-size: 12px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    #particleEventCanvas .detector-reaction-trigger { max-width: calc(100vw - 158px); }
    .detector-reaction-result { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Resize the writing area deliberately; full answers remain in the reader. */
#particleEventCanvas .home-question-dock-header { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
#particleEventCanvas .home-question-dock-header .home-question-dock-toggle { flex: 1; min-width: 0; margin: 0; }
#particleEventCanvas .home-question-dock-resize {
    flex: 0 0 auto; min-height: 44px; padding: 4px 8px;
    border: 1px solid #738caa75; border-radius: 6px; background: #193047; color: #d7e4f5; font-size: 12px; cursor: pointer;
    line-height: 1.4; white-space: nowrap;
}
#particleEventCanvas .home-question-dock-resize .dock-size-restore,
#particleEventCanvas .home-question-dock-resize[aria-pressed="true"] .dock-size-expand { display: none; }
#particleEventCanvas .home-question-dock-resize[aria-pressed="true"] .dock-size-restore { display: inline; }
#particleEventCanvas .home-question-dock-resize:focus-visible { outline: 2px solid #91bee3; outline-offset: 2px; }
#particleEventCanvas .home-display-question-dock.is-collapsed .home-question-dock-resize { display: none; }
#particleEventCanvas .home-display-question-dock.is-manually-expanded { width: min(620px, calc(100% - 40px)); }
#particleEventCanvas .home-display-question-dock.is-manually-expanded textarea.home-event-input {
    min-height: min(180px, 30dvh); height: min(320px, 38dvh); max-height: 48dvh;
}
#particleEventCanvas .home-event-ask-actions .home-question-example-picker {
    position: relative; inset: auto; flex: 0 0 auto; margin: 0; padding: 0; align-self: center;
}
#particleEventCanvas .home-event-ask-actions .home-question-example-picker > summary {
    min-width: 0; min-height: 44px; padding: 0 6px; font-size: 12px; font-weight: 500; color: #b9cde1;
}
#particleEventCanvas .home-event-ask-actions .home-question-example-picker > summary > span {
    min-height: 0; padding: 0; border: 0; background: transparent; border-radius: 0;
}
#particleEventCanvas .home-event-ask-actions #homeAiAskBtn { flex: 1 1 auto; }
#particleEventCanvas .home-display-question-dock .particle-symbol-picker-composer > summary { min-width: 44px; padding: 0; font-weight: 400; }
#particleEventCanvas .home-display-question-dock .particle-symbol-picker-composer > summary > span {
    min-width: 0; padding: 4px 8px; border: 0; background: transparent; color: #a9bfd5; box-shadow: none;
}
@media (max-width: 700px), (max-width: 950px) and (pointer: coarse) {
    #particleEventCanvas.has-detector-workspace .home-display-question-dock.is-manually-expanded { width: auto; left: 12px; right: 12px; }
    #particleEventCanvas .home-display-question-dock .home-event-ask-actions #homeAiAskBtn { flex: 1 1 auto; }
}

#particleEventCanvas .detector-exit-fullscreen {
    position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 70;
    display: none; align-items: center; justify-content: center; gap: 6px;
    min-width: 86px; min-height: 44px; padding: 6px 12px; border: 1px solid #7893b2;
    border-radius: 9px; background: #102339; color: #edf5ff; font-size: 14px; cursor: pointer;
}
#particleEventCanvas .detector-exit-fullscreen > span { font-size: 23px; }
#particleEventCanvas .detector-exit-fullscreen[hidden] { display: none; }
#particleEventCanvas .detector-exit-fullscreen:focus-visible { outline: 2px solid #b3daff; outline-offset: 3px; }
@media (max-width: 700px), (max-width: 950px) and (pointer: coarse) {
    #particleEventCanvas .detector-exit-fullscreen:not([hidden]) { display: flex; }
    #particleEventCanvas:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback) .detector-toolbar { left: 8px; right: 102px; top: max(8px, env(safe-area-inset-top)); max-width: none; }
    #particleEventCanvas [data-detector-fullscreen][aria-pressed="true"] { display: none !important; }
}

/* Drag the existing heading in mobile fullscreen; no separate handle is needed. */
#particleEventCanvas .home-display-question-dock.is-movable .home-question-dock-toggle {
    touch-action: none; user-select: none; cursor: grab;
}
#particleEventCanvas.has-detector-workspace .home-display-question-dock.is-movable.is-moved {
    inset: var(--dock-top) auto auto var(--dock-left);
    width: calc(100% - 24px); max-width: 410px; max-height: calc(100% - 118px);
}
#particleEventCanvas.has-detector-workspace .home-display-question-dock.is-movable.is-moved.is-collapsed { width: 236px; }
#particleEventCanvas .home-event-ask-actions #homeChatSeeds > summary {
    display: flex; align-items: center; justify-content: center; min-height: 44px;
    box-sizing: border-box; padding: 0 4px; border: 0; border-radius: 4px;
    background: transparent; color: #b9cde1; font-size: 13px; font-weight: 400;
}
#particleEventCanvas .home-event-ask-actions #homeChatSeeds { border: 0; background: transparent; }
#particleEventCanvas .home-event-ask-actions #homeChatSeeds > summary::after { color: inherit; font-size: 13px; }
#particleEventCanvas .home-event-ask-actions #homeChatSeeds > summary > span { text-decoration: underline; text-underline-offset: 3px; }
#particleEventCanvas .home-event-ask-actions #homeChatSeeds > summary:hover,
#particleEventCanvas .home-event-ask-actions #homeChatSeeds > summary:focus-visible { color: #f1f7fc; background: #ffffff0a; }
#particleEventCanvas .home-display-question-dock .home-event-ask-actions #homeAiAskBtn {
    flex: 1 1 140px; min-height: 44px; padding: 8px 16px; font-size: 14px; font-weight: 600;
}
