:root{font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#171717;background:#fafafa;font-size:16px;line-height:1.55;--blue:#171717;--border:#e5e5e5;--muted:#666;--surface:#fff;--subtle:#fafafa;--hover:#f2f2f2;--focus:#0070f3}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit;line-height:1.5}
button,a,input,select,textarea{touch-action:manipulation}
button,a{transition:background .12s}
button{border:1px solid var(--border);background:#fff;border-radius:6px;padding:7px 12px;min-height:36px;font-size:14px;font-weight:500;line-height:20px;cursor:pointer;color:#171717;white-space:nowrap}
button:hover{background:var(--hover);border-color:#b3b3b3}
button:disabled{cursor:not-allowed;opacity:.48}
.primary{background:#171717;color:white;border-color:#171717}
.primary:hover{background:#383838;border-color:#383838}
.danger{color:#c00;border-color:#ebc8c8;background:#fff}
.danger:hover{background:#fff1f1;border-color:#e3a3a3}
.quiet{background:transparent;border-color:transparent;color:var(--muted)}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
h1,h2,h3,p{margin-top:0}
h1{font-size:1.65rem;line-height:1.3;margin-bottom:.4rem}
h2{font-size:1.13rem;margin-bottom:1rem}
h3{font-size:1rem;margin-bottom:.6rem}
small,.hint{font-size:.82rem;color:var(--muted)}
.muted{color:var(--muted)}
.eyebrow{font-size:.86rem;color:var(--blue);font-weight:600;margin:.9rem 0 .3rem}
.error-text{color:#a82438}
.brand-mark{display:inline-grid;place-items:center;width:40px;height:40px;background:#171717;color:#fff;border-radius:9px;font-size:1.25rem;font-weight:700;flex:none}
.login-layout{min-height:100dvh;display:grid;place-items:center;padding:2rem}
.login-card{max-width:460px;width:100%;background:white;border:1px solid var(--border);border-radius:12px;padding:2.2rem;box-shadow:0 12px 45px #1c365012}
.login-card form{display:grid;gap:.6rem;margin:1.5rem 0 1rem}
.login-card button{margin-top:.6rem}
.login-card label{font-size:.9rem}
.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;overflow-y:auto;padding:1.4rem .9rem;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column}
.brand{display:flex;gap:.65rem;color:#171717;font-weight:700;padding:0 .5rem 1.1rem}
.brand small{display:block;font-weight:400}
.brand:hover{text-decoration:none}
.sidebar nav{display:grid;gap:.3rem}
.sidebar nav a{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:#525252;padding:.5rem .8rem;border-radius:6px;font-size:.92rem}
.sidebar nav a.active{background:#f2f2f2;color:#171717;font-weight:600}
.sidebar nav a:hover{text-decoration:none;background:#f2f2f2}
.nav-count{font-size:.75rem;min-width:1.4rem;text-align:center;background:#f2f2f2;color:#171717;border-radius:4px;padding:0 .3rem;font-variant-numeric:tabular-nums}
.nav-count:empty{display:none}
.sidebar-bottom{margin-top:auto;padding:.8rem .5rem 0;display:grid;gap:.7rem;font-size:.83rem}
.main-column{min-width:0}
.topbar{position:sticky;top:0;z-index:4;min-height:56px;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:white;border-bottom:1px solid var(--border);font-size:.875rem;color:var(--muted)}
#content{max-width:1440px;margin:auto;padding:24px 32px 40px;min-width:0}
.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}
.page-heading>div:first-child{min-width:0}
.page-heading h1{overflow-wrap:anywhere}
.page-heading>.actions{flex:none;max-width:48%;justify-content:flex-end}
.page-heading p{margin:6px 0 0;font-size:13px;line-height:20px;color:var(--muted);max-width:78ch}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.card{background:white;border:1px solid var(--border);border-radius:8px;padding:20px;margin-bottom:16px;min-width:0}
.card.flush{padding:0;overflow:hidden}
.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.toolbar .field{margin:0;min-width:140px;flex:1 1 160px}
.toolbar .field:first-child{flex-grow:1.4}
.toolbar>button{min-height:40px}
.toolbar input{width:100%}
.field{display:grid;align-content:start;gap:.38rem;min-width:0;margin-bottom:.95rem}
.field>button{justify-self:start}
.field>label,.field-label,legend{font-size:14px;font-weight:500;line-height:20px;color:#171717}
.field .hint{margin:0}
input,select,textarea{width:100%;min-width:0;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#171717;padding:9px 12px;font-size:14px;line-height:20px}
input[type=checkbox]{width:18px;height:18px;flex:none}
input[readonly],textarea[readonly]{background:#fafafa;color:#666}
textarea{resize:vertical;line-height:24px;min-height:80px}
.form-grid{display:grid;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem 1.1rem}
.full{grid-column:1/-1}
.split{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:1.2rem;align-items:start}
.split>div{min-width:0}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}
.stat{background:#fff;border:1px solid var(--border);border-radius:8px;padding:1.1rem}
.stat small{font-size:.875rem}
.stat strong{display:block;font-size:1.8rem;margin:.15rem 0;color:#171717}
.stat a{font-size:.83rem}
.table-wrap{overflow:auto;max-width:100%;scrollbar-gutter:auto}
.table-wrap:focus-visible{outline:3px solid #0070f3;outline-offset:2px}
table{border-collapse:collapse;width:100%;min-width:540px;font-size:14px;line-height:22px;text-align:left}
.wide-table{min-width:760px}
th{background:var(--subtle);font-weight:500;color:var(--muted);font-size:12px;padding:10px 16px;border-bottom:1px solid var(--border);white-space:nowrap}
td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:middle;max-width:430px;overflow-wrap:anywhere}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fafafa}
td small{display:block;margin-top:.25rem}
td:first-child{min-width:180px}
td:last-child .actions{gap:.5rem .75rem}
td:last-child a{white-space:nowrap}
.table-actions{display:flex;flex-wrap:wrap;gap:.35rem}
.table-actions button{padding:.3rem .6rem;font-size:.82rem}
.badge{display:inline-flex;align-items:center;border-radius:4px;padding:2px 7px;background:#f2f2f2;border:1px solid transparent;color:#525252;font-size:12px;line-height:18px;white-space:nowrap}
.badge.success{background:#e7f5ef;color:#176a4c}
.badge.warning{background:#fff2d8;color:#855818}
.badge.blue{background:#f2f2f2;color:#525252}
.badge.danger{background:#ffeaed;color:#a32740;border:0}
.empty{padding:2.4rem 1rem;text-align:center;color:var(--muted)}
.pager{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.8rem;padding:1rem 0 0;font-size:.87rem;color:var(--muted)}
.flow-note{border:1px solid var(--border);background:var(--subtle);padding:12px 16px;border-radius:6px;margin-bottom:16px;font-size:13px;line-height:22px}
.flow-note p:last-child{margin-bottom:0}
.warning-note{background:#fffbeb;border-color:#f0dea9;color:#8f6400}
.list-clean{margin:0;padding-left:1.2rem;display:grid;gap:.45rem;font-size:.9rem}
.readable{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:24px}
.scroll-text{max-height:480px;overflow:auto;border:1px solid var(--border);background:var(--subtle);padding:16px;margin:8px 0}
.code{font-family:ui-monospace,Consolas,monospace;font-size:.8rem;overflow-wrap:anywhere}
.picker{display:grid;gap:.4rem}
.picker-search{font-size:.82rem}
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.35rem 0}
.chip{display:inline-flex;gap:.35rem;align-items:center;padding:.25rem .4rem .25rem .6rem;background:#f5f5f5;border-radius:4px;font-size:.82rem}
.chip button{padding:0 .2rem;border:0;background:transparent}
.row-fields{display:grid;grid-template-columns:1.3fr 2fr auto;gap:.65rem;align-items:center;margin-bottom:.65rem}
.location-row{border:1px solid var(--border);border-radius:6px;padding:.85rem;margin-bottom:.7rem;background:#fafafa}
.location-raw{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:end;margin-bottom:.65rem}
.location-raw>.field,.location-selects>.field{margin:0}
.location-raw>button{margin-bottom:.1rem}
.location-selects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.location-row select:disabled{background:#f2f5f9;color:var(--muted)}
.location-hint{margin:.6rem 0 0}
.location-count{margin-bottom:.6rem}
.check-line{display:flex;align-items:center;gap:.6rem;font-size:.9rem;margin:.55rem 0;overflow-wrap:anywhere}
.check-line label{cursor:pointer}
.check-card{padding:.7rem .85rem;border:1px solid var(--border);border-radius:5px;margin-bottom:.6rem}
.stack{display:grid;gap:.5rem}
.sticky-actions{position:sticky;bottom:12px;z-index:2;background:#fff;border:1px solid var(--border);padding:12px 16px;border-radius:8px;box-shadow:0 4px 16px #0000000a;margin-top:24px;justify-content:flex-end}
.sticky-actions button{white-space:normal;text-align:center}
details{border:1px solid var(--border);border-radius:6px;padding:.8rem .9rem;margin:.7rem 0}
details>summary{cursor:pointer;font-size:.9rem;font-weight:600;overflow-wrap:anywhere}
details[open]>summary{margin-bottom:.8rem}
dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:.45rem .7rem;font-size:.875rem;margin:.7rem 0}
dt{color:var(--muted)}
dd{margin:0;overflow-wrap:anywhere}
.result-counts{display:flex;flex-wrap:wrap;gap:.4rem}
.result-counts span{font-size:.8rem;padding:.16rem .45rem;background:#f5f5f5;border-radius:4px}
.heading-link{color:#171717;font-weight:600}
.back-link{display:inline-block;margin-bottom:.9rem;font-size:.9rem}
.busy{opacity:.6;pointer-events:none}
#notice{position:fixed;top:15px;left:50%;transform:translateX(-50%);max-width:min(720px,90vw);z-index:10;background:#eaf5ed;border:1px solid #afcdb5;border-radius:7px;color:#235233;padding:.7rem 1.2rem;box-shadow:0 5px 25px #0001;font-size:.9rem}
#notice.error{background:#fff0f2;border-color:#e0b8c2;color:#902437}
#notice a{margin-left:.6rem}
[hidden]{display:none!important}
@media(max-width:1120px){.workspace{grid-template-columns:190px minmax(0,1fr)}
#content{padding:1.4rem}
.topbar{padding:0 1.4rem}
.split{grid-template-columns:1fr}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){.workspace{display:block}
.sidebar{position:static;height:auto;padding:.7rem;border-right:0;border-bottom:1px solid var(--border)}
.brand{padding:.2rem .4rem .8rem}
.sidebar nav{display:none;grid-template-columns:1fr 1fr;gap:.6rem}
.sidebar.nav-open nav{display:grid}
.sidebar nav>a{grid-column:1/-1}
.sidebar nav a{font-size:.86rem;padding:.6rem}
.nav-group{min-width:0}
.sidebar-bottom{display:none;padding:.6rem .4rem 0;gap:1rem}
.sidebar.nav-open .sidebar-bottom{display:flex}
.topbar{height:auto;min-height:52px;padding:.5rem 1rem}
.topbar>span{font-size:.8rem}
.topbar .actions{gap:.35rem;justify-content:flex-end}
#account{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}
#content{padding:1.1rem .85rem 2rem}
.page-heading{flex-direction:column}
.page-heading>.actions{max-width:none;justify-content:flex-start}
.form-grid{grid-template-columns:1fr}
.stats{gap:.6rem}
.stat{padding:.8rem}
.card{padding:1rem}
.row-fields{grid-template-columns:1fr 1fr}
.row-fields input:nth-child(2){grid-column:1/-1}
.location-selects{grid-template-columns:1fr}
.location-row{padding:.75rem}
.toolbar .field{flex:1 1 145px}
.login-card{padding:1.5rem}
.sticky-actions{bottom:0;padding:.65rem}
.sticky-actions button{font-size:.8rem;flex:1 1 auto}
td,th{padding:.7rem .75rem}
}

.confirm-dialog{width:min(460px,90vw);border:1px solid var(--border);border-radius:10px;padding:1.5rem;color:#171717;box-shadow:0 20px 80px #0003}
.confirm-dialog::backdrop{background:#152d4866}
.confirm-dialog p{line-height:1.7}
.confirm-dialog .actions{justify-content:flex-end}

.category-summary{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:-.35rem 0 1rem;font-size:.9rem;font-weight:600}

.category-summary>span{font-size:.85rem;font-weight:400;color:var(--muted)}

.category-directory{padding:0;overflow:hidden}

.category-toolbar{display:flex;align-items:center;gap:.75rem;padding:1rem 1.2rem;border-bottom:1px solid var(--border)}

.category-toolbar input{max-width:420px}

.category-toolbar select{width:130px;flex:none}

.category-toolbar button{margin-left:auto;font-size:.85rem}

.category-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}

.category-column{min-width:0;scroll-margin-top:1rem}

.category-column+.category-column{border-left:1px solid var(--border)}

.category-column-heading{min-height:76px;padding:14px 16px;background:var(--subtle);border-bottom:1px solid var(--border)}

.category-column-heading h2{display:flex;align-items:center;gap:.65rem;font-size:1rem;margin:0 0 .3rem}

.category-column-heading h2 span{font-size:.8rem;font-weight:400;color:var(--muted);background:#f0f0f0;padding:0 .4rem;border-radius:4px}

.category-column-heading p{font-size:.8rem;color:var(--muted);margin:0;overflow-wrap:anywhere}

.category-column-list{height:clamp(310px,calc(100dvh - 405px),540px);overflow:auto;scrollbar-gutter:stable;list-style:none;margin:0;padding:.5rem}

.category-row{display:flex;align-items:center;gap:.15rem;margin:.18rem 0;min-width:0}

.category-choice,.category-result{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0;border-color:transparent;background:transparent;white-space:normal;text-align:left;padding:.55rem .6rem;line-height:1.4}

.category-choice-content{min-width:0;flex:1}

.category-name-line{font-size:.9rem;font-weight:500;overflow-wrap:anywhere}

.category-name-line .badge{margin-left:.35rem;font-size:.7rem}

.category-choice-content>small{display:block;font-size:.72rem;color:var(--muted);margin-top:.2rem;overflow-wrap:anywhere}

.category-next{font-size:.8rem;color:var(--muted);white-space:nowrap}

.category-choice[aria-current],.category-result[aria-current]{background:var(--hover);border-color:#d9d9d9;color:#171717}

.category-choice[aria-current] .category-next{color:#171717}

.category-edit{font-size:.78rem;color:var(--blue);padding:.45rem .35rem;flex:none}

.category-location{display:flex;flex-wrap:wrap;gap:.3rem .5rem;align-items:center;padding:.85rem 1.2rem;border-top:1px solid var(--border);font-size:.85rem;min-height:56px}

.category-location button{font-size:inherit;padding:.15rem 0;color:var(--blue);white-space:normal;text-align:left}

.category-location .category-current{color:#171717;font-weight:600}

.category-result-count{margin:.8rem 1.2rem .4rem}

.category-search-results{max-height:540px;overflow:auto;padding:.2rem 1rem 1rem}

.category-result-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem 1rem;margin:0;padding:0}

.category-result-list .category-row{border-bottom:1px solid var(--border);padding:.2rem 0}

.category-dialog{width:min(740px,94vw);max-height:92dvh;overflow:auto;margin:auto;padding:1.5rem;border:1px solid var(--border);border-radius:10px;color:#171717;box-shadow:0 20px 80px #0003}

.category-dialog::backdrop{background:#152d4866}

.category-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}

.category-dialog-heading h2{font-size:1.15rem;margin-bottom:.3rem;overflow-wrap:anywhere}

.category-dialog-heading p{margin:0}

.category-editor-path{background:#fafafa;border-radius:5px;font-size:.85rem;padding:.7rem .85rem;margin:1rem 0 1.2rem;overflow-wrap:anywhere}

.category-fields{padding:0;margin:0;border:0;min-width:0}

.category-dialog-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;border-top:1px solid var(--border);padding-top:1rem;margin-top:1rem}

@media(max-width:1100px){.category-column-heading{padding:.9rem .75rem;min-height:96px}
.category-column-list{padding:.35rem}
.category-choice{padding:.55rem .4rem}
.category-name-line{font-size:.85rem}
.category-edit{padding:.45rem .2rem}
.category-next{font-size:.72rem}
}

@media(max-width:760px){.category-columns{grid-template-columns:1fr}
.category-column+.category-column{border-left:0;border-top:1px solid var(--border)}
.category-column-heading{min-height:0;padding:.85rem 1rem}
.category-column-list{height:auto;max-height:230px;padding:.5rem}
.category-toolbar{flex-wrap:wrap;padding:1rem}
.category-toolbar input{max-width:none;flex:1 0 100%}
.category-toolbar select{flex:1}
.category-result-list{grid-template-columns:1fr}
.category-column>.empty{padding:1.5rem 1rem}
.category-location{padding:.85rem 1rem}
.category-dialog{padding:1.1rem}
.category-dialog-actions .actions{margin-left:auto}
}

.attachment-preview{display:block;max-width:100%;max-height:360px;object-fit:contain;margin-top:8px}

/* Task navigation and shared form layout. */
.skip-link{position:fixed;left:1rem;top:-80px;z-index:20;background:white;padding:.7rem 1rem;border:1px solid var(--blue);border-radius:6px}

.skip-link:focus{top:.5rem}

.sidebar-heading{display:flex;align-items:start;justify-content:space-between;gap:.5rem}

#nav-toggle{display:none}

.nav-group{display:grid;gap:.2rem}

.nav-label{margin:.8rem .8rem .2rem;font-size:.72rem;letter-spacing:.06em;color:var(--muted)}

.sidebar-bottom{flex-shrink:0}

#save-state{font-size:.75rem}

#content:focus{outline:none}

.form-section{border:0;border-top:1px solid var(--border);padding:20px 0 0;margin:24px 0 0;min-width:0;scroll-margin-top:80px}

.form-section>legend{padding:0 8px 0 0;font-size:14px;font-weight:500;color:#171717}

.form-section:focus-visible{outline:2px solid #0070f3;outline-offset:5px}

.form-section>.section-hint{margin:0 0 1rem;max-width:80ch}

.form-section>.field:last-child{margin-bottom:.3rem}

.editor-jumps{display:flex;flex-wrap:wrap;gap:.25rem;margin:.5rem 0 1rem;padding:.6rem;background:#fafafa;border-radius:6px}

.editor-jumps button{font-size:.8rem;color:var(--blue);padding:.3rem .5rem}

input:not([type=checkbox]):not([type=file]),select{min-height:40px}

input[type=checkbox]{margin:0;accent-color:var(--blue)}

input[type=file]{font-size:.8rem;padding:.4rem;background:#fafafa}

input,select,textarea,fieldset{scroll-margin-top:90px;scroll-margin-bottom:120px}

.picker-add{display:flex;gap:.6rem;align-items:flex-end;max-width:680px}

.picker-add>.field{flex:1;margin:0}

.picker-add>button{margin-bottom:0}

.chips:empty{display:none}

.tag-options{border:0;padding:0;margin:.3rem 0 1.2rem;min-width:0}

.tag-options legend{padding:0;margin-bottom:.6rem}

.tag-choices{display:flex;flex-wrap:wrap;gap:.55rem}

.tag-choice{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .65rem;border:1px solid var(--border);border-radius:5px;font-size:.85rem;cursor:pointer;background:white}

.tag-choice:has(:checked){background:#f2f2f2;border-color:#b6cff5;color:#171717}

.attachment-editor{margin:.9rem 0}

.institution-input-row{display:flex;align-items:center;gap:.5rem;min-width:0}

.institution-input-wrap{position:relative;flex:1;min-width:0}

.institution-input-wrap input{width:100%;padding-right:4.8rem}
.institution-compact .institution-input-wrap input{padding-right:12px}
.institution-assist{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-4px;min-width:0}
.institution-assist .institution-match-state{position:static;transform:none}
.institution-assist button{padding:2px 0;min-height:28px;border-color:transparent;background:transparent;font-size:13px;color:var(--muted)}
.institution-assist button:hover{color:#171717;text-decoration:underline;text-underline-offset:3px}

.institution-input-wrap input[data-unresolved=true]{border-color:#cda860;background:#fffcf5}

.institution-match-state{position:absolute;right:1.4rem;top:50%;transform:translateY(-50%);pointer-events:none;font-size:.72rem;color:#90621c}

.institution-input-row>button{flex:none;padding:.4rem 0;font-size:.78rem;color:var(--blue);border:0;background:transparent}

.job-pay-headcount{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.9rem}

.experience-editor{margin-bottom:.95rem}

.experience-editor>label{display:block;margin-bottom:.38rem;font-size:.875rem;font-weight:600;color:#171717}

.experience-controls{display:flex;align-items:center;gap:.375rem}

.experience-controls>.experience-mode{flex:0 0 96px;width:96px}

.experience-controls>.experience-number{position:relative;flex:1 1 80px;max-width:110px;min-width:0;margin:0}

.experience-number>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.experience-separator,.experience-unit{flex:none;color:var(--muted);font-size:.85rem}

.experience-hint{margin:.35rem 0 0;font-size:.75rem}

.attachment-upload{display:flex;gap:.6rem;align-items:flex-end;margin:.8rem 0}

.attachment-upload>.field{margin:0;flex:1;min-width:0}

.attachment-upload>button{min-height:40px}

.endpoint-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(220px,2fr) auto;align-items:start;gap:.75rem;background:#fafafa;border:1px solid var(--border);border-radius:6px;padding:.9rem;margin-bottom:.75rem}

.endpoint-row>.field{margin:0}

.endpoint-actions{display:flex;align-items:center;gap:.45rem;padding-top:1.65rem;min-height:66px}

.endpoint-actions .check-line{white-space:nowrap;margin:0}

.endpoint-actions button{padding:.4rem .5rem}

.comparison-list{margin-top:.8rem}

.comparison-item{padding:0;margin:.55rem 0}

.comparison-item>summary{padding:.8rem .9rem}

.comparison-item>summary>.hint{float:right;font-weight:400}

.comparison-item[open]>summary{border-bottom:1px solid var(--border);margin-bottom:0;background:#fafafa}

.comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}

.comparison-grid.two-versions{grid-template-columns:repeat(2,minmax(0,1fr))}

.comparison-version{padding:1rem;min-width:0;font-size:.875rem;overflow-wrap:anywhere}

.comparison-version+.comparison-version{border-left:1px solid var(--border)}

.comparison-version h3{font-size:.8rem;color:var(--muted)}

.comparison-version .scroll-text{margin:0;border:0;padding:0;background:none;max-height:380px}

.comparison-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--border);padding:.7rem .9rem;background:#fafafa}

.work-queues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start;margin-bottom:1rem}

.work-queue{min-width:0;margin-bottom:0}

.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.4rem}

.queue-heading h2{display:flex;align-items:center;gap:.5rem;margin:0;font-size:1.05rem}

.queue-heading>a{font-size:.85rem;white-space:nowrap}

.queue-count{display:inline-grid;place-items:center;min-width:1.6rem;padding:.15rem .45rem;border-radius:5px;background:#f2f2f2;color:#171717;font-size:.9rem;font-variant-numeric:tabular-nums}

.queue-list{list-style:none;padding:0;margin:.6rem 0 0}

.queue-list>li{display:flex;align-items:center;justify-content:space-between;gap:.8rem;border-top:1px solid var(--border);padding:1rem 0}

.queue-list>li:last-child{padding-bottom:.2rem}

.queue-list>li>a{white-space:nowrap;font-size:.85rem}

.queue-item-content{min-width:0;font-size:.9rem;overflow-wrap:anywhere}

.queue-item-content>a{font-weight:600;color:#171717}

.queue-item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .6rem;margin-top:.45rem;font-size:.8rem;color:var(--muted)}

.summary-links{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;padding:.9rem 1.1rem;margin:0 0 1.2rem;border:1px solid var(--border);border-radius:6px;background:#fff;font-size:.85rem}

.summary-links a{color:#171717}

.run-result-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1rem}

.run-result-summary h3{margin-bottom:.4rem}

@media(max-width:1120px){.endpoint-row{grid-template-columns:minmax(120px,1fr) minmax(180px,2fr)}
.endpoint-actions{grid-column:1/-1;padding-top:0;min-height:0;justify-content:flex-end}
}

@media(max-width:850px){.work-queues{grid-template-columns:1fr}
.comparison-grid,.comparison-grid.two-versions{grid-template-columns:1fr}
.comparison-version+.comparison-version{border-left:0;border-top:1px solid var(--border)}
}

@media(max-width:700px){#nav-toggle{display:block;flex:none;margin-top:.2rem}
.sidebar-heading{align-items:center}
.sidebar-heading .brand{padding:.2rem .4rem}
.nav-label{margin:.6rem .6rem .15rem}
.nav-group{align-content:start}
.endpoint-row{grid-template-columns:1fr}
.endpoint-actions{justify-content:flex-start;padding-top:0;min-height:0}
.attachment-upload{flex-wrap:wrap}
.attachment-upload>.field{flex-basis:100%}
.run-result-summary{grid-template-columns:1fr}
.queue-heading{gap:.5rem}
.queue-list>li{align-items:flex-start}
.editor-jumps{gap:.1rem;padding:.4rem}
.form-section{margin-top:1.2rem}
.summary-links{flex-direction:column;gap:.65rem}
table{min-width:540px}
.topbar{flex-wrap:wrap}
#save-state{white-space:normal;max-width:100px}
}

@media(prefers-reduced-motion:reduce){button,a{transition:none}
}

/* Shared operations UI: extend the approved review controls across the workspace. */
body{font-size:14px;line-height:1.5}
.page-heading h1{font-size:24px;line-height:32px;font-weight:600;margin:0}
.page-heading>.actions{gap:8px}
.page-heading>.actions>a{display:inline-flex;align-items:center;min-height:36px;font-size:13px}
.admin-detail-page>.back-link,.admin-detail-page>a:first-child{display:inline-flex;align-items:center;min-height:28px;margin:0 0 12px;color:var(--muted);font-size:13px}
body:has(.admin-detail-page) #content{max-width:1120px}
.sidebar nav a{font-size:14px;min-height:36px}
.nav-label{font-size:11px;letter-spacing:0;margin-top:20px}
.nav-count{font-size:11px;background:#eee;color:#525252}
.brand small{font-size:12px;color:var(--muted)}
.topbar{font-size:13px}
.topbar button{font-size:13px}
.quiet:hover{background:var(--hover);border-color:transparent;color:#171717}
button[aria-busy=true]{display:inline-flex;align-items:center;justify-content:center;gap:8px}
button[aria-busy=true]::before{content:'';width:12px;height:12px;flex:none;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:operation-spin .8s linear infinite}
@keyframes operation-spin{to{transform:rotate(360deg)}}
.hint,small{font-size:13px;line-height:20px}
:is(input,select,textarea):disabled{color:#737373;background:#f5f5f5}
:is(button,a,input,select,textarea,summary,[tabindex]){scroll-margin-top:88px;scroll-margin-bottom:140px}
.toolbar .actions{gap:8px}
.toolbar label{font-size:12px;color:var(--muted)}
.toolbar>.quiet,.toolbar .actions>.quiet{font-size:13px}
.list-primary{font-weight:500;color:#171717}
.list-primary>a{color:inherit}
.list-secondary{font-size:13px;line-height:20px;color:var(--muted);margin-top:4px}
.compact-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:13px;line-height:20px;color:var(--muted);margin:0 0 16px}
.compact-meta p{margin:0}
.compact-meta .actions{gap:8px 16px}
.compact-meta>button{font-size:13px}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
.detail-layout-single{grid-template-columns:minmax(0,1fr)}
.detail-main,.detail-aside{min-width:0}
.detail-aside{position:sticky;top:76px}
.detail-aside .card{padding:20px}
.detail-aside .card.detail-materials{border:1px solid var(--border);border-radius:8px}
.detail-aside .card.detail-materials>details{padding:0;border:0;margin:0}
.detail-aside h2{font-size:14px;font-weight:500;margin-bottom:16px}
.detail-aside .actions{gap:8px}
.detail-aside .field{margin-bottom:16px}
.detail-aside>details{background:#fff}
.detail-form{display:grid;gap:24px}
.detail-form .field{margin:0;gap:8px}
.detail-form .form-grid{gap:20px 24px}
.detail-form-group{display:grid;gap:20px;min-width:0}
.detail-form-group>h3{font-size:14px;font-weight:500;margin:4px 0 0}
.detail-form .form-section{margin:0;padding:16px 0 0}
.detail-form .form-section>legend{font-size:14px}
.detail-form .form-section>.section-hint{font-size:13px;margin-bottom:16px}
.detail-form .sticky-actions{margin-top:0}
.detail-materials{margin:0;padding:0;border:0;border-top:1px solid var(--border);border-radius:0}
.detail-materials>summary{padding:16px 0;font-size:13px;font-weight:500;color:var(--muted)}
.detail-materials[open]>summary{margin:0}
.detail-materials .check-card{padding:12px}
.detail-form .job-pay-headcount textarea{min-height:72px}
.detail-form .attachment-editor{margin:0}
.material-content{margin-top:20px;line-height:26px}
.card>h2{font-size:16px;font-weight:600;line-height:24px}
.card>.toolbar:last-child{margin:0;border:0;padding:0}
.card>.table-wrap+.pager{border-top:1px solid var(--border);margin-top:4px}
details>summary{font-size:13px;font-weight:500;line-height:20px}
details>summary:hover{color:#171717}
.category-dialog,.confirm-dialog{color:#171717;border-radius:10px;padding:24px;box-shadow:0 16px 48px #0002}
.category-dialog h2,.confirm-dialog h2{font-size:18px;line-height:26px}
.category-dialog::backdrop,.confirm-dialog::backdrop{background:#0006}
.category-dialog form>.actions:last-child{justify-content:flex-end}
.category-dialog .field>label{font-weight:500}
.category-toolbar{padding:16px}
.category-directory.card{padding:0}
.category-edit{font-size:12px;color:var(--muted)}
.category-editor-path{background:var(--subtle)}
.category-location{font-size:13px;min-height:44px;padding:12px 16px}
.category-location .category-current{color:#171717}
.tag-choice:has(:checked){background:#f5f5f5;border-color:#a3a3a3;color:#171717}
.queue-heading{margin-bottom:12px}
.queue-heading h2{font-size:16px;font-weight:600;line-height:24px}
.queue-heading>a{font-size:13px}
.queue-count{font-size:12px;padding:2px 7px;min-width:24px;background:#f2f2f2;color:#525252}
.queue-list{margin:0}
.queue-list>li{padding:14px 0}
.queue-item-content{flex:1}
.queue-item-content>a{font-size:14px;font-weight:500;color:#171717;display:block}
.queue-item-meta{margin-top:6px;font-size:12px}
.summary-links{padding:12px 16px;font-size:13px}
.activity-catalog-links{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;color:var(--muted);margin:16px 0}
.activity-catalog-links a{color:var(--muted)}
.run-results{display:grid;gap:6px;min-width:0}
.run-count-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:13px;line-height:22px}
.run-count-line>small{margin:0;flex:none;color:var(--muted)}
.run-counts{display:inline-flex;flex-wrap:wrap;gap:4px 10px;color:#525252;font-variant-numeric:tabular-nums}
.run-metadata{font-size:13px}
.receipt-section .queue-heading{flex-wrap:wrap}
.receipt-section .toolbar{margin-top:16px}
.receipt-section .result-counts span{background:transparent;padding:0;color:var(--muted)}
.receipt-section .result-counts{gap:4px 12px}

@media(max-width:1100px){
  .detail-layout{grid-template-columns:minmax(0,1fr)}
  .detail-aside{position:static}
}
@media(max-width:700px){
  #content{padding:20px 16px 28px}
  .page-heading{gap:12px;align-items:stretch}
  .page-heading h1{font-size:20px;line-height:28px}
  .page-heading>.actions{max-width:100%;justify-content:flex-start}
  .page-heading>.actions>a{min-height:44px}
  button{min-height:44px}
  :is(input:not([type=checkbox]),select,textarea){font-size:16px;min-height:44px}
  .sidebar nav a{min-height:44px}
  .topbar{gap:8px}
  .topbar button{min-height:36px}
  .card{padding:16px}
  .toolbar{gap:12px}
  .toolbar .field{min-width:0;flex:1 1 130px}
  .toolbar .actions{flex-basis:100%}
  .toolbar .actions>button{flex:1}
  .detail-form .form-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .detail-form .job-pay-headcount{gap:12px}
  .detail-form .sticky-actions{bottom:env(safe-area-inset-bottom,0px);padding:8px 12px;margin:0 -8px;border-radius:8px 8px 0 0}
  .detail-aside .card{padding:16px}
  .compact-meta{gap:4px 12px}
  .compact-meta a{display:inline-flex;align-items:center;min-height:36px}
  .category-dialog,.confirm-dialog{padding:20px;max-height:90dvh}
  .category-dialog-actions .actions{margin-left:0}
  .category-choice,.category-edit,.category-location button,.tag-choice{min-height:44px}
  .chip button{min-width:32px;min-height:32px}
  .queue-heading>a{min-height:44px;display:inline-flex;align-items:center}
  .summary-links{flex-direction:row;gap:4px 20px}
  .summary-links a,.activity-catalog-links a{min-height:44px;display:inline-flex;align-items:center}
  .admin-page .table-wrap{overflow:visible}
  .admin-page table{display:block;width:100%;min-width:0}
  .admin-page thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .admin-page tbody{display:block}
  .admin-page tbody tr{display:grid;gap:10px;padding:16px 0;border-bottom:1px solid var(--border)}
  .admin-page tbody tr:last-child{border-bottom:0}
  .admin-page .table-wrap td{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:start;gap:8px;border:0;padding:0;width:auto;min-width:0;max-width:none;font-size:13px;line-height:22px}
  .admin-page td[data-label]::before{content:attr(data-label);font-size:12px;color:var(--muted);grid-column:1;grid-row:1}
  .admin-page .table-cell-value{min-width:0;grid-column:2}
  .admin-page .table-wrap td:first-child{display:block;font-size:14px;font-weight:500}
  .admin-page .table-wrap td:first-child::before{display:none}
  .admin-page .table-wrap td small{font-weight:400}
  .admin-page .table-wrap td.empty{display:block;font-weight:400;padding:16px 0}
  .admin-page td:last-child .actions{gap:4px 12px}
  .admin-page td:last-child :is(a,button){display:inline-flex;align-items:center;min-height:44px;white-space:normal}
  .admin-page td:last-child .actions a:first-child{font-weight:500}
  .admin-page .table-wrap .badge{justify-self:start}
  .institution-assist button{min-height:44px;padding:8px 0}
  .pager{padding-top:12px;font-size:12px;gap:12px}
  .pager>.actions{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){button[aria-busy=true]::before{animation:none}}
