.route-group-tool,.route-group-tool *{box-sizing:border-box;min-width:0}.route-group-tool{--rg-blue:#155eef;--rg-ink:#10223d;--rg-soft:#f4f7ff;--rg-border:#cdd8ee;display:grid;gap:1.25rem;margin-block:2rem;color:var(--rg-ink)}.tool-journey{display:flex;gap:.55rem;flex-wrap:wrap;padding:.8rem;border:1px solid var(--rg-border);border-radius:1rem;background:#fff}.tool-journey a{padding:.55rem .75rem;border-radius:999px;background:var(--rg-soft);font-weight:700}.rg-panel{padding:clamp(1rem,2.6vw,1.75rem);border:1px solid var(--rg-border);border-radius:1.25rem;background:linear-gradient(145deg,#fff,#f7f9ff);box-shadow:0 12px 32px rgba(21,46,91,.07)}.rg-panel h2{margin-top:0}.rg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;margin-block:1rem}.participants label,.rg-grid label,.share-values label,.stop-editor label{display:grid;gap:.35rem;font-weight:700}.participants input,.rg-grid input,.rg-grid select,.rg-grid textarea,.share-values input,.stop-editor input,.stop-editor textarea{width:100%;padding:.72rem;border:1px solid #aebbd3;border-radius:.65rem;background:#fff;color:#11233d;font:inherit}.rg-grid textarea,.stop-editor textarea{min-height:5.5rem;resize:vertical}.rg-wide{grid-column:1/-1}.rg-actions,.rg-heading{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}.rg-heading{justify-content:space-between}.file-button,.rg-actions a,.rg-actions button{min-height:2.75rem;padding:.65rem .85rem;border:1px solid #9eacc5;border-radius:.7rem;background:#fff;color:#12305d;font-weight:700;cursor:pointer}.expense-list,.participants,.route-stops{display:grid;gap:1rem;padding:0;list-style:none}.expense-list>li,.participants>li,.route-stops>li{padding:1rem;border:1px solid var(--rg-border);border-radius:1rem;background:#fff}.route-stops>li.is-selected{outline:3px solid var(--rg-blue);outline-offset:2px}.stop-select{display:grid;grid-template-columns:auto 1fr;gap:.25rem .75rem;width:100%;padding:.5rem;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.stop-select>span{grid-row:1/3;display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;background:var(--rg-blue);color:#fff;font-weight:800}.stop-select small{display:block}.stop-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.75rem;margin-block:1rem}.leg-summary{padding:.75rem;border-left:4px solid #6b8cff;background:var(--rg-soft)}.group-totals,.route-total{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.7rem}.group-totals div,.route-total div{padding:.8rem;border-radius:.8rem;background:#eaf0ff}.group-totals dt,.route-total dt{font-weight:700}.group-totals dd,.route-total dd{margin:0;font-size:1.08rem}.rg-issues{padding:1rem 1rem 1rem 2rem;border-radius:.8rem;background:#fff3df;color:#663d00}.route-visual{overflow:hidden;border:1px solid var(--rg-border);border-radius:1rem;background:#e8efff}.route-visual svg{display:block;width:100%;height:auto;min-height:14rem}.route-visual rect{fill:#e8efff}.route-visual line{stroke:#155eef;stroke-width:3;stroke-dasharray:7 5}.route-visual .grid-line{stroke:#9eacc5;stroke-width:1;stroke-dasharray:3 7}.route-visual circle{fill:#fff;stroke:#155eef;stroke-width:4}.route-visual g.selected circle{fill:#ffd36b;stroke:#7a5000}.route-visual text{font:700 12px system-ui;fill:#10223d;paint-order:stroke;stroke:#fff;stroke-width:3px}.visual-fallback{display:flex;gap:.5rem;flex-wrap:wrap;padding-left:1.2rem}.visual-fallback button{border:0;background:transparent;color:#123f8a;text-decoration:underline;cursor:pointer}.rg-empty{padding:1rem;border:1px dashed #9eacc5;border-radius:.9rem;background:#fff}.rg-status{padding:.8rem;border-radius:.75rem;background:#e9f7ef}.rg-status:focus-visible,.route-group-tool a:focus-visible,.route-group-tool button:focus-visible,.route-group-tool input:focus-visible,.route-group-tool select:focus-visible,.route-group-tool textarea:focus-visible{outline:3px solid #7c3aed;outline-offset:3px}.participants li{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:end}.share-people,.share-values{display:flex;gap:.75rem;flex-wrap:wrap;padding:1rem;border:1px solid var(--rg-border);border-radius:.8rem}.share-people label{display:flex;gap:.4rem;align-items:center}.share-values label{min-width:10rem;flex:1 1}.expense-list>li{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.expense-list small,.expense-list span{display:block}.balance-table{overflow:auto}.balance-table table{width:100%;border-collapse:collapse;min-width:36rem}.balance-table td,.balance-table th{padding:.7rem;border-bottom:1px solid var(--rg-border);text-align:left}.file-button{position:relative;display:inline-flex;align-items:center}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.import-confirm{margin-top:1rem;padding:1rem;border:2px solid #8b5cf6;border-radius:.8rem;background:#f5f0ff}@media(max-width:600px){.rg-panel{padding:1rem}.expense-list>li{display:grid}.participants li{grid-template-columns:1fr}.balance-table table{min-width:31rem}.route-visual text{font-size:10px}.rg-actions>*{flex:1 1 100%;text-align:center}}@media print{.file-button,.rg-actions,.route-group-tool input,.route-group-tool select,.route-group-tool textarea,.tool-journey{display:none!important}.rg-panel{box-shadow:none;page-break-inside:avoid;break-inside:avoid}}