.admin .master-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 8px;}
.admin .master-toolbar #master-filter{flex:1 1 auto;padding:0;min-width:0;}
.admin #master-filter input[name=q]{box-sizing:border-box;width:120px!important;min-width:120px!important;max-width:120px!important;flex:0 0 120px!important;}
.admin .master-page #master-selection{width:auto;min-width:70px;white-space:nowrap;margin:0;}
.admin .master-toolbar .master-pagination{margin:0 0 0 auto;padding:0;border:0;flex:0 0 auto;}
.admin .master-pagination #master-jump{width:48px!important;}
.admin .master-results{height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;}
.admin .master-results>#master-selection-banner{display:none;}
.admin .master-results>.c15-list-scroll{height:auto;min-height:0!important;max-height:640px!important;flex:0 0 auto!important;}
.admin .master-results>.master-virtual-scroll{height:640px!important;min-height:0!important;max-height:640px!important;}
.admin #add-path{text-decoration:none!important;}
.admin .grouped-path-table .path-group-gap{width:12px!important;padding:0!important;border:0!important;background:linear-gradient(to right,transparent calc(50% - .5px),#000 calc(50% - .5px),#000 calc(50% + .5px),transparent calc(50% + .5px))!important;}
.admin .search-reset{border:0!important;background:transparent;padding:0!important;width:20px!important;min-width:20px!important;height:24px!important;}
.admin .admin-topbar #d-global-search .search-reset{flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;padding:0!important;}
.admin .search-reset:focus-visible,.admin #add-path:focus-visible{outline:2px solid #2463c5;outline-offset:2px;}
.admin .master-toolbar button:disabled{cursor:default;opacity:.5;}

.admin .work-status-cell{padding:2px 1px!important;text-align:center;}
.admin .work-error-status{color:#a32323;padding:1px 3px!important;max-width:100%;white-space:nowrap;}
.admin .work-error-events article{border-top:1px solid #d0d5dd;padding:8px;}
.admin .work-error-events pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;}

.admin .grouped-path-table tr.path-running{background:#fff0f0!important;box-shadow:inset 0 1px #e56363,inset 0 -1px #e56363,inset 1px 0 #e56363,inset -1px 0 #e56363,0 0 5px #ed565630;}
.admin .grouped-path-table .route-pulse{animation:none!important;background:#fff0f0!important;}
.admin .grouped-path-table .path-run-active{background:#df3535!important;color:#fff!important;opacity:1!important;border-color:#df3535!important;}
.admin .collection-log-running{background:#fff0f0!important;box-shadow:inset 0 0 0 1px #e56363,0 0 5px #ed565630;border-radius:2px;}
@media(prefers-reduced-motion:reduce){.admin .path-running,.admin .collection-log-running{animation:none!important;}}

.admin .collection-stop-dialog{width:min(900px,95vw);max-height:85vh;overflow:auto;}
.admin .collection-stop-dialog th,.admin .collection-stop-dialog td{padding:5px;}

/* Collection layout and independent error view */
.admin .collection-heading{flex-wrap:nowrap!important;gap:8px;}
.admin .collection-heading h1{margin:0;flex:0 0 auto;}
.admin .collection-heading .path-heading-actions{padding:0;margin:0;border:0!important;background:transparent;flex:0 0 auto;min-height:0;height:auto;}
.admin .collection-heading .path-heading-actions>[hidden]{display:none!important;}
.admin .collection-top{grid-template-columns:371px minmax(0,1fr)!important;gap:8px;}
.admin #collection-paths,.admin #collection-recent{min-width:0;}
.admin .grouped-path-table .path-site-col{width:70px!important;}
.admin #collection-log-lines{min-width:0;flex:1;overflow:auto;}
.admin .master-toolbar{flex-wrap:nowrap!important;padding:4px 0;gap:8px;overflow:hidden;}
.admin .master-toolbar::-webkit-scrollbar{height:0;}
.admin .master-toolbar #master-filter{flex:1 1 auto;min-width:0;flex-wrap:nowrap!important;gap:5px;padding:0;border-bottom:0!important;height:30px!important;min-height:30px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;}
.admin .master-toolbar #master-filter::-webkit-scrollbar{height:0;}
.admin .master-toolbar #master-filter>*{flex-shrink:0;}
.admin .master-toolbar #master-filter .search-reset{width:20px!important;min-width:20px!important;max-width:20px!important;flex:0 0 20px;}
.admin .master-toolbar #master-selection{width:100px!important;min-width:100px!important;max-width:100px!important;flex:0 0 100px!important;text-align:right;white-space:nowrap;margin:0;}
.admin #master-errors{margin-left:8px;}
.admin .master-toolbar .master-pagination{gap:6px;margin-left:auto;padding:0;border:0!important;overflow:visible;}
.admin .master-toolbar .master-pagination #master-size-preset{width:55px;}
.admin .admin-sidebar{bottom:var(--foot-h)!important;height:auto!important;min-height:0;}
.admin .admin-sidebar .admin-nav{flex:1 1 auto;min-height:0;}
.admin .admin-body:has(.master-page){height:calc(100dvh - var(--top-h) - var(--foot-h))!important;padding-bottom:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
.admin .admin-main:has(>.master-page){height:100%!important;flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0;}
.admin .master-page{height:100%!important;min-height:0!important;overflow:hidden;flex:1 1 0;}
.admin .master-page>.master-results{flex:1 1 0!important;min-height:0!important;display:flex;flex-direction:column;overflow:hidden;}
.admin .master-results>.c15-list-scroll,.admin .master-results>.master-virtual-scroll{flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:auto;}
.admin .master-toolbar{flex:0 0 auto;}
.admin .master-page>#master-basis{display:none;}

.failure-manager{border:1px solid #d3dae4;background:#fff;font-size:12px}.failure-manager form{display:flex;gap:8px;padding:8px;flex-wrap:wrap}.failure-manager p{margin:6px 10px}.failure-manager [data-scope]{color:#526174;font-size:11px}.failure-manager small{display:block;color:#526174}.failure-manager [data-notice]{color:#a32323;min-height:18px}.failure-manager [data-paging]{padding:8px;display:flex;gap:12px}.failure-manager dialog{width:min(720px,90vw);max-height:75vh;overflow:auto}.failure-manager article{border-top:1px solid #d3dae4;padding:8px}.failure-manager time{display:block;color:#526174}.failure-manager pre{white-space:pre-wrap;overflow-wrap:anywhere}.failure-manager button:disabled{opacity:.5;cursor:default}

/* Exact requested columns: 348px plus the existing 20px site selection. */
.admin .grouped-path-table{box-sizing:border-box;width:369px!important;min-width:369px!important;max-width:369px!important;table-layout:fixed!important;}
.admin .grouped-path-table col{box-sizing:border-box;}
.admin .grouped-path-table .path-check-col{width:20px!important;min-width:20px!important;max-width:20px!important;}
.admin .grouped-path-table .path-fixed-col{width:38px!important;min-width:38px!important;max-width:38px!important;}
.admin .grouped-path-table .path-site-col{width:70px!important;min-width:70px!important;max-width:70px!important;}
.admin .grouped-path-table .path-gap-col{width:12px!important;min-width:12px!important;max-width:12px!important;}
.admin .grouped-path-table input[type=checkbox]{display:inline-block!important;visibility:visible!important;width:13px!important;min-width:13px!important;height:13px!important;opacity:1!important;margin:0!important;vertical-align:middle;}
.admin .collection-top-heading{display:grid!important;grid-template-columns:371px minmax(0,1fr);gap:8px!important;align-items:center!important;}
.admin .collection-title-controls{display:flex;align-items:center;gap:8px;min-width:0;}
.admin .collection-log-heading{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;}
.admin .collection-log-heading>b,.admin .collection-log-heading>a{flex-shrink:0;}
.admin .collection-log-heading .c15-spacer{flex:1;}
.admin #collection-log-lines{height:100%;}
.admin .admin-topbar{--header-left:14px;padding-left:var(--header-left)!important;justify-content:flex-start;}
.admin .admin-topbar .d-brand{box-sizing:border-box;flex:0 0 calc(var(--nav-w) - var(--header-left) - 12px)!important;width:calc(var(--nav-w) - var(--header-left) - 12px)!important;min-width:0!important;overflow:hidden;}
@media(max-width:979px){.admin .admin-topbar{--header-left:0px;}}

.admin .collection-session-run+.collection-session-run{border-top:1px solid #ccd4df;margin-top:5px;padding-top:5px;}
.admin .collection-event-row{font-size:11px;line-height:1.5;padding:3px 5px;white-space:normal;overflow-wrap:anywhere;margin:2px 5px;}
.admin #collection-recent{overflow:hidden;}
.admin .s16-common-caption:empty{display:none;}

/* Single fixed-height header; foreground tools overlap the fixed search region. */
body.admin{--top-h:48px;}
.admin .admin-topbar{--header-left:14px;display:flex!important;flex-wrap:nowrap!important;height:48px!important;min-height:48px!important;max-height:48px!important;box-sizing:border-box;padding:0 13px 0 14px!important;gap:12px!important;align-items:center;justify-content:flex-start;overflow:clip!important;}
.admin .admin-body{margin-top:48px!important;}
.admin .admin-topbar .d-brand{position:relative;box-sizing:border-box;flex:0 0 calc(var(--nav-w) - 26px)!important;width:calc(var(--nav-w) - 26px)!important;min-width:0!important;overflow:visible;white-space:nowrap;}
.admin:not(.dense-mini-nav) .admin-topbar .d-brand .brand{display:flex!important;flex:0 0 auto!important;white-space:nowrap;flex-wrap:nowrap;font-size:21px!important;gap:7px;letter-spacing:-.6px;}
.admin .admin-topbar .d-brand .brand-mark{flex:0 0 25px!important;width:25px!important;height:29px!important;}
.admin .admin-topbar .d-brand .com{font-size:13px!important;}
.admin .admin-topbar .d-brand>[data-dense=navigation]{position:relative;z-index:5;flex:0 0 16px!important;}
.admin .admin-topbar .s16-tabs{position:relative;flex:0 0 188px!important;width:188px!important;min-width:188px!important;margin:0!important;white-space:nowrap;}
.admin .admin-topbar .d-global-search{position:relative;box-sizing:border-box;display:flex!important;flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;height:31px!important;gap:5px!important;padding:3px 5px!important;margin:0!important;}
.admin .admin-topbar #d-search{flex:0 0 160px!important;width:160px!important;min-width:160px!important;max-width:160px!important;height:25px!important;}
.admin .admin-topbar .d-global-search kbd{display:none!important;width:0!important;min-width:0!important;max-width:0!important;margin:0!important;padding:0!important;border:0!important;}
.admin .admin-topbar .d-global-search button{display:inline-flex!important;flex-shrink:0;height:25px;min-height:25px;font-size:12px;}
.admin .admin-topbar .d-global-tools{position:absolute!important;right:13px;top:0;bottom:0;z-index:3;display:flex!important;align-items:center;height:48px!important;box-sizing:border-box;width:max-content!important;min-width:max-content!important;max-width:none!important;flex:0 0 auto!important;gap:12px;margin:0!important;padding:0 0 0 12px;background:#2f61d5!important;}
.admin .admin-topbar .d-global-tools>*{display:inline-flex!important;flex-shrink:0;white-space:nowrap;}
.admin .admin-topbar .d-global-tools::after{content:'';position:absolute;right:-13px;top:0;width:13px;height:48px;background:#2f61d5;}

.admin .collection-log-heading>.c15-btn{flex-shrink:0;white-space:nowrap;}
.admin #collection-recent.collection-log-expanded{background:#fff;box-shadow:0 2px 8px #17203338;}

.admin #collection-recent,.admin #collection-log-lines{overscroll-behavior:contain;}
.admin #collection-log-lines{min-height:0;}
.admin #collection-log-lines:focus-visible{outline:2px solid #2463c5;outline-offset:-2px;}

.admin .collection-log-heading [data-collection-clear]{white-space:nowrap;}
