.ata-page { max-width: 1180px; margin: 28px auto 0; color: var(--text-primary); }
.ata-header { margin-bottom: 24px; }
.ata-header h1 { font-size: 30px; margin: 8px 0; }
.ata-header p, .ata-card > p, .ata-evidence-note { color: var(--text-secondary); }
.ata-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 18px 0; }
.ata-card h2 { font-size: 20px; margin: 0 0 12px; }
.ata-card h3 { font-size: 16px; margin: 18px 0 8px; }
.ata-card label { font-weight: 600; }
.ata-card input[type="text"], .ata-card textarea, .ata-card select { box-sizing: border-box; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--border-light); border-radius: 7px; background: var(--bg-input); color: var(--text-primary); color-scheme: dark; }
.ata-card input[type="text"]::placeholder, .ata-card textarea::placeholder { color: var(--text-muted); }
.ata-card input[type="text"]:focus, .ata-card textarea:focus, .ata-card select:focus { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.ata-card small { display: block; color: var(--text-secondary); margin-top: 5px; }
.ata-customer-form { display: flex; align-items: end; gap: 12px; max-width: 620px; }
.ata-customer-form label { align-self: center; }
.ata-customer-form select { flex: 1; }
.ata-card input[type="submit"] { border: 1px solid var(--border-light); border-radius: 7px; padding: 9px 15px; background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; font-weight: 600; }
.ata-card input[type="submit"].ata-primary { background: var(--green); border-color: var(--green); color: var(--bg-body); }
.ata-form-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; margin: 22px 0; }
.ata-review-fieldset { border: 1px solid var(--border); border-radius: 9px; padding: 16px; margin: 22px 0; }
.ata-review-fieldset legend { font-weight: 700; padding: 0 6px; }
.ata-review-fieldset > p { margin: 0 0 12px; color: var(--text-secondary); }
.ata-review-row { display: grid; grid-template-columns: 1.1fr 150px 1.4fr; gap: 12px; align-items: center; margin: 10px 0; }
.ata-review-row select, .ata-review-row input { margin-top: 0 !important; }
.ata-notes { margin: 18px 0; }
.ata-confirm { display: flex; align-items: center; gap: 9px; margin: 18px 0; }
.ata-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.ata-summary > div { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); padding: 20px; }
.ata-summary strong { display: block; font-size: 28px; }
.ata-summary span { color: var(--text-secondary); font-size: 13px; }
.ata-status { display: inline-block; border-radius: 99px; padding: 4px 9px; font-size: 12px; font-weight: 700; background: var(--bg-elevated); color: var(--text-secondary); white-space: nowrap; }
.ata-status--current, .ata-status--verified, .ata-status--pass, .ata-status--completed { background: var(--green-dim); color: var(--green); }
.ata-status--stale, .ata-status--warn, .ata-status--unverified, .ata-status--partial { background: var(--amber-dim); color: var(--amber); }
.ata-status--fail, .ata-status--risk, .ata-status--failed { background: var(--red-dim); color: var(--red); }
.ata-status--critical, .ata-status--high { background: var(--red-dim); color: var(--red); }
.ata-status--medium, .ata-status--low { background: var(--amber-dim); color: var(--amber); }
.ata-priority-list { list-style: none; padding: 0; }
.ata-priority-list li { display: flex; align-items: start; gap: 12px; border-top: 1px solid var(--border); padding: 14px 0; }
.ata-priority-list p { margin: 4px 0 0; color: var(--text-secondary); }
.ata-subscription { border-top: 1px solid var(--border); padding: 14px 0; }
.ata-subscription summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; cursor: pointer; }
.ata-subscription p { margin: 10px 0; }
.ata-warning { color: var(--red); }
.ata-check-list, .ata-finding-list { padding-left: 22px; }
.ata-check-list li, .ata-finding-list li { margin: 9px 0; }
.ata-check-findings { margin: 6px 0 12px; padding-left: 24px; color: var(--text-secondary); }
.ata-check-findings li { margin: 3px 0; overflow-wrap: anywhere; }
.ata-review-result { border-top: 1px solid var(--border); padding: 12px 0; }
.ata-review-result > strong { display: inline-block; min-width: 280px; }
.ata-review-result p { color: var(--text-secondary); margin: 7px 0 0; }
.ata-preline { white-space: pre-line; }
.ata-table-wrap { overflow-x: auto; }
.ata-table-wrap table { width: 100%; border-collapse: collapse; }
.ata-table-wrap th, .ata-table-wrap td { text-align: left; padding: 11px; border-bottom: 1px solid var(--border); }
.ata-table-wrap th { font-size: 12px; color: var(--text-secondary); }
.ata-workload-table { table-layout: fixed; }
.ata-workload-table th, .ata-workload-table td { overflow-wrap: anywhere; }
.ata-workload-table th:nth-child(1) { width: 12%; }
.ata-workload-table th:nth-child(2) { width: 24%; }
.ata-workload-table th:nth-child(3) { width: 14%; }
.ata-workload-table th:nth-child(4) { width: 10%; }
.ata-workload-table th:nth-child(5), .ata-workload-table th:nth-child(6) { width: 12%; }
.ata-workload-table th:nth-child(7) { width: 16%; }
.ata-print-only { display: none; }
.ata-print-list { padding-left: 20px; }
.ata-print-list li { margin: 6px 0; }
.ata-resource-details { display: none; }
.ata-resource-details ul { margin: 5px 0 0; padding-left: 18px; }
.ata-priority-list .ata-resource-details li { display: list-item; border: 0; padding: 3px 0; }
.ata-resource-details code { overflow-wrap: anywhere; }
@media (max-width: 800px) { .ata-form-grid, .ata-review-row, .ata-summary { grid-template-columns: 1fr; } .ata-customer-form { display: block; } .ata-review-row { gap: 6px; } }
@page { size: A4; margin: 0; }
@media print {
  body { margin: 0; background: #fff !important; color: #17202d; }
  body > :not(.app-content) { display: none !important; }
  .app-content { max-width: none; min-height: 0; margin: 0; padding: 16mm 15mm 17mm; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .ops-surface { width: 100%; padding: 0; }
  .ops-surface-tabs { display: none !important; }
  .ata-legacy-print { width: 100%; max-width: none; margin: 0; color: #263346; background: #fff; font: 9pt/1.4 Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ata-legacy-print .ata-header a { display: none; }
  .ata-legacy-print .ata-header { margin: 0 0 17pt; }
  .ata-legacy-print .ata-header h1 { display: none; }
  .ata-legacy-print .ata-print-masthead { display: grid; grid-template-columns: 1fr auto; gap: 5pt; align-items: start; margin-bottom: 18pt; padding: 15pt 16pt 14pt; border-bottom: 5pt solid #2ecc71; background: #080b12; color: #fff; break-inside: avoid; }
  .ata-legacy-print .ata-print-masthead__brand { grid-column: 1; color: #2ecc71; font-size: 9pt; font-weight: 700; }
  .ata-legacy-print .ata-print-masthead > strong { grid-column: 1; font-size: 20pt; line-height: 1.1; }
  .ata-legacy-print .ata-print-masthead__wordmark { grid-column: 2; grid-row: 1 / 3; font-size: 10pt; font-weight: 700; }
  .ata-legacy-print .ata-print-customer { margin-bottom: 4pt; color: #080b12; font-size: 16pt; font-weight: 700; line-height: 1.2; }
  .ata-legacy-print .ata-header > .ata-status { margin-top: 7pt; }
  .ata-legacy-print .ata-card { margin: 18pt 0 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #263346; break-inside: auto; }
  .ata-legacy-print .ata-header p, .ata-legacy-print .ata-card > p, .ata-legacy-print .ata-evidence-note,
  .ata-legacy-print .ata-priority-list p, .ata-legacy-print .ata-summary span { color: #607087; }
  .ata-legacy-print .ata-header p { margin: 0; font-size: 8pt; }
  .ata-legacy-print .ata-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8pt; }
  .ata-legacy-print .ata-summary > div { min-height: 49pt; padding: 7pt 9pt; border: 0; border-left: 4pt solid #2ecc71; border-radius: 0; background: #f7f9fc; color: #080b12; break-inside: avoid; }
  .ata-legacy-print .ata-summary strong { margin-bottom: 2pt; font-size: 16pt; line-height: 1.1; }
  .ata-legacy-print .ata-summary span { font-size: 7.5pt; line-height: 1.2; }
  .ata-legacy-print .ata-evidence-note { margin: 10pt 0 0; font-size: 8pt; }
  .ata-legacy-print .ata-card h2 { margin: 0 0 10pt; color: #080b12; font-size: 13pt; line-height: 1.2; break-after: avoid; }
  .ata-legacy-print .ata-card h2::after { content: ""; display: block; width: 28pt; height: 2pt; margin-top: 5pt; background: #2ecc71; }
  .ata-legacy-print .ata-card h3 { margin: 14pt 0 6pt; color: #131a26; font-size: 10pt; break-after: avoid; }
  .ata-legacy-print .ata-card small { display: inline; color: #607087; font-size: 8pt; font-weight: 400; }
  .ata-legacy-print .ata-card p, .ata-legacy-print .ata-card li { font-size: 8.5pt; line-height: 1.35; }
  .ata-legacy-print .ata-priority-list { margin: 0; }
  .ata-legacy-print .ata-priority-list li { gap: 9pt; padding: 8pt 0; }
  .ata-legacy-print .ata-priority-list p { margin-top: 3pt; }
  .ata-legacy-print .ata-priority-list li, .ata-legacy-print .ata-subscription,
  .ata-legacy-print .ata-table-wrap th, .ata-legacy-print .ata-table-wrap td { border-color: #d8dee8; }
  .ata-legacy-print .ata-status { padding: 2pt 6pt; background: #eef2f7; color: #475467; font-size: 7.5pt; }
  .ata-legacy-print .ata-status--completed, .ata-legacy-print .ata-status--current, .ata-legacy-print .ata-status--verified, .ata-legacy-print .ata-status--pass { background: #e8f8ee; color: #157347; }
  .ata-legacy-print .ata-status--stale, .ata-legacy-print .ata-status--warn, .ata-legacy-print .ata-status--unverified, .ata-legacy-print .ata-status--partial, .ata-legacy-print .ata-status--medium, .ata-legacy-print .ata-status--low { background: #fff3dc; color: #9a6200; }
  .ata-legacy-print .ata-status--fail, .ata-legacy-print .ata-status--risk, .ata-legacy-print .ata-status--failed, .ata-legacy-print .ata-status--critical, .ata-legacy-print .ata-status--high { background: #fdecec; color: #b4232d; }
  .ata-legacy-print .ata-warning { color: #b4232d; }
  .ata-legacy-print code, .ata-legacy-print td, .ata-legacy-print li { overflow-wrap: anywhere; }
  .ata-legacy-print code { font-size: 7.5pt; }
  .ata-legacy-print .ata-table-wrap { overflow: visible; }
  .ata-legacy-print .ata-table-wrap table { width: 100%; border-collapse: collapse; }
  .ata-legacy-print .ata-table-wrap thead { display: table-header-group; }
  .ata-legacy-print .ata-table-wrap tr { break-inside: avoid; }
  .ata-legacy-print .ata-table-wrap th { padding: 6pt; border-color: #1e2a3d; background: #131a26; color: #fff; font-size: 7.5pt; font-weight: 700; }
  .ata-legacy-print .ata-table-wrap td { padding: 5pt 6pt; font-size: 7.5pt; line-height: 1.25; }
  .ata-legacy-print .ata-resource-details { margin-top: 7pt; }
  .ata-legacy-print .ata-resource-details > strong { color: #131a26; font-size: 8pt; }
  .ata-legacy-print .ata-priority-list .ata-resource-details li { display: list-item; padding: 3pt 0; border: 0; }
  .ata-legacy-print .ata-subscription summary { break-inside: avoid; }
  .ata-legacy-print [data-audit-print-section].ata-print-excluded { display: none !important; }
  .ata-legacy-print .ata-print-extra-group { display: none !important; }
  .ata-legacy-print.ata-print-detailed .ata-print-extra-group { display: flex !important; }
  .ata-legacy-print.ata-print-detailed .ata-resource-details { display: block; }
  .ata-legacy-print.ata-print-detailed .ata-print-more-note { display: none !important; }
  .ata-print-only { display: block; }
  .ata-print-hide { display: none !important; }
  .ata-legacy-print .ata-card li, .ata-legacy-print .ata-review-result { break-inside: avoid; }
}
/* Azure tenant audit redesign — `tav-` prefix. Append to app/assets/stylesheets/azure_tenant_audits.css */
.tav-page{--bg:#0a0e17;--card:#0f1522;--card-2:#0c111c;--line:#1c2536;--line-2:#18202f;--text:#e6eaf2;--text-2:#c7cedb;--muted:#8b96ab;--dim:#6b768c;--green:#4ade80;--amber:#f5b83d;--red:#f87171;--blue:#8fb4ff;--low:#7d8db0;
  max-width:1280px;margin:0 auto;padding:24px 32px 120px;display:flex;flex-direction:column;gap:20px;color:var(--text);font-family:'DM Sans',system-ui,sans-serif}
.tav-page *{box-sizing:border-box}
.tav-page code{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px}
.tav-page button{font-family:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
.tav-muted{color:var(--muted)}.tav-dim{color:var(--dim);font-size:12px}.tav-warn{color:var(--amber)}
.tav-num{text-align:right;font-variant-numeric:tabular-nums}
.tav-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tav-stack{display:flex;flex-direction:column;gap:12px}
.tav-note{margin:0;font-size:13px;color:var(--muted)}
.tav-link{color:var(--green)!important;font-size:13px}.tav-link:hover{color:#86efac!important}

/* Header */
.tav-header{display:flex;flex-direction:column;gap:10px}
.tav-back{font-size:13px;color:var(--muted);text-decoration:none}
.tav-header__row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.tav-header__main{display:flex;flex-direction:column;gap:6px;min-width:0}
.tav-title{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.tav-title h1{margin:0;font-size:24px;font-weight:600;text-wrap:pretty}
.tav-meta{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.tav-meta code{color:var(--text-2)}
.tav-status{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:500;border:1px solid var(--line);color:var(--muted)}
.tav-status--completed{border-color:#1d4d33;background:#0d1f16;color:var(--green)}
.tav-status--failed{border-color:#5a2424;background:#1f0f0f;color:var(--red)}
.tav-actions{display:flex;gap:8px}
.tav-btn{padding:8px 14px!important;border-radius:8px;border:1px solid #2b364c!important;color:var(--text-2)!important;font-size:13px}
.tav-btn--primary{background:var(--green)!important;border-color:var(--green)!important;color:#0a0e17!important;font-weight:600}
.tav-btn:disabled{opacity:.45;cursor:not-allowed}
.tav-export-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(3,7,15,.78)}
.tav-export-dialog{box-sizing:border-box;width:min(100%,560px);max-height:min(90vh,760px);overflow-y:auto;padding:24px;border:1px solid #33425c;border-radius:14px;background:var(--card);box-shadow:0 24px 80px #0008;color:var(--text)}
.tav-export-dialog:focus{outline:none}
.tav-export-dialog h2{margin:0 0 6px;font-size:20px}
.tav-export-dialog>p{margin:0 0 20px;font-size:13px;color:var(--muted)}
.tav-export-dialog>p[role="alert"]{color:var(--amber)}
.tav-export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;padding:16px;border:1px solid var(--line);border-radius:9px}
.tav-export-options legend{padding:0 6px;font-size:13px;color:var(--muted)}
.tav-export-options label,.tav-export-detail{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.4;cursor:pointer}
.tav-export-options input,.tav-export-detail input{accent-color:var(--green);margin:2px 0 0;flex:none}
.tav-export-detail{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:9px}
.tav-export-detail small{display:block;margin-top:3px;color:var(--muted)}
.tav-export-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
@media(max-width:500px){.tav-export-options{grid-template-columns:1fr}}

/* Bucket cards */
.tav-buckets{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.tav-bucket{padding:16px 18px!important;border-radius:12px;border:1px solid var(--line)!important;background:var(--card)!important;display:flex;flex-direction:column;gap:6px}
.tav-bucket.is-active{border-color:#2f3d57!important;background:#121928!important}
.tav-bucket__top{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
.tav-bucket__count{font-size:13px;color:var(--muted);display:flex;align-items:baseline;gap:8px}
.tav-bucket__count strong{font-size:30px;font-weight:600}
.tav-bucket--fix strong{color:var(--red)}.tav-bucket--decide strong{color:var(--amber)}.tav-bucket--verify strong{color:var(--blue)}

/* Coverage */
.tav-coverage{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--card-2);font-size:13px;color:var(--muted)}
.tav-coverage strong{color:var(--text-2);font-weight:500}
.tav-coverage__toggle{margin-left:auto}
.tav-metrics{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:-8px}
.tav-metrics>div{background:var(--card);padding:12px 14px;display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:12px;color:var(--muted)}
.tav-metrics strong{font-size:15px;color:var(--text)}.tav-metrics strong.is-zero{color:#4f5a70}
.tav-metrics__note{grid-column:1/-1;margin:0;padding:10px 14px;background:var(--card);font-size:12px;color:var(--dim)}

/* Tabs, toolbar */
.tav-tabs{display:flex;gap:4px;padding:5px;border:1px solid #1f2839;border-radius:10px;background:var(--card);width:fit-content;max-width:100%;flex-wrap:wrap}
.tav-tab{padding:8px 14px!important;border-radius:7px;font-size:14px;color:var(--muted)!important;display:flex;gap:8px;align-items:center}
.tav-tab.is-active{background:var(--line)!important;color:var(--text)!important}
.tav-tab__count{font-size:12px;color:var(--dim)}
.tav-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tav-seg{display:flex;gap:4px;padding:4px;border:1px solid #1f2839;border-radius:9px;background:var(--card-2)}
.tav-seg__item{padding:6px 12px!important;border-radius:6px;font-size:13px;color:var(--muted)!important;white-space:nowrap}
.tav-seg__item.is-active{background:var(--line)!important;color:var(--text)!important}
.tav-chips{display:flex;gap:4px}
.tav-chip{padding:6px 10px!important;border-radius:999px;font-size:12px;border:1px solid #1f2839!important;color:var(--muted)!important}
.tav-chip.is-active{border-color:#3a4865!important;color:var(--text)!important}
.tav-search{margin-left:auto;min-width:220px;flex:0 1 280px;padding:8px 12px;border-radius:8px;border:1px solid #2b364c;background:var(--card-2);color:var(--text);font-size:13px;outline:none}

/* Cards & rows */
.tav-card{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.tav-card--flush{padding:0;gap:0;overflow:hidden}
.tav-card__head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.tav-card__head h3{margin:0;font-size:15px;font-weight:600}
.tav-card__head span{font-size:12px}
.tav-row{display:grid;grid-template-columns:20px minmax(0,1fr) 220px 80px 20px;gap:14px;padding:12px 16px!important;align-items:center;width:100%}
.tav-row--head{padding:10px 16px!important;font-size:12px;color:var(--dim);border-bottom:1px solid var(--line)}
.tav-group{border-bottom:1px solid var(--line-2)}
.tav-group__head:hover{background:#131a29}
.tav-group.is-open .tav-group__head{background:#121928}
.tav-group__title{display:flex;flex-direction:column;gap:2px;min-width:0}
.tav-group__title strong{font-size:14px;font-weight:500;text-wrap:pretty}
.tav-group__title small{font-size:12px;color:var(--muted)}
.tav-group__title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tav-chev{color:var(--dim);font-size:12px}
.tav-dot{width:8px;height:8px;border-radius:50%;justify-self:center;background:var(--low)}
.tav-dot--critical,.tav-dot--high{background:var(--red)}.tav-dot--medium{background:var(--amber)}
.tav-empty{padding:28px 16px;text-align:center;font-size:13px;color:var(--dim)}

.tav-env{display:flex;flex-direction:column;gap:5px}
.tav-env__bar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:var(--line)}
.tav-env__bar .is-prod{background:var(--red)}.tav-env__bar .is-nonprod{background:var(--green)}.tav-env__bar .is-unknown{background:#3a4560}
.tav-env__text{font-size:11px;color:var(--muted)}

.tav-resources{padding:4px 16px 14px 50px;background:var(--card-2);display:flex;flex-direction:column}
.tav-resources__row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 110px 120px;gap:12px;padding:8px 0;border-top:1px solid var(--line-2);font-size:13px;align-items:center}
.tav-resources__head{border-top:0;font-size:11px;color:var(--dim);letter-spacing:.04em;text-transform:uppercase}
.tav-resources__row code:first-child{color:var(--text)}
.tav-resources__foot{display:flex;justify-content:space-between;gap:12px;padding-top:10px;font-size:12px;color:var(--dim);flex-wrap:wrap}
.tav-envtag{font-size:12px;color:var(--muted)}.tav-envtag--production{color:var(--red)}.tav-envtag--nonproduction{color:var(--green)}

/* Checks matrix */
.tav-scroll-x{overflow-x:auto}
.tav-matrix{min-width:820px}
.tav-matrix__row{display:grid;grid-template-columns:20px minmax(220px,1.6fr) repeat(var(--tav-subs),minmax(90px,1fr));gap:12px;padding:12px 16px;align-items:center;border-bottom:1px solid var(--line-2)}
.tav-cell{font-size:12px;padding:4px 8px;border-radius:6px;width:fit-content}
.tav-cell--pass{color:#4f5a70}
.tav-cell--fail,.tav-cell--warn{color:var(--amber);background:#211a0c}
.tav-cell--unverified{color:var(--blue);background:#111c33}

/* Inventory */
.tav-two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:16px;align-items:start}
.tav-typebar{display:flex;flex-direction:column;gap:4px}
.tav-typebar>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.tav-typebar code{color:var(--text-2)}
.tav-typebar__track{height:4px;border-radius:2px;background:var(--line-2)}
.tav-typebar__track>div{height:4px;border-radius:2px;background:#3d7a5a}
.tav-wl{display:grid;grid-template-columns:minmax(0,1.6fr) 100px 70px 80px;gap:10px;font-size:13px;align-items:center;padding:4px 0}
.tav-wl--head{font-size:11px;color:var(--dim);letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid var(--line);padding-bottom:6px}

@media (max-width:760px){
  .tav-page{padding:20px 16px 80px}
  .tav-row{grid-template-columns:20px minmax(0,1fr) 60px 16px}
  .tav-row>:nth-child(3){display:none}
  .tav-resources{padding-left:16px}
  .tav-resources__row{grid-template-columns:minmax(0,1fr) 90px}
  .tav-resources__row>:nth-child(2),.tav-resources__row>:nth-child(3){display:none}
  .tav-search{margin-left:0;flex:1 1 100%}
}
@media print{.tav-tabs,.tav-toolbar,.tav-actions,.tav-coverage__toggle{display:none}}

/* The completed audit uses the ERB print view for selected PDF sections. */
@media screen{.ata-legacy-print{display:none!important}}
@media print{.ata-screen-only{display:none!important}.ata-legacy-print{display:block!important}}
/* ---------- Index page (tai-) ---------- */
.tav-status--running,.tav-status--queued{border-color:#2b3b5c;background:#111a2c;color:var(--blue)}
.tai-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--line)}
.tai-header h1{margin:0;font-size:24px;font-weight:600}
.tai-header p{margin:6px 0 0;font-size:13px;color:var(--muted);text-wrap:pretty}
.tai-customer{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--dim)}
.tai-customer select{min-width:300px;font-size:14px}
.tai-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:20px;align-items:start}
.tai-card{border:1px solid var(--line);border-radius:12px;background:var(--card);display:flex;flex-direction:column}
.tai-card__head{padding:18px 20px 14px;border-bottom:1px solid var(--line-2)}
.tai-card__head h2{margin:0;font-size:16px;font-weight:600}
.tai-card__head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.tai-card__head--row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tai-card__body{padding:18px 20px;display:flex;flex-direction:column;gap:20px}
.tai-card__foot{padding:14px 20px;border-top:1px solid var(--line-2);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--card-2);border-radius:0 0 12px 12px}
.tai-field{display:flex;flex-direction:column;gap:8px}
.tai-field__row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tai-label{font-size:13px;font-weight:500;color:var(--text-2)}
.tai-dim{font-size:12px;color:var(--dim)}
.tai-error{font-size:12px;color:var(--amber)}
.tai-input{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #2b364c;background:var(--card-2);color:var(--text);font-size:13px;outline:none;font-family:inherit}
.tai-input:focus{border-color:#3d7a5a}
.tai-input.is-error{border-color:#5a4518}
.tai-input::placeholder{color:#56617a}
.tai-input--sm{padding:8px 10px;font-size:12px;background:var(--card)}
.tai-mono{font-family:'JetBrains Mono',ui-monospace,monospace}
.tai-textarea{min-height:80px;resize:vertical}
.tai-input-wrap{position:relative}
.tai-input-wrap .tai-input{padding-right:36px}
.tai-input-ok{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--green)}
.tai-subs{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tai-sub{display:grid;grid-template-columns:18px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line-2);cursor:pointer}
.tai-sub:hover{background:#131a29}
.tai-sub.is-off{background:var(--card-2)}
.tai-sub.is-off .tai-sub__name span{color:var(--dim)}
.tai-sub__name{display:flex;flex-direction:column;gap:1px;min-width:0}
.tai-sub__name span{font-size:14px}
.tai-sub__name code{font-size:11px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tai-subs__add{display:flex;gap:8px;padding:10px 12px;background:var(--card-2)}
.tai-check{width:16px;height:16px;border-radius:4px;border:1px solid #3a4560;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--bg);flex:none}
.tai-check.is-on{border-color:var(--green);background:var(--green)}
.tai-tag{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);white-space:nowrap}
.tai-tag.is-linked{border-color:#1d4d33;color:var(--green)}
.tai-tag.is-unverified{border-color:#5a4518;color:var(--amber)}
.tai-x{font-size:14px;color:var(--dim)!important;padding:0 4px!important}
.tai-toggle{font-size:13px;color:var(--muted)!important;width:fit-content}
.tai-confirm{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--text-2);cursor:pointer}
.tai-native-check{position:absolute;width:1px;height:1px;opacity:0}
.tai-confirm:focus-within .tai-check{outline:2px solid var(--green);outline-offset:2px}
.tai-btn{padding:8px 12px!important;border-radius:7px;border:1px solid #2b364c!important;color:var(--text-2)!important;font-size:13px;white-space:nowrap}
.tai-primary{padding:10px 18px!important;border-radius:8px;background:var(--green)!important;color:var(--bg)!important;font-size:14px;font-weight:600}
.tai-primary.is-disabled{background:var(--line)!important;color:#56617a!important;cursor:not-allowed}
.tai-danger{padding:6px 12px!important;border-radius:7px;background:var(--red)!important;color:#1a0f12!important;font-size:13px;font-weight:600}
.tai-link{color:var(--green)!important;font-size:13px}
.tai-toast{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 20px;border-bottom:1px solid var(--line-2);background:var(--card-2);font-size:13px;color:var(--text-2)}
.tai-run{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 20px;border-bottom:1px solid var(--line-2);color:var(--text);text-decoration:none}
.tai-run{cursor:pointer}
.tai-run:hover{background:#131a29}
.tai-run:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.tai-run__top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tai-run__date{font-size:14px;font-weight:500}
.tai-run__top .tav-status{font-size:11px;padding:2px 8px}
.tai-run__actions{display:flex;gap:6px;align-items:center;justify-self:end}
.tai-run__meta,.tai-run__buckets{grid-column:1/-1;display:flex;gap:4px 12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.tai-run__buckets{gap:14px}
.tai-run__buckets .is-fix{color:var(--red)}.tai-run__buckets .is-decide{color:var(--amber)}.tai-run__buckets .is-verify{color:var(--blue)}
.tai-del{padding:4px 8px!important;border-radius:6px;font-size:12px;color:var(--muted)!important;border:1px solid transparent!important}
.tai-del:hover:not(.is-disabled){color:var(--red)!important;border-color:#5a2424!important}
.tai-del.is-disabled{color:#3f4a60!important;cursor:not-allowed}
.tai-confirm-del{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px;padding:10px 12px;border-radius:8px;border:1px solid #5a2424;background:#1a0f12;cursor:default;font-size:13px}
.tai-confirm-del>div{display:flex;gap:8px}
.tai-empty{padding:28px 20px;font-size:13px;color:var(--dim)}

/* Audit monitoring coverage */
.tav-monitoring-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.tav-monitoring-stats>div{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--card)}
.tav-monitoring-stats strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text)}
.tav-monitoring-stats span{font-size:12px;color:var(--muted)}
.tav-monitoring-filters{flex-wrap:wrap}
.tav-monitoring-filters .tav-chip{white-space:nowrap}
.tav-monitoring-table{min-width:720px}
.tav-monitoring-row{display:grid;grid-template-columns:minmax(180px,1.6fr) 100px minmax(150px,1fr) minmax(150px,1fr);gap:14px;align-items:center;padding:11px 16px;border-bottom:1px solid var(--line-2);font-size:13px}
.tav-monitoring-row code{min-width:0}
.tav-monitoring-row>span{min-width:0;overflow-wrap:anywhere}
.tav-monitoring-evidence{display:flex;flex-direction:column;gap:2px;min-width:0}
.tav-monitoring-evidence small{font-size:11px}
