
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.card:hover { border-color: var(--accent); }
.card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .details { flex: none; padding: 5px 12px; font-size: 13px; }
.card b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card small { color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-variant-numeric: tabular-nums; }
.stats span { display: flex; flex-direction: column; }
.stats strong { font-size: 18px; font-weight: 600; }
.stats em { font-style: normal; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.card .stats strong { font-size: 14px; }
.desc { margin: 0; color: var(--muted); }

.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.stop { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; }
.stop:hover { background: var(--soft); }
.stop .num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.stop .num.start { background: var(--ink); color: var(--surface); }
.stop .t { min-width: 0; cursor: pointer; }
.stop .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop .t small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop img { width: 44px; height: 33px; object-fit: cover; border-radius: 5px; }
.stop .tools { display: flex; gap: 2px; }
.stop .tools button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px 5px; border-radius: 4px; font-size: 14px; }
.stop .tools button:hover { background: var(--line); color: var(--ink); }
.stop .tools button:disabled { opacity: .3; cursor: default; background: none; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: #B3261E; }
.btn:disabled { opacity: .5; cursor: default; }
a.btn { text-decoration: none; text-align: center; }
.back { align-self: flex-start; }
.confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 8px; background: var(--soft); }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--muted); }
.field input[type=text], .field input[type=number], .field select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--accent); }
.results { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.res { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.res:hover { background: var(--soft); }
.res b { font-weight: 500; display: block; }
.res small { color: var(--muted); font-size: 12px; }
.res .plus { color: var(--accent); font-weight: 700; font-size: 16px; }
.res[disabled] { opacity: .45; cursor: default; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
.warn { color: #9A5B0E; }

.rnum { width: 26px; height: 26px; border-radius: 50%; background: #2E6A4E; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); display: grid; place-items: center; font: 600 12px var(--sans); }
.rnum.start { background: #18201D; }
.dotpin { width: 10px; height: 10px; border-radius: 50%; background: #2E6A4E; border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); opacity: .75; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 500; z-index: 2000; }
.r-search { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
