/* Shared job and announcement review workspace; other admin pages keep their layout. */
.review-page{--review-tint:var(--subtle);--review-radius:10px}
.review-page .page-heading{margin-bottom:.65rem}
.review-page .page-heading h1{font-size:1.5rem;line-height:1.4}
.review-page .page-heading>.actions{align-items:center;padding-top:.2rem}
.review-queue{background:var(--surface);border:1px solid var(--border);border-radius:var(--review-radius);margin-top:1.5rem;min-width:0}
.review-status-tabs{display:flex;flex-wrap:wrap;gap:0 1.6rem;padding:0 1.35rem;border-bottom:1px solid var(--border)}
.review-status-tabs a{padding:1rem .15rem .85rem;color:var(--muted);font-size:.9rem;border-bottom:2px solid transparent;white-space:nowrap}
.review-status-tabs a[aria-current]{color:var(--blue);font-weight:600;border-bottom-color:var(--blue)}
.review-status-tabs a:hover{text-decoration:none;color:var(--blue)}
.review-queue .toolbar{padding:1.1rem 1.35rem;margin:0;background:var(--review-tint);gap:.85rem}
.review-queue .toolbar .field{flex:0 1 240px}
.review-queue .toolbar .actions{margin-left:auto;padding-bottom:1px}
.review-queue .source-filter{position:relative}
.source-filter>input{padding-right:30px}
.source-filter-arrow{position:absolute;right:12px;bottom:10px;color:var(--muted);pointer-events:none}
.source-filter-panel{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:280px;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:0 6px 20px #0002;padding:4px}
.source-filter-option{padding:10px 12px;min-height:40px;line-height:20px;border-radius:4px;cursor:pointer;overflow-wrap:anywhere}
.source-filter-option.is-active{background:var(--hover)}
.source-filter-option[aria-selected=true]{font-weight:600}
.source-filter-empty{margin:0;padding:12px;color:var(--muted);font-size:13px}
.review-queue th{background:#fff;font-size:.78rem;padding:.7rem 1.35rem;color:var(--muted)}
.review-queue td{padding:1.1rem 1.35rem;vertical-align:middle}
.review-queue td:first-child{width:34%;max-width:420px}
.review-queue td:nth-child(2){max-width:190px;color:var(--muted);font-size:.82rem}
.review-queue td:last-child a{display:inline-block;border:1px solid var(--border);border-radius:6px;padding:.4rem .65rem;font-size:.82rem;background:#fff}
.review-queue td:last-child a:hover{border-color:#a3a3a3;background:var(--hover);text-decoration:none}
.review-item-title{display:block;font-weight:600;line-height:1.6;color:#171717}
.review-queue td small{font-size:.78rem;line-height:1.6}
.review-queue .pager{border-top:1px solid var(--border);padding:1rem 1.35rem}
.review-issue-count{font-size:.8rem;font-weight:600;color:#90621c}
.review-issue-cell{min-width:130px;max-width:240px}
.review-issue-cell small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Detail theme: local adaptation of Geist's type, surface and control roles. */
body:has(.review-detail-page) #content{max-width:1120px;padding-bottom:40px}

.review-detail-page{--review-tint:#fafafa;--review-radius:8px;font-size:14px;line-height:1.5}
.review-detail-header{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:8px;min-width:0}
.review-detail-header>a{display:inline-flex;align-items:center;min-height:32px;color:var(--muted);font-size:13px;white-space:nowrap}
.review-detail-header h1{font-size:20px;line-height:28px;font-weight:600;margin:0;min-width:0;overflow-wrap:anywhere}
.review-detail-header>.actions{gap:8px;flex-wrap:nowrap}
.review-detail-page :is(.badge,.badge.blue){background:#f2f2f2;color:#525252;border:1px solid var(--border);font-size:12px;line-height:18px;padding:2px 8px}
.review-detail-page .badge.warning{background:#fffbeb;color:#946000;border-color:#f5dfa6}
.review-detail-page .badge.success{background:#edf9f0;color:#187537;border-color:#c9e8d1}
.review-detail-page .badge.danger{background:#fff1f1;color:#c00;border-color:#f2cdcd}
.review-detail-page>.flow-note{padding:12px 16px;font-size:13px;line-height:22px;margin-bottom:20px;background:#f2f2f2;border-color:#a3a3a3;color:#525252}
.review-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.review-workspace>div{min-width:0}

/* Sources remain one compact row; the optional archive expands in normal flow. */
.review-sources{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;min-width:0;font-size:13px}
.review-source-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;flex:1;min-width:0}
.review-source-name{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.review-source-link{display:inline-flex;align-items:center;gap:4px;min-height:32px;min-width:0;max-width:min(18rem,100%);font-weight:500;border-radius:4px}
.review-source-link>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.review-source-link>span[aria-hidden]{flex:none;color:var(--muted);font-size:12px}
.review-source-records{margin:0;padding:0;border:0;min-width:0}
.review-source-records[open]{flex-basis:100%}
.review-source-record-content{margin-top:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:20px;max-height:420px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
.review-source-record-content h3{font-size:13px;line-height:20px;margin:0 0 8px;font-weight:500}
.review-source-record-content p{margin:6px 0}
.review-proof{margin:0;padding:0;border:0}
.review-proof .readable{font-size:13px;line-height:22px}
.review-evidence-list{display:grid;gap:16px}
.review-evidence-item+.review-evidence-item{padding-top:16px;border-top:1px solid var(--border)}
.review-source-record-content>.review-archived-materials:not(:first-child){margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}

/* A single spacing rhythm across native and composite fields. */
.review-editor{background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:0}
.review-panel-heading{padding:20px 24px;border-bottom:1px solid var(--border)}
.review-panel-heading h2{font-size:16px;line-height:24px;margin:0;font-weight:600}
.review-editor>form{display:grid;gap:24px;padding:24px}
.review-editor>.review-snapshot{padding:24px}
.review-editor .review-form-group{display:grid;gap:20px;margin:0;min-width:0}
.review-editor .form-grid{gap:20px 24px}
.review-detail-page .field{margin:0;gap:8px}
.review-detail-page :is(.field>label,.field-label,legend,.experience-editor>label){color:#171717;font-size:14px;line-height:20px;font-weight:500}
.review-detail-page :is(input,select){min-height:40px}
.review-detail-page input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;accent-color:#171717}
.review-detail-page textarea{line-height:24px;min-height:80px}
.review-detail-page .job-pay-headcount textarea{min-height:72px}
.review-detail-page .hint{color:var(--muted);font-size:12px;line-height:20px}
.review-detail-page :is(input,select,textarea,summary,button,[tabindex]){scroll-margin-top:88px;scroll-margin-bottom:140px}
.review-detail-page .experience-editor{margin:0;display:grid;gap:8px}
.review-detail-page .experience-editor>label{margin:0}
.review-detail-page .experience-controls{gap:0;border:1px solid #d9d9d9;border-radius:6px;background:#fff;min-width:0;align-self:start}
.review-detail-page .experience-controls :is(input,select){border:0;border-radius:5px;min-height:38px;height:38px;background:transparent}
.review-detail-page .experience-controls>.experience-mode{flex-basis:104px;width:104px;max-width:100%;border-radius:5px 0 0 5px}
.review-detail-page .experience-controls:has(.experience-number:not([hidden]))>.experience-mode{border-right:1px solid var(--border)}
.review-detail-page .experience-controls:not(:has(.experience-number:not([hidden])))>.experience-mode{flex:1;width:100%}
.review-detail-page .experience-controls>.experience-number{max-width:none;margin:0;flex:1 1 0}
.review-detail-page .experience-number input{width:100%;min-width:0}
.review-detail-page .experience-unit{padding-right:12px}
.review-detail-page .experience-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.review-detail-page .experience-unit,.review-detail-page .experience-separator{color:var(--muted);font-size:13px}
.review-detail-page .institution-input-row{gap:8px}
.review-detail-page .institution-input-row>button{min-height:36px;padding:6px 8px;font-size:13px;line-height:20px;border:1px solid transparent;border-radius:6px;color:var(--muted)}
.review-detail-page .institution-input-row>button:hover{background:var(--hover);color:#171717}
.review-detail-page .institution-input-wrap input[data-unresolved=true]{border-color:#d6b46c;background:#fffdf5}
.review-detail-page .institution-match-state{color:#8f6400;right:12px;font-size:12px}
.review-detail-page .institution-compact .institution-input-wrap input{padding-right:12px}
.review-detail-page .institution-assist{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-4px;min-width:0}
.review-detail-page .institution-assist .institution-match-state{position:static;transform:none}
.review-detail-page .institution-assist button{padding:2px 0;min-height:28px;border-color:transparent;background:transparent;font-size:13px;color:var(--muted)}
.review-detail-page .institution-assist button:hover{color:#171717;text-decoration:underline;text-underline-offset:3px}

/* Attention stays beside its field; only unassigned source issues need a separate disclosure. */
.review-other-issues{margin:0;padding:0;border:0;color:#8f6400;font-size:13px}
.review-other-issues summary{font-size:13px;font-weight:400}
.review-other-issues ul{padding-left:20px;margin:8px 0}
.review-editor [data-review-attention=missing]>input,.review-editor [data-review-attention=missing]>textarea,.review-editor [data-review-attention=missing] select{border-color:#d6b46c;background:#fffdf5}
.review-field-warning{font-size:12px;line-height:20px;color:#8f6400;margin:0}

/* Short source values sit in one row. Long text keeps its own reading area. */
.review-inline-difference{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px 12px;margin:0;border:1px solid var(--border);border-radius:6px;padding:6px 10px;background:var(--subtle);min-width:0;min-height:40px;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.review-inline-heading{display:contents}
.review-inline-heading>span{grid-column:1;grid-row:1;color:var(--muted);font-size:12px;white-space:nowrap}
.review-detail-page .review-inline-heading>button{grid-column:3;grid-row:1;min-height:28px;padding:3px 6px;font-size:13px;line-height:20px}
.review-inline-source{grid-column:2;grid-row:1;min-width:0;color:#404040}
.review-inline-source .scroll-text{max-height:240px;border:0;background:transparent;margin:0;padding:0;scrollbar-gutter:stable}
.review-inline-source .readable{font-size:13px;line-height:22px}
.review-inline-source :is(p,h3){margin:0;font-size:inherit}
.review-inline-source .stack{gap:8px}
.review-inline-source .card{background:transparent;margin:0;padding:4px 0;border:0}
.review-inline-difference:is([data-field=description],[data-field=body],[data-field=applicationMethod],[data-field=attachments],[data-field=materialId],[data-field=materialIds]){padding:10px 12px;row-gap:8px}
.review-inline-difference:is([data-field=description],[data-field=body],[data-field=applicationMethod],[data-field=attachments],[data-field=materialId],[data-field=materialIds])>.review-inline-source{grid-column:1/-1;grid-row:2}
.review-inline-difference[data-pending=true]{opacity:.6}
.review-difference-pending{margin:0}

.review-picker-disclosure{margin:0;padding:0;border-color:#d9d9d9;border-radius:6px}
.review-picker-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;min-height:40px;font-size:14px;line-height:20px;font-weight:400;list-style:none}
.review-picker-disclosure>summary::-webkit-details-marker{display:none}
.review-picker-value{min-width:0;overflow-wrap:anywhere}
.review-picker-action{color:var(--muted);font-size:12px;flex:none}
.review-picker-disclosure>summary:hover{background:var(--subtle)}
.review-picker-disclosure[open]>summary{background:var(--subtle);border-bottom:1px solid var(--border);margin:0}
.review-picker-disclosure>:is(.field,section,div,fieldset){padding:16px;margin:0;border:0}
.review-picker-disclosure>section>h3,.review-picker-disclosure>.field>.field-label,.review-picker-disclosure>.tag-options>legend{display:none}
.review-detail-page .tag-choices{gap:8px}
.review-detail-page .tag-choice{font-size:13px;line-height:20px;padding:7px 10px;border-radius:6px}
.review-detail-page .tag-choice:has(:checked){background:#f5f5f5;border-color:#a3a3a3;color:#171717}
.review-detail-page .location-row,.review-detail-page .chip{background:var(--subtle)}
.review-detail-page .location-row:last-child{margin-bottom:0}
.review-detail-page .category-picker-panel{border-color:#d9d9d9;box-shadow:0 8px 24px #0002}
.review-detail-page .category-picker-path{background:var(--subtle)}
.review-detail-page .category-picker-path button{min-height:28px;padding:3px 6px;font-size:12px}
.review-detail-page .category-picker-option.is-active{background:var(--hover);color:#171717}
.review-detail-page .category-picker-clear{min-height:32px;width:32px;height:32px;padding:0;border:0;right:24px;font-size:18px;font-weight:400}
.review-detail-page .category-picker-clear:hover{background:var(--hover);color:#171717}
.review-detail-page .category-picker-path button[aria-current]{color:#171717}
.review-detail-page .category-picker-compact .category-combobox>input{padding-right:36px}
.review-detail-page .category-picker-compact .category-picker-arrow{width:7px;height:7px;right:15px;top:calc(50% - 5px);border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg)}
.review-detail-page .category-picker-reset{display:block;width:calc(100% - 16px);margin:4px 8px 8px;text-align:left;border-radius:4px}
.review-date-controls{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;align-items:start}
.review-date-controls .field>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.review-organization-editor>h3,.review-organization-editor>.field>.field-label,.review-organization-editor .picker-add .field-label,.review-organization-editor .check-card>.hint{display:none}
.review-organization-editor .check-card{padding:12px;background:var(--subtle)}
.review-organization-editor .check-card .readable{font-size:13px;line-height:22px;margin-bottom:8px}
.review-supplement{margin:0;padding:16px 0 0;border:0;border-top:1px solid var(--border);border-radius:0}
.review-supplement>summary{font-size:13px;font-weight:400;color:var(--muted)}
.review-supplement-content{padding-top:16px}
.review-attachments{margin:0;padding:20px 0 0;border-top:1px solid var(--border);scroll-margin:88px 0 140px}
.review-attachments>h3{margin:0 0 12px;font-size:14px;line-height:20px;font-weight:500}
.review-attachments .stack{gap:12px}

/* Secondary disclosures use consistent hit areas and anchored popovers. */
.review-record,.review-note{position:relative;margin:0;padding:0;border:0;min-width:0}
.review-record>summary,.review-note>summary,.review-source-records>summary{display:flex;align-items:center;gap:6px;list-style:none;font-size:13px;line-height:20px;font-weight:400;color:var(--muted);min-height:32px;padding:4px 6px;border-radius:6px;cursor:pointer}
.review-record>summary::-webkit-details-marker,.review-note>summary::-webkit-details-marker,.review-source-records>summary::-webkit-details-marker{display:none}
.review-record>summary::before,.review-note>summary::before,.review-source-records>summary::before{content:'';display:block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-right:3px;flex:none}
:is(.review-record,.review-note,.review-source-records)[open]>summary{margin-bottom:0}
:is(.review-record,.review-note,.review-source-records)[open]>summary::before{transform:rotate(45deg)}
:is(.review-record,.review-note,.review-source-records)>summary:hover{background:var(--hover);color:#171717}
.review-record-content,.review-more-content{position:absolute;z-index:6;width:min(340px,calc(100vw - 64px));padding:20px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #0002;font-size:13px;line-height:22px;overflow-wrap:anywhere;max-height:min(440px,65dvh);overflow:auto;overscroll-behavior:contain}
.review-record-content{right:0;top:calc(100% + 8px)}
.review-record-content p{margin:8px 0}
.review-record-content ul{padding-left:20px;margin-bottom:0}
.review-more-content{left:0;bottom:calc(100% + 20px)}
.review-more-content>button{margin-top:12px}
.review-detail-page .review-more-content textarea{min-height:72px;height:72px;max-height:180px;line-height:22px}
.review-decision{position:sticky;bottom:12px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:12px 16px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 16px #0000000a}
.review-note{flex:none}
.review-decision-controls{flex:0 1 auto;min-width:0}
.review-decision-controls>.actions{justify-content:flex-end;gap:12px}
.review-list-after{font-size:13px;line-height:20px;color:#525252;gap:8px;margin:0;min-height:36px;cursor:pointer;white-space:nowrap}
.review-detail-page .review-decision .primary{min-width:96px}

@media(max-width:1000px){.review-queue td,.review-queue th{padding:.85rem 1rem}}
@media(max-width:700px){
  .review-page .page-heading h1{font-size:20px;line-height:28px}
  .review-status-tabs{gap:0 1.1rem;padding:0 1rem}.review-status-tabs a{font-size:.82rem;padding:.8rem 0 .7rem}.review-queue .toolbar{padding:1rem;gap:.6rem}.review-queue .toolbar .field{flex:1 1 130px}.review-queue .toolbar .actions{margin-left:0}
  body:has(.review-detail-page) #content{padding:20px 16px 28px}
  body:has(.review-detail-page) :is(input:not([type=checkbox]),select,textarea){font-size:16px;min-height:44px}
  body:has(.review-detail-page) :is(.confirm-dialog,.institution-dialog,.category-dialog){padding:20px;max-height:90dvh}
  .review-detail-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:4px}
  .review-detail-header>a{min-height:44px}
  .review-detail-header h1{grid-column:1/-1;grid-row:2;font-size:20px;line-height:28px}
  .review-detail-header>.actions{grid-column:2;grid-row:1}
  .review-workspace{gap:12px}
  .review-sources{gap:0 12px}.review-source-links{display:contents}
  .review-source-name{flex-basis:100%;line-height:20px}
  .review-detail-page .review-source-link{min-height:44px}
  .review-detail-page :is(.review-note,.review-record,.review-source-records)>summary{min-height:44px}
  .review-source-records{margin-left:auto}
  .review-source-record-content{padding:16px;max-height:55dvh}
  .review-editor>form,.review-editor>.review-snapshot{padding:20px 16px;gap:24px}
  .review-editor .form-grid{grid-template-columns:1fr;gap:20px}
  .review-editor .job-pay-headcount{gap:12px}
  .review-editor .review-form-group{gap:20px}
  .review-detail-page .review-inline-heading>button{min-height:44px;padding:8px 6px}
  .review-inline-difference{gap:4px 8px;padding:0 8px;min-height:46px}
  .review-inline-difference:is([data-field=description],[data-field=body],[data-field=applicationMethod],[data-field=attachments],[data-field=materialId],[data-field=materialIds]){padding:4px 10px 12px}
  .review-detail-page .institution-assist button{min-height:44px;padding:8px 0}
  .review-detail-page .institution-input-row>button{min-height:44px;padding:8px 6px}
  .review-detail-page .experience-controls>.experience-mode{flex-basis:96px;width:96px}
  .review-detail-page .experience-controls>.experience-number{flex-basis:0}
  body:has(.review-detail-page) .experience-controls :is(input,select){min-height:42px;height:42px}
  .review-detail-page .category-picker-reset{min-height:44px}
  .review-detail-page .category-picker-clear{min-height:44px;width:40px;height:44px;right:22px}
  .review-detail-page .category-picker-option,.review-detail-page .category-picker-path button{min-height:44px}
  .review-detail-page .tag-choice{min-height:44px}
  .review-picker-disclosure>summary{min-height:44px}
  .review-picker-disclosure>:is(.field,section,div,fieldset){padding:12px}
  .review-date-controls{grid-template-columns:minmax(0,1fr) 116px;gap:8px}
  .review-record{position:static}
  .review-record-content{left:0;right:auto;top:calc(100% + 8px);width:100%}
  .review-decision{bottom:env(safe-area-inset-bottom,0px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:8px 12px;border-radius:8px 8px 0 0}
  .review-note{grid-column:1;grid-row:1;justify-self:start}
  .review-decision-controls,.review-decision-controls>.actions{display:contents}
  .review-decision-controls>.actions>button{grid-row:2;width:100%;min-height:44px}
  .review-decision-controls>.actions>button.primary{grid-column:2}
  .review-decision-controls>.actions>button.primary:only-of-type{grid-column:1/-1}
  .review-decision-controls>.actions>button:only-child{grid-row:1;grid-column:2}
  .review-list-after{grid-column:2;grid-row:1;justify-self:end;min-height:44px}
  .review-detail-page .review-more-content{bottom:calc(100% + 12px);width:min(340px,calc(100vw - 64px))}
}
