:root {
  --cb-shell: 1120px;
  --cb-control-height: 48px;
  --cb-action-height: 44px;
}

html { scrollbar-gutter: stable; }
.shell { width: min(var(--cb-shell), calc(100% - 28px)) !important; margin-inline: auto !important; }
header { min-height: 68px; }
header > .shell, header .top, header .header-row {
  min-height: 38px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
}
header .brand, header [data-capturebeacon-workspace-brand] { flex: 0 1 auto; }
header nav, header .header-actions, #workspaceHeaderActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
header .btn { margin-top: 0 !important; white-space: nowrap; }
header .secure-sign-out { border-color: #7a2930; color: #7a2930; background: #fff; }
main.shell { padding-top: 34px; padding-bottom: 80px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card { border-radius: 12px !important; padding: 22px !important; margin-top: 18px !important; }
.notice, .private { border-radius: 8px !important; padding: 14px 16px !important; }
.workspace-primary { margin: 22px 0; padding: 20px; border: 1px solid var(--line, #cbd5df); border-radius: 12px; background: var(--wash, #f3f7fa); }
.workspace-home-actions { margin: 18px 0 4px; }
.optional-tool > summary { cursor: pointer; list-style-position: outside; }
.optional-tool > summary h3 { display: inline; margin: 0; }
.optional-tool-body { margin-top: 16px; }
.download-options { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #cbd5df); }
.download-options > summary { cursor: pointer; font-weight: 750; color: var(--navy, #123e63); }
.download-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.download-list button { width: 100%; text-align: left; justify-content: flex-start; overflow-wrap: anywhere; }
.readiness-target { outline: 4px solid rgba(229, 166, 50, .55); outline-offset: 4px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
select {
  width: 100%;
  height: var(--cb-control-height);
  min-height: var(--cb-control-height) !important;
  padding: 10px 11px !important;
}
input[type="file"] { width: 100%; min-height: var(--cb-control-height); padding: 9px; }
textarea { width: 100%; min-height: 110px; padding: 10px 11px !important; }
input[type="checkbox"], input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px !important;
  flex: 0 0 20px;
  margin: 2px 8px 0 0;
  accent-color: var(--navy, #123e63);
}
label.check, label.confirm, .choices label, label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 4px;
  line-height: 1.45;
}
button, .btn {
  min-height: var(--cb-action-height) !important;
  padding: 9px 14px !important;
  align-items: center;
  justify-content: center;
}
button:disabled, .btn[aria-disabled="true"] { opacity: .48; cursor: not-allowed; }
.btn[aria-disabled="true"] { pointer-events: none; }
.section-head { align-items: center !important; }
.event-row .actions { margin-top: 12px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 20px, var(--cb-shell)) !important; }
  .card { padding: 18px !important; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1 1 auto; }
  header > .shell, header .top, header .header-row { align-items: flex-start !important; }
  header nav, header .header-actions, #workspaceHeaderActions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .download-list { grid-template-columns: 1fr; }
}
