.page-tcard .cd-tools{display:flex;align-items:center;gap:var(--ui-gap-sm);margin-bottom:12px}.page-tcard .cd-tools ui-chips{flex:1;min-width:0}.page-tcard .cd-sort{flex:none}.page-tcard .cd-sort>svg{width:18px;height:18px}.page-tcard .cd-units{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px}.page-tcard .cd-locked{display:flex;flex-direction:column;align-items:center;gap:6px;padding:32px 20px;text-align:center}.page-tcard .cd-locked svg{width:36px;height:36px;opacity:.5}.page-tcard .cd-locked p{margin:0;max-width:420px;font-size:var(--FontSize3);line-height:1.5;opacity:.75}.page-tcard .cd-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr);gap:var(--ui-gap);align-items:start}.page-tcard .cd-map-wrap{position:sticky;top:var(--ui-pad);height:calc(100dvh - 2 * var(--ui-pad));min-height:360px;border-radius:var(--ui-radius);overflow:hidden;border:1px solid var(--ui-border);background:var(--ui-surface-alt);isolation:isolate}.page-tcard .cd-map-wrap>div{position:absolute;inset:0}.page-tcard .cd-list{display:flex;flex-direction:column;gap:10px;min-width:0}.page-tcard .cd-list .cd-units{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.page-tcard .cd-list-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 2px}.page-tcard .cd-list-head h2{margin:0;font-size:var(--FontSize5);font-weight:700}.page-tcard .cd-list-head span{font-size:var(--FontSize2);opacity:.65}.page-tcard .cd-joint{display:flex;flex-direction:column;gap:12px}.page-tcard .cd-joint-head{display:flex;align-items:center;gap:12px}.page-tcard .cd-joint-ico{width:40px;height:40px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--ui-mine) 14%,transparent);color:var(--ui-mine)}.page-tcard .cd-joint-ico>svg{width:22px;height:22px;fill:currentColor}.page-tcard .cd-joint-text{flex:1;min-width:0}.page-tcard .cd-joint-text>h2{margin:0;font-size:var(--FontSize4);font-weight:700}.page-tcard .cd-joint-text>p{margin:2px 0 0;font-size:var(--FontSize2);line-height:1.45;opacity:.7}.page-tcard .cd-joint-head>.ui-btn{flex:none}.page-tcard .cd-joint-list{display:flex;flex-wrap:wrap;gap:6px}.page-tcard .cd-joint-list:empty{display:none}.page-tcard .cd-joint-person{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:36px;padding:3px 4px;border-radius:999px;background:var(--ui-surface-alt);font-size:var(--FontSize3);font-weight:600;animation:cd-joint-in .2s ease-out}.page-tcard .cd-joint-person>.ava{width:28px;height:28px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--g);background:color-mix(in srgb,var(--g) 18%,transparent)}.page-tcard .cd-joint-person>.ava>svg{width:19px;height:19px;fill:currentColor}.page-tcard .cd-joint-person>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-tcard .cd-joint-person>button{width:28px;height:28px;flex:none;padding:0;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--ui-text);cursor:pointer}.page-tcard .cd-joint-person>button>svg{width:16px;height:16px;fill:currentColor;opacity:.55}@media (hover: hover){.page-tcard .cd-joint-person>button:hover{background:color-mix(in srgb,var(--ui-danger) 12%,transparent);color:var(--ui-danger)}}.page-tcard .cd-joint-person>button:focus-visible{outline:none;box-shadow:var(--ui-focus)}.page-tcard .cd-joint-person>button:disabled{cursor:default;opacity:.4}@keyframes cd-joint-in{0%{opacity:0;transform:scale(.92)}}@media (prefers-reduced-motion: reduce){.page-tcard .cd-joint-person{animation:none}}@media (max-width: 600px){.page-tcard .cd-joint-head{flex-wrap:wrap}.page-tcard .cd-joint-head>.ui-btn{width:100%;justify-content:center}}.cd-visit-form{display:flex;flex-direction:column;gap:12px}.cd-visit-form label{display:flex;flex-direction:column;gap:6px;font-size:var(--FontSize2);font-weight:500}.cd-visit-form input,.cd-visit-form textarea{width:100%;box-sizing:border-box;font:inherit;font-size:var(--FontSize4);color:var(--ui-text);background:var(--ui-field);border:1px solid transparent;border-radius:var(--ui-radius-sm);padding:9px 11px;outline:none}.cd-visit-form textarea{resize:vertical;min-height:70px}.cd-visit-form input:focus,.cd-visit-form textarea:focus{border-color:var(--ui-accent);box-shadow:var(--ui-focus)}@media (max-width: 900px){.page-tcard .cd-layout{grid-template-columns:minmax(0,1fr)}.page-tcard .cd-map-wrap{position:relative;top:0;height:52vh;min-height:260px}}@media (max-width: 600px){.page-tcard .cd-units,.page-tcard .cd-list .cd-units{grid-template-columns:minmax(0,1fr)}.page-tcard .cd-sort>span{display:none}}.page-tcard .cd-routes-ico{background:color-mix(in srgb,var(--ui-accent) 18%,transparent);color:var(--ui-text)}.page-tcard .cd-routes-list{display:flex;flex-wrap:wrap;gap:8px}.page-tcard .cd-routes-list:empty{display:none}.page-tcard .cd-route{display:inline-flex;gap:4px;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.page-tcard .cd-route>span{padding:8px 12px;border-radius:12px;font-size:var(--FontSize2);line-height:1.2}.page-tcard .cd-route-name{background:var(--r);color:#fff;font-weight:700}.page-tcard .cd-route-val{background:var(--ui-surface-alt);font-weight:600}.page-tcard .cd-route.on .cd-route-val{box-shadow:inset 0 0 0 2px var(--r)}.page-tcard .cd-route.off{opacity:.45}.page-tcard .cd-route:focus-visible{outline:none;box-shadow:var(--ui-focus);border-radius:12px}.page-tcard .cd-routes-count{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:var(--FontSize3);font-weight:600}.page-tcard .cd-routes-count>ui-segmented{width:min(360px,100%)}.page-tcard .cd-routes-hint{margin:8px 0 0;font-size:var(--FontSize2);opacity:.7}.page-tcard .cd-routes-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.page-tcard .cd-routes-actions>span{flex:1}.page-tcard .cd-routes-actions[hidden],.page-tcard .cd-routes-editor[hidden]{display:none}.page-tcard .ui-unit-marker.routed>span{box-shadow:0 0 0 3px var(--r),0 1px 3px #0000004d}.cd-route-start{background:none;border:0}.cd-route-start>span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-sizing:border-box;background:var(--r);color:#fff;font:700 11px/1 system-ui,sans-serif;box-shadow:0 1px 3px #00000059}.page-tcard .cd-routes-start{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;margin-top:10px}.page-tcard .cd-routes-start>.cd-route-name,.page-tcard .cd-routes-start>.cd-route-val{padding:8px 12px;border-radius:12px;font-size:var(--FontSize2);line-height:1.2}.page-tcard .cd-routes-start>.cd-start-label{background:#37474f;color:#fff;margin-right:-4px}.page-tcard .cd-routes-start>.cd-route-val{flex:1 1 180px}.page-tcard .cd-routes-start>[hidden]{display:none}.page-tcard #map_card.cd-picking,.page-tcard #map_card.cd-picking .leaflet-interactive{cursor:crosshair}.page-tcard .cd-routes-draw[hidden],.page-tcard .cd-routes-draw [hidden]{display:none}.page-tcard .cd-routes-draw .cd-routes-start{margin-top:0}.page-tcard .cd-routes-draw #cd-draw-label{background:var(--r, #37474f);color:#fff;margin-right:-4px}.page-tcard .cd-draw-roads{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:var(--FontSize2);cursor:pointer}.page-tcard #map_card.cd-drawing,.page-tcard #map_card.cd-drawing .leaflet-interactive{cursor:crosshair}.cd-draw-pt{background:none;border:0}.cd-draw-pt>span{display:block;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--r);box-sizing:border-box;box-shadow:0 1px 3px #00000059}.cd-draw-pt.last>span{width:18px;height:18px;background:var(--r)}.cd-start-flag{background:none;border:0}.cd-start-flag>span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#37474f;border:2px solid #fff;box-sizing:border-box;box-shadow:0 1px 4px #0006}.cd-start-flag svg{width:18px;height:18px;fill:#fff;transform:rotate(45deg)}.page-tcard .ui-unit-marker.cd-other{display:none}.page-tcard .cd-lm-ico{background:color-mix(in srgb,#8e6bbf 16%,transparent);color:#8e6bbf}.page-tcard .cd-lm-hint{margin:0;padding:10px 12px;border-radius:var(--ui-radius-sm);background:color-mix(in srgb,var(--ui-accent) 16%,transparent);opacity:1;font-weight:600}.page-tcard .cd-lm-hint[hidden]{display:none}#map_card.lm-placing,#map_card.lm-placing .leaflet-interactive{cursor:crosshair}.lm-marker{background:none;border:0}.lm-marker>span{width:30px;height:30px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--lm);border:2px solid #fff;box-shadow:0 1px 4px #00000059}.lm-marker svg{width:18px;height:18px;fill:#fff}.lm-marker.moving>span{opacity:.45;border-style:dashed}.lm-form{display:flex;flex-direction:column;gap:12px}.lm-types{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px}.lm-type{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 8px;border:0;border-radius:var(--ui-radius-sm);background:var(--ui-surface-alt);color:var(--ui-text);font:inherit;font-size:var(--FontSize2);font-weight:600;line-height:1.2;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}.lm-type.on{box-shadow:inset 0 0 0 2px var(--lm);background:color-mix(in srgb,var(--lm) 14%,var(--ui-surface-alt))}.lm-type:focus-visible{outline:none;box-shadow:var(--ui-focus)}.lm-type-ico{width:28px;height:28px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--lm)}.lm-type-ico>svg{width:17px;height:17px;fill:#fff}.lm-pair{display:grid;grid-template-columns:110px 1fr;gap:6px;align-items:stretch}.lm-l{display:flex;align-items:center;padding:0 12px;border-radius:var(--ui-radius-sm);background:var(--ui-surface-alt);font-size:var(--FontSize2);font-weight:700}.lm-note{min-height:64px;padding:10px 12px;border:0;border-radius:var(--ui-radius-sm);background:var(--ui-field);color:var(--ui-text);font:inherit;font-size:var(--FontSize3);resize:vertical;outline:none}.lm-note:focus-visible{box-shadow:var(--ui-focus)}@media (max-width: 520px){.lm-pair{grid-template-columns:1fr}.lm-l{min-height:32px}}.lm-view{display:flex;align-items:flex-start;gap:12px}.lm-view-ico>span{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--lm)}.lm-view-ico svg{width:26px;height:26px;fill:#fff}.lm-view-note{margin:0;flex:1;font-size:var(--FontSize3);line-height:1.45;white-space:pre-line}#cd-lm-dialog>.ui-btn[hidden],#cd-lm-view>.ui-btn[hidden]{display:none}
