/* Phone-first rebuild for the Launch Check. */
.brand-button[data-brand="Chopstix"] { background: #e31b23 !important; border-color: #e31b23; }
.brand-button[data-brand="Pret"] { background: #9b1236 !important; border-color: #9b1236; }
.brand-button[data-brand="Subway"] { background: #078442 !important; border-color: #078442; }
.brand-button[data-brand="Pret"] img { filter: brightness(0) invert(1); mix-blend-mode: normal; }
.brand-button[data-brand="Chopstix"] img,
.brand-button[data-brand="Subway"] img {
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff;
  filter: none;
  mix-blend-mode: normal;
}
.brand-button[data-brand] { transition: transform .18s ease, box-shadow .18s ease; }
.brand-button[data-brand].active {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 5px 13px rgba(24, 34, 44, .18);
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  aside { display: none !important; }
}

@media (max-width: 760px) {
  :root {
    --mobile-surface: #f1f3f6;
    --mobile-shadow: 0 8px 24px rgba(24, 34, 44, .07);
  }

  html { scroll-padding-top: 112px; }
  body { background: var(--mobile-surface); overflow-x: hidden; }
  body,
  button,
  input,
  textarea,
  select { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
  h1,
  .wordmark,
  .card-head h2,
  .check-row h3,
  .checker-resource h3,
  .progress-heading > strong,
  .section-number { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    min-height: 0;
    height: auto;
    padding: max(9px, env(safe-area-inset-top)) 12px 10px;
    background: #0d0f12;
    border: 0;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  }

  .wordmark {
    grid-column: 1 / 3;
    min-width: 0;
    font-size: 18px;
    letter-spacing: -.55px;
    white-space: nowrap;
  }

  .app-icon {
    width: 32px;
    height: 32px;
    margin-right: 5px;
    border-radius: 9px;
    font-size: 20px;
  }

  .banner-brand {
    grid-column: 3;
    justify-self: end;
    width: 92px;
    margin: 0;
  }

  .banner-brand > div:last-child { display: none; }
  .banner-logo-wrap {
    width: 92px;
    height: 38px;
    padding: 3px 5px;
    border-radius: 7px;
  }

  .launch-tools {
    grid-column: 1 / 3;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 7px !important;
    width: 100%;
  }

  .topbar > #new-check { grid-column: 3; width: 100%; margin: 0; }
  .topbar .btn,
  .launch-tools .btn {
    min-height: 40px;
    padding: 7px 6px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.15;
  }

  .workspace { display: block; min-height: auto; }
  aside {
    position: sticky;
    top: 107px;
    z-index: 35;
    display: none !important;
    padding: 6px 8px;
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-bottom: 1px solid #dfe4e9;
    box-shadow: 0 4px 14px rgba(24, 34, 44, .06);
    backdrop-filter: blur(12px);
  }

  aside > .eyebrow,
  .aside-bottom { display: none; }
  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }

  .nav-step {
    min-width: 0;
    min-height: 47px;
    padding: 5px 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.15;
    text-align: center;
  }

  .nav-step .num {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 11px;
  }

  main { padding: 15px 12px calc(88px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 13px; align-items: center; }
  .page-heading h1 {
    margin: 4px 0 0;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -.75px;
  }
  .page-heading p { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: 1.25px; }
  .page-heading .badge { padding: 4px 9px; font-size: 11px; }

  .brand-panel {
    display: block;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: var(--mobile-shadow);
  }
  .brand-panel > div:first-child { display: none; }
  .brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 7px; }
  .brand-button {
    width: 100%;
    height: 50px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .content-grid { display: flex; flex-direction: column; gap: 0; }
  .content-grid > #content,
  .summary-column { width: 100%; }
  .summary-column { order: -1; }
  .summary {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
    gap: 7px 10px;
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    box-shadow: var(--mobile-shadow);
  }
  .summary > .eyebrow { grid-column: 1 / 4; }
  .progress-heading { grid-column: 4; margin: 0; gap: 0; }
  .progress-heading > strong { font-size: 28px; letter-spacing: -1px; }
  .progress-heading strong span { font-size: 15px; letter-spacing: -.4px; }
  .progress-heading > span { display: none; }
  .progress-track { grid-column: 1 / -1; height: 6px; margin: 0 0 2px; }
  .score-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px;
    margin: 0;
    padding-right: 7px;
    font-size: 11px;
    line-height: 1.2;
    border-right: 1px solid var(--line);
  }
  .score-row strong { font-size: 15px; }
  .score-row:nth-of-type(3) { border-right: 0; }
  .dot { width: 6px; height: 6px; margin-right: 4px; }
  .summary-message,
  #review-button,
  .summary-column .help-note { display: none; }

  .card {
    border-radius: 17px;
    border-color: #dce2e7;
    box-shadow: var(--mobile-shadow);
  }
  .card-head {
    padding: 16px;
    border-top: 4px solid var(--brand);
  }
  .card-head h2 { font-size: 20px; }
  .card-head p { font-size: 13px; line-height: 1.4; }
  .section-number {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pale);
    color: var(--brand);
    font-size: 15px;
    font-weight: 800;
  }
  .card-body { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field { font-size: 15px; }
  input:not([type=file]), textarea, select {
    min-height: 48px;
    margin-top: 6px;
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 16px;
  }
  textarea { min-height: 96px; }

  .section-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    gap: 8px;
    padding: 11px 13px calc(11px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -7px 20px rgba(24, 34, 44, .08);
    backdrop-filter: blur(12px);
  }
  .section-footer > .btn { flex: 1; min-height: 46px; }
  .section-footer > p,
  .section-footer > .hint { display: none; }

  .check-toolbar {
    position: relative;
    top: auto;
    z-index: 1;
    padding: 9px 10px;
    gap: 6px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
  }
  .filter { flex: 1; padding: 8px 7px; font-size: 12px; }
  .filter.active { background: #18222c; color: #fff; }
  .check-row {
    margin: 10px;
    padding: 15px;
    border: 1px solid #dce2e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(24, 34, 44, .045);
  }
  .check-top { gap: 9px; }
  .check-index {
    min-width: 26px;
    height: 26px;
    padding-top: 3px;
    border-radius: 8px;
    background: #f0f2f4;
    text-align: center;
    font-weight: 700;
  }
  .check-row h3 { font-size: 17px; }
  .check-row p { font-size: 14px; line-height: 1.45; }
  .status-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0 0;
  }
  .status-button {
    min-height: 44px;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.15;
  }
  .action-fields { margin: 12px 0 0; padding: 13px; border-radius: 12px; }
  .evidence-box,
  .check-row .evidence-box {
    margin: 13px 0 0;
    padding: 13px;
    border-radius: 12px;
  }
  .evidence-box .button-row { display: grid; grid-template-columns: 1fr 1fr; }
  .evidence-box .btn { min-height: 43px; padding: 7px; font-size: 12px; }
  .evidence-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .check-finish { margin-top: 8px; padding: 16px 13px 18px; }
  .report-actions { display: grid; grid-template-columns: 1fr; }
  .report-actions .btn { width: 100%; min-height: 47px; }
  .issues { font-size: 13px; }

  .resource-grid { gap: 12px; margin-top: 0; }
  .resource-card { border-radius: 13px; }
  .resource-image { max-height: none; padding: 0; }
  .promo-pdf { padding: 30px 16px; }
  .empty { padding: 28px 18px; }
  .local-tools { justify-content: center; margin: 15px 0 4px; }
  dialog { padding: 22px 18px; border-radius: 16px; }
  #toast { bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .wordmark { font-size: 16px; }
  .banner-brand,
  .banner-logo-wrap { width: 74px; }
  .topbar .btn,
  .launch-tools .btn { font-size: 11px; }
  .nav-step { font-size: 10.5px; }
  .page-heading h1 { font-size: 21px; }
}
