/* R04 software product pages: AutoMetro and semiconductor planning.
   Shared page primitives live in r04.css; this file owns product-interface
   illustrations and the page-specific information structures. */

:where(.r04-autometro, .r04-semiconductor) {
    --r04-software-ink: var(--r04-ink, #08274f);
    --r04-software-muted: var(--r04-muted, var(--r04-text, #5d6f84));
    --r04-software-blue: var(--r04-blue, #1c62c8);
    --r04-software-orange: var(--r04-orange, #f45118);
    --r04-software-green: #31a669;
    --r04-software-line: rgba(13, 47, 84, 0.14);
    --r04-software-line-strong: rgba(13, 47, 84, 0.24);
    --r04-software-panel: #f7faff;
    --r04-software-ice: #eff6fc;
    --r04-software-shadow: 0 22px 60px rgba(21, 55, 94, 0.13), 0 2px 8px rgba(21, 55, 94, 0.07);
    color: var(--r04-software-ink);
    overflow-x: hidden;
    overflow-x: clip;
}

:where(.r04-autometro, .r04-semiconductor) * {
    min-width: 0;
}

:where(.r04-autometro, .r04-semiconductor) :where(img, svg) {
    max-width: 100%;
}

:where(.r04-autometro, .r04-semiconductor) :where(
    .r04-interface,
    .r04-tour,
    .r04-tour__stage,
    .r04-tour__panel,
    .r04-system-loop,
    .r04-disturbance-chain,
    .r04-action-flow,
    .r04-system-relations,
    .r04-scope-switcher,
    .r04-boundary-list,
    .r04-engineering-band
) {
    min-width: 0;
}

:where(.r04-autometro, .r04-semiconductor) :where(h1, h2, h3, p, span, strong, dt, dd, li) {
    overflow-wrap: break-word;
}

/* Product heroes */

:where(.r04-autometro-hero, .r04-semiconductor-hero) {
    position: relative;
    isolation: isolate;
}

:where(.r04-autometro-hero, .r04-semiconductor-hero)::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(61, 132, 231, 0.09), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    content: "";
}

.r04-semiconductor-hero::before {
    background:
        radial-gradient(circle at 76% 24%, rgba(90, 117, 153, 0.13), transparent 36%),
        linear-gradient(180deg, #fff 0%, #fafcff 100%);
}

.r04-autometro .r04-hero__product-name,
.r04-autometro .r04-hero__descriptor {
    display: block;
}

.r04-autometro .r04-hero__product-name {
    margin-bottom: 0.22em;
    color: var(--r04-software-orange);
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.r04-autometro .r04-hero__descriptor {
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1.06;
}

:where(.r04-autometro, .r04-semiconductor) .r04-hero__statement {
    max-width: 20em;
    margin: 0;
    color: var(--r04-software-ink);
    font-size: clamp(1.32rem, 2vw, 1.85rem);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

:where(.r04-autometro, .r04-semiconductor) .r04-hero-lead {
    max-width: 35rem;
}

/* Concept-interface frame */

:where(.r04-autometro, .r04-semiconductor) .r04-interface {
    position: relative;
    margin: 0;
    border: 1px solid var(--r04-software-line);
    border-radius: var(--r04-radius-lg, 16px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--r04-software-shadow);
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface--rail,
:where(.r04-autometro, .r04-semiconductor) .r04-interface--fab {
    align-self: center;
    width: 100%;
    max-width: 660px;
    overflow: hidden;
}

.r04-autometro .r04-concept-label,
.r04-semiconductor .r04-concept-label {
    margin: 0;
    color: #718197;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

:where(.r04-autometro, .r04-semiconductor) :where(.r04-interface--rail, .r04-interface--fab) > .r04-concept-label {
    position: absolute;
    z-index: 3;
    top: 1rem;
    right: 1.15rem;
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__bar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--r04-software-line);
    background: linear-gradient(180deg, #fff, #f9fbfe);
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__bar strong {
    padding-right: 8rem;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__bar span {
    color: var(--r04-software-muted);
    font-size: 0.7rem;
    white-space: nowrap;
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--r04-software-line);
    background: #fff;
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__summary > div {
    display: grid;
    align-content: center;
    min-height: 76px;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__summary > div + div {
    border-left: 1px solid var(--r04-software-line);
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__summary small {
    color: var(--r04-software-muted);
    font-size: 0.66rem;
}

:where(.r04-autometro, .r04-semiconductor) .r04-interface__summary strong {
    font-size: 0.76rem;
    line-height: 1.45;
}

/* AutoMetro hero interface */

.r04-rail-map {
    position: relative;
    height: clamp(250px, 30vw, 330px);
    overflow: hidden;
    background:
        linear-gradient(rgba(33, 89, 156, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 89, 156, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 56% 54%, rgba(53, 122, 221, 0.12), transparent 44%),
        #f8fbff;
    background-size: 32px 32px, 32px 32px, auto, auto;
}

.r04-rail-map__line {
    position: absolute;
    top: 52%;
    right: 8%;
    left: 8%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7ea1ca, var(--r04-software-blue) 28% 68%, #7ea1ca);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.r04-rail-map__line::before,
.r04-rail-map__line::after {
    position: absolute;
    width: 34%;
    height: 56px;
    border: 2px solid rgba(40, 100, 174, 0.55);
    content: "";
}

.r04-rail-map__line::before {
    top: -53px;
    left: 22%;
    border-right: 0;
    border-bottom: 0;
    border-radius: 52px 0 0;
    transform: skewX(-20deg);
}

.r04-rail-map__line::after {
    right: 16%;
    bottom: -50px;
    border-top: 0;
    border-left: 0;
    border-radius: 0 0 52px;
    transform: skewX(18deg);
}

.r04-rail-map__station,
.r04-rail-map__train,
.r04-rail-map__event {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(35, 91, 159, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 7px 20px rgba(38, 79, 126, 0.1);
    color: #23466f;
    font-size: 0.67rem;
    font-weight: 650;
    white-space: nowrap;
}

.r04-rail-map__station::before,
.r04-rail-map__train::before,
.r04-rail-map__event::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-right: 0.38rem;
    border: 2px solid var(--r04-software-blue);
    border-radius: 50%;
    background: #fff;
    content: "";
}

.r04-rail-map__station:nth-of-type(2) {
    top: 46%;
    left: 6%;
}

.r04-rail-map__station:nth-of-type(3) {
    top: 46%;
    left: 43%;
}

.r04-rail-map__station:nth-of-type(4) {
    top: 46%;
    right: 5%;
}

.r04-rail-map__train {
    top: 23%;
    left: 35%;
    color: #1453a5;
}

.r04-rail-map__train::before {
    border-radius: 2px;
    background: var(--r04-software-blue);
}

.r04-rail-map__event {
    right: 22%;
    bottom: 17%;
    border-color: rgba(244, 81, 24, 0.28);
    color: #b84019;
}

.r04-rail-map__event::before {
    border-color: var(--r04-software-orange);
    border-radius: 2px;
    background: rgba(244, 81, 24, 0.13);
    transform: rotate(45deg);
}

/* Semiconductor hero interface */

.r04-fab-board {
    display: grid;
    min-height: clamp(250px, 30vw, 330px);
    grid-template-columns: minmax(92px, 0.72fr) minmax(180px, 1.75fr) minmax(112px, 0.86fr);
    background: #f8fafc;
}

.r04-fab-board > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.1rem;
}

.r04-fab-board > div + div {
    border-left: 1px solid var(--r04-software-line);
}

.r04-fab-board span {
    color: #435b77;
    font-size: 0.68rem;
    font-weight: 650;
}

.r04-fab-board__tools i {
    position: relative;
    display: block;
    height: 26px;
    border: 1px solid rgba(31, 76, 125, 0.12);
    border-radius: 5px;
    background: #fff;
}

.r04-fab-board__tools i::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 7px;
    width: var(--r04-load, 64%);
    border-radius: 2px;
    background: linear-gradient(90deg, #4b8ee9, #83b3f4);
    content: "";
}

.r04-fab-board__tools i:nth-of-type(2)::before {
    --r04-load: 82%;
    background: linear-gradient(90deg, #5b83c9 62%, #f3a16a 62%);
}

.r04-fab-board__tools i:nth-of-type(3)::before {
    --r04-load: 51%;
    background: linear-gradient(90deg, #2aa5b3, #70ced6);
}

.r04-fab-board__tools i:nth-of-type(4)::before {
    --r04-load: 74%;
    background: linear-gradient(90deg, #6d88bb 72%, #ed9a61 72%);
}

.r04-fab-board__routes {
    position: relative;
    justify-content: flex-start;
}

.r04-fab-board__routes::after {
    position: absolute;
    top: 3.25rem;
    bottom: 1.1rem;
    left: 58%;
    border-left: 1px dashed rgba(244, 81, 24, 0.72);
    content: "";
}

.r04-fab-board__routes b {
    display: block;
    height: 44px;
    border: 1px solid rgba(31, 76, 125, 0.12);
    border-radius: 5px;
    background:
        repeating-linear-gradient(90deg, transparent 0 17%, rgba(255, 255, 255, 0.74) 17% 18%),
        linear-gradient(90deg, #dce8f8 0 13%, #5b96e9 13% 48%, #c8d9ee 48% 67%, #f3a066 67% 78%, #e5ebf2 78%);
}

.r04-fab-board__routes b:nth-of-type(2) {
    background:
        repeating-linear-gradient(90deg, transparent 0 17%, rgba(255, 255, 255, 0.74) 17% 18%),
        linear-gradient(90deg, #e3eaf3 0 22%, #50a4df 22% 55%, #d7e3ef 55% 74%, #f0a269 74%);
}

.r04-fab-board__routes b:nth-of-type(3) {
    background:
        repeating-linear-gradient(90deg, transparent 0 17%, rgba(255, 255, 255, 0.74) 17% 18%),
        linear-gradient(90deg, #dfe7f1 0 10%, #738fd1 10% 42%, #cad9e9 42% 68%, #ea9b62 68% 84%, #e4eaf1 84%);
}

.r04-fab-board__plans span:not(:first-child) {
    display: flex;
    min-height: 43px;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid rgba(31, 76, 125, 0.13);
    border-radius: 6px;
    background: #fff;
}

.r04-fab-board__plans span:not(:first-child)::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--r04-software-blue);
    content: "";
}

.r04-fab-board__plans span:last-child::before {
    background: var(--r04-software-green);
}

/* Question-led introduction */

.r04-autometro .r04-question-list {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
    list-style: none;
}

.r04-autometro .r04-question-list li {
    display: grid;
    min-height: 0;
    align-items: start;
    gap: 0.65rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--r04-software-line-strong);
    border-bottom: 0;
}

.r04-autometro .r04-question-list li::before {
    content: none;
}

.r04-autometro .r04-question-list li::after {
    width: 42px;
    height: 2px;
    margin-top: 0.35rem;
    background: var(--r04-software-orange);
    content: "";
}

.r04-autometro .r04-question-list strong {
    color: var(--r04-software-ink);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
}

.r04-autometro .r04-question-list span {
    color: var(--r04-software-muted);
    font-size: 0.91rem;
    font-weight: 450;
    line-height: 1.75;
}

/* Product Tour */

:where(.r04-autometro, .r04-semiconductor) .r04-section--tour {
    background: linear-gradient(180deg, var(--r04-software-ice), #f9fbfe 58%, #fff);
}

.r04-semiconductor .r04-section--tour {
    background: #fff;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour {
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--r04-software-line);
    border-bottom: 0;
    border-radius: var(--r04-radius-lg, 16px) var(--r04-radius-lg, 16px) 0 0;
    background: rgba(255, 255, 255, 0.82);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.r04-semiconductor .r04-tour__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button,
.r04-scope-switcher__tabs button {
    min-width: 0;
    min-height: 58px;
    padding: 0.7rem 0.8rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--r04-software-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.35;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button + button,
.r04-scope-switcher__tabs button + button {
    border-left: 1px solid var(--r04-software-line);
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button:hover {
    color: var(--r04-software-blue);
    background: rgba(42, 105, 194, 0.045);
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button[aria-selected="true"] {
    border-bottom-color: var(--r04-software-blue);
    background: #fff;
    color: var(--r04-software-blue);
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button:focus-visible,
.r04-scope-switcher__tabs button:focus-visible,
:where(.r04-autometro, .r04-semiconductor) .r04-tour__panel:focus-visible,
.r04-scope-switcher__panel:focus-visible {
    position: relative;
    z-index: 5;
    outline: 3px solid rgba(46, 119, 219, 0.45);
    outline-offset: -3px;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__stage {
    min-height: 450px;
    overflow: hidden;
    border-radius: 0 0 var(--r04-radius-lg, 16px) var(--r04-radius-lg, 16px);
    box-shadow: var(--r04-software-shadow);
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__stage > .r04-concept-label {
    position: absolute;
    z-index: 3;
    top: 1rem;
    right: 1.25rem;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__panel {
    min-height: 448px;
    padding: clamp(3.8rem, 6vw, 5rem) clamp(1.4rem, 4vw, 3.75rem) clamp(2rem, 4vw, 3.5rem);
    grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 4rem);
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__panel:not([hidden]) {
    display: grid;
    animation: r04-software-panel-in 240ms ease-out both;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__panel[hidden],
.r04-scope-switcher__panel[hidden] {
    display: none !important;
}

@keyframes r04-software-panel-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__copy h3 {
    margin: 0.65rem 0 1rem;
    color: var(--r04-software-ink);
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

:where(.r04-autometro, .r04-semiconductor) .r04-tour__copy > p:last-child {
    margin: 0;
    color: var(--r04-software-muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

/* Tour visual: rail operating state */

.r04-rail-workspace {
    display: grid;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--r04-software-line);
    border-radius: 12px;
    background: var(--r04-software-panel);
    grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.75fr);
}

.r04-rail-workspace__map {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    padding: 1.1rem;
    border-right: 1px solid var(--r04-software-line);
    background:
        linear-gradient(rgba(33, 89, 156, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 89, 156, 0.05) 1px, transparent 1px),
        #fbfdff;
    background-size: 28px 28px;
    color: #415d7c;
    font-size: 0.7rem;
    font-weight: 650;
}

.r04-rail-workspace__map::before {
    position: absolute;
    top: 52%;
    right: 8%;
    left: 8%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #8ba9ca, #2d6fc5 30% 72%, #86a4c7);
    content: "";
}

.r04-rail-workspace__map i {
    position: absolute;
    z-index: 1;
    top: calc(52% - 5px);
    width: 12px;
    height: 12px;
    border: 3px solid var(--r04-software-blue);
    border-radius: 50%;
    background: #fff;
}

.r04-rail-workspace__map i:nth-of-type(1) { left: 18%; }
.r04-rail-workspace__map i:nth-of-type(2) { left: 49%; }
.r04-rail-workspace__map i:nth-of-type(3) {
    right: 19%;
    border-color: var(--r04-software-orange);
    box-shadow: 0 0 0 7px rgba(244, 81, 24, 0.1);
}

.r04-rail-workspace dl {
    margin: 0;
    padding: 0.9rem;
}

.r04-rail-workspace dl > div {
    padding: 0.9rem 0.35rem;
    border-bottom: 1px solid var(--r04-software-line);
}

.r04-rail-workspace dl > div:last-child {
    border-bottom: 0;
}

.r04-rail-workspace dt {
    color: var(--r04-software-muted);
    font-size: 0.65rem;
}

.r04-rail-workspace dd {
    margin: 0.3rem 0 0;
    color: var(--r04-software-ink);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.55;
}

/* Tour visual: relationship and risk propagation */

:where(.r04-relation-view, .r04-fab-risk-view) {
    position: relative;
    display: grid;
    min-height: 300px;
    align-content: center;
    padding: clamp(1.25rem, 3vw, 2.2rem);
    border: 1px solid var(--r04-software-line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, rgba(55, 127, 222, 0.11), transparent 52%),
        linear-gradient(rgba(33, 89, 156, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 89, 156, 0.045) 1px, transparent 1px),
        #fbfdff;
    background-size: auto, 28px 28px, 28px 28px, auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

:where(.r04-relation-view, .r04-fab-risk-view)::before {
    position: absolute;
    top: 50%;
    right: 8%;
    left: 8%;
    height: 1px;
    background: rgba(45, 104, 178, 0.48);
    content: "";
}

:where(.r04-relation-view, .r04-fab-risk-view) span {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 80px;
    place-items: center;
    padding: 0.65rem;
    border: 1px solid rgba(31, 79, 132, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 24px rgba(29, 68, 114, 0.09);
    color: #274b75;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
}

:where(.r04-relation-view, .r04-fab-risk-view) span:nth-child(3) {
    border-color: rgba(244, 81, 24, 0.38);
    color: #b4421c;
    transform: translateY(-32px);
}

:where(.r04-relation-view, .r04-fab-risk-view) span:nth-child(even) {
    transform: translateY(31px);
}

:where(.r04-relation-view, .r04-fab-risk-view) > i {
    position: absolute;
    top: calc(50% - 6px);
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border: 3px solid var(--r04-software-orange);
    border-radius: 50%;
    background: #fff;
}

/* Tour visual: candidates and load */

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) {
    display: grid;
    min-height: 300px;
    align-content: center;
    padding: clamp(1rem, 2.5vw, 1.8rem);
    border: 1px solid var(--r04-software-line);
    border-radius: 12px;
    background: var(--r04-software-panel);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) article {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 150px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.55rem;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(35, 80, 130, 0.15);
    border-radius: 10px;
    background: #fff;
}

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) article::before {
    position: absolute;
    top: 1.05rem;
    right: 1rem;
    left: 1rem;
    height: 38px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.72) 18% 20%),
        linear-gradient(90deg, #5d96e6 0 58%, #d9e5f3 58% 76%, #eaa06d 76% 84%, #e5ebf2 84%);
    content: "";
}

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) article:nth-child(2)::before {
    background:
        repeating-linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.72) 18% 20%),
        linear-gradient(90deg, #2eaab5 0 68%, #d8e5ec 68% 79%, #efa06b 79% 88%, #e5ebf2 88%);
}

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) article:nth-child(3)::before {
    background:
        repeating-linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.72) 18% 20%),
        linear-gradient(90deg, #7c60cf 0 48%, #dcd5f2 48% 71%, #5f97e3 71% 86%, #e5ebf2 86%);
}

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) strong {
    color: var(--r04-software-ink);
    font-size: 0.79rem;
    line-height: 1.45;
}

:where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) span {
    color: var(--r04-software-muted);
    font-size: 0.68rem;
    line-height: 1.55;
}

/* Tour visual: execution gates and replay */

:where(.r04-gate-view, .r04-replay-view) {
    display: grid;
    min-height: 300px;
    align-content: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--r04-software-line);
    border-radius: 12px;
    background: var(--r04-software-panel);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

:where(.r04-gate-view, .r04-replay-view) span {
    position: relative;
    display: grid;
    min-height: 80px;
    place-items: center;
    padding: 0.6rem;
    border: 1px solid rgba(37, 84, 139, 0.17);
    background: #fff;
    color: #294d77;
    font-size: 0.69rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;
}

:where(.r04-gate-view, .r04-replay-view) span:first-child {
    border-radius: 10px 0 0 10px;
}

:where(.r04-gate-view, .r04-replay-view) span:last-child {
    border-radius: 0 10px 10px 0;
}

:where(.r04-gate-view, .r04-replay-view) span + span {
    border-left: 0;
}

:where(.r04-gate-view, .r04-replay-view) span:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -5px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--r04-software-blue);
    border-right: 1px solid var(--r04-software-blue);
    background: #fff;
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.r04-gate-view span:nth-child(3),
.r04-replay-view span:nth-child(2) {
    border-color: rgba(244, 81, 24, 0.34);
    background: #fff9f6;
    color: #a93e1b;
}

/* Horizontal process structures */

:where(.r04-system-loop, .r04-disturbance-chain) {
    display: grid;
    margin-top: clamp(2.25rem, 4vw, 4rem);
    align-items: center;
    gap: 0.55rem;
}

.r04-system-loop {
    grid-template-columns: repeat(5, minmax(0, 1fr) 22px) minmax(0, 1fr);
}

.r04-disturbance-chain {
    grid-template-columns: repeat(4, minmax(0, 1fr) 24px) minmax(0, 1fr);
}

:where(.r04-system-loop, .r04-disturbance-chain) > div {
    display: grid;
    min-height: 132px;
    align-content: center;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid var(--r04-software-line);
    border-radius: 12px;
    background: #fff;
}

:where(.r04-system-loop, .r04-disturbance-chain) strong {
    color: var(--r04-software-ink);
    font-size: 0.84rem;
    line-height: 1.48;
}

:where(.r04-system-loop, .r04-disturbance-chain) span {
    color: var(--r04-software-muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

:where(.r04-system-loop, .r04-disturbance-chain) > i,
.r04-action-flow > i,
.r04-system-relations > i {
    color: var(--r04-software-blue);
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.r04-semiconductor .r04-section--disturbance,
.r04-semiconductor .r04-section--execution,
.r04-semiconductor .r04-section--boundaries,
.r04-autometro .r04-section--engineering {
    background: linear-gradient(120deg, #f2f7fc, #f9fbfd 64%, #eef5fb);
}

.r04-disturbance-chain > div:first-child {
    border-color: rgba(244, 81, 24, 0.35);
    box-shadow: inset 0 3px 0 rgba(244, 81, 24, 0.85);
}

.r04-disturbance-chain > div:last-child,
.r04-system-loop > div:last-child {
    border-color: rgba(49, 166, 105, 0.3);
    box-shadow: inset 0 3px 0 rgba(49, 166, 105, 0.8);
}

/* AutoMetro dark access-depth band */

.r04-autometro .r04-section--depth {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(42, 117, 207, 0.34), transparent 38%),
        linear-gradient(115deg, #05284f, #073a70);
}

.r04-autometro .r04-section--depth :where(h2, h3) {
    color: #fff;
}

.r04-autometro .r04-section--depth :where(.r04-kicker, p) {
    color: rgba(235, 244, 255, 0.76);
}

.r04-autometro .r04-section--depth .r04-section-split {
    display: block;
}

.r04-autometro .r04-section--depth .r04-section-heading {
    max-width: 750px;
}

.r04-depth-spectrum {
    position: relative;
    display: grid;
    margin-top: clamp(2.25rem, 4vw, 3.75rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.r04-depth-spectrum::before {
    position: absolute;
    top: 8px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: rgba(255, 255, 255, 0.62);
    content: "";
}

.r04-depth-spectrum article {
    position: relative;
    padding: 2.1rem clamp(0.8rem, 2vw, 1.5rem) 0;
    text-align: center;
}

.r04-depth-spectrum article::before {
    position: absolute;
    z-index: 1;
    top: 0;
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.62);
    content: "";
}

.r04-depth-spectrum article:last-child::before {
    background: var(--r04-software-orange);
}

.r04-depth-spectrum h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.r04-depth-spectrum p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.65;
}

/* Four-way boundaries */

.r04-boundary-list {
    display: grid;
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.r04-section-split > .r04-boundary-list {
    margin-top: 0;
}

.r04-boundary-list > div {
    min-width: 0;
    padding: 0.25rem clamp(1rem, 2.5vw, 2rem);
}

.r04-boundary-list > div:first-child {
    padding-left: 0;
}

.r04-boundary-list > div + div {
    border-left: 1px solid var(--r04-software-line-strong);
}

.r04-boundary-list dt {
    margin-bottom: 0.8rem;
    color: var(--r04-software-ink);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 700;
}

.r04-boundary-list dd {
    margin: 0;
    color: var(--r04-software-muted);
    font-size: 0.83rem;
    line-height: 1.75;
}

/* AutoMetro engineering band */

.r04-engineering-band {
    display: block;
}

.r04-engineering-band ul {
    display: grid;
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
    padding: 0;
    border-top: 1px solid var(--r04-software-line-strong);
    border-bottom: 1px solid var(--r04-software-line-strong);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    list-style: none;
}

.r04-engineering-band li {
    display: grid;
    min-height: 82px;
    align-content: center;
    justify-items: center;
    gap: 0.65rem;
    background: transparent;
    color: #244970;
    font-size: 0.75rem;
    font-weight: 650;
    text-align: center;
}

.r04-engineering-band li + li {
    border-left: 1px solid var(--r04-software-line);
}

.r04-engineering-band li::before {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(31, 90, 158, 0.46);
    border-radius: 6px;
    background:
        linear-gradient(135deg, transparent 45%, var(--r04-software-blue) 46% 53%, transparent 54%),
        #f7fbff;
    content: "";
}

/* AutoMetro FAQ */

.r04-accordion {
    border-top: 1px solid var(--r04-software-line-strong);
}

.r04-accordion details {
    border-bottom: 1px solid var(--r04-software-line-strong);
}

.r04-accordion summary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    color: var(--r04-software-ink);
    cursor: pointer;
    list-style: none;
}

.r04-accordion summary::-webkit-details-marker {
    display: none;
}

.r04-accordion summary::after {
    content: none;
}

.r04-accordion summary strong {
    font-size: 0.95rem;
    line-height: 1.5;
}

.r04-accordion summary i {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid var(--r04-software-line-strong);
    border-radius: 50%;
}

.r04-accordion summary i::before,
.r04-accordion summary i::after {
    position: absolute;
    top: 9px;
    left: 5px;
    width: 8px;
    height: 1px;
    background: var(--r04-software-blue);
    content: "";
    transition: transform 180ms ease;
}

.r04-accordion summary i::after {
    transform: rotate(90deg);
}

.r04-accordion details[open] summary i::after {
    transform: rotate(0);
}

.r04-accordion summary:focus-visible {
    outline: 3px solid rgba(46, 119, 219, 0.38);
    outline-offset: 5px;
}

.r04-accordion details > p {
    max-width: 42rem;
    margin: -0.25rem 0 1.4rem;
    padding: 0;
    color: var(--r04-software-muted);
    font-size: 0.88rem;
    line-height: 1.78;
}

/* Semiconductor execution flow */

.r04-action-flow {
    display: grid;
    align-items: center;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--r04-software-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(28, 67, 111, 0.07);
    grid-template-columns: repeat(4, minmax(0, 1fr) 24px) minmax(0, 1fr);
}

.r04-action-flow > span {
    display: grid;
    min-height: 84px;
    place-items: center;
    padding: 0.7rem;
    border: 1px solid var(--r04-software-line);
    border-radius: 50%;
    aspect-ratio: 1;
    background: #fff;
    color: #244a74;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.45;
    text-align: center;
}

/* Semiconductor planning scope: the page's single dark emphasis section */

.r04-semiconductor .r04-section--scope {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 78% 14%, rgba(70, 134, 218, 0.34), transparent 35%),
        linear-gradient(118deg, #05284f, #073a70);
}

.r04-semiconductor .r04-section--scope :where(h2, h3, dt, dd) {
    color: #fff;
}

.r04-semiconductor .r04-section--scope :where(.r04-kicker, .r04-section-heading p) {
    color: rgba(235, 244, 255, 0.76);
}

.r04-scope-switcher {
    margin-top: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 14px;
    background: rgba(3, 30, 61, 0.34);
}

.r04-scope-switcher__tabs {
    display: grid;
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.r04-scope-switcher__tabs button {
    min-height: 62px;
    color: rgba(238, 246, 255, 0.72);
}

.r04-scope-switcher__tabs button + button {
    border-left-color: rgba(255, 255, 255, 0.22);
}

.r04-scope-switcher__tabs button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.r04-scope-switcher__tabs button[aria-selected="true"] {
    border-bottom-color: var(--r04-software-orange);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.r04-scope-switcher__panel:not([hidden]) {
    display: block;
    animation: r04-software-panel-in 240ms ease-out both;
}

.r04-scope-switcher__panel dl {
    display: grid;
    margin: 0;
    padding: clamp(1.8rem, 4vw, 3.25rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.r04-scope-switcher__panel dl > div {
    min-width: 0;
    padding: 0 clamp(1.1rem, 3vw, 2.4rem);
}

.r04-scope-switcher__panel dl > div:first-child {
    padding-left: 0;
}

.r04-scope-switcher__panel dl > div:last-child {
    padding-right: 0;
}

.r04-scope-switcher__panel dl > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.r04-scope-switcher__panel dt {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
}

.r04-scope-switcher__panel dd {
    margin: 0;
    color: rgba(235, 244, 255, 0.74);
    font-size: 0.82rem;
    line-height: 1.75;
}

/* Semiconductor collaboration diagram */

.r04-system-relations {
    display: grid;
    margin-top: clamp(2.2rem, 4vw, 3.75rem);
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 38px minmax(240px, 1.25fr) 38px minmax(0, 1fr);
}

:where(.r04-system-relations__sources, .r04-system-relations__outcomes) {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.r04-system-relations__sources, .r04-system-relations__outcomes) span {
    display: grid;
    min-height: 52px;
    place-items: center;
    padding: 0.55rem;
    border: 1px solid var(--r04-software-line);
    border-radius: 8px;
    background: #fff;
    color: #2c4e74;
    font-size: 0.74rem;
    font-weight: 650;
    text-align: center;
}

.r04-system-relations__core {
    display: grid;
    min-height: 130px;
    place-content: center;
    gap: 0.65rem;
    padding: 1.4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #073364, #0b4f8c);
    box-shadow: 0 14px 34px rgba(7, 45, 89, 0.2);
    color: #fff;
    text-align: center;
}

.r04-system-relations__core small {
    color: rgba(230, 241, 253, 0.7);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.r04-system-relations__core strong {
    font-size: 0.9rem;
    line-height: 1.55;
}

/* 1120: keep diagrams readable without overflow. */

@media (max-width: 1120px) {
    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar strong {
        padding-right: 7rem;
    }

    :where(.r04-system-loop, .r04-disturbance-chain) {
        gap: 0.35rem;
    }

    :where(.r04-system-loop, .r04-disturbance-chain) > div {
        min-height: 142px;
        padding: 0.8rem;
    }

    .r04-system-loop {
        grid-template-columns: repeat(5, minmax(0, 1fr) 16px) minmax(0, 1fr);
    }

    .r04-disturbance-chain {
        grid-template-columns: repeat(4, minmax(0, 1fr) 18px) minmax(0, 1fr);
    }

    .r04-action-flow {
        grid-template-columns: repeat(4, minmax(0, 1fr) 18px) minmax(0, 1fr);
    }
}

/* Tablet: every interface becomes a readable content stack. */

@media (max-width: 900px) {
    :where(.r04-autometro, .r04-semiconductor) .r04-interface--rail,
    :where(.r04-autometro, .r04-semiconductor) .r04-interface--fab {
        max-width: none;
    }

    .r04-system-loop,
    .r04-disturbance-chain,
    .r04-action-flow {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        gap: 0.55rem;
    }

    .r04-system-loop > div,
    .r04-disturbance-chain > div {
        min-height: 0;
        padding: 1.15rem;
    }

    .r04-system-loop > i,
    .r04-disturbance-chain > i,
    .r04-action-flow > i,
    .r04-system-relations > i {
        line-height: 1;
        transform: rotate(90deg);
    }

    .r04-action-flow > span {
        width: 100%;
        min-height: 62px;
        padding: 0.9rem;
        border-radius: 10px;
        aspect-ratio: auto;
    }

    .r04-system-relations {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .r04-system-relations__core {
        min-height: 112px;
    }
}

@media (max-width: 768px) {
    :where(.r04-autometro, .r04-semiconductor) .r04-hero__statement {
        max-width: none;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar {
        min-height: 68px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        padding-right: 9.2rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar strong {
        padding-right: 0;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar span {
        white-space: normal;
    }

    .r04-fab-board {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r04-fab-board__routes {
        min-height: 232px;
    }

    .r04-fab-board__plans {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .r04-fab-board__plans span:first-child {
        grid-column: 1 / -1;
    }

    .r04-fab-board__plans span:not(:first-child) {
        min-height: 50px;
    }

    .r04-fab-board > div:nth-child(3) {
        border-top: 1px solid var(--r04-software-line);
        border-left: 0;
    }

    .r04-autometro .r04-question-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-autometro .r04-tour__tabs,
    .r04-semiconductor .r04-tour__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 1px solid var(--r04-software-line);
        border-radius: 12px 12px 0 0;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button {
        min-height: 54px;
        border-bottom: 1px solid var(--r04-software-line);
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button:nth-child(odd) {
        border-left: 0;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button[aria-selected="true"] {
        box-shadow: inset 0 -2px 0 var(--r04-software-blue);
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__stage,
    :where(.r04-autometro, .r04-semiconductor) .r04-tour__panel {
        min-height: 0;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__panel {
        padding: 4.25rem 1rem 1rem;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__copy {
        padding: 0 0.25rem;
    }

    .r04-rail-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-rail-workspace__map {
        min-height: 230px;
        border-right: 0;
        border-bottom: 1px solid var(--r04-software-line);
    }

    .r04-rail-workspace dl {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .r04-rail-workspace dl > div {
        border-bottom: 0;
    }

    .r04-rail-workspace dl > div + div {
        border-left: 1px solid var(--r04-software-line);
    }

    :where(.r04-relation-view, .r04-fab-risk-view) {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    :where(.r04-relation-view, .r04-fab-risk-view)::before {
        top: 8%;
        bottom: 8%;
        left: 50%;
        width: 1px;
        height: auto;
    }

    :where(.r04-relation-view, .r04-fab-risk-view) span {
        min-height: 54px;
    }

    :where(.r04-relation-view, .r04-fab-risk-view) span:nth-child(3),
    :where(.r04-relation-view, .r04-fab-risk-view) span:nth-child(even) {
        transform: none;
    }

    :where(.r04-relation-view, .r04-fab-risk-view) > i {
        top: calc(50% - 6px);
    }

    :where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.r04-candidate-view, .r04-load-view, .r04-plan-compare) article {
        min-height: 122px;
        padding-top: 4.4rem;
    }

    :where(.r04-gate-view, .r04-replay-view) {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
    }

    :where(.r04-gate-view, .r04-replay-view) span {
        min-height: 54px;
        border: 1px solid rgba(37, 84, 139, 0.17) !important;
        border-radius: 8px !important;
    }

    :where(.r04-gate-view, .r04-replay-view) span:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -5px;
        transform: translateX(50%) rotate(135deg);
    }

    .r04-depth-spectrum {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .r04-depth-spectrum::before {
        top: 1rem;
        bottom: 1rem;
        left: 8px;
        width: 1px;
        height: auto;
    }

    .r04-depth-spectrum article {
        min-height: 92px;
        padding: 0 0 1.75rem 2.5rem;
        text-align: left;
    }

    .r04-depth-spectrum article::before {
        top: 0.15rem;
        left: 0;
    }

    .r04-boundary-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 0;
    }

    .r04-boundary-list > div,
    .r04-boundary-list > div:first-child {
        padding: 0 1rem;
    }

    .r04-boundary-list > div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .r04-engineering-band ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .r04-engineering-band li:nth-child(5) {
        border-left: 0;
    }

    .r04-engineering-band li:nth-child(n + 5) {
        border-top: 1px solid var(--r04-software-line);
    }

    .r04-action-flow {
        padding: 1rem;
    }

    .r04-scope-switcher__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r04-scope-switcher__tabs button {
        min-height: 58px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    }

    .r04-scope-switcher__tabs button:nth-child(odd) {
        border-left: 0;
    }

    .r04-scope-switcher__tabs button[aria-selected="true"] {
        box-shadow: inset 0 -2px 0 var(--r04-software-orange);
    }

    .r04-scope-switcher__panel dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-scope-switcher__panel dl > div,
    .r04-scope-switcher__panel dl > div:first-child,
    .r04-scope-switcher__panel dl > div:last-child {
        padding: 1.2rem 0;
    }

    .r04-scope-switcher__panel dl > div + div {
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        border-left: 0;
    }
}

/* 390px-class phones: preserve reading order and touch targets. */

@media (max-width: 520px) {
    .r04-autometro .r04-hero__descriptor {
        font-size: clamp(2.2rem, 11vw, 3.1rem);
    }

    :where(.r04-autometro, .r04-semiconductor) :where(.r04-interface--rail, .r04-interface--fab) > .r04-concept-label {
        top: 0.82rem;
        right: 0.85rem;
        max-width: 7.7rem;
        text-align: right;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar {
        min-height: 78px;
        padding: 0.9rem 8.1rem 0.9rem 0.85rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar strong {
        font-size: 0.76rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__bar span {
        font-size: 0.63rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__summary {
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__summary > div {
        min-height: 60px;
        padding: 0.7rem 0.85rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-interface__summary > div + div {
        border-top: 1px solid var(--r04-software-line);
        border-left: 0;
    }

    .r04-rail-map {
        height: 250px;
    }

    .r04-rail-map__station,
    .r04-rail-map__train,
    .r04-rail-map__event {
        padding: 0.28rem 0.42rem;
        font-size: 0.58rem;
    }

    .r04-rail-map__station:nth-of-type(2) { left: 2%; }
    .r04-rail-map__station:nth-of-type(4) { right: 2%; }
    .r04-rail-map__train { left: 25%; }
    .r04-rail-map__event { right: 11%; }

    .r04-fab-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-fab-board > div {
        padding: 0.9rem;
    }

    .r04-fab-board > div + div,
    .r04-fab-board > div:nth-child(3) {
        border-top: 1px solid var(--r04-software-line);
        border-left: 0;
    }

    .r04-fab-board__routes {
        min-height: 212px;
    }

    .r04-fab-board__plans {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-fab-board__plans span:first-child {
        grid-column: auto;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button,
    .r04-scope-switcher__tabs button {
        padding: 0.65rem 0.4rem;
        font-size: 0.8rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__panel {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    :where(.r04-autometro, .r04-semiconductor) .r04-tour__stage > .r04-concept-label {
        right: 0.9rem;
    }

    .r04-rail-workspace dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-rail-workspace dl > div + div {
        border-top: 1px solid var(--r04-software-line);
        border-left: 0;
    }

    .r04-boundary-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .r04-boundary-list > div,
    .r04-boundary-list > div:first-child,
    .r04-boundary-list > div:nth-child(odd) {
        padding: 1.15rem 0;
        border-top: 1px solid var(--r04-software-line-strong);
        border-left: 0;
    }

    .r04-boundary-list > div:last-child {
        border-bottom: 1px solid var(--r04-software-line-strong);
    }

    .r04-engineering-band ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .r04-engineering-band li:nth-child(odd) {
        border-left: 0;
    }

    .r04-engineering-band li:nth-child(n + 3) {
        border-top: 1px solid var(--r04-software-line);
    }

    .r04-engineering-band li {
        min-height: 74px;
    }

    :where(.r04-system-relations__sources, .r04-system-relations__outcomes) {
        grid-template-columns: minmax(0, 1fr);
    }

    .r04-scope-switcher__panel dl {
        padding: 1rem 1.2rem;
    }

    .r04-accordion summary {
        min-height: 62px;
        gap: 1rem;
    }
}

@media (max-width: 390px) {
    :where(.r04-autometro, .r04-semiconductor) .r04-tour__tabs button,
    .r04-scope-switcher__tabs button {
        min-height: 56px;
    }

    .r04-engineering-band ul {
        gap: 0.65rem;
    }

    .r04-system-relations__core {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.r04-autometro, .r04-semiconductor),
    :where(.r04-autometro, .r04-semiconductor) *,
    :where(.r04-autometro, .r04-semiconductor) *::before,
    :where(.r04-autometro, .r04-semiconductor) *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    :where(.r04-autometro, .r04-semiconductor) .r04-interface,
    :where(.r04-autometro, .r04-semiconductor) :where(.r04-tour__tabs, .r04-scope-switcher, .r04-system-relations__core) {
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    :where(.r04-autometro, .r04-semiconductor) [role="tab"][aria-selected="true"] {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}
