:root {
  --blue: #0a84ff;
  --blue-dark: #076ed6;
  --blue-soft: #eef6ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-soft: #eef0f2;
  --page: #f5f5f7;
  --surface: #ffffff;
  --danger: #b42318;
  --success: #166534;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

a {
  color: inherit;
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.app-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.app-header-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.app-brand-link {
  display: inline-block;
  text-decoration: none;
}

.app-brand-logo {
  display: block;
  width: 235px;
  max-width: 100%;
  height: auto;
}

.check-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.primary,
.secondary {
  min-height: 44px;
  border-radius: 11px;
  padding: 0 15px;
  font-weight: 800;
}

.primary {
  border: 0;
  background: var(--blue);
  color: white;
}

.primary:hover:not(:disabled) {
  background: var(--blue-dark);
}

.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.secondary:hover:not(:disabled) {
  background: #f8f9fa;
}

.compact {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}

.full {
  width: 100%;
}

.card {
  margin-top: 16px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.04);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.045);
}

.card:first-of-type {
  margin-top: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: #fafafa;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.between {
  justify-content: space-between;
}

.status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status.ok {
  color: var(--success);
}

.message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.message.visible {
  display: block;
}

.message.info {
  background: #f3f4f6;
  color: #4b5563;
}

.message.success {
  background: #ecfdf3;
  color: var(--success);
}

.message.error {
  background: #fff1f2;
  color: var(--danger);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Profile menu */

.profile-menu {
  position: relative;
  flex: 0 0 auto;
  margin-top: 4px;
}

.profile-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 10px 5px 6px;
  border: 1px solid #e2e4e8;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.profile-menu-name {
  max-width: 150px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-chevron {
  color: #737982;
  font-size: 10px;
}

.profile-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.15);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown-account,
.profile-dropdown-link,
.profile-dropdown-button {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.profile-dropdown-account-link:hover,
.profile-dropdown-link:hover,
.profile-dropdown-button:hover {
  background: #f5f6f8;
}

.profile-dropdown-name {
  font-size: 14px;
  font-weight: 850;
}

.profile-dropdown-username {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.profile-dropdown-profile-label {
  margin-top: 6px;
  color: #0a67d8;
  font-size: 11px;
  font-weight: 750;
}

.profile-dropdown-link,
.profile-dropdown-button {
  font-size: 13px;
  font-weight: 750;
}

.profile-dropdown-link.current {
  background: #f1f6ff;
  color: #0a67d8;
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--line-soft);
}

.sign-out {
  color: var(--danger);
}

/* Check page */

.check-save-progress {
  width: auto;
  min-height: 44px;
  white-space: nowrap;
}

.people-source-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.people-helper {
  margin-top: 3px;
}

.connected-picker-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.connection-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.connection-picker-row:hover:not(:disabled) {
  border-color: #cdd8e5;
  background: #fbfdff;
}

.connection-picker-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-picker-username {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.connection-picker-action {
  color: #0a67d8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #8a9099;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.divider-label::before,
.divider-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.guest-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.guest-add-row input,
.guest-add-row button {
  height: 48px;
  min-height: 48px;
}

.guest-add-row button {
  width: auto;
  padding: 0 16px;
  white-space: nowrap;
}

.person-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 9px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 13px;
  font-weight: 750;
}

.person-chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #68707b;
  font-size: 14px;
}

.people-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.person-option {
  position: relative;
}

.person-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.person-option label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.person-option input:checked + label {
  border-color: #91bff2;
  background: var(--blue-soft);
  color: #0a67d8;
}

.item-person-label {
  margin-top: 14px;
}

.item-add-button {
  margin-top: 14px;
}

.item-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-name {
  font-size: 13px;
  font-weight: 800;
}

.item-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.item-remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 750;
}

.charges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-calculate-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
}

.check-calculate-button {
  width: auto;
  min-height: 44px;
  background: white;
}

