/* Task 9: remaining mobile-web refinements at ~360–430px.
   Activity workflow/fields stay the same. Only contain page-level overflow at ~390px:
   native <select> option text was expanding form.form / .activityModeBox past the viewport.
   Does not change Android, Attendance, Task 4/8, or Command persistence. */

@media (max-width: 430px) {
  #ibs-dra-command,
  #ibs-next-shell,
  #ibs-c360-modal,
  #ibs-smart-panel,
  #ibs-smart-modal,
  .ibs-staff-page {
    overflow-x: clip;
    max-width: 100vw;
  }

  #ibs-smart-panel {
    max-height: min(48dvh, 360px);
  }

  #ibs-smart-panel.collapsed {
    max-height: 56px;
  }

  .ibs-staff-page .nl-toolbar,
  .ibs-staff-page .nl-form-grid,
  #ibs-branch-master .nl-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .ibs-staff-page .nl-toolbar > *,
  .ibs-staff-page .nl-input,
  .ibs-staff-page .nl-select,
  .ibs-staff-page .nl-btn {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .ibs-staff-table,
  .ibs-staff-table tbody,
  .ibs-staff-table tr,
  .ibs-staff-table td {
    min-width: 0 !important;
    max-width: 100%;
  }

  .ibs-staff-dialog {
    width: calc(100vw - 12px);
    max-width: 100vw;
    max-height: min(96dvh, 100%);
    overflow: auto;
  }

  .ibs-staff-dialog-head,
  .ibs-staff-dialog-body,
  .ibs-staff-dialog-foot {
    min-width: 0;
  }

  .ibs-staff-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ibs-c360-modal {
    padding: 8px;
    align-items: stretch;
  }

  .ibs-c360-dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    box-sizing: border-box;
    overflow: auto;
  }

  .ibs-c360-actions {
    flex-direction: column;
  }

  .ibs-c360-btn {
    width: 100%;
    min-height: 44px;
  }

  .ibs-c360-meta,
  .ibs-c360-note,
  .ibs-c360-dialog p {
    overflow-wrap: anywhere;
  }

  .ibs-dra-filters,
  .ibs-dra-kpis,
  .ibs-dra-grid {
    grid-template-columns: 1fr;
  }

  .ibs-dra-kpis.ibs-dra-kpis-pair {
    grid-template-columns: 1fr 1fr;
  }

  .ibs-dra-filters input,
  .ibs-dra-filters select,
  .ibs-dra-card,
  .ibs-dra-row,
  .ibs-dra-kpi {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ibs-dra-kpi strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .ibs-dra-stage {
    flex-direction: column;
    align-items: flex-start;
  }

  .ibs-dra-crumbs {
    max-width: 100%;
  }

  .ibs-smart-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ibs-smart-row > * {
    width: 100%;
  }

  .ibs-smart-dialog,
  #ibs-smart-modal .ibs-smart-dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 100%);
    margin: 0;
    box-sizing: border-box;
  }

  .ibs-smart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ibs-smart-sticky-actions button,
  .ibs-smart-actions .ibs-smart-btn,
  .ibs-contact-actions a,
  .ibs-contact-actions button {
    min-height: 44px;
  }

  .ibs-workflow-field {
    min-width: 0;
    width: 100%;
  }

  .ibs-workflow-details {
    flex-direction: column;
  }

  .ibs-workflow-scroll,
  .tableWrap,
  .nl-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ibs-workflow-scroll {
    overflow-x: visible;
  }
  .ibs-workflow-table {
    min-width: 0 !important;
    width: 100%;
  }
  .ibs-workflow-table thead {
    display: none;
  }
  .ibs-workflow-table,
  .ibs-workflow-table tbody,
  .ibs-workflow-table tr,
  .ibs-workflow-table td {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .ibs-workflow-table tr {
    border: 1px solid #dde4ed;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
  }
  .ibs-workflow-table th,
  .ibs-workflow-table td {
    white-space: normal;
    border: 0;
    padding: 6px 4px;
  }
  .ibs-workflow-table td:before {
    content: attr(data-label);
    display: block;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .ibs-workflow-table td[colspan]:before {
    content: none;
    display: none;
  }

  /* TEST/LIVE badge stays in page flow. It must not float over the header or cards. */
  .ibs-environment-ribbon {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: fit-content;
    margin: 8px 12px 0 auto;
  }

  /* Banking phone: Command/Smart Work stay visible; Import stays off the report canvas. */
  .tabs {
    flex-wrap: nowrap;
  }
  .hero {
    padding: 12px;
    gap: 8px;
  }
  #ibs-import-launcher {
    display: none !important;
  }
  #ibs-next-launcher {
    right: 8px !important;
    left: auto !important;
    bottom: calc(56px + env(safe-area-inset-bottom)) !important;
  }
  #ibs-smart-launcher {
    right: 8px !important;
    left: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
  body:has(.ibs-dra-tracker) #ibs-next-launcher,
  body:has(.ibs-dra-tracker) #ibs-smart-launcher {
    display: none !important;
  }

  .nl-form-grid:not(#nl-activity-form) {
    grid-template-columns: 1fr;
  }

  .nl-grow {
    min-width: 0;
    width: 100%;
  }

  html:has(.activityModeBox),
  body:has(.activityModeBox),
  .app:has(.activityModeBox),
  .app:has(.activityEntryFilter),
  .gridTwo:has(.activityModeBox),
  .gridTwo:has(.activityEntryFilter) {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .gridTwo:has(.activityModeBox),
  .gridTwo:has(.activityEntryFilter) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .app:has(.activityModeBox),
  .app:has(.activityEntryFilter) {
    max-width: 100vw;
  }

  .card:has(.activityModeBox),
  .card:has(.activityEntryFilter) {
    overflow-x: clip;
  }

  .card:has(.activityModeBox),
  .card:has(.activityEntryFilter),
  .activityModeBox,
  .activityEntryFilter,
  .activityUploadBox,
  .formTitleRow,
  form.form,
  form.form .field,
  form.form .two {
    min-width: 0;
    max-width: 100%;
  }

  form.form,
  form.form .two,
  .modeToggle {
    grid-template-columns: 1fr;
  }

  form.form select,
  form.form input,
  form.form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  form.form .ibs-field-error {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .ibs-att-card .ibs-att-actions {
    flex-direction: column;
  }
  .ibs-att-card .ibs-att-actions .btn,
  .ibs-att-card .ibs-workflow-field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .ibs-att-card {
    overflow-x: clip;
    max-width: 100%;
  }
  .ibs-att-flags {
    max-width: 100%;
  }
  .ibs-att-flag {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .ibs-att-cal,
  .ibs-att-cal-panel,
  .ibs-att-cal-grid,
  .ibs-att-cal-weekdays {
    max-width: 100%;
    overflow-x: clip;
  }
  .ibs-att-cal-controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ibs-att-cal-controls .ibs-workflow-field,
  .ibs-att-cal-panel .ibs-workflow-field,
  .ibs-att-cal-panel input,
  .ibs-att-cal-panel select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ibs-att-cal-cell {
    min-height: 54px;
    padding: 4px;
  }
  .ibs-att-cal-cell small {
    font-size: 9px;
  }
  .ibs-att-dash,
  .ibs-att-dash-filters,
  .ibs-att-dash-list,
  .ibs-att-dash-row,
  #ibs-att-detail {
    max-width: 100%;
    overflow-x: clip;
  }
  .ibs-att-dash {
    padding-bottom: 96px;
  }
  .ibs-att-dash-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ibs-att-dash-filters .ibs-workflow-field,
  .ibs-att-dash-filters select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ibs-att-dash-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ibs-att-dash-row {
    grid-template-columns: 1fr;
  }
  .ibs-att-corr-form,
  .ibs-att-corr-mine,
  .ibs-att-corr-queue,
  .ibs-att-corr-card,
  .ibs-att-corr-filters {
    max-width: 100%;
    overflow-x: clip;
  }
  .ibs-att-corr-queue {
    padding-bottom: 96px;
  }
  .ibs-att-corr-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ibs-att-corr-filters .ibs-workflow-field,
  .ibs-att-corr-form input,
  .ibs-att-corr-form select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ibs-att-report,
  .ibs-att-report-filters,
  .ibs-att-report-list,
  .ibs-att-report-row,
  #ibs-att-report-days {
    max-width: 100%;
    overflow-x: clip;
  }
  .ibs-att-report {
    padding-bottom: 96px;
  }
  .ibs-att-report-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ibs-att-report-filters .ibs-workflow-field,
  .ibs-att-report-filters select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ibs-att-report-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ibs-att-report-row {
    min-width: 0;
  }
  #ibs-att-report-days .ibs-workflow-scroll {
    overflow-x: auto;
    max-width: 100%;
  }
  .ibs-att-config,
  .ibs-att-config-filters,
  .ibs-att-shift,
  .ibs-att-shift-filters,
  .ibs-att-shift-list,
  .ibs-att-shift-row {
    max-width: 100%;
    overflow-x: clip;
  }
  .ibs-att-config,
  .ibs-att-shift {
    padding-bottom: 96px;
  }
  .ibs-att-config-filters,
  .ibs-att-shift-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ibs-att-config-filters .ibs-workflow-field,
  .ibs-att-config-filters select,
  .ibs-att-config-filters input,
  .ibs-att-shift-filters .ibs-workflow-field,
  .ibs-att-shift-filters select,
  .ibs-att-shift-filters input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* DRA mobile: hide extra DRA floater always. Hide Command / Smart Work / Import only for a floating (non-embedded) Command overlay. Embedded DRA landing keeps launchers. Banking / lead / C360 still hide them. */
  #ibs-dra-command-launcher,
  body:has(#ibs-dra-command.open:not(.embedded)) #ibs-import-launcher,
  body:has(#ibs-dra-command.open:not(.embedded)) #ibs-next-launcher,
  body:has(#ibs-dra-command.open:not(.embedded)) #ibs-smart-launcher,
  body:has(.leadDetailCard) #ibs-import-launcher,
  body:has(.leadDetailCard) #ibs-next-launcher,
  body:has(.leadDetailCard) #ibs-smart-launcher,
  body:has(#ibs-c360-modal.open) #ibs-import-launcher,
  body:has(#ibs-c360-modal.open) #ibs-next-launcher,
  body:has(#ibs-c360-modal.open) #ibs-smart-launcher {
    display: none !important;
  }
}

/* M2: compact the shared legacy header only while DRA is open.
   Desktop and Dashboard, Attendance, Field Visits, Smart Work, and IBS Command keep the existing header. */
@media (max-width: 640px) {
  body:has(.ibs-dra-tracker) .app > header.hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroInner,
  body:has(.ibs-dra-tracker) .app > header.hero .brand {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .mainLogo,
  body:has(.ibs-dra-tracker) .app > header.hero .heroBrand img {
    width: min(210px, 62%) !important;
    max-width: 62% !important;
    height: auto !important;
    max-height: 56px !important;
    aspect-ratio: 2048 / 471;
    flex: 0 0 auto;
    object-fit: contain !important;
    object-position: center !important;
    padding: 4px 6px !important;
    border-radius: 10px !important;
    border: 1px solid #d6a21e !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroCopy {
    min-width: 0;
    flex: 1 1 140px;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .kicker {
    display: block;
    margin: 0;
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1.2;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroCopy h1 {
    font-size: 16px;
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .mutedText {
    font-size: 11px;
    line-height: 1.25;
    margin: 2px 0 0;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroPills {
    margin-top: 4px;
    gap: 4px;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroPills span {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroActions {
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroActions .field {
    flex: 1 1 100%;
    min-width: 148px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroActions .field input {
    width: 100%;
    font-size: 14px;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroActions .field span {
    display: block;
    position: static;
    width: 100%;
    margin: 10px 0 8px;
    padding: 4px 0;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    color: #fff;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroActions button,
  body:has(.ibs-dra-tracker) .app > header.hero .heroActions input {
    min-height: 44px;
    box-sizing: border-box;
  }

  body:has(.ibs-dra-tracker) .app > header.hero .heroActions input[type="date"] {
    min-width: 0;
    flex: 1 1 9rem;
    max-width: 100%;
  }

  .app > header.hero {
    gap: 8px;
    padding: 10px 16px;
    border-radius: 16px;
    min-height: 0;
    overflow: visible;
    background: #0B4670 !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  .app > header.hero:before,
  .app > header.hero:after {
    display: none !important;
  }
  .app > header.hero .heroInner,
  .app > header.hero .heroBrand {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: flex-start !important;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }
  .app > header.hero .heroSide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .app > header.hero .heroLockup {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .app > header.hero .mainLogo,
  .app > header.hero .heroBrand img {
    width: min(210px, 62%) !important;
    max-width: 62% !important;
    height: auto !important;
    max-height: 56px !important;
    aspect-ratio: 2048 / 471;
    object-fit: contain !important;
    object-position: center !important;
    padding: 4px 6px !important;
    border: 1px solid #d6a21e !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  .app > header.hero .heroCopy {
    display: contents;
  }
  .app > header.hero .heroCopy h1 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.15;
    flex: 1 1 auto;
    min-width: 0;
  }
  .app > header.hero .kicker {
    display: none;
  }
  .app > header.hero .mutedText {
    display: block;
    flex: 1 0 100%;
    width: 100%;
    margin: 2px 0 0;
    max-width: 100%;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.35;
  }
  .app > header.hero .heroActions {
    flex: 0 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .app > header.hero .heroActions input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    margin: 0;
    font-size: 14px;
    box-sizing: border-box;
  }
  .app > header.hero .heroActions .field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    position: static;
    padding: 0;
    box-sizing: border-box;
  }
  .app > header.hero .heroActions .field span {
    display: block;
    position: static;
    overflow: visible;
    width: 100%;
    margin: 10px 0 8px;
    padding: 4px 0;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    text-align: center;
    color: #fff;
  }
  .app > header.hero .heroActions button {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    box-sizing: border-box;
  }
  .app > header.hero .heroPills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
  }
  .app > header.hero .heroPills span {
    white-space: nowrap;
    padding: 2px 6px;
    font-size: 12px;
  }
  .ibs-home-bar {
    margin-top: 8px;
    padding: 8px 10px;
  }
  nav.tabs {
    flex-wrap: wrap;
    overflow: visible;
    max-width: 100%;
    margin: 8px 0;
    padding: 6px;
  }
  nav.tabs > button {
    flex: 1 1 auto;
    min-height: 44px;
    white-space: nowrap;
  }
  html, body, #root, .app {
    overflow-x: clip;
    max-width: 100%;
  }
  .app .card,
  .app .form,
  .app .two,
  .loginCard,
  .tableWrap {
    max-width: 100%;
    min-width: 0;
  }
  .tableWrap {
    overflow-x: auto;
  }
}

@media (min-width: 641px) {
  .app > header.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0 !important;
    padding: 10px 16px !important;
    overflow: visible;
    background: #0B4670 !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .app > header.hero:before,
  .app > header.hero:after {
    display: none !important;
  }
  .app > header.hero .heroInner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    max-width: 1100px;
    gap: 28px;
  }
  .app > header.hero .heroLockup {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .app > header.hero .heroCopy h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
  }
  .app > header.hero .mainLogo,
  .app > header.hero .heroLockup img {
    width: auto !important;
    height: 64px !important;
    max-width: 300px !important;
    aspect-ratio: 2048 / 471;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
    padding: 5px 8px !important;
    border-radius: 10px !important;
    border: 1px solid #d6a21e !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  .app > header.hero .mutedText {
    margin: 3px 0 0;
    max-width: 260px;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.3;
  }
  .app > header.hero .heroSide {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .app > header.hero .heroPills {
    display: flex;
    justify-content: flex-end;
    margin: 0;
  }
  .app > header.hero .heroActions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .app > header.hero .heroActions .field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: visible;
    min-width: 168px;
    margin: 0;
  }
  .app > header.hero .heroActions input[type="date"],
  .app > header.hero .heroActions button {
    height: 44px;
    min-height: 44px;
    margin: 0;
    box-sizing: border-box;
  }
  .app > header.hero .heroActions .field span {
    display: block;
    position: static;
    overflow: visible;
    margin: 0 0 6px;
    padding: 0;
    color: #fff;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    text-indent: 0;
  }
  .ibs-more-nav {
    display: none;
  }
}

.loginBrand.heroLockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.loginBrand.heroLockup .kicker {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.loginBrand.heroLockup img {
  width: min(280px, 100%) !important;
  height: auto !important;
  aspect-ratio: 2048 / 471;
  max-height: 72px;
  object-fit: contain;
  background: #fff;
  padding: 5px 8px;
  border: 1px solid #d6a21e;
  border-radius: 10px;
  box-sizing: border-box;
}
.loginBrand.heroLockup h1 {
  margin: 8px 0 0;
  font-size: 22px;
}
.loginBrand.heroLockup p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

.app > header.hero button:focus-visible,
.app > header.hero input:focus-visible,
nav.tabs button:focus-visible,
.ibs-more-nav summary:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
.app > header.hero button:focus-visible,
.app > header.hero input:focus-visible {
  outline-color: #fff;
}
