/* Responsive polish for the existing Home Braine · Agent Setup.
   Phone and tablet rules only: keep the same screens, copy, controls, and flow. */
@media (min-width:651px) and (max-width:900px) {
  #product-view .dashboard-main { min-width:0; padding:28px 22px; }
  #product-view .dashboard-shell { min-width:0; }
  #product-view .dashboard-top { gap:16px; }
  #product-view .dashboard-top h2 { font-size:clamp(24px,3.8vw,34px); }
  #product-view .agent-output { grid-template-columns:minmax(0,1fr); }
  #product-view .home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden; }
  #product-view, #product-view * { box-sizing:border-box; }
  #product-view { min-width:0; overflow-x:clip; }
  #product-view .product-header {
    display:flex; align-items:center; gap:7px; width:100%; max-width:100vw;
    min-height:58px; height:auto; padding:6px 10px; overflow:hidden;
  }
  #product-view .agent-menu-toggle {
    display:grid!important; place-items:center; flex:0 0 40px; width:40px; min-width:40px;
    height:44px; padding:0; font-size:19px;
  }
  #product-view .product-brand {
    display:flex; align-items:center; flex:1 1 auto; min-width:0; max-width:none;
    gap:6px; padding:4px; font-size:clamp(9px,2.7vw,11px); letter-spacing:.09em;
    white-space:nowrap; overflow:hidden;
  }
  #product-view .product-brand .logo.small { display:block; flex:0 0 29px; width:29px; height:29px; object-fit:contain; }
  #product-view .product-brand span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  #product-view .exit-demo {
    display:block; flex:0 0 auto; min-width:44px; min-height:44px; padding:0 3px;
    font-size:clamp(9px,2.8vw,11px); white-space:nowrap;
  }
  #product-view .screen { width:100%; min-width:0; }
  #product-view .scan-wrap, #product-view .role-wrap { width:100%; max-width:100%; padding:24px 16px; }
  #product-view .scan-wrap h2 { overflow-wrap:anywhere; font-size:clamp(23px,7vw,32px); }
  #product-view .journey-wrap { padding-top:26px; }
  #product-view .journey-wrap h2 { font-size:clamp(25px,7vw,32px); line-height:1.2; }
  #product-view .journey-options { grid-template-columns:minmax(0,1fr); gap:10px; }
  #product-view .journey-options>button { min-height:0; padding:18px 16px; text-align:left; }
  #product-view .journey-options>button ul { margin:12px 0; padding-left:20px; }
  #product-view .dashboard-shell { display:grid; grid-template-columns:minmax(0,1fr); width:100%; min-width:0; }
  #product-view .dashboard-shell>aside { width:100%; min-width:0; max-width:100%; }
  #product-view .dashboard-main { width:100%; min-width:0; max-width:100%; padding:18px 12px 150px; overflow:hidden; }
  #product-view .dashboard-top { gap:10px; margin-bottom:18px; }
  #product-view .dashboard-top>div { min-width:0; }
  #product-view .dashboard-top h2 { font-size:clamp(22px,6vw,29px); line-height:1.2; overflow-wrap:anywhere; }
  #product-view .dashboard-shell aside nav#dashboard-nav {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px;
    width:100%; min-width:0; overflow:visible; padding:6px 8px;
    position:sticky; top:0; z-index:40; background:#fff;
  }
  #product-view .dashboard-shell aside nav#dashboard-nav button {
    display:flex; align-items:center; justify-content:center; min-width:0; min-height:44px;
    padding:6px 3px; white-space:normal; text-align:center; font-size:clamp(10px,2.8vw,12px);
    line-height:1.2; overflow-wrap:anywhere;
  }
  #product-view .mode-agent .side-workflow {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px;
    position:sticky; top:0; z-index:40; width:100%; min-width:0; background:#fff;
  }
  #product-view .mode-agent .side-workflow button {
    display:grid; grid-template-columns:1fr; justify-items:center; align-content:center;
    gap:4px; min-width:0; min-height:54px; padding:6px 3px; text-align:center;
  }
  #product-view .mode-agent .side-workflow button b,
  #product-view .mode-agent .side-workflow button small {
    display:block; min-width:0; font-size:10px; line-height:1.15;
    white-space:normal; overflow-wrap:anywhere;
  }
  #product-view .side-address { display:block; min-width:0; overflow-wrap:anywhere; }
  #product-view .agent-ai-intro { gap:10px; padding:14px; }
  #product-view .agent-ai-intro>div { min-width:0; }
  #product-view .agent-three-paths { grid-template-columns:minmax(0,1fr); gap:8px; }
  #product-view .agent-path { min-height:0; padding:15px; }
  #product-view .agent-path p { margin-bottom:12px; }
  #product-view .attention-row { grid-template-columns:minmax(0,1fr); gap:8px; margin:14px 0 22px; }
  #product-view .attention-row article { min-height:0; padding:15px; }
  #product-view .attention-row article small { margin-bottom:10px; }
  #product-view .home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  #product-view .home-grid button { min-width:0; min-height:125px; padding:14px; }
  #product-view .home-grid b { min-height:0; overflow-wrap:anywhere; }
  #product-view .home-grid strong { margin:12px 0 2px; font-size:1.55rem; }
  #product-view .story-preview { grid-template-columns:minmax(0,1fr); min-height:0; }
  #product-view .story-photo { min-height:210px; }
  #product-view .story-copy { padding:25px 18px; }
  #product-view .story-copy h2 { font-size:2rem; }
  #product-view .handoff-panel, #product-view .empty-state { margin:28px auto; padding:0 8px; }
  #product-view .handoff-panel h2, #product-view .empty-state h2 { font-size:2rem; }
  #product-view .handoff-panel>div { grid-template-columns:minmax(0,1fr); }
  #product-view .agent-output { min-width:0; min-height:0; padding:16px; grid-template-columns:minmax(0,1fr); }
  #product-view .output-list, #product-view .marketing-materials { grid-template-columns:minmax(0,1fr); }
  #product-view .presentation-preview, #product-view .campaign-preview, #product-view .handoff-sheet { min-height:0; padding:18px; }
  #product-view #hb-welcome-tabs { width:100%; max-width:100%; min-width:0; }
  #product-view #hb-welcome-tabs .af-surface { width:100%; max-width:100%; padding:18px 12px 22px!important; }
  #product-view #hb-welcome-tabs .af-heading { margin:0 auto 16px!important; padding:0 3px; }
  #product-view #hb-welcome-tabs .af-heading h2 { font-size:clamp(23px,6.5vw,28px)!important; line-height:1.2!important; }
  #product-view #hb-welcome-tabs .af-heading>p:last-child { font-size:14px!important; line-height:1.45!important; }
  #product-view #hb-welcome-tabs .af-information { grid-template-columns:minmax(0,1fr); gap:8px; margin-bottom:14px; }
  #product-view #hb-welcome-tabs .af-information-button { min-height:52px; padding:10px 12px; font-size:15px; }
  #product-view #hb-welcome-tabs.agent-flow button.af-task {
    display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center;
    gap:9px; min-height:78px; padding:12px!important; flex-wrap:nowrap;
  }
  #product-view #hb-welcome-tabs .af-task-icon { width:32px; height:32px; }
  #product-view #hb-welcome-tabs .af-task-icon svg { width:20px; height:20px; }
  #product-view #hb-welcome-tabs .af-task-copy { min-width:0; gap:3px; }
  #product-view #hb-welcome-tabs .af-task-copy small { font-size:9px; }
  #product-view #hb-welcome-tabs .af-task-copy strong { font-size:14px; line-height:1.2; }
  #product-view #hb-welcome-tabs .af-task-copy>span { font-size:11px; line-height:1.3; overflow-wrap:anywhere; }
  #product-view #hb-welcome-tabs .af-task-status { width:auto; margin:0; font-size:10px; white-space:normal; text-align:right; }
  #product-view #hb-welcome-tabs .af-task-status>span { margin-left:2px; font-size:16px; }
  #product-view #hb-welcome-tabs .af-next { margin-top:14px; }
  #product-view #hb-welcome-tabs .af-next>.af-primary { width:100%; min-width:0; }
  #product-view #hb-welcome-tabs .af-context { padding:10px 12px 0; }
  #product-view #hb-welcome-tabs .af-browse { margin-top:16px; padding-top:14px; }
  #product-view #hb-welcome-tabs .af-demo { margin-top:16px; }
  #product-view .hb-free-tools { justify-content:flex-start; gap:6px 10px; margin:0 0 10px; }
  #product-view .hb-free-tools [data-hb-save-state] { max-width:calc(100vw - 115px); overflow-wrap:anywhere; font-size:11px; }
  #product-view #agent-ai-form { width:100%; max-width:100%; min-width:0; }
  #product-view #agent-ai-input, #product-view textarea, #product-view input, #product-view select { min-width:0; max-width:100%; font-size:16px!important; }
  #product-view .home-workspace-hero .bottom-ai-card { left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); width:auto; max-width:none; }
  #product-view .screen :is(button,a,input,select,summary) { scroll-margin-block:72px; }
}
@media (max-width:360px) {
  #product-view .product-header { gap:4px; padding-inline:6px; }
  #product-view .agent-menu-toggle { flex-basis:36px; width:36px; min-width:36px; }
  #product-view .product-brand { gap:4px; letter-spacing:.04em; }
  #product-view .product-brand .logo.small { flex-basis:26px; width:26px; height:26px; }
  #product-view .exit-demo { font-size:9px; }
  #product-view .home-grid { grid-template-columns:minmax(0,1fr); }
  #product-view #hb-welcome-tabs.agent-flow button.af-task { grid-template-columns:30px minmax(0,1fr); }
  #product-view #hb-welcome-tabs .af-task-status { grid-column:2; text-align:left; }
}

