/* Personal route shortcuts in the feed's existing desktop rail. */
.feed-page .rail { position: static; }

@media (min-width: 1100px) {
    .feed-page .stream {
        position: relative;
        left: 0;
        transition: left 260ms ease;
    }
    .feed-page--centered .stream {
        left: calc((clamp(300px, 23vw, 340px) + 16px) / 2);
    }
    .feed-page--rail-visible .stream { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .feed-page .stream { transition: none; }
}
.rail-route-draft[hidden], .rail-route-draft__map[hidden], .rail-route-placeholder[hidden] { display: none !important; }
.rail-route-draft__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rail-route-draft__head h2 { min-width: 0; }
.rail-route-draft__badge { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); }
.rail-route-draft__map, .rail-route-placeholder { position: relative; width: 100%; aspect-ratio: 2.25; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-soft); }
.rail-route-illustration { --rail-map-land: #d8e9bb; --rail-map-forest: #bcd99d; --rail-map-water: #a9cae0; --rail-map-road: #f7f8e7; --rail-map-point: #fff; width: 100%; aspect-ratio: 2.25; overflow: hidden; border-radius: var(--r-sm); background: var(--rail-map-land); }
.rail-route-illustration svg { display: block; width: 100%; height: 100%; }
html[data-theme="dark"] .rail-route-illustration { --rail-map-land: #303e30; --rail-map-forest: #43563c; --rail-map-water: #3c5962; --rail-map-road: #74806a; --rail-map-point: #191919; }
.rail-route-draft__map > .minimap-container { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail-route-draft__attribution { position: absolute; z-index: 2; right: 5px; bottom: 5px; color: var(--ink); font-size: 10px; }
.rail-route-draft__attribution summary { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; list-style: none; font-weight: 700; }
.rail-route-draft__attribution summary::-webkit-details-marker { display: none; }
.rail-route-draft__attribution > div { position: absolute; right: 0; bottom: 28px; width: 190px; max-width: 70vw; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); line-height: 1.5; }
.rail-route-draft__attribution a { text-decoration: underline; text-underline-offset: 2px; }
.rail-route-placeholder { display: grid; place-items: center; color: var(--quiet); }
.rail-route-placeholder svg { width: 36px; height: 36px; opacity: .8; }
.rail-route-draft__info { display: grid; gap: 3px; min-width: 0; line-height: var(--lh-small); }
.rail-route-draft__info b { overflow-wrap: anywhere; color: var(--ink); font-weight: var(--fw-button); }
.rail-route-draft__info span, .rail-route-empty__copy, .rail-route-empty__hint { color: var(--quiet); font-size: var(--fs-small); }
.rail-route-draft__action { width: 100%; justify-content: center; }
.rail-route-empty__build { justify-self: center; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-button); }
.rail-route-empty__build:hover { color: var(--cta); }
.rail-route-draft__delete { justify-self: center; padding: 4px 8px; border: 0; background: transparent; color: var(--quiet); font: inherit; font-size: var(--fs-caption); cursor: pointer; }
.rail-route-draft__delete:hover, .rail-route-draft__delete:focus-visible { color: var(--cta); text-decoration: underline; }
.rail-route-list__items { display: grid; margin: 0; padding: 0; list-style: none; }
.rail-route-list__items li + li { border-top: 1px solid var(--line); }
.rail-route-list__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); }
.rail-route-list__items li:first-child .rail-route-list__row { padding-top: 0; }
.rail-route-list__items li:last-child .rail-route-list__row { padding-bottom: 0; }
.rail-route-list__row:hover b { text-decoration: underline; text-decoration-color: var(--cta); text-underline-offset: 3px; }
.rail-route-list__image { display: grid; width: 56px; height: 56px; overflow: hidden; place-items: center; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--quiet); }
.rail-route-list__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rail-route-list__image svg { width: 24px; height: 24px; }
.rail-route-list__copy { display: grid; min-width: 0; gap: 3px; line-height: var(--lh-small); }
.rail-route-list__copy b { overflow-wrap: anywhere; font-weight: var(--fw-button); }
.rail-route-list__copy small { color: var(--quiet); font-size: var(--fs-caption); }
.rail-route-list__arrow { color: var(--ink-2); font-size: 24px; line-height: 1; }
.rail-route-list .rail__more { border: 0; cursor: pointer; font-family: inherit; }
