/* 标签整块可点，原生单选留给方向键和读屏；轮廓和角标同步表示当前选择。 */
.watch-choices {padding:0;margin:0 0 15px;border:0;min-width:0}
.watch-choices legend {margin:0 0 7px;padding:0;color:#bac7c8;font-size:13px;font-weight:700;letter-spacing:.05em}
.watch-tray {display:flex;flex-wrap:wrap;gap:6px}
.watch-option {position:relative;display:block;min-width:0;cursor:pointer}
#dialog .watch-option>input {position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;clip-path:inset(50%);overflow:hidden}
.watch-tag {
  position:relative;display:flex;min-height:36px;height:100%;padding:5px 12px;gap:6px;align-items:center;justify-content:center;
  border:1px solid #49565c;border-radius:4px;background:#272f36;color:#d2d9d8;
  font:650 13px/1.25 var(--sans);text-align:center;transition:background .12s,border-color .12s;
}
.watch-tag>span {overflow-wrap:anywhere}
.watch-option:hover .watch-tag {background:#323b41;border-color:#778483}
.watch-option input:checked+.watch-tag {color:#ffcf95;background:#40372c;border-color:#e7a864;box-shadow:inset 0 -2px #b47b46}
.watch-option input:checked+.watch-tag::after {content:"";position:absolute;right:2px;top:2px;width:5px;height:5px;background:#ffc38a;clip-path:polygon(0 0,100% 0,100% 100%)}
.watch-option input:focus-visible+.watch-tag {outline:2px solid #f5dabc;outline-offset:2px}
.watch-jobs .watch-tray,.watch-levels .watch-tray,.watch-rooms .watch-tray,.watch-faces .watch-tray {display:grid}
.watch-jobs .watch-tray {grid-template-columns:repeat(3,minmax(0,1fr))}
.watch-jobs .watch-tag {flex-direction:column;min-height:72px;padding:8px 3px;gap:5px}
.job-glyph {width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:#a9c9bd}
.watch-option input:checked+.watch-tag .job-glyph {color:#ffc986}
.watch-time .watch-tag {min-width:72px}
.watch-levels .watch-tray {grid-template-columns:repeat(5,minmax(0,1fr))}
.watch-levels .watch-tag {flex-direction:column;gap:2px;padding:5px 1px}
.level-mark {font:600 14px/1.1 "Barlow Condensed",var(--mono);letter-spacing:.08em;color:#e8ba7d}
.watch-faces .watch-tray {grid-template-columns:repeat(4,minmax(0,1fr))}
.watch-faces .watch-tag {flex-direction:column;gap:1px;padding:4px 2px 6px;font-size:11px}
.watch-faces img {width:35px;height:35px;image-rendering:pixelated}
.watch-rooms .watch-tray {grid-template-columns:repeat(8,minmax(0,1fr))}
.watch-rooms .watch-tag {padding:3px;min-height:38px;font:600 17px "Barlow Condensed",var(--mono)}
/* 画出所选数量覆盖的连续牢房，末格保留单选高亮，对应末端封存的规则。 */
.watch-rooms .watch-option:has(~ .watch-option input:checked) .watch-tag {background:#2c403b;color:#bcdccd;border-color:#536e61}
.duty-badge {display:flex;align-items:center;gap:11px;padding:10px 12px;margin:0 0 17px;border-left:3px solid #cca779;background:#293239}
.duty-avatar {width:42px;height:42px;object-fit:contain;image-rendering:pixelated;flex:none;background:#20272c;border:1px solid #52605d}
/* 精细模型的登记照需要平滑缩小，避免镜框和眼睑在小尺寸下产生锯齿。 */
.dossier .portrait img:is([data-style="0"],[data-style="8"],[data-style="9"]), .watch-faces img:is([data-style="0"],[data-style="8"],[data-style="9"]), .duty-avatar:is([data-style="0"],[data-style="8"],[data-style="9"]) {image-rendering:auto}
.duty-person {display:grid;min-width:0;gap:1px}
.duty-person small {font-size:11px;letter-spacing:.06em;color:#a9bcba}
.duty-person strong {font-size:16px;overflow-wrap:anywhere}
.duty-badge .duty-status {margin:0 0 0 auto;padding:0;border:0;display:grid;gap:2px;background:transparent;text-align:right;font-size:13px}
.duty-badge .duty-status strong {color:#dbc5a4}
.duty-badge[data-running=true] .duty-status strong {color:#a6d9b7}
.charge-presets {display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.charge-presets>span {font-size:12px;color:#b2bdbd}
.charge-presets button {padding:4px 8px;border:1px dashed #64716f;border-radius:3px;color:#cfddd4;font-size:12px}
@media(max-width:490px){.watch-option .watch-tag{min-height:40px}.watch-rooms .watch-tray{gap:4px}.watch-faces .watch-tag{font-size:10px}}
