/* Team, ops lane: rules moved from shell/ui/views/ops.css (same order). */
.tm-sec{display:flex;flex-direction:column;gap:8px;padding-top:8px}
.tm-sec .ops-gl{padding:8px 0 0}
.tm-note{margin:0;font-size:12px;color:var(--muted);max-width:72ch}
.tm-route td{height:44px}
.tm-who{display:inline-flex;align-items:center;gap:10px}
.tm-who .ops-av{width:28px;height:28px;font-size:12px;font-family:var(--display)}
.tm-wt{display:flex;flex-direction:column;line-height:1.3}
.tm-wt b{font-weight:600}
.tm-wt small{font-size:12px;color:var(--good)}
.tm-wt small.away{color:var(--warn)}
/* the people table fits a 1280-1440 desktop: headers, names and the routing note wrap (the table cells are nowrap) */
.tm-rota thead th,.tm-rota .tm-wt,.tm-rota .tm-then{white-space:normal}
.tm-rota .tm-wt{max-width:24ch}
.tm-none{color:var(--faint,var(--muted))}
.tm-week,.tm-days{display:inline-flex;gap:3px;vertical-align:middle}
.tm-week i{width:10px;height:10px;border-radius:2px;border:1px solid var(--line-2,var(--line))}
.tm-week i.on{background:var(--o-act);border-color:var(--o-act)}
.tm-week i.off{background:transparent}
.tm-week i.away{border-color:var(--warn);background:repeating-linear-gradient(135deg,var(--warn) 0 1.5px,transparent 1.5px 4px)}
.tm-days i{width:10px;font:500 9px/1 var(--mono);font-style:normal;text-align:center;letter-spacing:0;color:var(--muted)}
.tm-num{font:500 12px var(--mono)}
.tm-num .lnk{font:inherit;margin:0}
.tm-act{text-align:right;width:1%}
.tm-then{color:var(--muted);font-size:12px}
.tm-imp{flex-wrap:wrap}
@media (max-width:760px){.tm-route thead{display:none}
.tm-route tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;padding:12px;border-bottom:1px solid var(--line)}
.tm-route tr:last-child{border-bottom:0}
.tm-route td{display:flex;flex-direction:column;gap:4px;height:auto;padding:0;border:0}
.tm-route td:first-child{grid-column:1/-1}
.tm-route td[data-l="Primary"]::before,.tm-route td[data-l="Secondary"]::before{content:attr(data-l);font:600 11px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tm-route .tm-then{display:none}
.tm-route .ops-inp{width:100%;max-width:none;min-width:0;height:32px}
.tm-rota th,.tm-rota td{padding:0 10px}}
.tm-map{width:100%;border-collapse:collapse;font-size:13px;margin-top:4px}
.tm-map th{text-align:left;font:600 11px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:0 0 6px}
.tm-map td{padding:4px 8px 4px 0}
.tm-map .ops-inp{width:100%;max-width:none;height:32px}
.tm-prev{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;font-size:13px}
.tm-confirm{border:1px solid var(--line);border-radius:6px;max-height:220px;overflow:auto}
.tm-crow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);font-size:13px}
.tm-crow:first-child{border-top:0}
.tm-what{margin:12px 0;padding-left:18px;font-size:13px;color:var(--ink-2,var(--ink));display:flex;flex-direction:column;gap:4px}
.tm-ack{display:flex;gap:8px;align-items:flex-start;font-size:13px}
.tm-ih{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px 6px;font-size:13px}
.tm-ip{font-size:12px;color:var(--muted);width:160px;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:760px){.tm-ip{width:auto;flex:1}
.tm-crow{grid-template-columns:minmax(0,1fr) auto}
.tm-crow .muted{display:none}}
.tm-imp{display:grid;grid-template-columns:minmax(0,1fr) 180px 180px;gap:12px}
.tm-imp .ops-cnt{justify-self:end}
.tm-imp .tm-ip{width:auto}
@media (max-width:760px){.tm-imp{grid-template-columns:minmax(0,1fr) auto}
.tm-imp .tm-ip{display:none}}
@media (max-width:1360px){.tm-rota th,.tm-rota td{padding:0 10px}
.tm-hot{display:none}
.tm-wt small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.tm-policy{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-size:13px;color:var(--muted)}
.tm-policy svg{width:16px;height:16px;flex:none}
.tm-policy b{color:var(--ink);font-weight:600}
.tm-role{font-size:13px;color:var(--ink-2,var(--ink))}
.tm-full{color:var(--warn);font-weight:600}
.tm-why{font:500 10px var(--mono);color:var(--muted)}
.tm-alt .tm-why{color:var(--warn)}
.tm-week i.today{outline:1.5px solid var(--ink);outline-offset:1px}
.rot-list{list-style:none;margin:0;padding:4px 0;border:1px solid var(--line);border-radius:8px;background:var(--o-surface);max-width:520px}
.rot-item{display:flex;align-items:center;gap:10px;height:44px;padding:0 12px;border-top:1px solid var(--line);font-size:13px}
.rot-item:first-child{border-top:0}
.rot-item[draggable="true"]{cursor:grab}
.rot-item:focus-visible{outline:2px solid var(--o-act);outline-offset:-2px}
.rot-n{font:500 11px var(--mono);color:var(--muted);width:14px}
.rot-item b{font-weight:600}
.rot-btns{margin-left:auto;display:flex;gap:4px}
.aw-row{align-items:flex-start;padding-top:10px;padding-bottom:10px}
.aw-row .ops-av{margin-top:2px}
.aw-row .ops-main{gap:3px}
.aw-now{color:var(--warn);font-weight:600}
.aw-eff{font-size:13px;color:var(--o-act);white-space:normal}
.aw-hist{margin-top:8px;font-size:13px}
.aw-hist summary{cursor:pointer;color:var(--muted);font-weight:600;padding:4px 0}
.aw-hist ul{margin:4px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.aw-prev{margin-top:4px}
.te-proj{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0;font-size:13px}
.te-proj select{width:160px}
@media (max-width:760px){.rot-list{max-width:none}
.te-proj select{width:140px}}
.tm-rota th,.tm-rota td{padding:0 12px}
.tm-rota .tm-week{gap:2px}
.tm-rota .tm-week i{width:9px;height:9px}
.tm-nl{font:inherit;color:var(--muted);margin:0}
.tm-nl:hover{color:var(--o-act)}
/* wraps rather than ellipsis: the "N leads" link sits at the end of the line and was clipped for anyone away */
.tm-rota .tm-wt small{display:block;max-width:230px;white-space:normal}
.imp-steps{list-style:none;display:flex;gap:4px;margin:0 0 12px;padding:0;font-size:12px;color:var(--muted);flex-wrap:wrap}
.imp-steps li{display:flex;align-items:center;gap:5px;padding:2px 8px 2px 2px;border-radius:999px}
.imp-steps li span{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font:600 10px var(--mono);border:1px solid var(--line-2,var(--line))}
.imp-steps li.on{color:var(--ink);font-weight:600}
.imp-steps li.on span{background:var(--o-act);border-color:var(--o-act);color:var(--o-surface)}
.imp-steps li.done span{background:var(--o-act-soft);border-color:transparent;color:var(--o-act)}
.imp-src{margin-bottom:12px}
.imp-sample{margin-top:6px;font-size:13px;color:var(--o-act)}
.imp-ex{font:400 12px var(--mono);color:var(--muted);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imp-own{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:6px}
.imp-own p{margin:2px 0 0}
.imp-dup{display:flex;flex-direction:column;gap:10px}
.imp-dup section{border:1px solid var(--line);border-radius:6px;padding:10px 12px}
.imp-dup section.imp-bad{border-color:color-mix(in srgb,var(--bad) 35%,var(--line))}
.imp-dup h4{margin:0;display:flex;align-items:center;gap:8px;font:600 13px var(--body)}
.imp-dup ul{margin:6px 0 0;padding-left:18px;font-size:13px;display:flex;flex-direction:column;gap:2px}
.imp-sum{margin:0 0 8px;font:600 15px/1.35 var(--display)}
.imp-sum.sm{font-size:13px;padding:0 16px;margin:0 0 4px;color:var(--ink-2,var(--ink))}
.tm-ih{flex-wrap:wrap}
.imp-ft{margin:0 16px 8px;font-size:13px;color:var(--o-act)}
.own-table td{white-space:normal;height:auto;padding-top:8px;padding-bottom:8px;vertical-align:top}
.own-table td:first-child{white-space:nowrap}
.own-why{font-size:13px;color:var(--ink-2,var(--ink))}
.own-table tr[data-lead]{cursor:pointer}
.own-table tr[data-lead]:hover td{background:var(--o-hover)}
.hrs-dl{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0}
.hrs-dl div{border:1px solid var(--line);border-radius:6px;padding:6px 8px}
.hrs-dl dt{font:600 11px var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.hrs-dl dd{margin:2px 0 0;font-size:12px}
.hrs-hol{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 4px;font-size:13px}
.hrs-n{margin:6px 0 8px}
.hrs-form{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.hrs-r{display:grid;grid-template-columns:48px 1fr auto 1fr;gap:8px;align-items:center;font-size:13px}
@media (max-width:760px){.hrs-dl{grid-template-columns:repeat(4,minmax(0,1fr))}}
.hrs-dl div.closed{background:var(--o-sunk)}
.hrs-hol{display:block}
.hrs-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:2px 16px}
.hrs-list li{display:flex;gap:10px;font-size:13px;padding:3px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.hrs-list li .mono{color:var(--muted);width:120px;flex:none;font-size:12px}
.imp-steps li{color:var(--faint,var(--muted))}
.imp-steps li.done{color:var(--good)}
.imp-steps li.done span{background:transparent;border-color:var(--good);color:var(--good);font-size:0}
.imp-steps li.done span::before{content:"✓";font-size:11px}
.imp-steps li.on{color:var(--o-act);font-weight:600}
@media (max-width:760px){.tm-nl{position:relative}
.tm-nl::after{content:"";position:absolute;inset:-12px -6px}}
.tm-secact{display:flex;justify-content:flex-end;margin-top:-28px}
.tm-plist,.tm-pcard{display:none}
@media (max-width:760px){.tm-ptable{display:none}
.tm-plist{display:block}
.tm-pcard{display:block;padding:10px 12px}
.tm-prow{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 12px;border-top:1px solid var(--line);cursor:pointer}
div.tm-prow{cursor:default}
.tm-prow:first-child{border-top:0}
.tm-prow:focus-visible{outline:2px solid var(--o-act);outline-offset:-2px}
.tm-pt{display:flex;flex-direction:column;min-width:0;flex:1}
.tm-pt b{font:600 15px var(--body)}
.tm-pt small{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-pt small .away{color:var(--warn)}
.tm-chev{color:var(--muted);font-size:18px}
.tm-pr{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:6px 0;border-top:1px solid var(--line)}
.tm-pr:first-of-type{border-top:0}
.tm-secact{margin-top:0}}
.tm-pick{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.tm-notel{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.tm-notel label{margin:0}
@media (max-width:760px){.tm-sec:first-of-type>.tm-note{display:none}
.tm-sec:first-of-type{padding-top:0}}
