/* Credit review queue. Legacy block (no design system on the page) first, then html[data-ds] rules. */
html:not([data-ds]) .ac-credit{
  max-width:1180px;
  margin:auto;
  color:var(--text);
  font-family:'DM Sans',sans-serif;
  font-variant-numeric:tabular-nums
}
html:not([data-ds]) .ac-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px
}
html:not([data-ds]) .ac-head h1{
  font:600 clamp(24px,3vw,32px)/1.2 'Raleway',sans-serif;
  margin:5px 0 12px;
  letter-spacing:-.025em;
  text-wrap:balance
}
html:not([data-ds]) .ac-head p{
  color:var(--text-mid);
  max-width:640px;
  font-size:14px;
  line-height:1.6;
  margin:6px 0
}
html:not([data-ds]) .ac-head .ac-eyebrow{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.15em;
  color:var(--aqua)
}
html:not([data-ds]) .ac-head .ac-safety{
  font-size:12px
}
html:not([data-ds]) .ac-credit button,html:not([data-ds]) .ac-credit input,html:not([data-ds]) .ac-credit select{
  font:inherit;
  color:var(--text);
  background:var(--office-surface,var(--card));
  border:1px solid var(--border);
  border-radius:8px;
  min-height:44px;
  padding:10px 14px
}
html:not([data-ds]) .ac-credit button{
  cursor:pointer;
  transition:border-color .15s,background-color .15s
}
html:not([data-ds]) .ac-credit button:hover,html:not([data-ds]) .ac-credit button:focus-visible{
  border-color:var(--aqua)
}
html:not([data-ds]) .ac-credit button:focus-visible,html:not([data-ds]) .ac-credit input:focus-visible,html:not([data-ds]) .ac-credit select:focus-visible{
  outline:2px solid var(--aqua);
  outline-offset:3px
}
html:not([data-ds]) .ac-filters{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:24px
}
html:not([data-ds]) .ac-filters label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  color:var(--text-mid)
}
html:not([data-ds]) .ac-filters select,html:not([data-ds]) .ac-filters input{
  width:100%;
  min-width:0;
  color-scheme:dark
}
html:not([data-ds]) .ac-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:24px;
  align-items:start
}
html:not([data-ds]) .ac-row{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:left;
  width:100%;
  margin-bottom:10px;
  padding:18px!important;
  box-shadow:0 2px 8px var(--shadow)
}
html:not([data-ds]) .ac-row.selected{
  border-color:var(--aqua);
  background:var(--surface-2,var(--office-surface))
}
html:not([data-ds]) .ac-row-top{
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:12px
}
html:not([data-ds]) .ac-row-top strong{
  font-weight:600;
  font-size:15px;
  overflow-wrap:anywhere
}
html:not([data-ds]) .ac-meta{
  font-size:12px;
  color:var(--text-mid);
  line-height:1.5;
  overflow-wrap:anywhere
}
html:not([data-ds]) .ac-status{
  display:inline-block;
  flex-shrink:0;
  border-radius:6px;
  padding:5px 8px;
  font-size:11px;
  background:var(--glow);
  color:var(--aqua)
}
html:not([data-ds]) .ac-status.is-approved,html:not([data-ds]) .ac-status.is-funded,html:not([data-ds]) .ac-status.is-installed{
  background:var(--glow);
  color:var(--success)
}
html:not([data-ds]) .ac-status.is-declined{
  background:var(--input-bg);
  color:var(--danger)
}
html:not([data-ds]) .ac-detail{
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px;
  background:var(--office-surface);
  overflow-wrap:anywhere;
  min-width:0
}
html:not([data-ds]) .ac-detail h2{
  font:600 21px/1.3 'Raleway',sans-serif;
  margin:0 0 12px
}
html:not([data-ds]) .ac-detail h3{
  font-size:14px;
  margin:28px 0 16px
}
html:not([data-ds]) .ac-kv{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 16px;
  margin:22px 0
}
html:not([data-ds]) .ac-kv dt{
  color:var(--text-mid);
  font-size:11px;
  margin-bottom:6px
}
html:not([data-ds]) .ac-kv dd{
  margin:0;
  font-size:13px;
  line-height:1.5
}
html:not([data-ds]) .ac-protected,html:not([data-ds]) .ac-import{
  font-size:12px;
  color:var(--text-mid);
  line-height:1.6;
  padding:12px;
  background:var(--input-bg);
  border-radius:8px
}
html:not([data-ds]) .ac-history{
  list-style:none;
  margin:0;
  padding:0
}
html:not([data-ds]) .ac-history li{
  position:relative;
  border-left:1px solid var(--border);
  padding:0 0 22px 18px;
  margin-left:4px
}
html:not([data-ds]) .ac-history li:before{
  content:'';
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--aqua);
  left:-4px;
  top:5px
}
html:not([data-ds]) .ac-history strong{
  display:block;
  font-size:13px;
  font-weight:500
}
html:not([data-ds]) .ac-history span{
  display:block;
  color:var(--text-mid);
  font-size:11px;
  line-height:1.5;
  margin-top:6px
}
html:not([data-ds]) .ac-state{
  color:var(--text-mid);
  font-size:14px;
  padding:20px 0;
  line-height:1.6
}
html:not([data-ds]) .ac-back{
  display:none;
  margin-bottom:20px
}
html:not([data-ds])[data-theme=light] .ac-filters input,html:not([data-ds])[data-theme=light] .ac-filters select{
  color-scheme:light
}
@media(max-width:700px){
  html:not([data-ds]) .ac-head{
    flex-direction:column;
    gap:12px
  }
  html:not([data-ds]) .ac-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  html:not([data-ds]) .ac-body{
    grid-template-columns:minmax(0,1fr)
  }
  html:not([data-ds]) .ac-detail{
    padding:18px
  }
  html:not([data-ds]) .ac-row-top{
    flex-wrap:wrap
  }
  html:not([data-ds]) .ac-back{
    display:block
  }
  html:not([data-ds]) .ac-kv{
    gap:18px 12px
  }
  html:not([data-ds]) .ac-kv [data-ac-field=email],html:not([data-ds]) .ac-kv [data-ac-field=coa_email],html:not([data-ds]) .ac-kv [data-ac-field=address]{
    grid-column:1/-1
  }
}
@media(prefers-reduced-motion:reduce){
  html:not([data-ds]) .ac-credit button{
    transition:none
  }
}