/* Seller Questions uses the same quiet, slim composer as the home sections. */
.seller-collaboration .sc-composer { box-sizing:border-box; width:100% !important; max-width:640px !important; margin-left:auto !important; margin-right:auto !important; }
.seller-collaboration .sc-composer .sc-ai-input-row {
  box-sizing:border-box; width:100%; max-width:none; min-height:44px !important; height:44px !important;
  gap:3px !important; padding:3px 5px !important; border:1px solid #e1e3e1 !important;
  border-radius:24px !important; background:#f7f8f7 !important; box-shadow:none !important;
}
.seller-collaboration .sc-composer .sc-ai-input-row textarea {
  height:20px !important; min-height:20px !important; padding:0 4px !important;
  background:transparent !important; color:#202522 !important; box-shadow:none !important;
  font:400 14px/20px Arial,sans-serif !important;
}
.seller-collaboration .sc-composer .sc-ai-input-row button.sc-ai-icon {
  box-sizing:border-box; flex:0 0 34px !important; width:34px !important; min-width:34px !important;
  height:34px !important; min-height:34px !important; padding:0 !important; border:0 !important;
  border-radius:50% !important; background:transparent !important; color:#4e5550 !important; box-shadow:none !important;
}
.seller-collaboration .sc-composer .sc-ai-input-row button.sc-ai-send {
  position:static !important; color:#214631 !important;
}
.seller-collaboration .sc-composer .sc-ai-input-row button.sc-ai-send::before { display:none !important; }
.seller-collaboration .sc-composer .sc-ai-input-row button.sc-ai-icon svg { width:17px !important; height:17px !important; }
@media(max-width:650px){
  .seller-collaboration .sc-composer .sc-ai-input-row button.sc-ai-icon {
    flex-basis:36px !important; width:36px !important; min-width:36px !important; height:36px !important; min-height:36px !important;
  }
  .seller-collaboration .sc-composer .sc-ai-input-row textarea { font-size:16px !important; }
}


