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

html { scrollbar-gutter: stable; }
body { overflow-x: hidden; }
.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: 1 1 260px; min-width: 0; max-width: 34ch; line-height: 1.15; }
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 .btn[aria-current="page"] { background: var(--navy, #123e63) !important; color: #fff !important; border-color: var(--navy, #123e63) !important; }
.header-more { position: relative; }
.header-more > summary { list-style: none; cursor: pointer; }
.header-more > summary::-webkit-details-marker { display: none; }
.header-more-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: grid; gap: 8px; width: min(290px, 82vw); padding: 12px; border: 1px solid var(--line, #cbd5df); border-radius: 10px; background: #fff; box-shadow: 0 14px 32px rgba(24,51,73,.18); }
.header-more-menu .btn { width: 100%; justify-content: flex-start; text-align: left; white-space: normal; }
.essentials-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.essential-action { display: block; min-height: 126px !important; padding: 18px !important; border: 2px solid var(--navy,#123e63); border-radius: 12px; background: #fff; color: var(--ink,#17202a); text-decoration: none; text-align: left; cursor: pointer; }
.essential-action strong,.essential-action span { display: block; }
.essential-action strong { color: var(--navy,#123e63); font-size: 19px; }
.essential-action span { margin-top: 7px; color: var(--muted,#627080); font-size: 14px; font-weight: 500; line-height: 1.4; }
body.cb-essentials-only #workspaceDashboard > .private,
body.cb-essentials-only #workspaceDashboard > .workspace-grid,
body.cb-essentials-only #workspaceDashboard > .workspace-home-actions,
body.cb-essentials-only #workspaceDashboard > .eyebrow,
body.cb-essentials-only #workspaceDashboard > h2,
body.cb-essentials-only #workspaceAdvancedDataTools,
body.cb-essentials-only #serviceCatalogCard:not(.cb-focused-tool),
body.cb-essentials-only #workspaceGettingStarted.all-ready { display: none !important; }
.event-view-menu { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:20px 0; }
.event-view-menu button { min-height:84px !important; padding:14px !important; text-align:left; }
.event-view-menu button strong,.event-view-menu button span { display:block; }
.event-view-menu button span { margin-top:4px; color:var(--muted,#627080); font-size:13px; font-weight:500; }
.event-view-menu button[aria-current="page"] { background:var(--navy,#123e63); color:#fff; }
.event-view-menu button[aria-current="page"] span { color:#fff; }
.event-view-hidden { display:none !important; }
header .secure-sign-out { border-color: #7a2930; color: #7a2930; background: #fff; }
.cb-mobile-nav-toggle { display: none; }
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; }
.schedule-window-panel { margin-top: 4px; padding: 18px; border: 1px solid var(--line, #cbd5df); border-radius: 10px; background: var(--wash, #f3f7fa); }
.schedule-window-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.schedule-window-heading h4 { margin: 0; color: var(--navy, #123e63); font-size: 18px; }
.schedule-window-heading .eyebrow { margin-bottom: 4px; }
.schedule-window-heading p { max-width: 430px; margin: 0; color: var(--muted, #627080); line-height: 1.45; }
.schedule-window-grid { margin-top: 14px !important; }
.schedule-call-time { padding-bottom: 14px; border-bottom: 1px solid var(--line, #cbd5df); }

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; }
.setup-checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.setup-checklist li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line, #cbd5df); border-radius: 9px; background: #fff; }
.setup-checklist .number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy, #123e63); color: #fff; font-weight: 850; }
.setup-checklist li.ready .number { background: #24714f; }
.setup-checklist strong, .setup-checklist small { display: block; }
.setup-checklist small { color: var(--muted, #627080); }

@media (max-width: 700px) {
  .essentials-grid { grid-template-columns: 1fr; }
  .essential-action { min-height: 0 !important; }
  .header-more { grid-column: 1 / -1; width: 100%; }
  .header-more > summary { width: 100%; }
  .header-more-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .event-view-menu { grid-template-columns:1fr 1fr; }
  .shell { width: min(100% - 20px, var(--cb-shell)) !important; }
  .card { padding: 18px !important; }
  header { min-height: 0; padding-block: 10px !important; }
  header > .shell, header .top, header .header-row {
    min-height: 44px;
    flex-flow: row wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }
  header .brand, header [data-capturebeacon-workspace-brand] {
    flex: 1 1 150px !important;
    min-height: 44px;
    max-width: calc(100% - 104px);
    display: flex;
    align-items: center;
  }
  header .brand img, header [data-capturebeacon-workspace-brand] img {
    max-width: 160px !important;
    max-height: 44px !important;
    object-fit: contain;
  }
  .cb-mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 88px;
    margin: 0 0 0 auto !important;
    background: #fff;
    color: var(--navy, #123e63);
    border: 2px solid var(--navy, #123e63);
  }
  header:has([data-capturebeacon-mobile-nav].hide) .cb-mobile-nav-toggle { display: none !important; }
  header nav[data-capturebeacon-mobile-nav], header [data-capturebeacon-mobile-nav].header-actions, header #workspaceHeaderActions[data-capturebeacon-mobile-nav] {
    display: none !important;
    width: 100%;
    margin: 0 !important;
    padding-top: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  header [data-capturebeacon-mobile-nav].cb-mobile-open { display: grid !important; }
  header [data-capturebeacon-mobile-nav] .btn,
  header [data-capturebeacon-mobile-nav] button {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    white-space: normal;
    text-align: center;
  }
  header [data-capturebeacon-mobile-nav] .secure-sign-out { grid-column: 1 / -1; }
  main.shell { padding-top: 24px; }
  main h1 { max-width: 100%; overflow-wrap: anywhere; }
  main .card, main .event-row, main .record { min-width: 0; overflow-wrap: anywhere; }
  .download-list { grid-template-columns: 1fr; }
  .setup-checklist li { grid-template-columns: 34px minmax(0, 1fr); }
  .setup-checklist li .btn, .setup-checklist li button { grid-column: 1 / -1; width: 100%; }
  .schedule-window-heading { display: block; }
  .schedule-window-heading p { margin-top: 7px; }
}

@media (max-width: 380px) {
  header nav[data-capturebeacon-mobile-nav], header [data-capturebeacon-mobile-nav].header-actions, header #workspaceHeaderActions[data-capturebeacon-mobile-nav] { grid-template-columns: 1fr; }
  header [data-capturebeacon-mobile-nav] .secure-sign-out { grid-column: auto; }
}

.gallery-contact-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.gallery-contact-toolbar p{margin:0}.gallery-contact-toolbar select{min-width:180px}
.gallery-contact-table-wrap{max-height:560px;overflow:auto;border:1px solid var(--line,#c0c8d8);background:#fff}
.gallery-contact-table{width:100%;border-collapse:collapse;font-size:14px}.gallery-contact-table th{position:sticky;top:0;z-index:1;background:#edf1f6;color:#003471;text-align:left}.gallery-contact-table th,.gallery-contact-table td{padding:10px 12px;border-bottom:1px solid var(--line,#c0c8d8);vertical-align:top}.gallery-contact-table tbody tr:last-child td{border-bottom:0}.gallery-contact-table summary.btn{display:inline-block;min-height:0;padding:7px 10px;list-style:none}.gallery-contact-table details[open] summary{margin-bottom:10px}.gallery-contact-review-panel{min-width:min(620px,75vw);padding:12px;background:#f7f9fb;border:1px solid var(--line,#c0c8d8)}.gallery-contact-empty{text-align:center;color:var(--muted,#626b78);padding:24px!important}
@media(max-width:760px){.gallery-contact-toolbar{align-items:stretch;flex-direction:column}.gallery-contact-toolbar select{width:100%}.gallery-contact-table th:nth-child(4),.gallery-contact-table td:nth-child(4){display:none}.gallery-contact-review-panel{min-width:75vw}}
