:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#26332f;background:#f5f7f6;font-size:16px;--green:#217557;--line:#e2e8e4;--muted:#697a71;--purple:#7960bd}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #735fbb}button{color:inherit}button[hidden],[hidden]{display:none!important}.brand-mark{font-size:37px;letter-spacing:-3px;font-weight:800}.brand-mark span{color:#98ce76}.workspace{margin-left:222px}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;padding:0 36px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.top-actions{display:flex;gap:26px;align-items:center}.profile-button{border:0;background:none;display:flex;align-items:center;gap:10px;font-size:14px}.avatar{background:#eee9f7;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-weight:600;color:#6e559e}main{padding:33px 36px 28px;max-width:1800px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{color:var(--green);font-size:11px;letter-spacing:.13em;font-weight:700;margin:0 0 9px}h1{font-size:32px;letter-spacing:-.8px;margin:0 0 10px;font-weight:650}h2{font-size:23px;line-height:1.3;font-weight:650;letter-spacing:-.3px;margin:0}h3{font-size:16px;font-weight:650;margin:24px 0 13px}.page-heading p:not(.eyebrow){color:var(--muted);font-size:14px;margin:0}.heading-actions{display:flex;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d8e1da;background:white;border-radius:7px;min-height:38px;padding:9px 15px;font-size:14px;font-weight:550;white-space:nowrap}.button:hover{background:#f1f5f2}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#185b43}.button.subtle{background:transparent}.text-button{background:none;border:none;color:var(--green);font-size:14px;padding:6px 0}.source-line{display:flex;align-items:center;gap:14px;font-size:12px;color:#7b8981;margin:17px 0 25px}.source-line button{font-size:12px;text-decoration:underline;text-underline-offset:3px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:28px}.work-area{border:1px solid var(--line);background:#fff;border-radius:11px;overflow:hidden}.filters{display:flex;align-items:center;gap:10px;padding:19px 20px;flex-wrap:wrap}.search{flex:1;min-width:230px;position:relative}.search svg{position:absolute;width:18px;top:11px;left:12px;stroke:#8a988f;stroke-width:1.7;fill:none}.search input{padding-left:39px;width:100%;background:#f8faf8}input,select,textarea{border:1px solid #dce4dd;border-radius:6px;background:#fff;color:#2e3b33;font-size:14px;padding:9px 11px;min-height:39px}input::placeholder,textarea::placeholder{color:#919b95}select{appearance:none;padding-right:31px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23627368' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat}select[multiple]{background:none}input[type=checkbox]{min-height:0;width:16px;height:16px;padding:0;accent-color:var(--green);cursor:pointer}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}thead{background:#f7f9f7}th{font-size:12px;color:#7b877f;font-weight:550;text-align:left;white-space:nowrap;padding:12px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:17px 14px;border-bottom:1px solid #edf0ed;vertical-align:middle;line-height:1.45}th:first-child,td:first-child{padding-left:21px;width:40px}tbody tr{transition:background .1s}tbody tr:hover{background:#f8fbf8}.match-button{border:0;background:transparent;text-align:left;padding:0;color:#233c2b;font-size:14px;font-weight:600;line-height:1.45;display:block;min-width:230px;max-width:340px}.match-button:hover{color:var(--green)}.match-meta{font-size:12px;color:#8b958e;display:flex;gap:12px;margin-top:5px}.date{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}.legend-box.done{background:#e5f2e8;color:#33784a}.legend-box.corrected{background:#e3f2f7;color:#30738d}.legend-box.unknown{background:#f1f3f1;color:#8c978f}.pipeline{display:flex;gap:4px}.pipeline span{border:1px solid #e7ece7;background:#f7f9f7;border-radius:4px;min-width:27px;height:26px;display:grid;place-items:center;font-size:10px;color:#a2ada4}.pipeline span.done{background:#e5f2e8;border-color:#cce0d0;color:#3f8052}.pipeline span.blocked{background:#fae7e3;color:#a14a3d}.pipeline span.in_progress{background:#fbf2d8;color:#8c6d21}.tags-cell{min-width:100px}.tag{font-size:12px;display:inline-block;max-width:180px;overflow-wrap:anywhere;border-radius:5px;padding:4px 8px;margin:2px 3px 2px 0;font-weight:550;border:1px solid transparent}.add-tag{font-size:12px;border:1px dashed #d6ded8;background:transparent;border-radius:5px;color:#95a197;padding:4px 7px}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;font-size:13px;color:#829084}.table-footer>div{display:flex;align-items:center;gap:18px}.bottom-note{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:12px;color:#819085;padding:18px 0}.bottom-note>span{display:flex;align-items:center;gap:6px}.legend-box{width:10px;height:10px;border-radius:2px;border:1px solid #dfe7df}.bottom-right{margin-left:auto}.bulk-bar{padding:12px 20px;display:flex;align-items:center;gap:12px;background:#f1ebfa;font-size:14px}.bulk-bar select{max-width:240px}.bulk-bar strong{margin-right:8px;font-size:13px}.empty-state{text-align:center;padding:65px;color:#6d7d70}.empty-state p{font-size:14px}dialog{border:0;border-radius:12px;box-shadow:0 20px 100px #15362935;padding:0;color:#26332f}dialog::backdrop{background:#0e25194d;backdrop-filter:blur(2px)}.record-dialog{position:fixed;margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:690px;max-width:100%;border-radius:12px 0 0 12px;inset:0 0 0 auto}.record-dialog>form{height:100%;display:flex;flex-direction:column}.drawer-header{padding:28px 28px 23px;display:flex;align-items:start;justify-content:space-between;gap:20px}.drawer-header h2{font-size:25px}.icon-button{background:none;border:0;font-size:28px;color:#8a968d;line-height:1;width:32px;height:32px}.drawer-tabs{padding:0 28px;display:flex;gap:23px;border-bottom:1px solid var(--line)}.drawer-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:13px 0;font-size:14px;color:var(--muted)}.drawer-tabs button.active{border-color:var(--green);color:var(--green);font-weight:600}.drawer-body{overflow-y:auto;flex:1;padding:0 28px 25px}.drawer-footer{padding:18px 24px;border-top:1px solid var(--line);background:#fff;display:flex;gap:10px;align-items:center;justify-content:space-between}.drawer-footer>span{font-size:13px;color:var(--muted);line-height:1.4}.stage-editor{padding:16px 0;border-bottom:1px solid #e9eee9}.stage-editor-top{display:grid;grid-template-columns:1fr 160px 112px;align-items:center;gap:9px}.stage-editor-top>label{font-size:14px;font-weight:600}.stage-note{margin-top:9px;width:100%;font-size:13px;background:#fafbf9}.muted{color:var(--muted);font-size:14px;line-height:1.6}.annotation-comment{width:100%;height:100px;resize:vertical;line-height:1.6}.tag-options{display:flex;flex-wrap:wrap;gap:8px}.tag-choice{border:1px solid var(--line);padding:8px 10px;border-radius:6px;display:flex;gap:7px;align-items:center;font-size:13px}.source-block{margin-top:18px;border:1px solid var(--line);border-radius:7px;padding:12px;font-size:13px}.source-block summary{cursor:pointer}.source-block table{margin-top:10px;font-size:12px;table-layout:fixed}.source-block td{padding:9px;overflow-wrap:anywhere;white-space:normal}.source-block td:first-child{width:40px}.history-item{border-left:2px solid #cae0cc;padding-left:16px;margin:21px 0;font-size:13px;line-height:1.6}.history-item time{color:#8c978e;display:block;font-size:12px}.history-item ul{padding-left:18px;margin-bottom:0}.standard-dialog{width:520px;max-width:calc(100% - 32px);padding:28px;max-height:90dvh;overflow:auto}.standard-dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:15px}.standard-dialog form>label{display:block;font-size:14px;margin:16px 0}.standard-dialog form>label input,.standard-dialog form>label select{display:block;width:100%;margin-top:7px}.tag-form{display:flex;gap:8px;margin:20px 0}.tag-form input:first-child{min-width:0;flex:1}.tag-form input[type=color]{width:44px;padding:4px}.tag-manager-row{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding:12px 0}.tag-manager-row .tag{flex:1}.tag-manager-row input[type=text]{min-width:0;flex:1}.tag-manager-row input[type=color]{width:40px;padding:3px}.tag-manager-row small{color:var(--muted);font-size:12px}.full-width{width:100%}.error{color:#b24534!important;font-size:14px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#193f2e;color:#fff;box-shadow:0 8px 35px #13352525;padding:14px 22px;border-radius:8px;z-index:30;font-size:14px}.sr-only{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.member{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;display:flex;justify-content:space-between}.member small{color:var(--muted)}.readonly-note{padding:12px;background:#f4f6f2;border-radius:7px;font-size:13px;margin:16px 0;color:var(--muted)}
@media(min-width:1500px){td{padding-top:19px;padding-bottom:19px}.match-button{max-width:420px}}@media(max-width:1150px){.workspace{margin-left:185px}main{padding:26px 24px}.topbar{padding:0 24px}.top-actions{gap:10px}.metrics{gap:10px}.heading-actions{flex-wrap:wrap}.bottom-right{margin-left:0}.bottom-note{gap:12px}}@media(max-width:800px){.brand-mark{font-size:29px}.workspace{margin-left:0}.topbar{height:62px;padding:0 18px}main{padding:22px 16px}.page-heading{align-items:start}h1{font-size:27px}.heading-actions{flex-direction:column}.heading-actions button{font-size:12px;padding:7px 10px;min-height:32px}.metrics{grid-template-columns:1fr 1fr}.filters{padding:15px;gap:8px}.search{flex-basis:100%}.filters select{font-size:13px;max-width:160px}.source-line{align-items:start;flex-wrap:wrap;gap:5px}.bulk-bar{flex-wrap:wrap}.drawer-header{padding:20px}.drawer-tabs{gap:15px;padding:0 20px}.drawer-tabs button{font-size:13px}.drawer-body{padding:0 20px 20px}.stage-editor-top{grid-template-columns:1fr 105px}.stage-editor-top>label{grid-column:1/-1}.drawer-footer{padding:15px;flex-wrap:wrap}.drawer-footer>span{flex-basis:100%}.bottom-note{font-size:11px}.standard-dialog{padding:22px}.top-actions .profile-button{font-size:12px}.avatar{width:27px;height:27px}}
.data-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.data-fields label{font-size:13px;color:var(--muted)}.data-fields label:first-child{grid-column:1/-1}.data-fields input{display:block;width:100%;margin-top:6px}.data-fields input:disabled{background:#f6f8f5;color:#66766b}button,input,select{touch-action:manipulation}@media(max-width:500px){.data-fields{grid-template-columns:1fr}.page-heading{flex-wrap:wrap}.heading-actions{flex-direction:row}.table-footer{gap:10px;flex-wrap:wrap}}
.match-button{min-width:200px}.tags-cell{min-width:150px}.tags-cell .tag{line-height:1.5}.pipeline span.source_mark{background:#f0ecf7;color:#7a6b92}.pipeline span.corrected{background:#e3f2f7;color:#30738d}@media(min-width:801px) and (max-width:1400px){table[data-group=ds] th:nth-child(6),table[data-group=ds] td:nth-child(6){display:none}td,th{padding-left:11px;padding-right:11px}.tags-cell{min-width:140px}.match-button{min-width:180px}}

.launch-notice{max-width:660px;margin:12vh auto;padding:36px;background:#fff;border:1px solid var(--line);border-radius:14px}.launch-notice h1{font-size:29px}.launch-notice p{line-height:1.65;color:var(--muted)}.launch-notice .button{text-decoration:none;margin:8px 0 14px}@media(max-width:700px){.launch-notice{margin:30px 16px;padding:25px}}
/* Search and tags are the primary navigation. */
.unified-workspace{margin-left:0}
.unified-topbar{height:64px;padding:0 28px;gap:20px}
.unified-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#233c2b;white-space:nowrap;font-size:14px}
.unified-brand .brand-mark{font-size:32px}.header-label{border-left:1px solid var(--line);padding-left:18px;color:var(--muted)}
.unified-topbar .top-actions{gap:18px}
.unified-workspace main{padding:24px 28px;max-width:1800px;margin:0 auto}
.unified-workspace h1{font-size:28px;letter-spacing:-.7px;margin:0 0 8px;display:flex;align-items:center;gap:12px}
#total-matches{font-size:16px;letter-spacing:0;color:#526a5b;background:#e9efeb;border:1px solid #dce5de;border-radius:7px;padding:3px 9px}
.page-heading{margin-bottom:22px}.page-heading p{line-height:1.5}.heading-actions{display:flex;gap:9px;flex-wrap:wrap}
.finder{background:#fff;border:1px solid #dbe4dd;border-radius:12px;padding:18px 20px;margin-bottom:18px;box-shadow:0 3px 12px #153c3004}
.omnibox-wrap{position:relative;z-index:12}.omnibox{display:flex;align-items:center;gap:11px;background:#f8faf9;border:1.5px solid #b9ccc0;border-radius:9px;padding:0 14px;min-height:52px;transition:border-color .1s,box-shadow .1s}
.omnibox:focus-within{border-color:#217557;box-shadow:0 0 0 3px #21755715;background:white}
.omnibox svg{width:21px;height:21px;flex:none;fill:none;stroke:#416753;stroke-width:1.7}
.omnibox input{border:0!important;background:transparent;box-shadow:none!important;outline:none;font-size:16px;min-width:0;width:100%;padding:13px 0;line-height:24px}
.omnibox input::-webkit-search-cancel-button{display:none}.omnibox kbd{border:1px solid #d9e2dc;color:#819087;padding:4px 6px;border-radius:4px;white-space:nowrap;font:12px inherit}.omnibox .icon-button{padding:3px 7px;font-size:24px;flex:none}
.search-dropdown{position:absolute;left:0;right:0;top:calc(100% + 6px);border:1px solid #cbdace;border-radius:10px;background:white;box-shadow:0 14px 44px #173b302b;overflow:hidden}
#search-suggestions{max-height:min(460px,56vh);overflow-y:auto;overscroll-behavior:contain}.suggestion-heading{font-size:12px;font-weight:650;color:#7b8a81;letter-spacing:.35px;text-transform:uppercase;padding:12px 16px 6px;display:flex;gap:9px}.suggestion{display:flex;gap:12px;align-items:center;padding:9px 16px;cursor:pointer;border-left:3px solid transparent}.suggestion:hover,.suggestion.focused{background:#edf5f0;border-left-color:#217557}.suggestion>div{min-width:0;flex:1}.suggestion strong{font-weight:550;font-size:14px;line-height:1.5;display:block}.suggestion small{display:block;font-size:12px;color:#77847c;overflow-wrap:anywhere;line-height:1.5}.suggestion-icon{color:#64806d;background:#eef4ef;border-radius:6px;width:29px;height:29px;display:grid;place-items:center;flex:none;font-size:18px}.suggestion-count{font-size:13px;color:#63776a;font-variant-numeric:tabular-nums}.suggestion-open{font-size:12px;color:#859187}.search-dropdown footer{padding:9px 16px;background:#f7f9f7;color:#7d8981;border-top:1px solid #e9eee9;font-size:12px}.suggestion-empty{padding:20px;font-size:14px;color:var(--muted)}#tag-picker-note{font-size:12px;color:#78877b}
.tag-catalog{max-height:320px;overflow-y:auto;padding:0 15px 12px;overscroll-behavior:contain}
.filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 0 0;margin-top:12px;border-top:1px solid #e5ede7}#active-filters{display:flex;gap:6px;flex-wrap:wrap}.active-filter{background:#e5efe9;border:1px solid #c5dace;border-radius:6px;padding:6px 9px;color:#225d3c;font-size:14px;text-align:left;display:flex;align-items:center;gap:10px}.active-filter span{color:#578769;font-size:16px}.query-meaning{font-size:13px;line-height:1.55;color:#647a6b;margin-top:10px}
.unified-workspace .work-area{overflow:visible;border-radius:10px}.results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line)}
.unified-workspace .metrics{display:flex;flex-wrap:wrap;gap:20px;margin:0;font-size:13px;color:#7b887e}.metrics strong{color:#2f4c39;font-size:15px;font-variant-numeric:tabular-nums;margin-right:4px}.metrics>span:first-child{color:#394e41}
.column-menu{position:relative;flex:none}.column-menu summary{list-style:none;font-size:13px;padding:7px 10px;cursor:pointer;white-space:nowrap}.column-menu summary::-webkit-details-marker{display:none}.column-menu>div{position:absolute;right:0;top:calc(100% + 7px);z-index:8;background:white;box-shadow:0 8px 30px #132b2220;border:1px solid var(--line);border-radius:8px;min-width:230px;padding:10px}.column-menu label{display:flex;align-items:center;gap:9px;padding:8px;font-size:14px}
.unified-workspace table{width:100%;min-width:840px;border-collapse:separate;border-spacing:0}.unified-workspace th{position:sticky;top:0;z-index:2;background:#f6f9f7;border-bottom:1px solid #dce5df;color:#65796a;font-size:12px}.unified-workspace td{font-size:14px;padding-top:13px;padding-bottom:13px}.unified-workspace th:first-child,.unified-workspace td:first-child{width:38px}.match-button{min-width:210px;max-width:330px;font-size:14px;line-height:1.45}.match-meta{display:flex;gap:12px;font-size:12px;color:#819087;margin-top:5px}.match-meta span{white-space:nowrap}.date{font-size:14px;white-space:nowrap}.tags-cell{min-width:170px;max-width:240px}.tag{font-size:13px}.auto-tag{background:#f1f5f2;border:1px solid #dce5de;color:#58715f;font-size:12px;line-height:1.5;border-radius:5px;padding:3px 6px}.row-tag{background:transparent;border:0;padding:0}.row-tag .tag{margin:0}.add-tag{font-size:13px}.selected-row{background:#eff7f1}.empty-state{padding:40px 20px}.empty-state p{font-size:14px;line-height:1.6}.empty-state .button{font-size:14px;margin-top:6px}
.bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bulk-bar input{max-width:220px;background:#fff}.bulk-bar .text-button{font-size:13px}.table-footer{font-size:13px}.table-footer>div{gap:14px}.table-footer .button{font-size:13px}.source-line{display:flex;gap:12px;align-items:center;font-size:12px;color:#89988d;margin:15px 0 8px}.source-line .text-button{font-size:12px}.bottom-note{margin-top:8px;font-size:12px;line-height:1.6}
#record-tags-section{scroll-margin-top:15px;border-top:1px solid var(--line);padding-top:5px}#record-tag-search,#manager-tag-search{width:100%;background:#fff;margin:0 0 12px;font-size:14px}.tag-choice{font-size:14px;cursor:pointer}.tag-choice.chosen{background:#f0f6f2;border-color:#9dbba7}.auto-tags-details{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.auto-tags-details summary{cursor:pointer;font-size:14px;font-weight:550}.record-auto-group{margin:12px 0;display:flex;gap:6px;flex-wrap:wrap}.record-auto-group strong{width:100%;font-size:12px;color:#7d8e82;margin-bottom:3px}.record-auto-group .tag{margin:0}.tag-manager-row{flex-wrap:wrap}.tag-manager-row input[type=text]{min-width:150px;flex:1}.tag-manager-row input[type=color]{width:40px;padding:3px}.tag-manager-row .text-button{font-size:13px}.drawer-header h2{line-height:1.4}.drawer-body h3{font-size:16px}.stage-editor-top>label{line-height:1.45}.muted{line-height:1.6}
@media(min-width:1500px){.unified-workspace td{padding-top:15px;padding-bottom:15px}}
@media(max-width:1150px){.header-label{display:none}.unified-topbar .top-actions{gap:12px}.unified-workspace main{padding:22px}}
@media(max-width:800px){.unified-workspace .topbar{height:auto;min-height:58px;padding:12px 16px;gap:12px;flex-wrap:wrap}.unified-brand{font-size:13px;gap:9px}.unified-brand .brand-mark{font-size:27px}.unified-topbar .top-actions{margin-left:auto;gap:12px}.unified-topbar .text-button{font-size:13px}.unified-workspace main{padding:20px 14px}.unified-workspace h1{font-size:24px}.page-heading{gap:14px;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}.page-heading p{font-size:13px!important}.heading-actions .button{font-size:13px;padding:8px 10px}.finder{padding:14px 12px;border-radius:9px}.omnibox{padding:0 10px;gap:8px;min-height:48px}.omnibox kbd{display:none}.omnibox input{font-size:15px;padding:11px 0}.filter-summary{padding-top:11px;gap:10px}.active-filter{font-size:13px}#tag-picker-note{display:block;margin-top:5px}.tag-catalog{padding:0 10px 10px;max-height:280px}.results-toolbar{padding:11px 12px;gap:7px}.unified-workspace .metrics{gap:8px 14px;font-size:12px}.metrics strong{font-size:14px}.table-footer{padding:12px;flex-wrap:wrap;gap:12px}.table-footer>div{gap:9px}.table-footer .button{padding:6px 9px}.source-line{flex-wrap:wrap;gap:5px 12px}.bottom-note{gap:8px 14px}.bottom-right{display:none}.suggestion{padding:9px 10px;gap:9px}.suggestion-open{display:none}.drawer-body{padding-left:18px;padding-right:18px}.drawer-header{padding:22px 18px 16px}.drawer-tabs{padding:0 18px;gap:17px}.drawer-footer{padding:15px 18px;flex-wrap:wrap}.stage-editor-top{grid-template-columns:1fr 1fr}.stage-editor-top>label{grid-column:1/-1}.data-fields label{font-size:14px}}
@media(max-width:480px){.unified-topbar .unified-brand strong{display:none}.unified-topbar .top-actions{gap:8px}.profile-button{font-size:12px}.unified-workspace h1{font-size:22px}.heading-actions{width:100%}.unified-workspace .metrics>span:nth-child(n+2){display:none}.search-dropdown{left:-5px;right:-5px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.page-heading h1{margin-bottom:0}.heading-actions{flex-direction:row}.results-toolbar{padding-top:10px;padding-bottom:10px}
@media(max-width:800px){.heading-actions{flex-direction:row}.page-heading{align-items:center}.page-heading .heading-actions{margin-left:auto}.finder{margin-bottom:14px}.unified-workspace main{padding-top:18px}}
/* A match is always shown as two explicit annotation halves. */
.finder{padding:12px 14px;margin-bottom:14px}.filter-summary{margin-top:8px;padding-top:10px}.query-meaning{margin-top:7px}.unified-workspace .results-toolbar{padding:11px 15px}.ready-total strong{color:#217548}
.unified-workspace .halves-table{min-width:0;table-layout:fixed;width:100%}.halves-table .select-heading{width:36px}.halves-table .match-heading{width:32%}.halves-table .select-cell{vertical-align:top;padding-top:22px}.halves-table .match-cell{vertical-align:top;padding-top:18px}.halves-table .match-button{min-width:0;max-width:100%;font-size:15px;line-height:1.45}.halves-table .match-meta{display:flex;flex-wrap:wrap;gap:5px 11px;line-height:1.5;margin-top:7px}.halves-table .match-date{font-size:14px;color:#546b5c}.match-custom-tags{margin-top:8px}.half-panel{border:1px solid #dfe6e2;border-radius:8px;background:#fbfcfb;padding:12px;min-width:0}.half-panel.done{background:#edf8ef;border-color:#b3d7bb}.half-panel.partial{background:#fffaf0;border-color:#e7d6ab}.half-panel.needs_revision,.half-panel.blocked{background:#fff4f0;border-color:#e7c3b8}.half-panel.in_progress{background:#f1f6fc;border-color:#c3d4e8}.half-panel.source_mark{background:#f7f4fc;border-color:#d7cbea}
.half-panel>header{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:11px;flex-wrap:wrap}.half-panel>header>strong{font-size:14px;font-weight:650;color:#36513f}.half-summary{font-size:13px;line-height:1.45;color:#879187;font-weight:550}.half-summary.done{color:#176835;font-weight:700}.half-summary.partial{color:#956314}.half-summary.needs_revision,.half-summary.blocked{color:#a14a3d}.half-summary.in_progress{color:#35658e}.half-summary.source_mark{color:#7e629d}
.half-stage-list{display:grid;gap:7px}.half-stage{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:14px;line-height:1.45}.half-stage>span{color:#647367}.stage-state{font-weight:500;text-align:right;overflow-wrap:anywhere;min-width:0}.stage-state.done{color:#1c743c;font-weight:600}.stage-state.corrected{color:#13758b;font-weight:600}.stage-state.unknown{color:#8b958e;font-weight:400}.stage-state.in_progress{color:#35658e}.stage-state.needs_revision,.stage-state.blocked{color:#a34839}.stage-state.source_mark{color:#7e629d}
.half-annotation-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.half-annotation-grid>section{border:1px solid #d9e5dd;border-radius:9px;background:#f9fcfa;padding:14px;min-width:0}.half-annotation-grid h3{margin:0 0 13px;font-size:18px;color:#305a3d}.half-annotation-field{margin:13px 0 17px}.half-annotation-field>label{display:block;font-size:14px;font-weight:550;margin-bottom:7px}.half-annotation-field select{display:block;width:100%;font-size:14px;background-color:#fff}.half-annotation-field input{display:block;width:100%;margin-top:7px;font-size:12px;padding:7px 9px;background:#fff}.column-menu>div>p{margin:4px 8px 10px;font-size:12px}.half-annotation-field select:disabled{opacity:.8;color:#425747}
@media(max-width:950px){
  .unified-workspace .halves-table{display:block;table-layout:auto;min-width:0}.halves-table thead,.halves-table tbody{display:block;width:100%}.halves-table thead tr{display:flex;align-items:center;background:#f5f8f6;border-bottom:1px solid var(--line);padding:0 12px}.unified-workspace .halves-table th{border:0;position:static;background:transparent}.halves-table .select-heading{width:32px;padding:10px 0}.halves-table .match-heading{flex:1;width:auto;text-align:left;padding:10px 0;font-size:13px}.halves-table tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;border-bottom:1px solid #dae4dd;padding:0 10px 11px;background:#fff}.halves-table tbody>tr.selected-row{background:#eff7f1}.unified-workspace .halves-table td{border-bottom:0}.halves-table .select-cell{position:absolute;left:16px;top:15px;padding:0!important;width:auto!important}.unified-workspace .halves-table .match-cell{grid-column:1/-1;padding:13px 6px 11px 39px}.halves-table .match-meta{margin-top:4px;gap:4px 10px}.halves-table .match-button{font-size:15px}.half-panel{padding:11px 10px}.half-panel>header{gap:3px;margin-bottom:10px}.half-panel>header>strong{font-size:14px}.half-summary{font-size:13px}.half-stage{font-size:14px;gap:5px}}
@media(max-width:650px){.unified-workspace main{padding-top:14px}.page-heading{margin-bottom:12px}.finder{padding:10px 11px}.half-panel>header{display:block}.half-panel>header>strong{display:block;margin-bottom:4px}.half-summary{display:block}.half-stage{display:block}.half-stage>span{display:inline-block;font-size:13px}.half-stage .stage-state{display:block;font-size:14px;line-height:1.45;text-align:left}.half-stage-list{gap:8px}.unified-workspace .metrics{gap:12px}.unified-workspace .metrics>span:nth-child(n+2){display:inline}.half-annotation-grid{gap:10px}.half-annotation-grid>section{padding:10px}.half-annotation-grid h3{font-size:16px}.half-annotation-field select{padding-left:7px;padding-right:22px;background-position:right 6px center}.half-annotation-field input{font-size:12px}.halves-table .match-date{font-size:13px}}
@media(min-width:461px) and (max-width:650px){.half-stage{display:flex}.half-stage>span{font-size:14px}.half-stage .stage-state{display:inline;text-align:right}.half-stage-list{gap:7px}}
@media(max-width:650px){.half-stage:first-child{padding-bottom:8px;border-bottom:1px solid #dfe8e1}}.half-stage:first-child{padding-bottom:8px;border-bottom:1px solid #dfe8e1}

/* The list can be collapsed globally, with per-match detail overrides. */
.results-toolbar{flex-wrap:wrap;gap:10px}.results-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.results-actions>.button{white-space:nowrap}
.match-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.match-title-line .match-button{flex:1}.row-details-toggle{border:0;background:transparent;padding:2px 0;font-size:14px;line-height:1.45;color:#597164;white-space:nowrap;flex-shrink:0}.row-details-toggle:hover{color:#1c6946;text-decoration:underline}.row-details-toggle:focus-visible{outline:2px solid #2b7552;outline-offset:4px;border-radius:2px}
.halves-table .is-compact .half-stage-list{display:none}
.halves-table .is-compact .half-panel{padding:9px 10px}.halves-table .is-compact .half-panel>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin:0}.halves-table .is-compact .half-panel>header>strong{margin:0}.halves-table .is-compact .half-summary{font-size:14px}.halves-table .is-compact .match-cell{padding-top:11px;padding-bottom:11px}.halves-table .is-compact .select-cell{padding-top:15px}
@media(max-width:950px){.halves-table tbody>tr.is-compact{padding-bottom:10px}.unified-workspace .halves-table .is-compact .match-cell{padding-top:11px;padding-bottom:9px}.is-compact .half-panel{min-height:40px}}
@media(max-width:650px){.results-actions{width:100%;justify-content:flex-end}.results-actions>.button{font-size:14px;padding:7px 10px}.results-actions .column-menu>summary{font-size:14px;padding:7px 10px}.match-title-line{gap:8px}.row-details-toggle{font-size:14px}}

/* Page scrolling also covers the match list. */
.unified-workspace .table-scroll{height:auto;max-height:none;overflow:visible}
.create-actions,.bulk-input-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}
.bulk-record-dialog{width:min(960px,calc(100vw - 32px));max-height:90vh;overflow:auto}
#bulk-record-source{width:100%;resize:vertical;min-height:170px;padding:12px;border:1px solid #d8e1da;border-radius:8px;line-height:1.6}
.bulk-file-label{flex:1;min-width:220px;margin:0!important}.bulk-file-label input{width:100%;font-size:14px}
.bulk-preview-wrap{overflow-x:auto}.bulk-preview-table{width:100%;border-collapse:collapse;font-size:14px}
.bulk-preview-table th,.bulk-preview-table td{padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid #e2e8e4;overflow-wrap:anywhere}
.bulk-preview-table th{position:static;white-space:nowrap}.bulk-preview-table tr.has-error{background:#fff4f0}.bulk-preview-table .row-error{color:#a34839}
.match-league{color:#486c5a}

.record-filters{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.filter-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.filter-section-heading h2{font-size:18px;letter-spacing:0;margin:0}.filter-section-heading h2 small{font-size:14px;color:var(--muted);font-weight:400}.filter-section-heading>div{display:flex;gap:18px;flex-wrap:wrap}
.attribute-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px}.attribute-grid label,.custom-tag-tools label{display:grid;gap:6px;font-size:14px;color:#52675c;font-weight:600;margin:0;min-width:0}.attribute-grid select,.attribute-grid input,.custom-tag-tools select,.custom-tag-tools input{min-width:0;width:100%;height:42px;font-size:15px;border:1px solid #d5e0d9;border-radius:7px;background-color:white;padding:8px 12px;color:#26332f}.attribute-grid select,.custom-tag-tools select{padding-right:30px}.attribute-grid select:disabled{background-color:#f4f6f4;color:#7a8b80}
.custom-tag-filters{margin-top:20px;padding:18px;border:1px solid #dce6df;border-radius:9px;background:#f7faf8}.custom-tag-tools{display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,260px) auto;align-items:end;gap:16px;margin-bottom:14px}.custom-tag-list{display:flex;flex-wrap:wrap;gap:9px}.custom-filter-tag{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;background:white;border:1px solid #d6e1da;border-radius:24px;color:#364d40;font-size:14px;cursor:pointer;max-width:100%}.custom-filter-tag.chosen{border-color:var(--tag-color);background:#eef6f0}.custom-filter-tag input{accent-color:var(--tag-color);width:17px;height:17px;margin:0;flex-shrink:0}.custom-filter-tag span{overflow-wrap:anywhere}.custom-filter-tag small{font-size:12px;color:#6d8173}.custom-tag-list .muted{margin:0;font-size:14px}.custom-tag-tools .text-button{min-height:42px}.unified-workspace .filter-summary{margin-top:16px}
@media(max-width:1100px){.attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-tag-tools{grid-template-columns:1fr 1fr}.custom-tag-tools>.text-button{justify-self:start}.filter-section-heading{align-items:flex-start}.custom-tag-filters{padding:14px}}
@media(max-width:500px){.attribute-grid,.custom-tag-tools{grid-template-columns:1fr}.filter-section-heading{flex-wrap:wrap}.filter-section-heading>div{gap:14px}.custom-tag-tools{gap:10px}}

.match-custom-tags{display:flex;flex-wrap:wrap;align-items:center;gap:7px 9px;margin-top:10px;min-width:0}.row-tags-label{font-size:13px;font-weight:600;color:#65796c}.row-tags-empty{font-size:13px;color:#7a8c80}.match-custom-tags .row-tag{max-width:100%;text-align:left;border-radius:5px}.match-custom-tags .tag{white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.match-custom-tags .add-tag{background:transparent;border:1px dashed #b9cebf;border-radius:6px;padding:4px 8px;margin:0;color:#32684d;font-size:13px;line-height:1.5}.match-custom-tags .add-tag:hover{background:#edf5ef;border-color:#6e9e81}.halves-table .is-compact .match-custom-tags{display:flex;margin-top:7px}

/* Keep selection actions outside the page flow so rows do not jump. */
.unified-workspace .bulk-bar{position:fixed;inset:auto 24px calc(18px + env(safe-area-inset-bottom,0px));z-index:20;width:calc(100% - 48px);max-width:1120px;margin-inline:auto;padding:14px 18px;border:1px solid #d6cce6;border-radius:12px;box-shadow:0 8px 32px #27362f29;background:#f1ebfa;gap:10px 12px}
.unified-workspace .bulk-bar strong{font-size:14px;margin-right:4px}
.unified-workspace .bulk-bar input{min-width:160px;flex:1 1 190px}
.unified-workspace .bulk-bar .button,.unified-workspace .bulk-bar .text-button{white-space:nowrap}
/* Constant space keeps the last row and pagination reachable even with the panel open. */
.unified-workspace main{padding-bottom:160px}
@media(max-width:640px){
  .unified-workspace .bulk-bar{inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .unified-workspace .bulk-bar strong,.unified-workspace .bulk-bar input{grid-column:1/-1}
  .unified-workspace .bulk-bar input{width:100%;max-width:none;min-width:0}
  .unified-workspace .bulk-bar .button{padding:9px 10px;min-height:40px}
  .unified-workspace .bulk-bar .text-button{padding:7px 4px}
  .unified-workspace main{padding-bottom:260px}
}

.processing-check{display:flex;align-items:flex-start;gap:10px;padding:10px 0;cursor:pointer;border-bottom:1px solid #e2eae5;min-width:0}
.processing-check:last-child{border-bottom:0}
.processing-check input[type=checkbox]{flex:none;width:20px;height:20px;margin:2px 0 0}
.processing-check>span{min-width:0}
.processing-check strong{display:block;font-size:15px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}
.processing-check-state{display:block;margin-top:3px;color:#7a8c80;font-size:13px;line-height:1.4}
.processing-check.is-done strong,.processing-check.is-done .processing-check-state{color:#217547}
.processing-check:has(input:disabled){cursor:default}
.match-processing{margin-top:12px;padding:12px;border:1px solid #dce6df;border-radius:9px;background:#f8fbf9}
.match-processing>header{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:10px;font-size:14px;color:#36513f}
.match-processing>header>span{font-size:12px;color:#718277}
.match-processing-list{display:grid;gap:7px}
.match-processing-stage{display:flex;justify-content:space-between;gap:10px;font-size:14px;line-height:1.45}
.match-processing-stage>span{color:#647367}
.match-processing-stage>.stage-state{flex-shrink:0}
.halves-table .is-compact .match-processing{display:none}
.match-processing-editor{padding:12px 16px;border:1px solid #dce6df;border-radius:10px;background:#f8fbf9}
.match-processing-editor>h3{margin:0 0 6px;color:#36513f}

/* Match workflow: three aligned panels for halves and all shared processing stages. */
.unified-workspace .workflow-table{display:block;table-layout:auto;min-width:0}
.workflow-table thead,.workflow-table tbody{display:block;width:100%}
.workflow-table thead tr{display:grid;grid-template-columns:32px minmax(0,1fr);padding:0 18px}
.unified-workspace .workflow-table th{width:auto;position:static;padding:12px 0;border:0}
.unified-workspace .workflow-table tbody>tr{display:grid;grid-template-columns:32px minmax(0,1fr);position:relative;padding:18px;border-bottom:1px solid #dae4dd}
.unified-workspace .workflow-table .select-cell{position:static;grid-column:1;grid-row:1;align-self:start;padding:4px 0!important;width:auto!important;border:0}
.unified-workspace .workflow-table .match-cell{grid-column:2;grid-row:1;padding:0;border:0;min-width:0}
.workflow-table .match-meta{margin-top:5px}
.match-workflow{margin-top:16px;display:grid;gap:12px}
.workflow-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.workflow-top>.half-panel,.workflow-top>.match-processing{margin:0;min-height:0;height:auto;padding:16px}
.workflow-top>.half-panel>header,.workflow-top>.match-processing>header{min-height:23px;margin-bottom:14px;align-items:baseline}
.workflow-top .half-stage-list,.workflow-top .match-processing-list{gap:10px}
.workflow-top .half-stage,.workflow-top .match-processing-stage{display:flex;align-items:baseline;gap:10px;font-size:14px;line-height:1.5}
.workflow-top .half-stage .stage-state{display:inline;text-align:right;font-size:14px}
.workflow-top .half-stage>span{font-size:14px}
.workflow-top .half-stage:first-child{padding-bottom:10px}
.match-extras{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px}
.match-metadata{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px 22px;margin:14px 0;padding:14px 16px;border:1px solid #dfe7e2;border-radius:8px;background:#f7faf8}
.match-metadata>div{min-width:0}.match-metadata dt{font-size:12px;font-weight:500;color:#6b7e72;line-height:1.5;margin-bottom:3px}
.match-metadata dd{font-size:14px;font-weight:500;line-height:1.5;color:#304e3d;margin:0;overflow-wrap:anywhere;user-select:text}
.match-metadata .metadata-id{font-variant-numeric:tabular-nums}.metadata-empty{color:#87958b;font-weight:400}
.workflow-table tr:not(.is-compact) .match-meta{display:none}
.workflow-table .is-compact .match-metadata{display:none}
.cv-level-badge{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid #d7e1f2;border-radius:6px;background:#f1f5fc;color:#486384;font-size:12px;line-height:1.5;white-space:nowrap}
.cv-level-badge.interpolated_data{background:#eaf7ef;border-color:#bddfc9;color:#267147}
.cv-level-badge.unknown,.cv-level-badge.none{background:#f4f6f5;border-color:#e0e6e2;color:#77847b}
.cv-level-editor small{font-size:12px;font-weight:400;color:#78877e;line-height:1.5;margin-top:5px}
.match-extra{min-width:0}.match-extra h3{font-size:14px;margin:0 0 7px;color:#647367}
.match-processing-editor+.match-processing-editor{margin-top:16px}
.stage-result{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px 7px;min-width:0;text-align:right}
.half-stage>.stage-result,.match-processing-stage>.stage-result{margin-left:auto;color:inherit;flex-shrink:0;max-width:45%}
.stage-result .stage-state{font-size:14px;line-height:1.5;white-space:normal}
.stage-version{display:inline-block;max-width:100%;padding:2px 6px;border-radius:5px;background:#e9eeeb;color:#496253;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.stage-version.is-empty{color:#849087;background:#edf1ee}
.stage-version.is-ready{background:#dff3e7;color:#19723f}
.stage-version.corrected{background:#e0f4f6;color:#087b8c}
.stage-editor-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(85px,105px);align-items:end;gap:10px}
.stage-editor-values>select:only-child{grid-column:1/-1}
.stage-version-field{display:flex!important;flex-direction:column;gap:5px;min-width:0;font-size:13px!important;font-weight:500!important;color:#65786b}
.stage-version-field label{margin:0;font:inherit;color:inherit}
.stage-version-field input,.stage-version-field select{width:100%;min-width:0;font-size:15px}
.processing-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #e2eae5}
.processing-editor-row:last-child{border:0}
.processing-editor-row .processing-check{border:0;padding:0}
.stage-editor>.stage-version-field{max-width:180px;margin:10px 0}
.match-processing-editor>p{font-size:13px;margin:0 0 6px}
.unified-workspace .workflow-table tbody>tr.is-compact{padding:12px 18px}
.unified-workspace .workflow-table .is-compact .match-cell{padding:0}
.workflow-table .is-compact .workflow-top{grid-template-columns:repeat(2,minmax(0,1fr))}
.workflow-table .is-compact .match-processing,.workflow-table .is-compact .match-extras{display:none}
.workflow-table .is-compact .half-panel{padding:9px 12px}
.workflow-table .is-compact .half-panel>header{min-height:0;margin:0}
@media(max-width:720px){
  .unified-workspace .workflow-table tbody>tr{padding:14px 10px;grid-template-columns:28px minmax(0,1fr)}
  .workflow-table thead tr{padding:0 10px;grid-template-columns:28px minmax(0,1fr)}
  .workflow-top{grid-template-columns:1fr}
  .workflow-top>.half-panel,.workflow-top>.match-processing{padding:14px}
  .workflow-top>.half-panel>header{display:flex}
  .workflow-table .is-compact .workflow-top{grid-template-columns:1fr 1fr}
}

.demo-label{margin:8px 0 0;color:#67766c;font-size:14px;font-weight:500}

.bulk-stage-dialog{width:min(560px,calc(100vw - 32px));max-height:90vh;overflow:auto}
.bulk-stage-dialog fieldset{border:0;padding:0;margin:0;display:grid;gap:14px;min-width:0}
.bulk-stage-dialog fieldset label{margin:0;display:grid;gap:7px}
.bulk-stage-dialog #bulk-stage-count{margin:6px 0 0}
.bulk-stage-preview{margin:18px 0;padding:14px;background:#edf6f0;border:1px solid #d5e6db;border-radius:8px;font-size:15px}
.bulk-stage-preview p{margin:6px 0 0;font-size:13px;color:#63786a}
.bulk-stage-selection{margin:14px 0;font-size:14px}
.bulk-stage-selection summary{cursor:pointer;color:#426950}
.bulk-stage-selection ul{padding-left:20px;margin:10px 0}
.bulk-stage-selection li{padding:5px 0}
.bulk-stage-selection li span{display:block;color:#708276;font-size:13px}
.bulk-stage-dialog #bulk-stage-reload{margin-bottom:12px}
@media(max-width:640px){.unified-workspace #bulk-stage-open{grid-column:1/-1}.unified-workspace main{padding-bottom:310px}}
.match-processing.done{background:#edf8ef;border-color:#b3d7bb}
/* Compact rows show the same stages as small version marks, without status text. */
.compact-workflow{display:none}
.workflow-table .is-compact .workflow-top{display:none}
.workflow-table .is-compact .compact-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.compact-stage-group{min-width:0;padding-right:10px;border-right:1px solid #e1e8e3}
.compact-stage-group:last-child{border-right:0;padding-right:0}
.compact-group-title{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;min-height:27px;font-size:13px;font-weight:650;line-height:1.4;color:#4f6b5b;margin-bottom:9px}
.half-title-priority{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.half-title-priority>strong{font-size:14px;font-weight:650;color:#36513f}
.half-priority{width:auto;max-width:150px;min-height:27px;padding:3px 23px 3px 7px;border:1px solid #dce4df;border-radius:5px;background-position:right 7px center;font-size:12px;font-weight:550;color:#617369;background-color:#f4f7f5;cursor:pointer}
.half-priority.high{color:#91621c;background-color:#fff4dc;border-color:#e8c788}
.half-priority.very_high{color:#aa3d36;background-color:#fceae7;border-color:#e9aaa3}
.half-priority:disabled{opacity:1;cursor:default}
.priority-editor{display:grid;gap:6px;font-size:13px;color:#64776b;margin:0 0 18px}
.priority-editor select{width:100%}
.bulk-priority-dialog{width:390px}
.bulk-priority-dialog form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.bulk-priority-dialog h2{font-size:21px}
.bulk-priority-dialog fieldset{display:grid;gap:14px;border:0;padding:0;margin:0}
.bulk-priority-dialog fieldset label{display:grid;gap:6px;font-size:14px}
.bulk-priority-dialog #bulk-priority-count{margin:6px 0 0}
.bulk-priority-dialog #bulk-priority-reload{margin-bottom:12px}
.compact-stage-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:370px}
.compact-stage-cell{display:flex;flex-direction:column;gap:5px;min-width:0}
.compact-stage-label{font-size:12px;font-weight:500;line-height:1.4;color:#6b7e72;text-align:center;white-space:nowrap}
.compact-stage{display:inline-block;max-width:100%;min-width:0;padding:6px 2px;border-radius:6px;background:#eef0f4;color:#8c96a5;font-size:14px;font-weight:650;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.compact-stage.done{background:#e4f6ed;color:#197551}
.compact-stage.corrected{background:#e0f4f6;color:#087b8c}
.compact-stage.needs_revision{background:#fbe9e3;color:#ad4c3b}
.stage-action-trigger{border:1px solid transparent;cursor:pointer;transition:border-color .12s,box-shadow .12s}
.stage-action-trigger:hover{border-color:#8caf9d;box-shadow:0 1px 5px #27463618}
.stage-action-trigger.expanded-stage{background:transparent;padding:3px 5px;margin:-3px -5px -3px auto;max-width:48%;min-width:0;border-radius:6px;flex-shrink:0;color:inherit}
.stage-actions-dialog{position:fixed;inset:auto;margin:0;width:max-content;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:4px;overflow:auto;border:1px solid #d8e5dd;border-radius:7px;box-shadow:0 4px 18px #183d3029}
.stage-actions-dialog::backdrop{background:transparent;backdrop-filter:none}
.stage-actions-dialog fieldset{border:0;padding:0;margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:2px}
.stage-action-item{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:4px;padding:0;background:transparent;font-size:20px;line-height:1}
.stage-action-item>span:first-child{color:#267253;font-weight:700;text-align:center}
.stage-action-item:not(:disabled):hover{background:#edf5f0}
.stage-actions-dialog:has(#stage-action-custom:not([hidden])),.stage-actions-dialog:has(.error:not(:empty)){width:240px}
.stage-actions-dialog .error{font-size:12px;line-height:1.5;margin:8px 0 0}.stage-actions-dialog .error:empty{display:none}
#stage-action-custom{display:grid;gap:8px;padding:8px;width:100%}#stage-action-custom label{display:grid;gap:5px;font-size:12px}#stage-action-custom input{width:100%;min-width:0;font-size:14px}
@media(max-width:640px){
  .workflow-table .is-compact .compact-workflow{grid-template-columns:1fr;gap:14px}
  .compact-stage-group{border:0;padding:0}
}