/* Photo Walk: apply the selected original rounded green card to the live page. */
.mode-agent #panel-sticker .sticker-workspace{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:18px clamp(12px,3.5vw,36px) 48px;background:#f7f9f7}
.mode-agent #panel-sticker .sticker-workspace .sticker-hero{box-sizing:border-box;max-width:1100px;margin:0 auto;padding:22px 20px 20px;background:#244536;border-radius:20px;text-align:center}
.mode-agent #panel-sticker .sticker-hero .photo-walk-mark{display:block;width:40px;height:40px;object-fit:contain;padding:5px;margin:0 auto 8px;background:#2e5541;border-radius:12px}
.mode-agent #panel-sticker .sticker-workspace .sticker-hero h2{margin:0!important;color:#fff!important;font:400 clamp(28px,4vw,32px)/1.08 var(--serif,Georgia,serif)!important;letter-spacing:-.01em}
.mode-agent #panel-sticker .sticker-workspace .sticker-hero .sticker-intro{max-width:440px;margin:7px auto 0;color:#e1e9e3;font:400 13px/1.4 var(--sans,Arial,sans-serif)}
.mode-agent #panel-sticker .sticker-hero .sticker-duration{margin:5px auto 0;color:#d6e2d8;font:400 11px/1.4 var(--sans,Arial,sans-serif)}
.mode-agent #panel-sticker .sticker-workspace .sticker-layout{width:min(590px,100%);margin:18px auto 0}
@media(max-width:650px){.mode-agent #panel-sticker .sticker-workspace{padding:14px 12px 38px}.mode-agent #panel-sticker .sticker-workspace .sticker-hero{padding:20px 15px 18px;border-radius:18px}.mode-agent #panel-sticker .sticker-hero .photo-walk-mark{width:38px;height:38px;margin-bottom:7px}.mode-agent #panel-sticker .sticker-workspace .sticker-layout{margin-top:15px}}

/* Keep the opening white card the same width as the rounded green banner. */
.mode-agent #panel-sticker .sticker-workspace .sticker-layout{width:var(--photo-walk-panel-width);margin:24px auto 0;gap:16px}
@media(max-width:650px){.mode-agent #panel-sticker .sticker-workspace .sticker-layout{margin-top:18px;gap:14px}}

/* Keep the guide, prompt and photo actions together on every screen size. */
.mode-agent #panel-sticker .sticker-workspace .sticker-assistant{min-height:0;padding:18px;background:#fff}
.mode-agent #panel-sticker .sticker-workspace .sticker-chat-space{min-height:0;max-height:min(52vh,420px);flex:0 1 auto;overflow-y:auto;overscroll-behavior:contain}
.mode-agent #panel-sticker .sticker-workspace .sticker-opening-message{margin:0 0 14px}
.mode-agent #panel-sticker .sticker-workspace .sticker-ai-composer{margin-top:10px}
@media(max-width:650px){.mode-agent #panel-sticker .sticker-workspace .sticker-assistant{padding:16px 14px}.mode-agent #panel-sticker .sticker-workspace .sticker-chat-space{max-height:45vh}.mode-agent #panel-sticker .sticker-workspace .sticker-opening-message{margin-bottom:12px}}

/* Inline Seller Questions prompts use the same width and height as the shared prompt. */
.seller-collaboration .sc-question-composer{box-sizing:border-box;width:100%;max-width:640px;margin-left:auto!important;margin-right:auto!important}
.seller-collaboration .sc-question-composer .sc-ai-input-row{box-sizing:border-box;width:100%;max-width:none;min-height:44px!important;height:44px!important;padding:3px 5px!important;gap:3px!important;border:1px solid #e1e3e1!important;border-radius:24px!important;background:#f7f8f7!important;box-shadow:none!important}
.seller-collaboration .sc-question-composer .sc-ai-input-row textarea{height:20px!important;min-height:20px!important;padding:0 4px!important;font:400 14px/20px Arial,sans-serif!important;background:transparent!important}
.seller-collaboration .sc-question-composer .sc-ai-input-row button.sc-ai-icon{box-sizing:border-box;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#4e5550!important}
.seller-collaboration .sc-question-composer .sc-ai-input-row button.sc-ai-icon svg{width:17px!important;height:17px!important}
@media(max-width:650px){.seller-collaboration .sc-question-composer .sc-ai-input-row button.sc-ai-icon{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}.seller-collaboration .sc-question-composer .sc-ai-input-row textarea{font-size:16px!important}}

/* Reserve visible space for the Photo Walk conversation after its camera welcome. */
.mode-agent #panel-sticker .sticker-workspace .sticker-chat-space{box-sizing:border-box;flex:0 1 auto;min-height:144px;max-height:none;overflow-y:visible}
@media(max-width:650px){.mode-agent #panel-sticker .sticker-workspace .sticker-chat-space{min-height:110px}}


/* Photo Walk back control matches the white workspace controls and sits above the green banner. */
#panel-sticker .sticker-workspace .sticker-back-row{box-sizing:border-box;display:flex;align-items:center;width:var(--photo-walk-panel-width,min(960px,calc(100% - 48px)));max-width:1100px;margin:0 auto 12px}
#panel-sticker .sticker-workspace .sticker-back-row .sticker-back{position:static!important;top:auto!important;left:auto!important;display:inline-flex!important;align-items:center;justify-content:center;min-height:40px!important;padding:8px 13px!important;border:1px solid #dce5df!important;border-radius:10px!important;background:#fff!important;color:#294735!important;font:500 14px/1.3 var(--sans,Arial,sans-serif)!important;text-decoration:none!important;box-shadow:none!important}
#panel-sticker .sticker-workspace .sticker-back-row .sticker-back:hover{border-color:#b9cbbd!important;background:#f4f7f4!important}
#panel-sticker .sticker-workspace .sticker-back-row .sticker-back:focus-visible{outline:2px solid #759e85!important;outline-offset:3px}
@media(max-width:650px){#panel-sticker .sticker-workspace .sticker-back-row{margin-bottom:10px}}
