/* transfers view – one white group per connection, hairline rows */
.tr-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; color: var(--ink-3); margin: -8px 0 12px; }
.tr-hint .icon { color: var(--ink-3); }
.tr-hint a { font-weight: 400; color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tr-list { display: flex; flex-direction: column; gap: 12px; }
.tr-conn { padding: 0; scroll-margin-top: 12px; overflow: clip; }
.tr-conn.is-local { background: var(--surface); }
.tr-conn-h { display: flex; align-items: center; gap: 4px; padding: 4px 2px 0 16px; min-height: 48px; }
.tr-add { color: var(--accent); }
.tr-conn-t { flex: 1 1 auto; min-width: 0; font: 600 17px/1.25 var(--font-ui); letter-spacing: -0.022em; overflow-wrap: anywhere; }
.tr-local-empty { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 16px; margin: -4px 0; border: 0; border-radius: 12px; color: var(--ink-3); scroll-margin-top: 12px; }
.tr-local-empty .icon-btn { color: var(--accent); }
.tr-local-ico { color: var(--ink-3); display: grid; }
.tr-local-t { font-size: 15px; }
.tr-local-t .muted, .tr-local-t strong { color: var(--ink-3); font-weight: 400; }
.tr-items { display: flex; flex-direction: column; }
.tr-item { border: 0; border-top: .5px solid var(--line); border-radius: 0; background: transparent; scroll-margin-top: 12px; }
.tr-sum { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; min-height: 60px; border: 0; background: none; text-align: left; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.tr-mode { width: 24px; height: 24px; flex: none; display: grid; place-items: center; color: var(--ink-3); }
.tr-item.ts-booked .tr-mode { color: var(--accent); }
.tr-sum-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tr-sum-t { font-weight: 500; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sum-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink-3); }
.tr-sum-l2 .chip { flex: none; }
.tr-times { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sum-r { flex: none; display: flex; align-items: center; gap: 4px; font-size: 15px; max-width: 42%; text-align: right; }
.tr-cost { white-space: nowrap; }
.tr-cost strong { font-weight: 600; }
.tr-chev { color: var(--ink-3); transition: transform .25s var(--ease); }
.tr-item.is-open .tr-chev { transform: rotate(180deg); }

/* editor */
.tr-editor { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.tr-status { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.tr-status .seg { flex: 1 1 0; min-width: 0; }
.tr-status .seg-btn { flex: 1 1 auto; padding: 0 6px; }
.tr-status .infotip-btn { margin: 0 -10px 0 0; }
.tr-status .infotip-pop { flex-basis: 100%; }
.tr-status .infotip { display: contents; }
.tr-stinfo { display: flex; flex-direction: column; gap: 3px; }
.tr-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tr-modebtn { min-height: 56px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; padding: 4px 1px; }
.tr-modebtn .icon { color: var(--ink-3); }
.tr-modebtn.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; }
.tr-modebtn.on .icon { color: var(--accent); }
.tr-modebtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tr-legs { display: flex; flex-direction: column; gap: 8px; }
.tr-legs-h { font-size: 13px; font-weight: 400; color: var(--ink-3); text-transform: uppercase; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tr-legs-h .infotip { display: contents; }
.tr-legs-h .infotip-btn { margin: -12px -6px; }
.tr-legs-h .infotip-pop { flex-basis: 100%; }
.tr-legs > .btn { align-self: flex-start; }
.tr-leg { padding: 2px 4px 2px 12px; gap: 0; border-radius: 10px; border: 0; background: var(--fill-group); display: flex; flex-direction: column; position: relative; }
.tr-leg.is-open { padding-bottom: 12px; }
.tr-leg-h { display: flex; align-items: center; gap: 8px; }
.tr-leg-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 600; flex: none; }
.tr-leg-toggle { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; border: 0; background: none; text-align: left; padding: 0; color: var(--ink); }
.tr-leg-toggle > .icon { color: var(--ink-3); flex: none; }
.tr-leg-sum { font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tr-leg-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px 0 0; }
.tr-costbox { display: flex; flex-direction: column; gap: 4px; }
.tr-costbox .toggle-row { border-top: .5px solid var(--line); }
.tr-amount { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.tr-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 -12px -4px; }
.tr-del { color: var(--err); }
.tr-editor > .dur-info { margin-top: -6px; }
.tr-unassigned .tr-items { padding: 0 16px; }
.tr-un-title { display: flex; align-items: center; flex-wrap: wrap; }
.tr-un-title .infotip { display: contents; }
.tr-un-title .infotip-pop { flex-basis: 100%; text-transform: none; letter-spacing: 0; }
.tr-un { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.tr-un + .tr-un { border-top: .5px solid var(--line); }
.tr-un .tr-item { border-top: 0; margin: 0 -16px; }
.tr-assign { padding: 0; }
@media (max-width: 359px) { .tr-amount { grid-template-columns: 1fr; } .tr-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .tr-modes { gap: 5px; } }
.tr-dt { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .tr-dt { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
