/* Approved November 1 portal review: shared visual primitives.
   Screen layouts and data/permission behavior remain owned by each surface. */
html.certificate-workbench.tax-team-design,
html[data-customer-design="upload-first"] {
  --iq-ink: #222222;
  --iq-muted: #666666;
  --iq-canvas: #f9f9f9;
  --iq-line: #dadada;
  --iq-control-edge: #767676;
  --iq-brand: #da720f;
  --iq-focus: #007681;
  --iq-accepted: #6b6b00;
  --iq-accepted-bg: #f8f9ef;
  --iq-review: #007681;
  --iq-review-bg: #eff7f7;
  --iq-attention: #8a4604;
  --iq-attention-bg: #fff5eb;
  --iq-blocked: #923b32;
  --iq-blocked-bg: #fbf1f0;
}
html.certificate-workbench.tax-team-design {
  --ink: var(--iq-ink);
  --slate: var(--iq-muted);
  --slate-lt: var(--iq-muted);
  --ok: var(--iq-accepted);
  --ok-bg: var(--iq-accepted-bg);
  --warn: var(--iq-attention);
  --warn-bg: var(--iq-attention-bg);
}
html.certificate-workbench.tax-team-design .nav { gap: 4px; }
html.certificate-workbench.tax-team-design .nav a { font-size: 13px; }
html.certificate-workbench.tax-team-design :is(#v-import, #v-review-record) .card {
  border: 1px solid var(--iq-line);
  border-radius: 12px;
  box-shadow: none;
}
html.certificate-workbench.tax-team-design :is(#v-import, #v-review-record) .card-h {
  border-bottom: 1px solid var(--iq-line);
}
html.certificate-workbench.tax-team-design .btn {
  min-height: 42px;
  font-size: 14px;
}
html.certificate-workbench.tax-team-design .btn.sec {
  border-color: var(--iq-control-edge);
}
html.certificate-workbench.tax-team-design .badge {
  font-size: 12px;
  line-height: 1.4;
  min-height: 24px;
}
html.certificate-workbench.tax-team-design :is(.inp, .sel) {
  border-color: var(--iq-control-edge);
  font-size: 14px;
}
html.certificate-workbench.tax-team-design :is(.ptitle, #v-certificates .ptitle, .review-record-head .ptitle) {
  font-size: 38px;
  overflow-wrap: anywhere;
}
html.certificate-workbench.tax-team-design :is(.read-field-status.is-read, .badge.ok) {
  color: var(--iq-accepted);
  background: var(--iq-accepted-bg);
}
html.certificate-workbench.tax-team-design :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #da720f;
  outline-offset: 2px;
}
html[data-customer-design="upload-first"] #customer-batch-upload .badge[data-outcome="escalated"],
html[data-customer-design="upload-first"] #customer-batch-upload .badge[data-outcome="validating"] {
  color: var(--iq-review);
  background: var(--iq-review-bg);
  border-color: #bedbde;
}
html[data-customer-design="upload-first"] #customer-batch-upload .badge[data-outcome="accepted"] {
  color: var(--iq-accepted);
  background: var(--iq-accepted-bg);
}
html[data-customer-design="upload-first"] .portal .step {
  border-color: transparent;
  font-size: 14px;
}
html[data-customer-design="upload-first"] #customer-batch-upload .card-h {
  padding: 20px 24px 6px;
}
html[data-customer-design="upload-first"] #customer-batch-upload .card-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 12px 24px;
  padding: 12px 24px 24px;
}
html[data-customer-design="upload-first"] #customer-batch-upload .card-b > * {
  grid-column: 1 / -1;
  min-width: 0;
  margin-block: 0;
}
html[data-customer-design="upload-first"] #customer-batch-upload .customer-upload-instruction {
  grid-column: 1;
  grid-row: 1;
}
html[data-customer-design="upload-first"] #customer-batch-upload .customer-file-choice {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
html[data-customer-design="upload-first"] #customer-batch-upload .card-b > .hint {
  grid-column: 1;
  grid-row: 2;
}
html[data-customer-design="upload-first"] #customer-batch-upload .customer-upload-attestation {
  grid-column: 1;
  grid-row: 3;
  align-self: center;
  font-size: 13px;
}
html[data-customer-design="upload-first"] #customer-batch-upload .acts {
  grid-column: 2;
  grid-row: 3;
  padding: 0;
  border: 0;
  background: transparent;
}
html[data-customer-design="upload-first"] #customer-batch-upload input[type="file"]::file-selector-button {
  color: #fff;
  background: #242424;
  border-color: #242424;
  min-height: 42px;
  font-size: 14px;
}
@media (max-width: 1000px) {
  html[data-customer-design="upload-first"] #customer-batch-upload .card-b {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-customer-design="upload-first"] #customer-batch-upload .card-b > * {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 700px) {
  html.certificate-workbench.tax-team-design :is(.ptitle, #v-certificates .ptitle, .review-record-head .ptitle) {
    font-size: 29px;
  }
}
