/* Enterprise setup only. LE and launched-job views keep their existing layout. */
html .collect-now-dialog:has(> .collect-now-setup-form) {
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #d5e1ec;
  border-radius: 20px;
  background: #fff;
  color: #193044;
  box-shadow: 0 30px 90px #081b354d;
  scrollbar-width: thin;
  scrollbar-color: #9cb4c2 transparent;
}
.collect-now-dialog:has(> .collect-now-setup-form)::backdrop {
  background: #14263a9c;
  backdrop-filter: blur(3px);
}
html .collect-now-dialog .collect-now-setup-header {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 26px 32px;
  border: 0;
  background: radial-gradient(ellipse at 95% 10%, #20566d, transparent 65%), #0b2335;
  color: #fff;
  letter-spacing: normal;
  text-transform: none;
}
.collect-now-setup-header > img {
  display: inline-block;
  width: 116px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}
html .collect-now-setup-header .eyebrow {
  display: inline-block;
  margin: 0 54px 0 20px;
  color: #a4ced8;
  font-size: 11px;
  letter-spacing: 1.5px;
  vertical-align: middle;
}
html .collect-now-setup-header h2 {
  margin: 20px 40px 8px 0;
  color: #fff;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.6px;
  line-height: 1.2;
}
html .collect-now-setup-header .collect-now-intro {
  display: block;
  max-width: 760px;
  margin: 0;
  color: #c4d7e3;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
html .collect-now-setup-header .collect-now-dismiss {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  width: auto;
  max-width: none;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid #7395a6;
  background: #ffffff10;
}
html .collect-now-dialog:has(> .collect-now-setup-form) > .collect-now-balance {
  margin: 0;
  padding: 15px 32px;
  border: 0;
  border-bottom: 1px solid #dbe8ee;
  border-radius: 0;
  background: #f0f7fa;
  color: #315b70;
  font-size: 14px;
}
html .collect-now-dialog:has(> .collect-now-setup-form) > .hint {
  margin: 20px 32px 0;
}
html .collect-now-setup-form { padding: 28px 32px 24px; counter-reset: setup-step; }
html .collect-now-setup-form .collect-now-section-title,
html .collect-now-setup-form .collect-now-options > legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0 0 18px;
  color: #193044;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.collect-now-section-title::before,
.collect-now-options > legend::before {
  counter-increment: setup-step;
  content: counter(setup-step);
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf3f6;
  color: #267387;
  font-size: 14px;
}
html .collect-now-setup-form .collect-now-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}
html .collect-now-setup-form .collect-now-grid > label {
  min-width: 0;
  gap: 0;
  color: #29485c;
  font-size: 14px;
}
html .collect-now-setup-form .collect-now-grid > .matter-selector {
  grid-column: 1 / -1;
}
html .collect-now-setup-form .matter-options {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}
html .collect-now-setup-form .matter-option { margin: 0; }
html .collect-now-setup-form .collect-now-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  margin: 30px 0;
  padding: 0;
}
html .collect-now-setup-form .collect-now-choice {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 104px;
  gap: 18px;
  margin: 0;
  padding: 22px 40px 22px 20px;
  border: 1.5px solid #c9d9e3;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #f4f8fa);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
html .collect-now-setup-form .collect-now-choice:has(input:checked) {
  background: #ecf8fb;
  border-color: #158297;
  box-shadow: 0 0 0 1px #158297;
}
html .collect-now-setup-form .collect-now-choice:hover:not(:has(input:disabled)) {
  border-color: #158297;
}
html .collect-now-setup-form .collect-now-choice:focus-within {
  outline: 3px solid #158297;
  outline-offset: 3px;
}
html .collect-now-setup-form .collect-now-choice > input {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  accent-color: #087e98;
}
html .collect-now-setup-form .collect-now-choice > .portal-icon {
  width: 38px;
  height: 44px;
  flex: 0 0 38px;
  color: #28778a;
}
html .collect-now-setup-form .collect-now-choice strong { font-size: 16px; }
html .collect-now-setup-form .collect-now-choice small {
  margin-top: 6px;
  font-size: 13px;
  color: #5b7286;
  line-height: 1.5;
}
html .collect-now-setup-form .collect-now-choice:has(input:disabled) { cursor: not-allowed; }
html .collect-now-setup-form .collect-now-confirm {
  margin: 26px 0 20px;
  padding: 18px;
  border-color: #cbdce6;
  border-radius: 12px;
  background: #f4f8fa;
  font-size: 14px;
}
html .collect-now-setup-form > .primary {
  min-height: 48px;
  margin: 0;
  padding: 13px 24px;
  border-color: #2563eb;
  border-radius: 10px;
  background: #2563eb;
  font-weight: 650;
  box-shadow: 0 4px 12px #2563eb25;
}
html .collect-now-setup-form > .primary:hover:not(:disabled) { background: #1d4ed8; }
.collect-now-setup-form button:focus-visible,
.collect-now-setup-header button:focus-visible { outline: 3px solid #38a9c2; outline-offset: 3px; }
@media (max-width: 640px) {
  html .collect-now-dialog:has(> .collect-now-setup-form) { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  html .collect-now-dialog .collect-now-setup-header { padding: 24px 20px; }
  html .collect-now-setup-header .eyebrow { display: block; margin: 16px 0 0; font-size: 10px; }
  html .collect-now-setup-header h2 { margin-top: 10px; font-size: 26px; }
  html .collect-now-dialog:has(> .collect-now-setup-form) > .collect-now-balance { padding: 14px 20px; }
  html .collect-now-setup-form { padding: 24px 20px; }
  html .collect-now-setup-form .collect-now-grid,
  html .collect-now-setup-form .collect-now-options { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  html .collect-now-setup-form .collect-now-choice { min-height: 92px; }
  html .collect-now-setup-form > .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html .collect-now-setup-form .collect-now-choice { transition: none; }
}
