.epilink-page {
    --el-accent: #74d8e8;
    --el-ink: #e8f5f9;
    --el-muted: #a9c2cc;
    --el-line: #36535f;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(30px, 6vw, 78px) clamp(16px, 4vw, 38px) 72px;
}
.epilink-page h1 {
    margin: 0 0 12px;
    font-size: clamp(2.6rem, 7vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}
.epilink-page .epilink-lede { max-width: 64ch; font-size: clamp(1.06rem, 2vw, 1.28rem); }
.epilink-page .epilink-flow {
    margin: 32px 0 0;
    padding: clamp(14px, 3vw, 32px);
    color: var(--el-ink);
    background: radial-gradient(ellipse at 50% -28%, #225064, transparent 75%), #101d25;
    border: 1px solid var(--el-line);
    border-radius: 18px;
}
.epilink-flow h2 { margin: 0 0 16px; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.epilink-flow fieldset { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.epilink-flow legend { margin-bottom: 8px; color: var(--el-muted); font-size: .88rem; }
.epilink-flow input[type=radio] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.epilink-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.epilink-controls label {
    color: var(--el-muted);
    border: 1px solid var(--el-line);
    border-radius: 7px;
    padding: 7px 11px;
    cursor: pointer;
    font-size: .88rem;
}
#epilink-connect:checked ~ .epilink-controls label[for=epilink-connect],
#epilink-read:checked ~ .epilink-controls label[for=epilink-read],
#epilink-add:checked ~ .epilink-controls label[for=epilink-add] {
    color: #10262b;
    background: var(--el-accent);
    border-color: var(--el-accent);
    font-weight: 650;
}
#epilink-connect:focus-visible ~ .epilink-controls label[for=epilink-connect],
#epilink-read:focus-visible ~ .epilink-controls label[for=epilink-read],
#epilink-add:focus-visible ~ .epilink-controls label[for=epilink-add] {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.epilink-flow .epilink-stages {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 34px);
    margin: 24px 0 0;
    padding: 0;
}
.epilink-stage {
    position: relative;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--el-line);
    border-radius: 10px;
    background: #142730;
    transition: border-color 180ms, background 180ms;
}
.epilink-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: clamp(14px, 3vw, 34px);
    height: 2px;
    background: var(--el-line);
}
#epilink-connect:checked ~ .epilink-stages .epilink-stage:nth-child(1),
#epilink-read:checked ~ .epilink-stages .epilink-stage:nth-child(2),
#epilink-add:checked ~ .epilink-stages .epilink-stage:nth-child(3) {
    border-color: var(--el-accent);
    background: #193843;
}
#epilink-read:checked ~ .epilink-stages .epilink-stage:nth-child(1)::after,
#epilink-add:checked ~ .epilink-stages .epilink-stage:nth-child(2)::after {
    background: var(--el-accent);
    box-shadow: 0 0 10px #74d8e880;
}
.epilink-stage h3 { color: var(--el-ink); margin: 12px 0 5px; font-size: 1.04rem; }
.epilink-stage p { color: var(--el-muted); margin: 0; font-size: .88rem; line-height: 1.52; }
.epilink-stage-art {
    display: grid;
    align-content: center;
    min-height: 102px;
    padding: 8px;
    border-radius: 6px;
    background: #0d1c24;
    color: var(--el-accent);
    font: 500 .8rem/1.5 ui-monospace, Consolas, monospace;
}
.epilink-stage-art img {
    display: block;
    width: 100%;
    height: 86px;
    object-fit: cover;
    object-position: center 39%;
    border-radius: 3px;
}
.epilink-stage-art span { display: block; padding: 2px 5px; }
.epilink-stage-art span + span { border-top: 1px solid #2c4753; }
.epilink-tree span:nth-child(n+2) { padding-left: 19px; }
.epilink-details { margin: 42px 0 0; max-width: 74ch; }
.epilink-details h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 3vw, 2rem); }
.epilink-details p { margin: 0 0 13px; }
.epilink-page .epilink-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.epilink-page .epilink-links a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 680px) {
    .epilink-flow .epilink-stages { grid-template-columns: 1fr; gap: 14px; }
    .epilink-stage:not(:last-child)::after { top: 100%; left: 50%; width: 2px; height: 14px; }
    .epilink-stage-art img { height: 110px; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
    .epilink-stage { transition: none; }
}
