/* project-rail.css — maintained styles; declaration order preserves the existing cascade. */
.project-rail { position: fixed; left: 7px; top: 50%; z-index: 35; width: 30px; max-height: 64vh; overflow-y: auto; scrollbar-width: none; }
.project-rail[hidden],.project-rail-preview[hidden] { display: none!important; }
.project-rail::-webkit-scrollbar { display: none; }
.project-rail-ticks { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 0; }
.project-rail-tick { display: flex; align-items: center; width: 30px; min-height: 12px; padding: 0 3px; border: 0; background: none; cursor: pointer; }
.project-rail-tick::before { content: ""; display: block; width: 5px; height: 1px; background: #c5c7ca; transition: width .18s ease,background .18s ease; }
.project-rail-tick.is-active::before { background: #191919; }
.project-rail-tick.is-neighbor-3::before { width: 8px; }
.project-rail-tick.is-neighbor-2::before { width: 13px; }
.project-rail-tick.is-neighbor-1::before { width: 19px; }
.project-rail-tick.is-preview::before { width: 26px; height: 1.5px; background: #191919; }
.project-rail-tick:focus-visible { outline: 1px solid #aaa; outline-offset: -1px; border-radius: 3px; }
.project-rail-preview { position: fixed; left: 43px; z-index: 36; width: 280px; max-width: calc(100vw - 58px); padding: 15px 17px 13px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 4px 22px #00000012; font-family: Arial,"Microsoft YaHei",sans-serif; }
.project-rail-heading { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0 25px 11px 0; overflow-wrap: anywhere; }
.project-rail-name { font-size: 13px; font-weight: 400; line-height: 1.5; margin-bottom: 14px; overflow-wrap: anywhere; }
.project-rail-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.project-rail-category,.project-rail-date { font-size: 10px; font-weight: 400; line-height: 1.5; margin: 0; }
.project-rail-category { min-width: 0; overflow-wrap: anywhere; }
.project-rail-date { flex: none; text-align: right; }
.project-rail-arrow { position: absolute; right: 19px; top: 19px; width: 11px; height: 11px; border-left: 1.5px solid #999; border-bottom: 1.5px solid #999; transform: rotate(45deg); }
body.modal-open .project-rail-preview { display: none!important; }
@media(max-width:600px) {
  .project-rail { left: 1px; width: 20px; }
  .project-rail-tick { width: 20px; min-height: 14px; padding-left: 2px; }
  .project-rail-tick.is-neighbor-3::before { width: 6px; }
  .project-rail-tick.is-neighbor-2::before { width: 9px; }
  .project-rail-tick.is-neighbor-1::before { width: 12px; }
  .project-rail-tick.is-preview::before { width: 17px; }
  .project-rail-preview { left: 27px; width: 260px; padding: 13px 15px; }
  .project-rail-heading { font-size: 16px; margin-bottom: 9px; }
  .project-rail-name { font-size: 12px; margin-bottom: 12px; }
  .project-rail-category,.project-rail-date { font-size: 9px; }
  .project-rail-arrow { right: 17px; top: 17px; width: 10px; height: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .project-rail-tick::before { transition: none; }
}
@media(max-width:600px),(hover:none),(pointer:coarse) {
  .project-rail,.project-rail-preview { display: none!important; }
}
.project-rail { transition: opacity .3s ease,transform .4s cubic-bezier(.22,1,.36,1),visibility 0s .4s; }
.project-rail.is-visible { transition-delay: 0s; }
.project-rail-preview { background: #191919; box-shadow: 0 8px 28px #0003; }
.project-rail-name { text-decoration: none; }
.project-rail-name:hover { text-decoration: underline; }
@media(prefers-reduced-motion:reduce) {
  .project-rail { transition: none; }
}
.project-rail { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-12px,-50%); transition: opacity .3s ease,transform .4s cubic-bezier(.22,1,.36,1),visibility 0s .4s; }
.project-rail.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0,-50%); transition-delay: 0s; }
.project-rail-preview { background: #191919; color: #fff; pointer-events: auto; box-shadow: 0 8px 28px #0003; }
.project-rail-heading { color: #fff; }
.project-rail-name { display: block; color: #ccc; text-decoration: none; }
.project-rail-name:hover { color: #fff; text-decoration: underline; }
.project-rail-category,.project-rail-date { color: #aaa; }
@media(prefers-reduced-motion:reduce) {
  .project-rail { transition: none; }
}