.results {
  display: none;
}

.results.visible {
  display: block;
}

.summary-scroll {
  overflow-x: auto;
}

.summary-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  text-align: right;
}

.summary-table th:first-child,
.summary-table td:first-child {
  text-align: left;
}

.summary-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.total-cell {
  font-weight: 850;
}

.grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.grand-total strong {
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Receipt */

.receipt-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px dashed #cfd4dc;
  border-radius: 14px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.receipt-dropzone:hover,
.receipt-dropzone.dragging {
  border-color: var(--blue);
  background: #f5faff;
}

.receipt-drop-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: #0a67d8;
  font-size: 22px;
  font-weight: 850;
}

.receipt-drop-copy {
  min-width: 0;
  flex: 1;
}

.receipt-drop-title {
  font-size: 14px;
  font-weight: 800;
}

.receipt-drop-help {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.receipt-browse-button {
  width: auto;
  min-height: 40px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.receipt-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.receipt-message {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.receipt-message.visible {
  display: block;
}

.receipt-message.info {
  background: #f3f4f6;
  color: #4b5563;
}

.receipt-message.success {
  background: #ecfdf3;
  color: var(--success);
}

.receipt-message.error {
  background: #fff1f2;
  color: var(--danger);
}

.receipt-file-list {
  display: grid;
  margin-top: 12px;
}

.receipt-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}

.receipt-file-row:first-child {
  border-top: 0;
}

.receipt-file-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f3f5;
  color: #59606b;
  font-size: 10px;
  font-weight: 900;
}

.receipt-file-main {
  min-width: 0;
}

.receipt-file-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-file-meta {
  margin-top: 2px;
  color: #7b8088;
  font-size: 11px;
}

.receipt-file-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.receipt-action {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.receipt-remove {
  color: var(--danger);
}

.receipt-empty {
  margin-top: 10px;
  color: #777d87;
  font-size: 12px;
}

.receipt-empty.hidden {
  display: none;
}

/* Checks page */

.checks-card {
  margin-top: 16px;
}

.section-title {
  margin: 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.check-list-main {
  min-width: 0;
  cursor: pointer;
}

.check-list-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-list-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.check-list-actions {
  display: flex;
  gap: 7px;
}

.check-list-actions button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}

.delete-check {
  color: var(--danger);
}

.empty-state {
  padding: 28px 10px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .app {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .app-brand-logo {
    width: 180px;
  }

  h1 {
    font-size: 27px;
  }

  .profile-menu-name {
    display: none;
  }

  .check-header-right {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }

  .check-save-progress {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .field-grid,
  .charges {
    grid-template-columns: 1fr;
  }

  .connection-picker-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .connection-picker-username {
    grid-column: 1;
  }

  .receipt-dropzone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .receipt-browse-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .receipt-file-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .receipt-file-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .check-list-row {
    grid-template-columns: 1fr;
  }

  .check-list-actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   MY CHECKS - GROUP NEW CHECK WITH SAVED CHECKS
   ========================================================= */

.checks-new-button {
  min-height: 50px;

  font-size: 15px;
}


.checks-section-divider {
  height: 1px;

  margin:
    18px
    0;

  background: var(--line-soft);
}


/* =========================================================
   MY CHECKS - THREE DOT ACTION MENU
   ========================================================= */

.check-list-row {
  overflow: visible;

  position: relative;
}


.check-more-wrapper {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: flex-end;
}


.check-more-button {
  width: 42px;

  height: 42px;

  display: grid;

  place-items: center;

  border:
    1px solid
    var(--line);

  border-radius: 11px;

  background: #fff;

  color: #4b5563;

  font-size: 24px;

  font-weight: 800;

  line-height: 1;
}


.check-more-button:hover {
  background: #f3f4f6;
}


.check-more-menu {
  position: absolute;

  z-index: 40;

  top:
    calc(
      100% +
      6px
    );

  right: 0;

  width: 180px;

  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius: 13px;

  background: #fff;

  box-shadow:
    0 12px 32px
    rgba(
      17,
      24,
      39,
      0.14
    );
}


.check-more-menu[hidden],
.check-export-options[hidden] {
  display: none;
}


.check-menu-item {
  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;

  min-height: 42px;

  padding:
    0
    13px;

  border: 0;

  background: #fff;

  color: var(--ink);

  text-align: left;

  font-size: 13px;

  font-weight: 750;
}


.check-menu-item:hover {
  background: #f6f7f8;
}


.check-export-toggle::after {
  content: "›";

  color: #858b94;

  font-size: 18px;
}


.check-export-options {
  padding:
    3px
    0
    5px;

  background: #fafafa;
}


.check-export-option {
  min-height: 38px;

  padding-left: 24px;

  background: #fafafa;

  color: #4b5563;

  font-size: 12px;
}


.check-export-option:hover {
  background: #f0f1f3;
}


.check-menu-divider {
  height: 1px;

  background: var(--line-soft);
}


.check-menu-delete {
  color: var(--danger);
}


@media (max-width: 720px) {

  .check-list-row {
    grid-template-columns:
      minmax(
        0,
        1fr
      )
      auto;
  }


  .check-more-menu {
    width: 170px;
  }
}


/* =========================================================
   MY CHECKS - ACTION MENU CLIPPING + DOT ALIGNMENT FIX
   ========================================================= */

/*
  The action menu needs to be able to extend below the
  Saved Checks card. The shared .card rule uses overflow:hidden,
  so explicitly override it here.
*/
.checks-card {
  overflow: visible;
}


.check-list {
  overflow: visible;
}


.check-more-wrapper {
  align-self: center;
}


.check-more-button {
  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  text-align: center;
}


.check-more-dots {
  display: block;

  line-height: 1;

  letter-spacing: 2px;

  transform:
    translate(
      1px,
      -2px
    );

  font-size: 17px;

  font-weight: 900;
}


/* =========================================================
   CHECK PAGE - CALCULATE STATUS + RESULTS ACTION MENU
   ========================================================= */

.check-calculate-card {
  overflow: visible;
}


.check-calculate-row {
  display: flex;

  align-items: center;

  gap: 12px;

  width: 100%;
}


.check-calculate-button {
  width: 100%;

  min-width: 0;

  flex:
    1
    1
    auto;

  min-height: 48px;
}


.check-save-message {
  flex:
    0
    0
    auto;

  max-width: 260px;

  margin-top: 0;

  white-space: nowrap;
}


.results {
  overflow: visible;
}


.results-heading-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 16px;
}


.results-heading-row h2 {
  margin: 0;
}


.results-more-wrapper {
  flex:
    0
    0
    auto;
}


.results-more-menu {
  top:
    calc(
      100% +
      6px
    );

  width: 170px;
}


@media (max-width: 640px) {

  .check-calculate-row {
    align-items: stretch;

    flex-direction: column;
  }


  .check-save-message {
    max-width: none;

    white-space: normal;
  }
}


/* =========================================================
   CHECK PAGE - SEARCHABLE CONNECTIONS + RECEIPT AT END
   ========================================================= */

.connection-search-wrap {
  margin-top: 12px;
}


.connection-search-input {
  height: 42px;

  background: #fff;

  font-size: 13px;
}


.receipt-card {
  margin-top: 16px;
}


.receipt-upload-note {
  margin-top: 5px;

  color: #8a9099;

  font-size: 11px;

  font-weight: 700;
}


@media (max-width: 640px) {

  .connection-search-input {
    height: 46px;

    font-size: 16px;
  }
}


/* =========================================================
   CHECK PAGE - TOP ACTION ROW + FEE SPLIT MODE
   ========================================================= */

.check-nav-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin:
    0
    0
    16px;
}


.check-nav-row .secondary,
.check-nav-row .primary {
  width: auto;
}


.check-header-right {
  align-items: flex-start;
}


.charges-with-fee-mode {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(150px, 0.75fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
}


.charges-with-fee-mode select {
  height: 48px;
}


@media (max-width: 900px) {

  .charges-with-fee-mode {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }
}


@media (max-width: 640px) {

  .check-nav-row {
    align-items: stretch;
  }


  .check-nav-row .secondary,
  .check-nav-row .primary {
    min-height: 42px;

    padding:
      0
      12px;

    font-size: 13px;
  }


  .charges-with-fee-mode {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CHECK PAGE - SEARCH PICKER + CONSISTENT TYPE HIERARCHY
   ========================================================= */

.check-page {
  --type-page-title: 32px;
  --type-section-title: 21px;
  --type-body: 14px;
  --type-label: 13px;
  --type-meta: 12px;
  --type-small: 11px;

  font-size:
    var(
      --type-body
    );

  line-height: 1.45;
}


.check-page h1 {
  font-size:
    var(
      --type-page-title
    );

  line-height: 1.1;
}


.check-page h2 {
  font-size:
    var(
      --type-section-title
    );

  line-height: 1.2;
}


.check-page input,
.check-page select {
  font-size:
    var(
      --type-body
    );
}


.check-page .primary,
.check-page .secondary,
.check-page .profile-menu-button,
.check-page .check-menu-item {
  font-size:
    var(
      --type-label
    );
}


.check-page .label,
.check-page .connection-picker-name,
.check-page .person-chip,
.check-page .item-name,
.check-page .receipt-drop-title {
  font-size:
    var(
      --type-label
    );
}


.check-page .status,
.check-page .message,
.check-page .connection-picker-username,
.check-page .item-meta,
.check-page .receipt-drop-help,
.check-page .receipt-file-name,
.check-page .profile-dropdown-link,
.check-page .profile-dropdown-button {
  font-size:
    var(
      --type-meta
    );
}


.check-page .receipt-upload-note,
.check-page .receipt-file-meta,
.check-page .summary-table th,
.check-page .connections-stat-label {
  font-size:
    var(
      --type-small
    );
}


.connection-picker-area {
  position: relative;

  overflow: visible;
}


.connection-search-input {
  height: 48px;

  background: #fafafa;

  font-size:
    var(
      --type-body
    );
}


.connection-suggestions {
  position: absolute;

  z-index: 35;

  top:
    calc(
      100% +
      6px
    );

  right: 0;

  left: 0;

  display: grid;

  gap: 0;

  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius: 13px;

  background: #fff;

  box-shadow:
    0 14px 34px
    rgba(
      17,
      24,
      39,
      0.14
    );
}


.connection-suggestions[hidden] {
  display: none;
}


.connection-suggestions
.connection-picker-row {
  min-height: 48px;

  margin: 0;

  border: 0;

  border-bottom:
    1px solid
    var(--line-soft);

  border-radius: 0;
}


.connection-suggestions
.connection-picker-row:last-child {
  border-bottom: 0;
}


.connection-search-status {
  margin:
    8px
    2px
    0;
}


.connection-search-status[hidden] {
  display: none;
}


.check-calculate-button.primary {
  border: 0;

  background:
    var(
      --blue
    );

  color: #fff;
}


.check-calculate-button.primary:hover:not(:disabled) {
  background:
    var(
      --blue-dark
    );
}


.receipt-upload-note {
  color: #7b8088;

  font-size:
    var(
      --type-meta
    );

  font-weight: 600;
}


@media (max-width: 640px) {

  .check-page {
    --type-page-title: 28px;
    --type-section-title: 20px;
    --type-body: 16px;
    --type-label: 14px;
    --type-meta: 13px;
    --type-small: 11px;
  }


  .connection-search-input {
    height: 48px;
  }
}