/* ── IOVO design system (html[data-ds]): tokens only, no raw colours ── */
html[data-ds] .ac-credit{display:grid;gap:var(--ds-space-4);min-width:0;max-width:none;margin:0;color:var(--ds-text);font-family:var(--ds-font-sans);font-variant-numeric:tabular-nums}
html[data-ds] .ac-credit>*{min-width:0}
html[data-ds] .ac-head{display:block;margin:0}
html[data-ds] .ac-head .ac-eyebrow{display:flex;align-items:center;gap:var(--ds-space-2);margin:0;font-size:var(--ds-text-2xs);font-weight:var(--ds-weight-semibold);letter-spacing:.08em;text-transform:uppercase;color:var(--ds-accent-text)}
html[data-ds] .ac-head .ac-eyebrow::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:var(--ds-accent)}
html[data-ds] .ac-head h1{margin:var(--ds-space-2) 0 0;font:var(--ds-weight-semibold) var(--ds-text-2xl)/1.2 var(--ds-font-sans);letter-spacing:-.01em;text-wrap:balance;overflow-wrap:anywhere}
html[data-ds] .ac-head p{max-width:64ch;margin:var(--ds-space-1) 0 0;font-size:var(--ds-text-sm);line-height:1.5;color:var(--ds-text-2)}
html[data-ds] .ac-head .ac-safety{font-size:var(--ds-text-xs);color:var(--ds-text-3)}
html[data-ds] .ac-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ds-space-3);margin:0}
html[data-ds] .ac-filters .ds-field{align-content:start;grid-template-columns:minmax(0,1fr)}
html[data-ds] .ac-filters :is(input,select){min-width:0;max-width:100%}
html[data-ds] .ac-filters input[type=date]{color-scheme:dark}
html[data-theme=light][data-ds] .ac-filters input[type=date]{color-scheme:light}
html[data-ds] .ac-stats .ds-stat-label{overflow-wrap:break-word}
html[data-ds] .ac-stats .ds-stat.is-active{background:var(--ds-accent-soft);border-color:var(--ds-accent-line)}
html[data-ds] .ac-stats .ds-stat:focus-visible{outline:none;box-shadow:var(--ds-focus)}
html[data-ds] .ac-cust{display:grid;gap:2px;min-width:0}
html[data-ds] .ac-cust-name{font-weight:var(--ds-weight-medium);overflow-wrap:anywhere}
html[data-ds] .ac-sub{font-size:var(--ds-text-xs);color:var(--ds-text-3);overflow-wrap:anywhere}
html[data-ds] .ac-narrow{display:none}
@container ds-table (max-width:620px){html[data-ds] .ac-narrow{display:block}}
html[data-ds] .ac-when{white-space:normal}
html[data-ds] .ac-credit .ds-table td{height:48px}
html[data-ds] .ac-credit .ds-pill{white-space:normal}
html[data-ds] .ac-credit .ds-pill>span{overflow-wrap:normal;word-break:normal}
html[data-ds] .ac-state{margin:0;padding:var(--ds-space-8) var(--ds-space-4);border:1px dashed var(--ds-border-strong);border-radius:var(--ds-radius-lg);text-align:center;font-size:var(--ds-text-sm);line-height:1.5;color:var(--ds-text-2)}
html[data-ds] .ac-detail .ac-state{padding:var(--ds-space-6) var(--ds-space-2);border:0}
html[data-ds] .ac-state[role=alert]{color:var(--ds-danger)}
html[data-ds] .ac-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html[data-ds] .ac-credit [data-ac-more]{justify-self:start}
html[data-ds] .ac-detail{display:grid;gap:var(--ds-space-3);justify-items:start;min-width:0;overflow-wrap:anywhere;color:var(--ds-text)}
html[data-ds] .ac-detail>*{max-width:100%;min-width:0}
html[data-ds] .ac-detail h3{margin:var(--ds-space-3) 0 0;font:var(--ds-weight-semibold) var(--ds-text-sm)/1.3 var(--ds-font-sans);color:var(--ds-text)}
html[data-ds] .ac-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ds-space-3) var(--ds-space-4);width:100%;margin:0}
html[data-ds] .ac-kv dt{margin:0 0 2px;font-size:var(--ds-text-xs);color:var(--ds-text-2)}
html[data-ds] .ac-kv dd{margin:0;font-size:var(--ds-text-sm);line-height:1.4}
html[data-ds] .ac-protected,html[data-ds] .ac-import{width:100%;margin:0;padding:var(--ds-space-3);border:1px solid var(--ds-border);border-radius:var(--ds-radius-md);background:var(--ds-surface-2);font-size:var(--ds-text-xs);line-height:1.5;color:var(--ds-text-2)}
html[data-ds] .ac-history{width:100%;list-style:none;margin:0;padding:0}
html[data-ds] .ac-history li{position:relative;margin-left:var(--ds-space-1);padding:0 0 var(--ds-space-4) var(--ds-space-4);border-left:1px solid var(--ds-border-strong)}
html[data-ds] .ac-history li:last-child{padding-bottom:0}
html[data-ds] .ac-history li::before{content:'';position:absolute;left:-4px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--ds-accent)}
html[data-ds] .ac-history strong{display:block;font-size:var(--ds-text-sm);font-weight:var(--ds-weight-medium)}
html[data-ds] .ac-history span{display:block;margin-top:2px;font-size:var(--ds-text-xs);line-height:1.4;color:var(--ds-text-2)}
@media(max-width:900px){html[data-ds] .ac-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-ds] .ac-kv [data-ac-field=email],html[data-ds] .ac-kv [data-ac-field=coa_email],html[data-ds] .ac-kv [data-ac-field=address]{grid-column:1/-1}
@media(max-width:700px){html[data-ds] .ac-head h1{font-size:var(--ds-text-xl)}html[data-ds] .ac-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,104px),1fr))}html[data-ds] .ac-stats .ds-stat{padding:var(--ds-space-2) var(--ds-space-3)}html[data-ds] .ac-kv{gap:var(--ds-space-3) var(--ds-space-3)}html[data-ds] .ac-kv [data-ac-field=email],html[data-ds] .ac-kv [data-ac-field=coa_email],html[data-ds] .ac-kv [data-ac-field=address]{grid-column:1/-1}}
