.email-tool .tool-shell{max-width:1320px}.email-tool .panel{padding:22px}.email-config h2,.check-results h2{font-size:17px;margin:0 0 16px}.email-import{display:grid;grid-template-columns:2fr 1.4fr 1fr;gap:18px}.email-import label,.email-options label{flex-direction:column;align-items:flex-start;gap:7px}.email-import select,.email-import input,.email-options select{width:100%;max-width:100%!important}.email-import input[type=file]{max-width:100%;min-height:38px}.email-options{align-items:flex-end;gap:14px}.email-options label{min-width:160px}.email-tool select,.email-tool button{min-height:38px;font-size:13px}.check-results{margin-top:18px}.check-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.check-legend span{padding:14px 16px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:10px}.check-legend b{font-size:23px;font-variant-numeric:tabular-nums}.check-green{background:#C6EFCE!important;color:#203349!important}.check-yellow{background:#FFEB9C!important;color:#203349!important}.check-purple{background:#E4CCF4!important;color:#203349!important}.check-toolbar{margin-top:18px}.check-toolbar label:nth-child(2){margin-left:auto}.check-ai,.check-help{margin-top:16px;border-top:1px solid var(--theme-line,#d4e1ed);padding-top:12px}.check-ai summary,.check-help summary{cursor:pointer;font-size:13px;color:var(--theme-ink,#426181);padding:3px 0}.check-ai .check-toolbar{margin-top:12px}.check-ai a{font-size:12px;align-self:center;margin-left:auto}.check-scroll{overflow:auto;max-height:580px;margin-top:16px;border:1px solid #b9c9d7;border-radius:9px}.check-scroll table{width:100%;min-width:850px;table-layout:fixed;border-collapse:collapse;font-size:13px;text-align:left}.check-scroll th,.check-scroll td{padding:12px 10px;border-bottom:1px solid #b9c9d7;line-height:1.6;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}.check-scroll th{background:var(--theme-panel,#edf4fb);position:sticky;top:0;z-index:1}.check-scroll th:first-child{width:74px}.check-scroll th:nth-child(2){width:130px}.check-scroll th:nth-child(3){width:150px}.check-scroll th:nth-child(4){width:90px}.check-scroll th:nth-child(5){width:100px}.check-scroll td:nth-child(5){font-weight:600}.check-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px;font-size:13px}.email-tool .hint{font-size:12px}.email-tool .status{padding-top:10px;border-top:1px solid var(--theme-line,#d4e1ed)}@media(max-width:800px){.email-tool .panel{padding:14px}.email-import{grid-template-columns:1fr 1fr}.email-file{grid-column:1/-1}.check-legend{gap:6px}.check-legend span{padding:10px;display:block;font-size:12px}.check-legend b{display:block;margin-top:4px;font-size:20px}.check-toolbar label:nth-child(2){margin-left:0}.email-options label{flex:1;min-width:120px}.check-pagination{gap:8px;font-size:12px}.check-scroll{max-height:65vh}}
/* Clear, compact controls scoped to this tool. */
.region-check-tool .cc-contact-link{display:none!important}
.region-check-tool{--theme-ink:#21344d;--theme-muted:#485b73;--theme-line:#9aafc5;--theme-panel:#fff;--theme-input:#fff;--theme-button:#245aa8;color:#21344d}
.region-check-tool .panel{background:#fff!important;border:1px solid #b2c2d4;box-shadow:0 5px 20px #193b5a12}
.region-check-tool h1,.region-check-tool h2{color:#203e63}
.region-check-tool label,.region-check-tool .hint{color:#485b73}
.region-check-tool .email-file{position:relative;min-height:92px;box-sizing:border-box;border:2px dashed #5881b4;border-radius:10px;background:#eef4fc;justify-content:center;align-items:center;gap:7px;padding:14px;cursor:pointer}
.region-check-tool .email-file strong{font-size:14px;overflow-wrap:anywhere;pointer-events:none}
.region-check-tool .email-file small{font-size:12px;pointer-events:none}
.region-check-tool .email-file input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.region-check-tool .email-file:focus-within,.region-check-tool .email-file.is-dragging{outline:3px solid #2864b8;outline-offset:2px;background:#d8e8ff}
.region-check-tool .email-import{align-items:center}
.region-check-tool button{background:#fff;border:1px solid #7d93ae;color:#20344d;font-weight:600}
.region-check-tool button:hover:not(:disabled){filter:brightness(.94)}
.region-check-tool button:focus-visible{outline:3px solid #1d4e99;outline-offset:2px}
.region-check-tool button:disabled{opacity:.55}
.region-check-tool .primary{background:#245aa8;color:#fff}
.check-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.check-result-heading h2{margin:0}
.check-all-actions,.check-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.check-legend{grid-template-columns:1fr 1fr 1.3fr;align-items:stretch}
.check-card{padding:16px;border-radius:12px;border:1px solid #83af92}
.check-card.check-green{background:#c5eacf!important}
.check-card.check-yellow{background:#ffe899!important;border-color:#c3a344}
.check-card.check-purple{background:#e0c8f1!important;border-color:#a580bf}
.check-card-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;margin-bottom:14px}
.check-card-title b{font-size:26px}
.check-card-actions button{min-height:34px;padding:5px 11px}
.region-check-tool [data-view][aria-pressed=true]{background:#233d61;color:#fff;border-color:#233d61}
.region-check-tool .ai-run{background:#7040a0;color:#fff;border-color:#60358d}
.region-check-tool .ai-apply{background:#176a56;color:#fff;border-color:#145543}
.region-check-tool .ai-stop{background:#a73541;color:#fff;border-color:#8b2935}
.check-key-fields{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}
.check-key-fields label{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.check-key-fields label:first-child{flex:1;min-width:220px}
.check-key-fields input{width:100%;box-sizing:border-box}
.region-check-tool .check-ai summary{color:#384967;font-weight:600}
.region-check-tool .check-scroll th{background:#dbe6f4;color:#20344d}
.region-check-tool .check-scroll td{border-color:#9aafbf}
.region-check-tool #checkAiMessage:empty{display:none}
@media(max-width:850px){.check-legend{grid-template-columns:1fr 1fr}.check-card:last-child{grid-column:1/-1}.check-card-title{margin-bottom:10px}.check-key-fields label{flex:1;min-width:150px}}
@media(max-width:480px){.check-legend{grid-template-columns:1fr}.check-result-heading{align-items:flex-start;flex-direction:column}}
/* Workspace: controls on the left, data on the right. */
.region-check-tool .tool-shell{max-width:1920px;padding:12px 20px}
.check-workspace{display:grid;grid-template-columns:380px minmax(0,1fr);gap:18px;align-items:start}
.check-sidebar{display:flex;flex-direction:column;gap:12px;min-width:0}
.region-check-tool .check-sidebar .panel{padding:16px;margin:0}
.check-sidebar h2,.check-output h2{font-size:16px;margin:0 0 12px}
.check-sidebar .email-import{grid-template-columns:minmax(0,1fr) 85px;gap:10px}
.check-sidebar .email-file{grid-column:1/-1;min-height:70px;padding:8px}
.check-sidebar .email-options{gap:8px;display:grid;grid-template-columns:1fr 1fr}
.check-sidebar .email-options label{min-width:0}
.check-sidebar select{width:100%;max-width:100%;min-width:0}
.check-sidebar .status{margin-top:8px;padding-top:8px}
.check-sidebar .check-result-heading{align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.check-sidebar .check-result-heading h2{margin:0}
.check-sidebar .check-all-actions{gap:6px}
.check-sidebar .check-all-actions button{font-size:12px;min-height:30px;padding:4px 8px}
.check-sidebar .check-legend{grid-template-columns:1fr;gap:7px}
.check-sidebar .check-card{padding:9px 10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.check-sidebar .check-card-title{margin:0;flex:1;font-size:13px}
.check-sidebar .check-card-title b{font-size:20px;margin:0}
.check-sidebar .check-card-actions{gap:6px}
.check-sidebar .check-card-actions button{min-height:30px;font-size:12px;padding:4px 9px}
.check-sidebar .check-key-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.check-sidebar .check-key-fields label:first-child{grid-column:1/-1;min-width:0}
.check-sidebar .check-key-fields label{min-width:0}
.check-sidebar .check-key-fields label:nth-child(2){grid-column:1/-1}
.check-sidebar .check-key-fields input{min-height:34px}
.check-sidebar .check-ai{border:2px solid #a98ac8!important}
.check-sidebar .check-ai h2{color:#64378c}
.check-ai-activity{margin-top:12px;padding:12px;background:#f1edf8;border:1px solid #bba6d0;border-radius:8px;font-size:12px}
.check-ai-state{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.check-ai-state i{width:9px;height:9px;border-radius:50%;background:#7b8390;flex-shrink:0}
.check-ai-state strong{font-size:14px}
#checkAiElapsed{margin-left:auto;font-variant-numeric:tabular-nums}
#checkAiProgress{display:block;width:100%;height:10px;margin:0 0 7px;accent-color:#7341aa}
#checkAiMessage{margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere}
.check-ai-activity[data-state=running]{background:#eee3ff;border-color:#7944b1;box-shadow:0 0 0 2px #7944b119}
.check-ai-activity[data-state=running] i{background:transparent;border:2px solid #bda5d5;border-top-color:#7136a6;width:12px;height:12px;animation:check-spin 1s linear infinite}
.check-ai-activity[data-state=done] i{background:#148157}
.check-ai-activity[data-state=error] i{background:#be3544}
.check-ai-activity[data-state=stopped] i{background:#b07a23}
@keyframes check-spin{to{transform:rotate(360deg)}}
.region-check-tool .check-output{min-width:0;margin:0;padding:18px;position:sticky;top:12px}
.check-output .check-scroll{margin-top:0;height:calc(100dvh - 255px);min-height:360px;max-height:none}
.check-output .check-scroll table{min-width:720px}
.check-output .check-scroll th:first-child{width:64px}
.check-output .check-scroll th:nth-child(2){width:115px}
.check-output .check-scroll th:nth-child(3){width:110px}
.check-output .check-scroll th:nth-child(4){width:70px}
.check-output .check-scroll th:nth-child(5){width:80px}
#checkViewLabel{font-size:13px;background:#e7effb;border-radius:6px;padding:5px 10px;color:#254f83}
@media(max-width:1100px){.check-workspace{grid-template-columns:1fr}.check-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.check-sidebar .check-ai{grid-column:1/-1}.check-sidebar .check-key-fields{grid-template-columns:2fr 1fr auto auto;align-items:end}.check-sidebar .check-key-fields label:first-child,.check-sidebar .check-key-fields label:nth-child(2){grid-column:auto}.region-check-tool .check-output{position:static}.check-output .check-scroll{height:60dvh;min-height:300px}}
@media(max-width:650px){.region-check-tool .tool-shell{padding:10px 10px 90px}.check-sidebar{display:flex}.check-sidebar .check-key-fields{grid-template-columns:1fr 1fr}.check-sidebar .check-key-fields label:first-child,.check-sidebar .check-key-fields label:nth-child(2){grid-column:1/-1}.region-check-tool .check-output{padding:12px}.check-workspace{gap:12px}}
@media(prefers-reduced-motion:reduce){.check-ai-activity[data-state=running] i{animation:none}}
.check-page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.check-config-link{background:#7040a0;color:white!important;padding:9px 14px;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none}
#checkAiConfig{scroll-margin-top:16px}
.check-ai-banner{display:flex;gap:12px;align-items:center;padding:10px 12px;margin-bottom:12px;border:1px solid #b6a5cf;border-radius:8px;background:#f2edf9;font-size:12px;flex-wrap:wrap}
.check-ai-banner span:last-child{margin-left:auto;font-variant-numeric:tabular-nums}
.check-ai-banner[data-state=running]{background:#e9daff;color:#55217f;border-color:#7944b1}
.check-ai-banner[data-state=running] strong:before{content:"";display:inline-block;width:10px;height:10px;border:2px solid #bda5d5;border-top-color:#7136a6;border-radius:50%;margin-right:7px;animation:check-spin 1s linear infinite}
.check-ai-banner[data-state=error]{background:#ffe7e8;color:#8d2030}
.check-ai-banner[data-state=done]{background:#dff4e7;color:#17603b}
.check-output .check-scroll{height:calc(100dvh - 310px)}
@media(max-width:1100px){.check-output .check-scroll{height:60dvh}}
@media(max-width:480px){.check-page-heading{align-items:flex-start}.check-page-heading h1{font-size:23px}.check-config-link{white-space:nowrap;padding:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.check-ai-banner[data-state=running] strong:before{animation:none}}
/* Modal configuration and viewport-sized desktop workspace. */
.region-check-tool #checkAiOpen{background:#7040a0;color:#fff;border-color:#60358d}
#checkAiConfig{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #9b7dbc;border-radius:14px;padding:22px;color:#21344d;background:#fff;box-shadow:0 20px 80px #13233e55}
#checkAiConfig::backdrop{background:#17263c88}
.check-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.check-dialog-heading h2{font-size:19px;margin:0}
#checkAiConfig .check-key-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#checkAiConfig .check-key-fields label{grid-column:1/-1;min-width:0}
#checkAiConfigMessage:empty{display:none}
.check-sidebar .check-ai-status h2{margin-bottom:8px}
.check-sidebar .check-ai-activity{margin:0}
.check-sidebar .check-card-actions [data-export]{margin-left:auto}
@media(min-width:1101px){
  .region-check-tool{height:100dvh;overflow:hidden}
  .region-check-tool .tool-shell{box-sizing:border-box;height:100dvh;display:flex;flex-direction:column;padding:8px 16px}
  .region-check-tool .tool-header{flex-shrink:0;height:38px;margin-bottom:8px}
  .region-check-tool main{min-height:0;flex:1;display:flex;flex-direction:column}
  .region-check-tool .email-heading{flex-shrink:0;margin-bottom:10px}
  .region-check-tool .email-heading h1{font-size:24px;margin:0}
  .check-workspace{flex:1;min-height:0;grid-template-columns:380px minmax(0,1fr);align-items:stretch;gap:14px}
  .check-sidebar{min-height:0;overflow:auto;gap:8px;scrollbar-width:thin}
  .region-check-tool .check-sidebar .panel{padding:12px}
  .check-sidebar h2{font-size:14px;margin-bottom:8px}
  .check-sidebar .email-file{min-height:54px;padding:5px}
  .check-sidebar .email-import{gap:6px}
  .check-sidebar .email-options{margin-top:6px;gap:6px}
  .check-sidebar .email-import label,.check-sidebar .email-options label{gap:3px}
  .check-sidebar select,.check-sidebar input:not([type=file]),.check-sidebar button{min-height:30px;padding:4px 8px}
  .check-sidebar .status{margin-top:8px;padding-top:8px;max-height:none;overflow:visible;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
  .check-sidebar .check-legend{gap:5px}
  .check-sidebar .check-card{padding:6px 8px;gap:5px}
  .check-sidebar .check-card-actions{gap:5px}
  .check-sidebar .check-card-actions button{padding:4px 8px}
  .check-sidebar .check-ai-status{flex:1;min-height:120px}
  .check-sidebar .check-ai-activity{padding:8px}
  .check-sidebar #checkAiMessage{max-height:48px;overflow:auto;margin-top:5px}
  .region-check-tool .check-output{position:static;display:flex;flex-direction:column;min-height:0;padding:14px}
  .check-output .check-result-heading{flex-shrink:0;margin-bottom:8px}
  .check-output .check-ai-banner{flex-shrink:0;margin-bottom:8px;padding:8px 10px}
  .check-output .check-scroll{height:auto;min-height:0;max-height:none;flex:1}
  .check-output .check-pagination{flex-shrink:0;margin-top:8px}
  .check-output .check-help{flex-shrink:0;margin-top:8px;padding-top:6px;max-height:80px;overflow:auto}
  .check-output .check-scroll th:first-child{width:78px}
  .check-output .check-scroll th:nth-child(4){width:84px}
}
@media(max-width:1100px){.check-sidebar .check-ai-status{grid-column:1/-1}}
/* A single always-visible AI monitor above the result table. */
.check-output .check-ai-banner{display:none}
.check-output .check-ai-activity{flex-shrink:0;margin:0 0 8px;padding:9px 12px}
.check-output .check-ai-state{margin-bottom:6px}
.check-output #checkAiProgress{height:8px;margin-bottom:4px}
.check-output #checkAiMessage{max-height:42px;overflow:auto;margin-top:4px}
@media(min-width:1101px){.check-sidebar{justify-content:flex-start}.check-sidebar .panel{flex-shrink:0}}
.check-empty{background:#e2e8f0!important;color:#203349!important}
.check-card.check-empty{border-color:#96a6b9}
@media(min-width:1101px){
 .region-check-tool .check-sidebar .panel{padding:10px}
 .check-sidebar .email-file{min-height:48px}
 .check-sidebar .check-card{padding:5px 8px}
 .check-sidebar .check-legend{gap:4px}
 .check-sidebar .check-result-heading{margin-bottom:7px}
}
.check-unknown{background:#C6E4FF!important;color:#203349!important}.check-card.check-unknown{border-color:#6c9fc9}
/* Reserve the same action column so every category count aligns. */
.check-sidebar .check-card{display:grid;grid-template-columns:minmax(0,1fr) 90px}
.check-sidebar .check-card-title{min-width:0;grid-column:1}
.check-sidebar .check-card .check-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.check-sidebar .check-card .check-card-actions button{width:100%;padding-left:0;padding-right:0;margin-left:0}
.check-ai-actions-module{display:flex;align-items:center;gap:10px;margin-top:8px;padding:8px;border:1px solid #b49aca;border-radius:10px;background:#f4eef9}
.check-ai-actions-module h3{margin:0;font-size:12px;color:#60358d;white-space:nowrap}
.check-ai-actions{display:grid;grid-template-columns:1fr 1fr .75fr;gap:6px;flex:1;min-width:0}
.check-sidebar .check-ai-actions button{min-height:30px;padding:4px 6px;font-size:12px;white-space:nowrap}
.check-version-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;align-self:center;width:min(100%,280px);box-sizing:border-box;margin:0;padding:5px;border:1px solid #aabbd0;border-radius:14px;background:#d9e3ef;box-shadow:inset 2px 2px 5px #8b9fb966,inset -2px -2px 5px #ffffffcc;flex-shrink:0}
.check-version-switch a{text-align:center;text-decoration:none;border:1px solid transparent;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:700;color:#52647a;line-height:1.4}
.check-version-switch a[aria-current=page]{background:linear-gradient(#fff,#edf3fc);border-color:#a9bdd6;color:#234d86;box-shadow:0 2px 4px #7288a766,inset 0 1px 0 #fff}
.check-version-switch a:hover{color:#184a8e}.check-version-switch a:focus-visible{outline:3px solid #2864b8;outline-offset:2px}
@media(min-width:651px) and (max-width:1100px){.check-version-switch{grid-column:1/-1;justify-self:center}}
@media(min-width:1101px) and (max-height:800px){
 .check-version-switch{padding:3px;gap:4px}.check-version-switch a{padding:5px 8px}
 .check-sidebar .check-card{padding-top:1px;padding-bottom:1px}
 .check-sidebar .status{margin-bottom:0;margin-top:6px;padding-top:6px}
 .region-check-tool .check-sidebar .email-file{min-height:38px;flex-direction:row;gap:8px}
 .check-sidebar .email-file small{white-space:nowrap}.check-sidebar{gap:6px}
 .check-ai-actions-module{margin-top:6px;padding:6px}
}
