.inner-intake .clear-files,
.inner-intake .intake-resources {
  display: inline-block;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #233e56;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.inner-intake .form-end button:disabled { opacity: .65; cursor: wait; }
.inner-intake .form-status[data-state="error"] { border-color: #a71e32; background: #f2e2de; }
.inner-intake .form-status[data-state="success"] { border-color: #406a50; }
.inner-intake #contact { scroll-margin-top: 5rem; }

.inner-intake .mode-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#main.inner-intake .mode-switch > a {
  min-width: 0;
  min-height: 44px;
  padding-inline: clamp(6px, 1.5vw, 16px);
  text-align: center;
}
@media (max-width: 520px) {
  #main.inner-intake .mode-switch { grid-template-columns: repeat(3, auto); }
  #main.inner-intake .mode-switch > a { font-size: .875rem; line-height: 1.25; }
}

/* The enquiry panel is paper-coloured. Explicit pairs keep its mode bar and
   attachment panel readable when the service-desk theme adds its dark surfaces. */
#main.inner-intake[data-service-desk="intake"] .mode-switch {
  background: #10273e;
}
#main.inner-intake[data-service-desk="intake"] .mode-switch > a {
  background: transparent;
  color: #d0dfe9;
}
#main.inner-intake[data-service-desk="intake"] .mode-switch a[aria-current],
#main.inner-intake[data-service-desk="intake"] .mode-switch a:hover {
  background: #244460;
  color: #fff6eb;
}
#main.inner-intake[data-service-desk="intake"] .mode-switch a:focus-visible {
  outline: 2px solid #fff6eb;
  outline-offset: -4px;
}
#main.inner-intake .upload {
  background: #10273e;
  color: #f7f1e8;
}
#main.inner-intake .upload :is(label, input[type="file"], .attachment-names, .attachment-names li) {
  color: #f7f1e8;
}
#main.inner-intake .upload :is(.attachment-count, small) {
  color: #c5d5e2;
}
#main.inner-intake .upload .attachment-choose,
#main.inner-intake .upload input::file-selector-button {
  color: #fff6eb;
  background: #294b67;
  border: 1px solid #87a4ba;
}
#main.inner-intake .upload .attachment-picker:hover .attachment-choose {
  background: #345c7a;
}
#main.inner-intake .upload .attachment-picker:has(input:focus-visible) {
  outline: 2px solid #fff6eb;
  outline-offset: 3px;
}
#main.inner-intake .upload .attachment-error { color: #ffa7b5; }

/* Keep rejected selections with the validation message. The decorative preview
   presents accepted files only; the native list keeps their full accessible names. */
#main.inner-intake .upload:has(input[type="file"]:invalid) .tp-files {
  display: none;
}
#main.inner-intake .upload:has(input[type="file"]:valid):has(.tp-manifest .animated-list__title) .attachment-names:not([hidden]) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}
