/* Third mobile theme: compact professional comparison list. */
@media (max-width: 768px) {
  .miqm-compact-only { display: none !important; }

  body.mobile-ios-enabled.mobile-ui-theme-compact {
    --mobile-ios-canvas: #f7f8fb;
    --mobile-ios-surface: rgba(255,255,255,.98);
    --mobile-ios-surface-solid: #fff;
    --mobile-ios-blue-soft: #edf4ff;
    --mobile-ios-navy: #07275c;
    --mobile-ios-blue: #0667ed;
    --mobile-ios-blue-pressed: #0054c5;
    --mobile-ios-label: #07275c;
    --mobile-ios-secondary: #71809a;
    --mobile-ios-separator: #e8edf5;
    --mobile-ios-outline: #dfe6f0;
    --mobile-ios-shadow-soft: 0 6px 20px rgba(16,48,94,.05);
    --mobile-ios-shadow-float: 0 12px 28px rgba(12,44,91,.16);
    background: #f7f8fb;
  }

  body.mobile-ui-theme-compact .mobile-ios-portal { background: #f7f8fb; }
  body.mobile-ui-theme-compact .mobile-ios-screen { max-width: 520px; padding: 0 16px 162px; }
  body.mobile-ui-theme-compact .miqm-compact-only { display: block !important; }
  body.mobile-ui-theme-compact .miqm-standard-only,
  body.mobile-ui-theme-compact .miqm-illustrated-only,
  body.mobile-ui-theme-compact .miqm-hero,
  body.mobile-ui-theme-compact .miqm-background,
  body.mobile-ui-theme-compact .miqm-step,
  body.mobile-ui-theme-compact .miqm-source-strip,
  body.mobile-ui-theme-compact .miqm-run-row,
  body.mobile-ui-theme-compact .miqm-application-progress { display: none !important; }

  body.mobile-ui-theme-compact .mobile-ios-quick-match { padding-top: 0; }
  body.mobile-ui-theme-compact .miqm-compact-hero {
    position: relative;
    min-height: 188px;
    margin: 0 -16px;
    padding: 30px 16px 18px;
    overflow: hidden;
    background: #0b3a75;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.14);
  }

  body.mobile-ui-theme-compact .miqm-compact-hero::after {
    position: absolute;
    top: 18px;
    right: -10px;
    width: 260px;
    height: 112px;
    background: url('/assets/mobile-ios/compact-campus-line-hero-v1.webp') center/contain no-repeat;
    content: "";
    filter: brightness(0) invert(1);
    opacity: .1;
    pointer-events: none;
  }

  body.mobile-ui-theme-compact .miqm-compact-hero__headline {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 235px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 31px;
    font-weight: 850;
    letter-spacing: .05em;
    line-height: 1.08;
  }

  body.mobile-ui-theme-compact .miqm-compact-hero__headline .ph { color: #7fc2ff; font-size: 16px; }
  body.mobile-ui-theme-compact .miqm-compact-hero__subtitle {
    position: relative;
    z-index: 1;
    max-width: 230px;
    margin: 8px 0 0;
    color: #d4e4f7;
    font-size: 12px;
  }

  body.mobile-ui-theme-compact .miqm-compact-hero__summary {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: calc(100% - 14px);
    min-height: 36px;
    margin-top: 16px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    color: #f7fbff;
    font-size: 12px;
    white-space: nowrap;
  }

  body.mobile-ui-theme-compact .miqm-compact-hero__summary .miqm-chip {
    gap: 4px;
    min-height: 24px;
    padding: 0 7px;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: none;
    font-size: 11px;
  }
  body.mobile-ui-theme-compact .miqm-compact-hero__summary .miqm-chip .ph { font-size: 12px; }
  body.mobile-ui-theme-compact .miqm-compact-hero__summary .miqm-chip:nth-child(n+4) { display: none; }
  body.mobile-ui-theme-compact .miqm-compact-hero__sparkline {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 13px 0 0;
    color: #e6f0fb;
    font-size: 12px;
  }

  body.mobile-ui-theme-compact .miqm-compact-hero__sparkline .ph { color: #87c7ff; }
  body.mobile-ui-theme-compact .miqm-compact-run-button {
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    margin: 2px 0 14px;
    border: 0;
    border-radius: 14px;
    background: #0667ed;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(6,103,237,.18);
  }
  body.mobile-ui-theme-compact .miqm-compact-run-button .ph:last-child { margin-left: auto; margin-right: 14px; }
  body.mobile-ui-theme-compact .miqm-compact-run-button .ph:first-child { margin-left: 14px; }
  body.mobile-ui-theme-compact .miqm-compact-results-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin: 0;
    padding: 0 2px;
    border-top: 1px solid #e8edf4;
    border-bottom: 1px solid #e8edf4;
    color: #153563;
  }

  body.mobile-ui-theme-compact .miqm-compact-results-head strong { font-size: 13px; }
  body.mobile-ui-theme-compact .miqm-compact-results-head > div { display: inline-flex; align-items: center; gap: 5px; }
  body.mobile-ui-theme-compact .miqm-compact-results-head > div > .ph { color: #1d477c; font-size: 15px; }
  body.mobile-ui-theme-compact .miqm-compact-results-head > div > span { color: #697992; font-size: 11px; }
  body.mobile-ui-theme-compact .miqm-compact-results-head small { margin-left: 4px; color: #77869e; font-size: 11px; font-weight: 500; }
  body.mobile-ui-theme-compact .miqm-compact-results-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 40px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    color: #526986;
    font-size: 11px;
    white-space: nowrap;
  }
  body.mobile-ui-theme-compact .miqm-compact-results-head button[aria-expanded="true"] { color: #0667ed; }
  body.mobile-ui-theme-compact .miqm-compact-results-head__actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    min-width: 0;
  }
  body.mobile-ui-theme-compact .miqm-school-filter {
    width: 100%;
    min-width: 0;
    padding: 12px 2px 10px;
    border-bottom: 1px solid #e7ecf3;
    background: #fff;
    color: #153563;
    overflow: hidden;
  }
  body.mobile-ui-theme-compact .miqm-school-filter[hidden] { display: none !important; }
  body.mobile-ui-theme-compact .miqm-school-filter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 9px;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__head > div { display: grid; gap: 2px; min-width: 0; }
  body.mobile-ui-theme-compact .miqm-school-filter__head strong { font-size: 15px; }
  body.mobile-ui-theme-compact .miqm-school-filter__head small {
    color: #6d7f98;
    font-size: 12px;
    line-height: 1.45;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__head > span {
    flex: 0 0 auto;
    color: #0667ed;
    font-size: 12px;
    font-weight: 700;
  }
  body.mobile-ui-theme-compact .miqm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__search {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(100% - 14px);
    min-width: 0;
    min-height: 42px;
    margin: 0 7px 8px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    background: #f7f9fc;
    color: #6d7f98;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__search > .ph { flex: 0 0 auto; margin-left: 11px; font-size: 17px; }
  body.mobile-ui-theme-compact .miqm-school-filter__search input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 11px 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #153563;
    font: inherit;
    font-size: 14px;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__search:focus-within { border-color: #0667ed; box-shadow: 0 0 0 2px rgba(6,103,237,.12); }
  body.mobile-ui-theme-compact .miqm-school-filter__list {
    display: grid;
    max-height: min(42vh, 310px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__option { min-width: 0; border-top: 1px solid #eef1f6; }
  body.mobile-ui-theme-compact .miqm-school-filter__school {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
    border: 0;
    border-top: 0;
    background: transparent;
    color: #19365e;
    text-align: left;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__school > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__school strong {
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__school small { color: #72819a; font-size: 12px; }
  body.mobile-ui-theme-compact .miqm-school-filter__school.is-selected { background: #f1f6ff; color: #0759cc; }
  body.mobile-ui-theme-compact .miqm-school-filter__check {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #cbd5e3;
    border-radius: 50%;
    color: #fff;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__school.is-selected .miqm-school-filter__check { border-color: #0667ed; background: #0667ed; }
  body.mobile-ui-theme-compact .miqm-school-filter__programs {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 3px 8px 9px 18px;
    background: #f7faff;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__program {
    display: grid;
    grid-template-columns: minmax(0,1fr) 24px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 7px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #294565;
    text-align: left;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__program > span:first-child { display: grid; gap: 2px; min-width: 0; }
  body.mobile-ui-theme-compact .miqm-school-filter__program strong,
  body.mobile-ui-theme-compact .miqm-school-filter__program small { min-width: 0; overflow-wrap: anywhere; }
  body.mobile-ui-theme-compact .miqm-school-filter__program strong { font-size: 13px; }
  body.mobile-ui-theme-compact .miqm-school-filter__program small { color: #73849b; font-size: 11px; line-height: 1.35; }
  body.mobile-ui-theme-compact .miqm-school-filter__program.is-selected { background: #eaf2ff; color: #0759cc; }
  body.mobile-ui-theme-compact .miqm-school-filter__program.is-selected .miqm-school-filter__check { border-color: #0667ed; background: #0667ed; }
  body.mobile-ui-theme-compact .miqm-school-filter__empty,
  body.mobile-ui-theme-compact .miqm-probability-tier__empty { margin: 0; padding: 18px 10px; color: #72819a; font-size: 13px; text-align: center; }
  body.mobile-ui-theme-compact .miqm-school-filter__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 7px;
    padding: 10px 7px 0;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__actions button {
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    background: #fff;
    color: #39516f;
    font-size: 12px;
    font-weight: 700;
  }
  body.mobile-ui-theme-compact .miqm-school-filter__actions .is-primary { border-color: #0667ed; background: #0667ed; color: #fff; }
  body.mobile-ui-theme-compact .miqm-school-filter__actions button:disabled { opacity: .45; }
  body.mobile-ui-theme-compact .miqm-results { margin-top: 0; }
  body.mobile-ui-theme-compact .miqm-results__header { display: none; }
  body.mobile-ui-theme-compact .miqm-results__list { display: grid; gap: 0; }
  body.mobile-ui-theme-compact .miqm-probability-tiers {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 10px 0 12px;
  }
  body.mobile-ui-theme-compact .miqm-probability-tier {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6e2f0;
    border-left: 4px solid #1466d8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(21, 53, 99, .06);
  }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-reach { border-color: #f0cece; border-left-color: #d94b4b; }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-safe { border-color: #cce5d5; border-left-color: #24854b; }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-selected { border-color: #a8c7f4; border-left-color: #1466d8; }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-selected.is-reach { border-left-color: #d94b4b; }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-selected.is-safe { border-left-color: #24854b; }
  body.mobile-ui-theme-compact .miqm-probability-tier__toggle {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 20px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 10px 11px;
    border: 0;
    background: #f8fbff;
    color: #153563;
    text-align: left;
  }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-reach .miqm-probability-tier__toggle { background: #fff9f9; }
  body.mobile-ui-theme-compact .miqm-probability-tier.is-safe .miqm-probability-tier__toggle { background: #f8fcf9; }
  body.mobile-ui-theme-compact .miqm-probability-tier__identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
  body.mobile-ui-theme-compact .miqm-probability-tier__identity > .ph { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e8f2ff; color: #1466d8; font-size: 20px; }
  body.mobile-ui-theme-compact .is-reach .miqm-probability-tier__identity > .ph { background: #ffe9e9; color: #d94b4b; }
  body.mobile-ui-theme-compact .is-safe .miqm-probability-tier__identity > .ph { background: #e6f5eb; color: #24854b; }
  body.mobile-ui-theme-compact .miqm-probability-tier__identity > span { display: grid; gap: 2px; min-width: 0; }
  body.mobile-ui-theme-compact .miqm-probability-tier__identity strong { font-size: 15px; }
  body.mobile-ui-theme-compact .miqm-probability-tier__identity small { color: #72819a; font-size: 11px; overflow-wrap: anywhere; }
  body.mobile-ui-theme-compact .miqm-probability-tier__summary { color: #526986; font-size: 11px; white-space: nowrap; }
  body.mobile-ui-theme-compact .miqm-probability-tier__summary strong { color: #153563; font-size: 14px; }
  body.mobile-ui-theme-compact .miqm-probability-tier__toggle > .ph:last-child { transition: transform .18s ease; }
  body.mobile-ui-theme-compact .miqm-probability-tier__toggle[aria-expanded="true"] > .ph:last-child { transform: rotate(180deg); }
  body.mobile-ui-theme-compact .miqm-probability-tier__body { min-width: 0; padding: 8px; border-top: 1px solid #e7ecf3; background: #f7f9fc; }
  body.mobile-ui-theme-compact .miqm-probability-tier__body[hidden] { display: none; }
  body.mobile-ui-theme-compact .miqm-probability-tier__body .miqm-result-card:last-child { border-bottom: 0; }

  body.mobile-ui-theme-compact .miqm-tier-school {
    border-color: #dbe5f1;
    border-radius: 12px;
    background: #fff;
  }

  body.mobile-ui-theme-compact .miqm-tier-school__toggle {
    grid-template-columns: 42px minmax(0,1fr) 22px;
    min-height: 62px;
    padding: 9px 10px;
  }

  body.mobile-ui-theme-compact .miqm-result-card {
    position: relative;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid #e7ecf3;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.mobile-ui-theme-compact .miqm-result-card::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: -1px;
    width: 4px;
    border-radius: 2px;
    background: #1466d8;
    content: "";
  }

  body.mobile-ui-theme-compact .miqm-result-card.is-reach::before { background: #e24a4a; }
  body.mobile-ui-theme-compact .miqm-result-card.is-safe::before { background: #2f9c58; }
  body.mobile-ui-theme-compact .miqm-result-card__button,
  body.mobile-ui-theme-compact .miqm-result-card__metrics,
  body.mobile-ui-theme-compact .miqm-result-card__tier-note,
  body.mobile-ui-theme-compact .miqm-result-card__facts { display: none !important; }

  body.mobile-ui-theme-compact .miqm-result-card__compact-head {
    display: grid !important;
    grid-template-columns: 64px minmax(0,1fr) 64px;
    gap: 11px;
    align-items: center;
    min-height: 122px;
    width: 100%;
    padding: 18px 10px 10px 15px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
  }

  body.mobile-ui-theme-compact .miqm-result-card__compact-emblem {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
  }

  body.mobile-ui-theme-compact .miqm-result-card__compact-logo {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
  }
  body.mobile-ui-theme-compact .miqm-result-card__compact-emblem .ph { font-size: 31px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy { min-width: 0; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy strong,
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy span,
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy strong { color: #092a5d; font-size: 20px; letter-spacing: 0; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy span { margin-top: 5px; color: #1d3967; font-size: 15px; font-weight: 650; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy small { margin-top: 6px; color: #7d8aa0; font-size: 11px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    min-height: 22px;
    margin-top: 7px;
    padding: 0 7px;
    border: 1px solid #9ed7ad;
    border-radius: 5px;
    background: #f2fff5;
    color: #26814a;
    font-size: 11px;
  }

  body.mobile-ui-theme-compact .miqm-result-card__compact-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-height: 72px;
    color: #1466d8;
    text-align: center;
  }

  body.mobile-ui-theme-compact .miqm-result-card.is-reach .miqm-result-card__compact-score { color: #e24a4a; }
  body.mobile-ui-theme-compact .miqm-result-card.is-safe .miqm-result-card__compact-score { color: #2f9c58; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-score > small { display: flex; align-items: center; gap: 2px; color: currentColor; font-size: 11px; font-style: normal; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-score-ring {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: 3px;
    border: 3px solid #e7eef8;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
  }
  body.mobile-ui-theme-compact .miqm-result-card__compact-score-ring strong { display: block; font-size: 27px; line-height: 1; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-score.is-admission-probability > small { font-size: 9px; white-space: nowrap; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-score.is-admission-probability .miqm-result-card__compact-score-ring strong { font-size: 11px; letter-spacing: -.45px; white-space: nowrap; }

  body.mobile-ui-theme-compact .miqm-result-card__compact-facts { margin: 0; padding: 0 12px 5px 16px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts > div,
  body.mobile-ui-theme-compact .miqm-result-card__compact-requirements {
    display: grid !important;
    grid-template-columns: minmax(110px,.72fr) minmax(0,1fr);
    gap: 7px;
    align-items: center;
    min-height: 40px;
    border-top: 1px solid #edf1f6;
    font-size: 13px;
  }

  body.mobile-ui-theme-compact .miqm-result-card__compact-facts dt,
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts dd { margin: 0; min-width: 0; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts dt { display: inline-flex; align-items: center; gap: 7px; color: #5f6f88; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts dd { overflow: hidden; color: #17345f; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts dd small { display: block; margin-top: 2px; color: #718097; font-size: 11px; line-height: 1.3; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts .is-language { align-items: start; padding-top: 10px; padding-bottom: 10px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts .is-language dd { overflow: visible; overflow-wrap: anywhere; line-height: 1.4; text-overflow: clip; white-space: normal; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts .is-tuition dd { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-facts .ph,
  body.mobile-ui-theme-compact .miqm-result-card__compact-requirements .ph { color: #244b7d; font-size: 14px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-tier { display: inline-flex; align-items: center; gap: 3px; color: #1466d8; }
  body.mobile-ui-theme-compact .miqm-result-card.is-reach .miqm-result-card__compact-tier { color: #e24a4a; }
  body.mobile-ui-theme-compact .miqm-result-card.is-safe .miqm-result-card__compact-tier { color: #2f9c58; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-requirements {
    grid-template-columns: minmax(0,1fr) 18px;
    width: calc(100% - 28px);
    margin: 0 12px 10px 16px;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    color: #17345f;
    text-align: left;
  }
  body.mobile-ui-theme-compact .miqm-result-card__compact-requirements > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #5f6f88; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-requirements > .ph:last-child { justify-self: end; color: #8b98ac; }

  body.mobile-ui-theme-compact .miqm-compact-ticket {
    position: fixed;
    z-index: 48;
    right: max(16px,calc((100vw - 488px)/2));
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: max(16px,calc((100vw - 488px)/2));
    display: grid !important;
    grid-template-columns: 65px minmax(0,1fr) 48px;
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 8px 10px;
    border: 1.5px solid #173e7c;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    color: #0a2a5c;
    box-shadow: 0 10px 26px rgba(10,42,92,.15);
    backdrop-filter: blur(18px) saturate(150%);
  }

  body.mobile-ui-theme-compact .miqm-compact-ticket__count { display: grid; place-items: center; min-height: 50px; border-radius: 12px; background: #f45b51; color: #fff; text-align: center; }
  body.mobile-ui-theme-compact .miqm-compact-ticket__count strong { font-size: 27px; line-height: 1; }
  body.mobile-ui-theme-compact .miqm-compact-ticket__count small { font-size: 11px; }
  body.mobile-ui-theme-compact .miqm-compact-ticket__copy strong,
  body.mobile-ui-theme-compact .miqm-compact-ticket__copy small { display: block; }
  body.mobile-ui-theme-compact .miqm-compact-ticket__copy strong { font-size: 15px; }
  body.mobile-ui-theme-compact .miqm-compact-ticket__copy small { margin-top: 3px; color: #63728b; font-size: 12px; }
  body.mobile-ui-theme-compact .miqm-compact-ticket__arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0667ed; color: #fff; box-shadow: 0 6px 14px rgba(6,103,237,.25); }

  body.mobile-ui-theme-compact .mobile-ios-bottom-dock {
    min-height: 62px;
    border: 1.5px solid #173e7c;
    background: rgba(255,255,255,.97);
    box-shadow: 0 10px 24px rgba(15,47,96,.1);
  }
  body.mobile-ui-theme-compact .mobile-ios-tab { color: #234776; }
  body.mobile-ui-theme-compact .mobile-ios-tab.is-active,
  body.mobile-ui-theme-compact .mobile-ios-tab[aria-current="page"] { background: transparent; color: #0667ed; }
  body.mobile-ui-theme-compact .mobile-ios-tab.is-active .mobile-ios-tab-icon,
  body.mobile-ui-theme-compact .mobile-ios-tab[aria-current="page"] .mobile-ios-tab-icon { background: #0667ed; color: #fff; box-shadow: 0 5px 12px rgba(6,103,237,.22); }

  body.mobile-ui-theme-compact .mi-library-grouped-list,
  body.mobile-ui-theme-compact .mi-library-search,
  body.mobile-ui-theme-compact .mi-library-glass-toolbar { background: #fff; }
  body.mobile-ui-theme-compact .miqm-compact-ticket:active,
  body.mobile-ui-theme-compact .miqm-result-card__compact-head:active,
  body.mobile-ui-theme-compact .miqm-result-card__compact-requirements:active { transform: scale(.985); opacity: .88; }
}

.miqm-intent-match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 5px;
  color: #5f6f84;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.miqm-intent-match > strong { flex: 0 0 auto; }

body.mobile-ui-theme-compact .miqm-intent-match-compact {
  display: block;
  margin-top: 6px;
  color: #61738b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.mobile-ui-theme-compact .miqm-result-card__compact-copy .miqm-intent-match {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 5px 7px;
  margin-top: 8px;
  color: #63728b;
  font-size: 11px;
  line-height: 1.45;
  overflow: visible;
  white-space: normal;
}

body.mobile-ui-theme-compact .miqm-result-card__compact-copy .miqm-intent-match > strong {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #a9c9f2;
  border-radius: 999px;
  background: #edf5ff;
  color: #0a5fbe;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

body.mobile-ui-theme-compact .miqm-result-card__compact-copy .miqm-intent-match > span {
  display: -webkit-box;
  margin: 1px 0 0;
  color: #63728b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 390px) {
  body.mobile-ui-theme-compact .mobile-ios-screen { padding-right: 13px; padding-left: 13px; }
  body.mobile-ui-theme-compact .miqm-compact-hero { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; }
  body.mobile-ui-theme-compact .miqm-compact-hero::after { right: -18px; width: 238px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-head { grid-template-columns: 58px minmax(0,1fr) 58px; gap: 8px; padding-right: 7px; padding-left: 12px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-emblem { width: 52px; height: 52px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-copy strong { font-size: 20px; }
  body.mobile-ui-theme-compact .miqm-result-card__compact-score { width: 56px; height: 56px; }
  body.mobile-ui-theme-compact .miqm-compact-ticket { right: 13px; left: 13px; }
  body.mobile-ui-theme-compact .miqm-school-filter__head { gap: 6px; padding-right: 5px; padding-left: 5px; }
  body.mobile-ui-theme-compact .miqm-school-filter__head > span { max-width: 42%; text-align: right; overflow-wrap: anywhere; }
  body.mobile-ui-theme-compact .miqm-probability-tier__toggle { grid-template-columns: minmax(0,1fr) 18px; }
  body.mobile-ui-theme-compact .miqm-probability-tier__summary { grid-column: 1 / -1; grid-row: 2; padding-left: 30px; white-space: normal; }
  body.mobile-ui-theme-compact .miqm-probability-tier__toggle > .ph:last-child { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .miqm-compact-ticket,
  .miqm-result-card__compact-head,
  .miqm-result-card__compact-requirements { transition: none !important; }
}

body.mobile-ui-theme-compact .miqm-ai-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #9ed9c6;
  border-radius: 8px;
  background: #f2fbf7;
}
body.mobile-ui-theme-compact .miqm-ai-launch > div { display: flex; align-items: center; min-width: 0; gap: 8px; color: #096047; }
body.mobile-ui-theme-compact .miqm-ai-launch > div > span { display: grid; min-width: 0; }
body.mobile-ui-theme-compact .miqm-ai-launch strong { font-size: 15px; }
body.mobile-ui-theme-compact .miqm-ai-launch small { color: #4d6b62; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
body.mobile-ui-theme-compact .miqm-ai-launch button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: #08795a;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 390px) {
  body.mobile-ui-theme-compact .miqm-ai-launch { align-items: stretch; flex-direction: column; }
  body.mobile-ui-theme-compact .miqm-ai-launch button { width: 100%; }
}
