/* Scoped to the Windows posture workspace and its report dialog. */
.posture-workspace,.posture-report {
  --p-ink:#192e3d;
  --p-muted:#566a7b;
  --p-line:#dae2e8;
  --p-subtle:#f6f8fa;
  --p-blue:#284d9b;
  --p-space:clamp(16px,1.55vw,24px);
  color:var(--p-ink);
}
.posture-workspace {max-width:1700px;margin-inline:auto;min-width:0}
.posture-heading,.posture-panel>header,.posture-dialog-actions,.posture-report>header {
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.posture-heading {margin:0 0 18px}
.posture-heading h1 {font-size:clamp(27px,2.4vw,36px);line-height:1.16;letter-spacing:-.035em;margin:0 0 5px}
.posture-heading p,.posture-controls header p {margin:0;color:var(--p-muted)}
.posture-heading button {flex:none}
.posture-heading .icon,.posture-nav .icon {width:17px;height:17px}
.posture-nav {display:flex;gap:clamp(10px,1.8vw,30px);align-items:stretch;border-bottom:1px solid #cbd6e0;margin:0 0 22px}
.posture-nav a {display:flex;align-items:center;gap:8px;position:relative;padding:11px 3px 13px;color:#51667a;text-decoration:none;font-weight:600;line-height:1.3}
.posture-nav a:hover,.posture-nav a[aria-current] {color:var(--p-blue)}
.posture-nav a[aria-current]::after {content:"";position:absolute;height:3px;bottom:-1px;left:0;right:0;background:#355eae;border-radius:2px 2px 0 0}
.posture-summary {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--p-line);border-radius:11px;overflow:hidden;background:white;margin:0 0 20px}
button.posture-stat {display:grid;grid-template-columns:1fr;justify-items:start;gap:6px;min-width:0;padding:16px var(--p-space) 14px;background:white;color:var(--p-ink);text-align:left;border:0;border-radius:0;box-shadow:none}
button.posture-stat+button {border-left:1px solid var(--p-line)}
button.posture-stat:hover {background:#f4f7fb}
button.posture-stat[aria-pressed=true] {background:#f5f8fc;box-shadow:inset 0 -3px #385da0}
button.posture-stat:focus-visible {outline-offset:-4px}
.posture-stat-title {display:flex;gap:8px;align-items:center;font-size:13px;font-weight:650;line-height:1.3}
.posture-stat strong {font-variant-numeric:tabular-nums;font-size:clamp(28px,2.1vw,36px);font-weight:620;letter-spacing:-.05em;line-height:1.08}
.posture-stat small,.posture-count,.posture-muted {color:var(--p-muted);font-weight:400}
.posture-glyph {display:grid;place-items:center;width:25px;height:25px;border-radius:7px;flex-shrink:0}
.posture-glyph .icon {width:16px;height:16px}
.posture-navy {color:#35568c;background:#e8eef8}
.posture-risk {color:#9e342c;background:#fff0eb}
.posture-partial {color:#835813;background:#fff3d9}
.posture-pass {color:#176550;background:#e6f4ec}
.posture-neutral {color:#526476;background:#edf1f4}
.posture-board {display:grid;grid-template-columns:minmax(0,2fr) minmax(272px,.94fr);align-items:start;gap:18px}
.posture-panel,.posture-workspace .asset-evidence,.posture-workspace #baselinePanel .panel {
  background:white;border:1px solid var(--p-line);border-radius:10px;overflow:hidden;min-width:0;
}
.posture-panel>header {min-height:62px;padding:15px var(--p-space);border-bottom:1px solid var(--p-line)}
.posture-panel h2,.posture-workspace .panel-head h2 {margin:0;font-size:17px;font-weight:650;letter-spacing:-.02em;color:var(--p-ink)}
#postureListTitle {scroll-margin-top:80px}
.posture-count {font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.posture-toolbar {display:grid;grid-template-columns:minmax(120px,1fr) minmax(145px,.62fr);gap:10px;padding:13px var(--p-space)}
.posture-toolbar label {margin:0;min-width:0}
.posture-search {position:relative}
.posture-search>.icon {position:absolute;top:50%;left:10px;transform:translateY(-50%);width:16px;height:16px;color:#5a6c81;pointer-events:none}
.posture-search input {padding-left:34px}
.posture-toolbar :is(input,select) {font-size:13px;font-weight:400;min-height:38px;line-height:18px}
.posture-panel table {width:100%;margin:0;border-collapse:collapse;min-width:0}
.posture-panel thead th {font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:#4b6175;background:var(--p-subtle);border-block:1px solid #e3e9ee}
.posture-panel th,.posture-panel td {padding:10px 9px;border-bottom:1px solid #e6ecf0;vertical-align:middle;text-align:left;white-space:normal}
.posture-panel tr>:first-child {padding-left:var(--p-space)}
.posture-panel tr>:last-child {padding-right:var(--p-space)}
.posture-panel tbody tr:last-child>* {border-bottom:0}
.posture-devices {table-layout:fixed}
.posture-devices th:nth-child(1){width:29%}.posture-devices th:nth-child(2){width:31%}.posture-devices th:nth-child(3){width:24%}.posture-devices th:nth-child(4){width:16%}
.posture-devices tbody tr {height:69px}
.posture-device-name strong,.posture-panel td small,.posture-device-name .posture-ref {display:block}
.posture-device-name strong {font-size:14px;line-height:1.35;color:var(--p-ink);overflow-wrap:anywhere}
.posture-ref {color:var(--p-muted);font-family:Consolas,monospace;font-size:12px;line-height:1.45}
.posture-panel td small {font-size:12px;color:var(--p-muted);margin-top:3px;line-height:1.35}
.posture-time time {font-variant-numeric:tabular-nums;color:#344a5b}
.posture-badge {display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:3px 8px;border-radius:5px;font-size:12px;font-weight:600;line-height:1.35}
.posture-badge i {display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.posture-row-action {text-align:right!important}
button.posture-review {min-height:36px;padding:4px 0 4px 5px;gap:3px;background:transparent;color:var(--p-blue);border:0;font-size:13px}
.posture-review .icon {width:14px;height:14px}
button.posture-review:hover {color:#173a83;background:#edf2fa}
.posture-mobile-label {display:none}
.posture-controls>header {display:block}
.posture-controls header p {font-size:13px;margin-top:3px}
.posture-controls table {table-layout:fixed}
.posture-controls th:first-child {width:55%}
.posture-controls tr>:nth-child(n+2) {text-align:right}
.posture-controls th,.posture-controls td {padding:8px 7px}
.posture-controls tbody th {font-size:13px;font-weight:500;line-height:1.35;overflow-wrap:anywhere;background:none;color:var(--p-ink)}
.posture-controls tbody tr {height:47px}
button.posture-tally,.posture-zero {display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:28px;padding:3px 6px;border:1px solid transparent;border-radius:5px;font-size:13px;font-variant-numeric:tabular-nums}
.posture-zero {color:var(--p-muted)}
button.posture-tally:hover,button.posture-tally[aria-pressed=true] {border-color:currentColor;background:#fff}
.posture-legend {display:flex;gap:8px;align-items:flex-start;color:var(--p-muted);font-size:12px;line-height:1.5;margin:0;padding:13px var(--p-space);border-top:1px solid var(--p-line)}
.posture-legend .icon {width:15px;height:15px;margin-top:2px}
button.posture-filter-chip {margin:0 var(--p-space) 12px;color:var(--p-blue);background:#edf3fc;border:1px solid #cddbf1;font-size:12px;padding:4px 9px;min-height:30px}
.posture-filter-chip .icon {width:13px;height:13px}
.posture-pager {display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--p-line);padding:10px var(--p-space)}
.posture-pager>div {display:flex;gap:6px}
.posture-pager button {min-height:32px;padding:4px 9px;font-size:12px}
.posture-empty {padding:28px var(--p-space);border-top:1px solid var(--p-line);text-align:center}
.posture-empty>.icon {color:#647995;width:26px;height:26px}
.posture-empty h3 {margin:8px 0 4px}
.posture-empty p,.posture-error,.posture-loading {color:var(--p-muted)}
.posture-workspace .asset-evidence,.posture-workspace #baselinePanel .panel {padding:0;margin:0}
.posture-workspace :is(.asset-evidence,#baselinePanel) .panel-head {align-items:center;padding:17px var(--p-space);min-height:0}
.posture-workspace .asset-evidence .panel-head p {margin:4px 0 0}
.posture-workspace .asset-evidence-controls,.posture-workspace .asset-evidence-note,.posture-workspace .asset-meter-form {padding:13px var(--p-space)}
.posture-workspace .asset-evidence-controls {align-items:flex-end}
.posture-workspace .asset-evidence-controls label {flex:0 1 270px;min-width:0}
.posture-workspace .asset-evidence-controls select {max-width:none}
.posture-workspace .asset-evidence .table-wrap,.posture-workspace #baselinePanel .table-wrap {padding:0}
.posture-workspace .asset-evidence .table-wrap tr>:first-child,.posture-workspace #baselinePanel .table-wrap tr>:first-child {padding-left:var(--p-space)}
.posture-feeds {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;padding:0 var(--p-space) 16px}
.posture-feeds>div {padding:13px 15px;border:1px solid var(--p-line);background:var(--p-subtle);border-radius:8px;min-width:0}
.posture-feeds h3,.posture-audits {margin:0 0 6px;font-size:14px;color:var(--p-ink)}
.posture-feeds strong {font-variant-numeric:tabular-nums}
.posture-feeds p {font-size:13px;margin:5px 0 0;color:var(--p-muted);overflow-wrap:anywhere}
.posture-audits {padding:6px var(--p-space) 10px}
.posture-audits small {margin-left:4px;color:var(--p-muted);font-weight:400}
.posture-workspace #baselinePanel .panel>.actions {padding:10px var(--p-space)}
#modal:has(.posture-report){width:min(650px,95vw);max-width:95vw}
.posture-report>header {align-items:flex-start}
.posture-report h2 {margin:0 0 4px;overflow-wrap:anywhere;font-size:23px}
.posture-report header .posture-badge {flex:none}
.posture-received {font-size:13px;margin:12px 0}
.posture-check-list {list-style:none;padding:0;margin:0;border-block:1px solid var(--p-line)}
.posture-check-list li {display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0}
.posture-check-list li+li {border-top:1px solid var(--p-line)}
.posture-check-list p {font-size:13px;color:var(--p-muted);margin:3px 0 0;overflow-wrap:anywhere}
.posture-check-list .posture-badge {flex:none}
.posture-raw {margin:13px 0}
.posture-raw summary {cursor:pointer;color:var(--p-blue);font-weight:600}
.posture-raw pre {background:var(--p-subtle);padding:10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:210px;overflow:auto}
.posture-scan-feedback {font-size:13px;color:var(--p-blue);margin:10px 0}
.posture-scan-feedback:empty {display:none}
.posture-dialog-actions {justify-content:flex-end;margin-top:16px}
@media(min-width:761px) and (max-width:1270px),(max-width:690px) {
  .posture-board {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:1000px) and (min-width:761px),(max-width:650px) {
  .posture-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
  button.posture-stat:nth-child(3) {border-left:0}
  button.posture-stat:nth-child(n+3) {border-top:1px solid var(--p-line)}
}
@media(max-width:680px) {
  .posture-heading {align-items:flex-start;gap:8px}
  .posture-heading button {padding:6px 9px;min-height:34px}
  .posture-heading p {font-size:13px;line-height:1.5}
  .posture-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border:1px solid var(--p-line);border-radius:8px;background:#fff;padding:4px;margin-bottom:14px}
  .posture-nav a {border-radius:5px;min-height:40px;padding:7px 8px;font-size:13px;gap:6px}
  .posture-nav a[aria-current] {background:#eaf0fb}
  .posture-nav a[aria-current]::after {display:none}
  .posture-summary {margin-bottom:14px}
  button.posture-stat {grid-template-columns:auto minmax(0,1fr);align-content:center;align-items:center;padding:11px 10px;gap:3px 8px}
  .posture-stat strong {grid-area:1/1/3/2;font-size:25px}
  .posture-stat-title {grid-column:2}
  .posture-stat-title .posture-glyph {display:none}
  .posture-stat small {grid-column:2;line-height:1.35}
  .posture-panel>header {min-height:50px;padding-block:12px}
  .posture-stat-title {font-size:12px;gap:5px}
  .posture-stat small {font-size:11px}
  .posture-toolbar {grid-template-columns:minmax(0,1fr);gap:7px}
  .posture-devices,.posture-devices tbody {display:block}
  .posture-devices thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .posture-devices tbody tr {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px;height:auto;padding:13px var(--p-space);border-top:1px solid var(--p-line)}
  .posture-panel .posture-devices td {border:0;padding:0;text-align:left}
  .posture-devices .posture-state {text-align:right}
  .posture-time {font-size:12px}
  .posture-panel .posture-time small,.posture-panel .posture-time time {display:inline}
  .posture-time small::before {content:" · "}
  .posture-mobile-label {display:block;font-size:11px;color:var(--p-muted)}
  .posture-row-action {align-self:end}
  .posture-workspace .asset-evidence-controls label {flex:1 1 180px}
}
@media(min-width:691px) and (max-width:760px){.posture-board{grid-template-columns:1fr}}
@media(max-width:385px){.posture-stat-title .posture-glyph{display:none}.posture-nav a{font-size:12px}.posture-panel>header{gap:7px}}

