/* A focused phone entry for finding a part and taking its photographs. */
@media (max-width: 760px) {
  html.seller-mobile-ready { --capture-accent: #244f69; --capture-tint: #eef4f7; }
  html.seller-mobile-ready[data-theme="dark"] { --capture-accent: #83c9ee; --capture-tint: #203443; }
  .seller-mobile-ready #seller-mobile-header > button { display: none !important; }
  html.seller-mobile-ready #seller-mobile-header > #desktop-voice-start { display: none !important; }
  .seller-mobile-ready #seller-mobile-header > a { max-width: 100%; }
  .seller-mobile-ready #seller-mobile-nav { padding-inline: 12px; background: var(--design-surface); }
  .seller-mobile-ready #seller-mobile-nav > :is(a, button) { font-size: 13px; gap: 6px; border-radius: 14px; }
  .seller-mobile-ready #seller-mobile-nav svg { width: 27px; height: 27px; }
  .seller-mobile-ready #seller-mobile-nav [aria-current="page"] { color: var(--capture-accent) !important; background: var(--capture-tint) !important; }
  html.seller-mobile-ready:not([data-seller-page="dashboard"]) #scan-section .seller-mobile-only { display: none !important; }
  html.seller-mobile-ready[data-seller-page="dashboard"] body { background: var(--design-canvas); }
  html.seller-mobile-ready[data-seller-page="dashboard"] .portal-main { padding: 30px 22px 26px !important; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #dashboard-section { display: none !important; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-section {
    display: block !important; width: 100%; max-width: 480px; min-width: 0; margin: 0 auto;
    padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; color: var(--design-text);
  }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-section::before { display: none !important; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-section > :is(h1, .scan-card-intro, .fast-scan-actions, .voice-command-help, .scan-photo-action, #scan-preview) { display: none !important; }
  html.seller-mobile-ready[data-seller-page="dashboard"] .seller-capture-label { display: block !important; margin: 0 0 12px; color: var(--design-text); font-size: 16px; font-weight: 650; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-form {
    display: flex; flex-wrap: nowrap !important; flex-direction: row !important; align-items: center; gap: 8px; padding: 8px; margin: 0;
    border: 1px solid var(--design-control-line); border-radius: 18px;
    background: var(--design-surface); box-shadow: 0 5px 16px #102a3a06;
  }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-form:focus-within { outline: 2px solid var(--capture-accent); outline-offset: 3px; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-form #scan {
    flex: 1 1 0; width: 0; min-width: 0; min-height: 64px; padding: 14px 9px;
    border: 0 !important; outline: 0; border-radius: 12px; background: transparent !important;
    box-shadow: none !important; color: var(--design-text) !important; -webkit-text-fill-color: var(--design-text) !important;
    font-size: 20px !important; font-weight: 500; text-align: left;
  }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan::placeholder { color: var(--design-muted); -webkit-text-fill-color: var(--design-muted); opacity: 1; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-form > button {
    flex: 0 0 auto; width: auto; min-height: 64px; padding: 16px 18px;
    border: 0; border-radius: 13px; background: var(--capture-accent) !important;
    color: var(--design-surface) !important; font-size: 17px; font-weight: 650; box-shadow: none;
  }
  html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 0; }
  #seller-capture-actions button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 128px;
    padding: 16px 10px; border: 1px solid var(--design-line); border-radius: 22px; box-shadow: 0 4px 18px #102a3a05;
    background: var(--design-surface); color: var(--design-text); font: inherit; font-size: 19px; font-weight: 600;
  }
  #seller-capture-actions svg { width: 52px; height: 52px; padding: 9px; border-radius: 16px; background: var(--capture-tint); flex: 0 0 auto; color: var(--capture-accent); }
  #seller-capture-actions .is-listening { border-color: var(--design-error); color: var(--design-error); }
  html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-assistant-slot:not(:empty) { display: block !important; margin-top: 22px; }
  #seller-capture-assistant-slot .voice-advisor-launch {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) 15px; align-items: center; gap: 13px;
    width: 100%; min-height: 112px; margin: 0; padding: 17px 18px;
    border: 1px solid var(--design-line); border-radius: 21px;
    background: var(--capture-tint); color: var(--design-text); font-size: 20px; line-height: 1.3; font-weight: 650; text-align: left; box-shadow: 0 6px 20px #102a3a05;
  }
  #seller-capture-assistant-slot .voice-advisor-launch::before {
    content: "✦"; display: grid; place-items: center; width: 52px; height: 52px;
    border-radius: 15px; background: var(--design-surface); color: var(--capture-accent); font-size: 32px; font-weight: 400;
  }
  #seller-capture-assistant-slot .voice-advisor-launch::after { content: "›"; color: var(--capture-accent); font-size: 27px; font-weight: 400; }
  html.seller-mobile-ready[data-seller-page="dashboard"] body > .voice-advisor-launch { display: none !important; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-section :is(#message, #voice-part-status):empty { display: none; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-section :is(#message, #voice-part-status) { margin: 14px 0 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  html.seller-mobile-ready[data-seller-page="dashboard"] #scan-section #voice-part-status.good { color: var(--design-text) !important; background: var(--capture-tint) !important; border-color: var(--design-line); }
  html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-results:not([hidden]) { display: grid !important; gap: 12px; margin-top: 24px; text-align: left; }
  #seller-capture-results .seller-capture-result-count { margin: 0; color: var(--design-muted); font-size: 12px; }
  .seller-capture-part { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 13px; padding: 16px; border: 1px solid var(--design-line); border-radius: 20px; background: var(--design-surface); }
  .seller-capture-part > img, .seller-capture-no-photo { width: 60px; height: 66px; border-radius: 12px; background: var(--design-subtle); object-fit: contain; }
  .seller-capture-no-photo { display: grid; place-items: center; color: var(--design-muted); }
  .seller-capture-no-photo svg { width: 24px; height: 24px; }
  .seller-capture-part > div { min-width: 0; }
  .seller-capture-part h2 { margin: 0 0 6px; color: var(--design-text); font-size: 15px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
  .seller-capture-part p { margin: 0 0 5px; color: var(--design-text); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .seller-capture-part p span { display: block; color: var(--design-muted); }
  .seller-capture-part small { color: var(--design-muted); font-size: 12px; }
  .seller-capture-part > button { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 60px; padding: 14px; border: 0; border-radius: 13px; background: var(--capture-accent); color: var(--design-surface); font: inherit; font-size: 17px; font-weight: 650; }
  .seller-capture-part > button svg { width: 21px; height: 21px; }
  .seller-capture-feedback, .seller-capture-empty { margin: 0; padding: 16px; border: 1px solid var(--design-line); border-radius: 18px; background: var(--design-surface); color: var(--design-muted); font-size: 14px; line-height: 1.5; }
  .seller-capture-feedback.is-error { color: var(--design-error); }
  .seller-capture-empty h2 { margin: 0 0 6px; font-size: 16px; color: var(--design-text); }
  .seller-capture-empty p { margin: 0; }
  .seller-capture-empty button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 0; border: 0; background: transparent; color: var(--capture-accent); font: inherit; font-weight: 650; text-align: left; }
  #seller-capture-results button:disabled, #scan-form[aria-busy] button { opacity: .55; }
  #scan-section :is(#seller-capture-actions button, #seller-capture-results button, .voice-advisor-launch):focus-visible { outline: 3px solid var(--capture-accent); outline-offset: 3px; }
}
@media (max-width: 359px) {
  html.seller-mobile-ready[data-seller-page="dashboard"] .portal-main { padding: 22px 16px !important; }
  .seller-mobile-ready #seller-mobile-nav > :is(a, button) { font-size: 12px; }
  #seller-capture-assistant-slot .voice-advisor-launch { gap: 10px; padding-inline: 14px; font-size: 19px; }
}
@media (prefers-color-scheme: dark) {
  html.seller-mobile-ready:not([data-theme]) { --capture-accent: #83c9ee; --capture-tint: #203443; }
}

/* Shared mobile search; scoped to the existing capture screen. */
@media(max-width:760px){
 html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-scope{display:flex!important}
 html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-scope button{flex:1!important}
 html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-results .seller-capture-part>nav button{display:flex!important;align-items:center;justify-content:center;gap:6px;height:auto!important;min-height:44px;max-height:64px;padding:10px 8px;line-height:1.25;border-radius:10px}
 html.seller-mobile-ready[data-seller-page="dashboard"] #seller-capture-results .seller-capture-part>nav button svg{width:20px!important;height:20px!important;flex:0 0 20px;display:block}
 #seller-capture-scope{display:flex;gap:6px;margin:12px 0 6px}#seller-capture-scope button{flex:1;min-height:42px;border-radius:12px;border:1px solid var(--border,#d5dce5);background:var(--surface,#fff);color:inherit}#seller-capture-scope [aria-pressed=true]{background:#234f7c;color:white;border-color:#234f7c}
 .seller-smart-hint{font-size:12px;color:var(--muted,#5c6b7c);margin:0 0 12px}.seller-capture-part{grid-template-columns:64px minmax(0,1fr)!important}.seller-capture-part>nav{grid-column:1/-1;display:flex;gap:8px}.seller-capture-part>nav button{min-height:44px;flex:1;min-width:0;font-size:13px}.seller-capture-part small{display:block;overflow-wrap:anywhere}.seller-capture-part .seller-primary{background:#234f7c;color:white}.seller-more-results{width:100%;min-height:44px;margin:10px 0}.seller-capture-catalog-results a,.seller-capture-catalog-results button{min-height:44px}
}
