#view-xhs{min-width:0;container-name:xhs;container-type:inline-size}
#view-xhs .xhs-heading{margin-bottom:18px;gap:16px}
#view-xhs .xhs-heading h1{margin:0;font-size:26px;line-height:1.4;letter-spacing:.5px}
#view-xhs .xhs-heading p{margin:6px 0 0;color:var(--muted);line-height:1.7}
#view-xhs .primary,#view-xhs .secondary{height:44px;min-height:44px;box-sizing:border-box;padding:10px 16px;white-space:nowrap;font-size:13px;line-height:20px}
.xhs-overview-band.card{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.65fr);align-items:center;gap:24px;padding:18px 22px}
.xhs-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.xhs-metric{display:flex;flex-direction:column;gap:6px;min-width:0}
.xhs-metric span{color:var(--muted);font-size:12px;line-height:20px;white-space:nowrap}
.xhs-metric strong{font-size:25px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums}
.xhs-source{display:flex;align-items:center;justify-content:space-between;gap:18px;border-left:1px solid var(--line);padding-left:24px;min-width:0}
.xhs-source-copy{min-width:0}.xhs-source strong{font-size:13px;line-height:20px}
.xhs-source p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.xhs-source .xhs-actions{flex-wrap:nowrap;flex-shrink:0}
.xhs-staff-overview.card{grid-template-columns:1fr}.xhs-staff-overview .xhs-overview{grid-template-columns:1fr}
.xhs-actions,.xhs-filter-actions,.xhs-batch-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.xhs-task-head,.xhs-pagination,.xhs-detail-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.xhs-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin:18px 0;overflow-x:auto}
.xhs-tabs button{padding:12px 18px;min-height:46px;white-space:nowrap;border:0;background:none;border-bottom:3px solid transparent;color:var(--muted);font:inherit;font-weight:600}
.xhs-tabs button.active{color:var(--green);border-color:var(--green)}
.xhs-filter.card{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:14px 16px;padding:18px 20px;margin-bottom:18px}
.xhs-filter>label,.xhs-filter-actions{grid-column:span 2}
.xhs-filter>label,.xhs-batch>label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:12px;line-height:20px}
.xhs-filter>label>input,.xhs-filter>label>.inline-select,.xhs-batch>label>input,.xhs-batch>label>.inline-select{margin:0;min-width:0;width:100%}
#view-xhs .xhs-filter input,#view-xhs .xhs-batch input,#view-xhs .xhs-filter .select-toggle,#view-xhs .xhs-batch .select-toggle{height:44px;min-height:44px;box-sizing:border-box;font-size:13px;line-height:20px;padding:10px 12px}
.xhs-filter-actions{justify-content:flex-end;flex-wrap:nowrap}
.xhs-filter-simple.card{grid-template-columns:minmax(200px,460px) auto;justify-content:start}
.xhs-filter-simple>label,.xhs-filter-simple .xhs-filter-actions{grid-column:auto}
.xhs-results-panel.card{padding:0;min-width:0}
.xhs-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;padding:14px 20px;background:#f8faf5;border-radius:13px 13px 0 0;border-bottom:1px solid var(--line)}
.xhs-selection .check-row{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:20px;white-space:nowrap}
.xhs-selection input[type=checkbox]{width:17px;height:17px;margin:0}
.xhs-selection strong{font-size:12px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.xhs-selection .helper{margin:0 0 0 auto;font-size:12px;color:var(--muted)}
.xhs-batch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;align-items:end;padding:16px 20px;border-bottom:1px solid var(--line)}
.xhs-batch .xhs-batch-note,.xhs-batch-actions{grid-column:1/-1}
.xhs-batch-actions{justify-content:flex-end;flex-wrap:nowrap}
.xhs-results-panel .xhs-pagination{padding:14px 20px;margin:0;border-top:1px solid var(--line)}
.xhs-results-panel .xhs-empty{padding:36px 20px}.xhs-results-panel .xhs-empty strong{font-weight:500}
.xhs-table-wrap{overflow-x:auto;padding:0}.xhs-table{margin:0;border-collapse:collapse;width:100%;font-size:13px;min-width:780px;table-layout:auto}.xhs-table th{color:#71806f;background:#f7f9f4;font-weight:600;white-space:nowrap}.xhs-table th,.xhs-table td{padding:18px 16px;text-align:left;border-bottom:1px solid #e3e8de;vertical-align:top}.xhs-table td small{display:block;color:#7d877c;margin-top:7px;font-size:12px;overflow-wrap:anywhere}.xhs-table td strong{font-size:13px}.xhs-table .xhs-excerpt{max-width:310px;min-width:190px;overflow-wrap:anywhere;white-space:pre-wrap}.xhs-table td input[type=checkbox],.xhs-batch input[type=checkbox]{width:18px;height:18px}.xhs-pagination{margin:20px 0;font-size:13px;color:#7d877c}.xhs-boundary{color:#778371;font-size:12px;line-height:1.8;margin:24px 0}.xhs-empty{text-align:center;padding:50px 20px;color:#74816f}.xhs-empty p{font-size:13px;margin-top:12px}.xhs-new{padding:24px;margin-bottom:24px}.xhs-new summary{font-weight:600;cursor:pointer}.xhs-new form{margin-top:22px}.xhs-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px}.xhs-form-grid label{min-width:0}.xhs-form-grid textarea{resize:vertical;min-height:88px}.xhs-task-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}.xhs-task{padding:24px}.xhs-task h3{margin:0}.xhs-task p{line-height:1.7}.xhs-task .xhs-actions{margin-top:18px}.xhs-dialog{width:min(780px,calc(100vw - 32px));max-height:88vh;padding:28px;overflow:auto;border:1px solid #dfe6d9;border-radius:16px;color:#253f33;background:#fafbf7}.xhs-dialog::backdrop{background:#213c32a8}.xhs-dialog .section-title{margin-bottom:22px}.xhs-dialog h3{margin:24px 0 14px}.xhs-dialog p{line-height:1.75;overflow-wrap:anywhere}.xhs-dialog small{color:#758171}.xhs-qr{width:min(260px,100%);display:block;margin:20px auto}.xhs-evidence article,.xhs-events article{border:1px solid #e0e6da;border-radius:10px;padding:16px;margin-bottom:12px;background:#fff;overflow-wrap:anywhere}.xhs-evidence p,.xhs-events p{white-space:pre-wrap;margin:10px 0}.xhs-evidence blockquote{background:#f3f5ef;margin:10px 0;padding:12px;font-size:13px;white-space:pre-wrap;border-left:3px solid #bac9ad}.xhs-followup{margin-top:24px}.xhs-followup textarea,.xhs-dialog textarea{resize:vertical}#xhs-content[aria-busy=true]{opacity:.65;pointer-events:none}#xhs-content .helper{line-height:1.7}.xhs-tabs button:focus-visible{outline:2px solid #60855d;outline-offset:-4px}.xhs-dialog a.secondary{text-decoration:none}@media(max-width:760px){.xhs-filter,.xhs-batch,.xhs-source,.xhs-new{padding:16px}.xhs-tabs button{padding:12px 14px}.xhs-dialog{padding:18px}.xhs-form-grid{grid-template-columns:1fr}.xhs-overview{align-items:flex-start}.xhs-pagination{align-items:flex-start}.xhs-task-list{grid-template-columns:1fr}}
/* The image-preview dialog uses absolute buttons; this workflow uses normal form controls. */
.xhs-dialog button{position:static;inset:auto;font-size:inherit}.xhs-dialog a{color:#355b47}

/* Match the available module width, including the application's responsive sidebar. */
@container xhs (min-width:1100px){
 .xhs-filter.card:not(.xhs-filter-simple){grid-template-columns:minmax(140px,1.15fr) repeat(2,minmax(112px,.8fr)) repeat(2,minmax(176px,1.1fr)) auto}
 .xhs-filter:not(.xhs-filter-simple)>label,.xhs-filter:not(.xhs-filter-simple)>.xhs-filter-actions{grid-column:auto}
}
@container xhs (min-width:850px){
 .xhs-batch{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(210px,1.6fr) auto}
 .xhs-batch .xhs-batch-note,.xhs-batch-actions{grid-column:auto}
 .xhs-batch-staff{grid-template-columns:minmax(150px,1fr) minmax(210px,2fr) auto}
}
@container xhs (max-width:940px){
 .xhs-overview-band.card{grid-template-columns:1fr;gap:16px}
 .xhs-source{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}
}
@container xhs (max-width:650px){
 .xhs-overview-band.card{padding:16px}
 .xhs-filter.card{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px 12px}
 .xhs-filter>label{grid-column:auto}
 .xhs-filter>label:first-child,.xhs-filter>label:nth-child(4),.xhs-filter>label:nth-child(5),.xhs-filter-actions{grid-column:1/-1}
 .xhs-filter-simple .xhs-filter-actions{grid-column:1/-1}
 .xhs-selection{padding:12px 16px;gap:10px 16px}
 .xhs-selection .helper{flex-basis:100%;margin-left:0}
 .xhs-batch{padding:16px;gap:14px 12px}
 .xhs-results-panel .xhs-pagination{padding:14px 16px}
 .xhs-tabs{gap:0}.xhs-tabs button{padding:12px 14px}
}
@container xhs (max-width:420px){
 .xhs-source{align-items:flex-start;flex-direction:column;gap:12px}
 .xhs-source .xhs-actions{width:100%}.xhs-source .xhs-actions button{flex:1}
 .xhs-overview{gap:8px}.xhs-metric strong{font-size:23px}
 #view-xhs .xhs-heading h1{font-size:23px}
 .xhs-heading>div{flex:1;min-width:0}
 .xhs-selection .helper{font-size:11px}
 .xhs-batch-actions>button,.xhs-filter-actions>button{flex:1}
}

.xhs-new .xhs-form-grid+.xhs-form-grid{margin-top:16px}
.xhs-followup>label{margin-bottom:16px}

.xhs-form-grid>label,.xhs-followup>label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px;line-height:20px}
.xhs-form-grid>label>input,.xhs-form-grid>label>textarea,.xhs-form-grid>label>.inline-select,.xhs-followup>label>textarea,.xhs-followup>label>.inline-select{margin-top:0;min-width:0}
#view-xhs .xhs-form-grid input,#view-xhs .xhs-form-grid .select-toggle,.xhs-followup .select-toggle{height:44px;min-height:44px;box-sizing:border-box;font-size:13px;line-height:20px;padding:10px 12px}

.xhs-new form>.helper{margin:14px 0;line-height:1.7}
.xhs-new form>.check-row{margin:0 0 16px;line-height:1.7}

.xhs-filter.xhs-management-filter.card{grid-template-columns:minmax(200px,2fr) repeat(2,minmax(130px,1fr)) auto}
.xhs-filter.xhs-management-filter>label,.xhs-management-filter>.xhs-filter-actions{grid-column:auto}
.xhs-management-toolbar.card{padding:14px 20px;margin-bottom:18px;border-radius:13px}
.xhs-management-toolbar>.xhs-actions{margin-left:auto}
.xhs-management-toolbar>.helper{flex-basis:100%;margin-left:0}
.xhs-task-select{display:flex;align-items:center;gap:10px;min-width:0;margin:0;font-size:15px;font-weight:600;line-height:1.6}
.xhs-task-select span{overflow-wrap:anywhere}
.xhs-task-select input,.xhs-table .xhs-manage-select{flex-shrink:0;width:18px;height:18px;margin:0}
@container xhs (max-width:850px){
 .xhs-filter.xhs-management-filter.card{grid-template-columns:repeat(2,minmax(0,1fr))}
 .xhs-filter.xhs-management-filter>label:first-of-type,.xhs-management-filter>.xhs-filter-actions{grid-column:1/-1}
 .xhs-management-toolbar>.xhs-actions{flex-basis:100%;margin-left:0}
}
@container xhs (max-width:650px){
 .xhs-management-toolbar.card{padding:12px 16px}
}

.xhs-filter.xhs-run-filter.card{grid-template-columns:repeat(3,minmax(0,1fr))}
.xhs-filter.xhs-log-filter.card{grid-template-columns:minmax(200px,2fr) minmax(140px,1fr) auto}
.xhs-filter.xhs-log-filter>label,.xhs-log-filter>.xhs-filter-actions{grid-column:auto}
.xhs-log-panel.card{padding:0;min-width:0;overflow:hidden}
.xhs-log-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}
.xhs-log-heading p{margin:0;line-height:1.7;font-size:13px;overflow-wrap:anywhere}
.xhs-log-heading button{flex-shrink:0}
.xhs-log-panel>.helper{margin:0;padding:0 20px 16px;font-size:12px}
.xhs-log-scroll{max-height:min(60vh,520px);overflow:auto;overflow-anchor:none;overscroll-behavior:contain;border-top:1px solid var(--line)}
.xhs-log-table th{position:sticky;top:0;z-index:1}
.xhs-log-table .xhs-log-message{min-width:260px;max-width:560px;white-space:pre-wrap;overflow-wrap:anywhere}
.xhs-log-table .xhs-log-empty{text-align:center;padding:36px 20px;color:var(--muted)}
@container xhs (max-width:850px){
 .xhs-filter.xhs-run-filter.card{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container xhs (max-width:650px){
 .xhs-filter.xhs-log-filter.card{grid-template-columns:repeat(2,minmax(0,1fr))}
 .xhs-filter.xhs-log-filter>label:first-of-type,.xhs-log-filter>.xhs-filter-actions{grid-column:1/-1}
 .xhs-log-heading{align-items:flex-start;flex-wrap:wrap;padding:14px 16px}
 .xhs-log-panel>.helper{padding:0 16px 14px}
}

.xhs-dialog.xhs-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(430px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;border-radius:16px 0 0 16px;padding:22px;overflow:auto;overscroll-behavior:contain}
.xhs-drawer>.section-title{position:sticky;top:-22px;z-index:2;background:#fafbf7;padding:16px 0 12px;margin-top:-16px;gap:12px;align-items:flex-start}
.xhs-drawer>.section-title h2{font-size:20px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.xhs-drawer>.section-title button{flex-shrink:0}
.xhs-drawer .secondary{min-height:40px;font-size:12px;padding:8px 12px;gap:6px}
.xhs-drawer .xhs-actions{gap:8px}
.xhs-snapshot-label{font-size:13px;font-weight:600;color:var(--green);margin-top:0}
.xhs-snapshot-text{white-space:pre-wrap;overflow-wrap:anywhere}
.xhs-snapshot-images{margin:18px 0}
.xhs-drawer .xhs-snapshot-images img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:9px;background:#eef1e8;margin-bottom:12px}
.xhs-snapshot-empty{padding:24px 16px;background:#f0f3eb;border-radius:10px;color:var(--muted);font-size:13px}
.xhs-snapshot-comment,.xhs-snapshot-log{border:1px solid var(--line);border-radius:10px;padding:14px;margin:14px 0;background:#fff}
.xhs-snapshot-comment>small{display:block;margin-top:6px}
.xhs-snapshot-comment blockquote{margin:12px 0;padding:10px 12px;border-left:3px solid #bac9ad;background:#f4f6ef;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.xhs-snapshot-log h3{margin-top:0}.xhs-snapshot-log small{overflow-wrap:anywhere}
.xhs-comment-target{border-color:#709367;background:#f4f8ef}
.xhs-snapshot-tasks{margin-top:20px;font-size:13px}.xhs-snapshot-tasks summary{cursor:pointer}
.xhs-drawer .xhs-pagination{align-items:flex-start;gap:12px}
.xhs-log-message .xhs-actions{margin-top:10px}
@media(max-width:500px){.xhs-dialog.xhs-drawer{border-radius:0;padding:18px}.xhs-drawer>.section-title{top:-18px}}
.xhs-filter.xhs-notes-filter.card{grid-template-columns:repeat(3,minmax(0,1fr))}
.xhs-filter.xhs-notes-filter>label,.xhs-notes-filter>.xhs-filter-actions{grid-column:auto}
@container xhs (max-width:700px){.xhs-filter.xhs-notes-filter.card{grid-template-columns:1fr}}
