@media (max-width: 1120px) {
  .feature-mini-grid,
  .safe-action-grid,
  .safe-action-v1-grid,
  .compact-safe-grid,
  .her-day-suggestion-grid,
  .safe-scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner,
  .safe-topics-layout,
  .living-home-layout,
  .living-detail-view,
  .day-detail-layout,
  .day-head-product,
  .living-head-product,
  .places-head-product {
    grid-template-columns: 1fr;
  }

  .places-product .search-bar {
    margin-top: 0;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .places-page.section {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: 12px;
    margin-left: 12px;
    overflow-x: hidden;
  }

  .places-page .section-head,
  .places-page .section-head > div,
  .places-page .places-head-product,
  .places-page .places-head-product > div,
  .places-page .places-product,
  .places-page .places-filter-panel,
  .places-page .places-list-panel,
  .places-page .places-card-list,
  .places-page .places-search,
  .places-page .product-map,
  .places-page .surface {
    width: 100%;
    max-width: 100%;
  }

  .places-page .section-head > div {
    max-width: min(100%, 336px);
  }

  .places-page.section:not(.compact) .section-title,
  .places-page .section-title {
    font-size: clamp(31px, 9vw, 39px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .places-page .section-copy {
    max-width: 100%;
  }

  .places-page .filter-list.horizontal {
    width: 100%;
    max-width: 100%;
  }

  .places-page .places-mvp-card {
    grid-template-columns: 60px minmax(0, 210px);
    width: min(320px, calc(100dvw - 70px));
    max-width: min(320px, calc(100dvw - 70px));
  }

  .places-page .places-mvp-card .mini-thumb {
    width: 60px;
    height: 52px;
  }

  .places-page .places-card-copy {
    max-width: 210px;
  }

  .places-page .places-card-copy p,
  .places-page .places-card-copy > span:not(.tag) {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .places-page .places-card-copy .tag-row {
    max-width: 100%;
  }

  .places-page .places-card-copy .tag {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 12px;
  }

  .language-select {
    max-width: 82px;
  }

  .hero-inner,
  .hero-strip,
  .section {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero-inner {
    padding: 22px 16px;
  }

  h1,
  .display {
    font-size: clamp(42px, 12vw, 58px);
  }

  .feature-mini-grid,
  .safe-action-grid,
  .compact-safe-grid,
  .her-day-suggestion-grid,
  .living-guide-grid,
  .favorites-grid,
  .mini-grid,
  .notes-grid,
  .note-form {
    grid-template-columns: 1fr;
  }

  .safe-night-hero {
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .map-place-popover {
    grid-template-columns: 90px 1fr auto;
  }

  .map-popover-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .popover-place-image {
    width: 84px;
    height: 72px;
  }

  .day-head-product img,
  .living-head-product img,
  .places-head-product img {
    justify-self: center;
    max-height: 260px;
  }

  .day-head-product,
  .living-head-product,
  .places-head-product {
    gap: 14px;
    min-height: auto;
    padding: 22px 16px;
  }

  .day-head-product > div,
  .living-head-product > div,
  .places-head-product > div {
    max-width: 100%;
    padding-left: 0;
  }
}

/* Mobile overflow hardening */
* { min-width: 0; }

@media (max-width: 760px) {
  body,
  .app-frame,
  main,
  #app {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    overflow: visible;
    height: calc(var(--nav-height) + env(safe-area-inset-top));
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  main {
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .main-nav {
    position: fixed;
    top: calc(var(--nav-height) + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 65;
    max-height: calc(100dvh - var(--nav-height) - 24px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 244, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .mobile-menu {
    display: flex;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 1;
  }

  .mobile-menu span {
    width: 18px;
    height: 2px;
    flex: 0 0 2px;
  }

  .brand {
    font-size: 20px;
    flex: 1 1 auto;
    max-width: calc(100vw - 138px);
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    position: static;
    transform: none;
    margin-left: auto;
    gap: 6px;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .language-select {
    width: 58px;
    min-width: 58px;
    padding: 0 4px;
    font-size: 12px;
  }

  .assistant-pill {
    min-width: 38px;
  }

  .assistant-launch {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    font-size: 12px;
    z-index: 55;
  }

  .assistant-panel {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--nav-height) - 96px);
  }

  .hero-inner,
  .hero-strip,
  .section,
  .mini-card,
  .feature-mini,
  .safe-card,
  .timeline-card,
  .surface,
  .detail-panel {
    overflow: hidden;
  }

  .hero-copy,
  .hero-subtitle,
  .section-copy,
  .mini-card div,
  .feature-mini div,
  .safe-card span,
  .timeline-card div {
    max-width: 100%;
  }

  .hero-subtitle,
  .mini-card p,
  .feature-mini p,
  .section-copy {
    overflow-wrap: anywhere;
  }

  .hero-illustration {
    max-width: 100%;
  }

  .button,
  .soft-button,
  .text-button {
    max-width: 100%;
  }

  .day-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .day-page {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: 12px;
    margin-left: 12px;
    padding-bottom: 96px;
  }

  .day-page .day-adjust-panel {
    scroll-margin-block: 16px 96px;
  }

  .day-page .route-overview {
    width: 100%;
  }

  .day-page .route-summary-list li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding-left: 20px;
  }

  .her-day-stop {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .day-stop-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .replace-options,
  .day-more-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .day-adjust-grid {
    grid-template-columns: 1fr;
  }

  .day-adjust-group.wide {
    grid-column: auto;
  }

  .living-search-form > div {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1020px) {
  .living-category-panel .category-button {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    padding: 10px 14px;
  }
}

@media (max-width: 760px) {
  h1,
  .display {
    font-size: clamp(38px, 10.4vw, 48px);
  }

  .hero-tagline {
    font-size: clamp(24px, 7vw, 30px);
  }

  .hero-subtitle {
    max-width: 300px;
  }

  .feature-mini {
    grid-template-columns: 44px 1fr;
    gap: 10px;
  }

  .feature-mini .card-arrow {
    display: none;
  }

  .feature-mini .image-icon {
    width: 40px;
    height: 40px;
  }

  .mini-card p,
  .feature-mini p,
  .hero-subtitle,
  .section-copy {
    word-break: break-word;
    hyphens: auto;
  }

  .topbar-actions .assistant-pill {
    display: none;
  }

  .language-select {
    width: 64px;
    min-width: 64px;
  }
}

@media (max-width: 760px) {
  .hero-inner,
  .hero-strip,
  .section {
    width: min(calc(100vw - 24px), 366px);
    max-width: min(calc(100vw - 24px), 366px);
  }

  .topbar {
    overflow: visible;
  }

  .section-head,
  .section-head > div,
  .places-product,
  .places-map-layout,
  .product-map,
  .filter-list.horizontal,
  .favorites-grid,
  .mini-grid {
    max-width: 100%;
  }

  .favorites-grid {
    justify-content: stretch;
  }

  .favorite-card {
    width: 100%;
  }

  .favorite-card-actions {
    gap: 8px;
  }

  .section-title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .places-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .places-filter-head,
  .places-detail-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .places-filter-head .text-button {
    width: max-content;
  }

  .places-experience-list,
  .places-mvp .filter-list.horizontal {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .places-mvp .filter-list.horizontal.places-experience-list {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .places-mvp .places-more-filters {
    position: static;
    width: 100%;
  }

  .places-mvp .places-more-filters summary {
    max-width: 100%;
  }

  .places-mvp .places-more-filter-list {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .places-experience-list .filter-chip,
  .places-mvp .filter-chip {
    white-space: nowrap;
  }

  html[lang="ja"] .places-mvp .filter-chip {
    width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
  }

  html[lang="ja"] .places-mvp .places-more-filter-list {
    width: min(320px, calc(100vw - 70px));
    min-width: min(320px, calc(100vw - 70px));
  }

  html[lang="ja"] .places-mvp .places-more-filters {
    display: grid;
    align-items: start;
    justify-items: start;
  }

  html[lang="ja"] .assistant-prompts button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  html[lang="ja"] .home-hero-copy-v2 h1[lang="en"] {
    font-size: clamp(44px, 13vw, 56px);
  }

  html[lang="ja"] .home-intent-card h2,
  html[lang="ja"] .home-editorial-card h3 {
    font-size: 22px;
    line-height: 1.5;
  }

  html[lang="ja"] .safe-v1-copy h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.5;
  }

  html[lang="ja"] .my-page > .section-head .section-title {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.5;
  }

  html[lang="ja"] .home-brand-copy blockquote {
    font-size: clamp(27px, 7.8vw, 34px);
    line-height: 1.55;
  }

  html[lang="ja"] .home-brand-copy blockquote span {
    width: auto;
    white-space: normal;
  }

  html[lang="ja"] .home-hero-question {
    font-size: clamp(21px, 6.2vw, 26px);
    white-space: normal;
  }

  .places-mvp-layout,
  .places-detail-grid,
  .safe-action-v1-grid,
  .safe-route-head,
  .safe-route-options,
  .safe-route-detail-grid,
  .safe-why-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .safe-scenario-grid {
    grid-template-columns: 1fr;
  }

  .safe-scenario-detail-head,
  .safe-phrase-card {
    grid-template-columns: 1fr;
  }

  .safe-phrase-actions {
    justify-content: flex-start;
  }

  .safe-phrase-actions .soft-button,
  .safe-phrase-actions .text-button {
    width: auto;
  }

  .places-card-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .places-mvp-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .places-mvp-card .card-arrow {
    display: none;
  }

  .places-detail-head img {
    max-width: 190px;
  }

  .places-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .route-map-link {
    width: 100%;
  }

  .toast-with-actions {
    align-items: stretch;
    flex-direction: column;
    border-radius: 16px;
    width: calc(100vw - 36px);
  }

  .product-map {
    overflow: hidden;
  }

  .map-badge-stack {
    top: 10px;
    left: 10px;
    gap: 6px;
  }

  .area-badge,
  .map-badge-stack .prototype-badge {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .map-disclosure {
    top: 48px;
    bottom: auto;
    left: 10px;
    max-width: calc(100% - 20px);
    border-radius: 8px;
    font-size: 11px;
  }

  .map-place-popover {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    max-width: calc(100% - 24px);
  }

  .places-map-shell {
    display: grid;
    gap: 12px;
  }

  .places-prototype-map {
    min-height: 370px;
  }

  .places-map-markers {
    inset: 94px 46px 30px 0;
  }

  .places-prototype-map .map-disclosure {
    max-width: calc(100% - 20px);
  }

  .places-prototype-map .place-pin {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .places-map-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .places-map-toolbar .places-search {
    width: 100%;
  }

  .places-explorer[data-view="list"] .places-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .places-map-shell .places-map-card {
    position: static;
    right: auto;
    bottom: auto;
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    box-shadow: none;
  }

  .places-map-shell .map-popover-link {
    grid-column: 2;
  }

  .places-map-shell .places-map-card .popover-place-image,
  .places-map-shell .places-map-card .popover-place-visual {
    width: 72px;
    height: 72px;
  }

  .places-map-shell .places-map-card .place-fallback-icon {
    width: 28px;
    height: 28px;
  }

  .places-empty-popover {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .places-map-shell .places-map-card {
    width: min(320px, calc(100% - 24px));
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 1120px) {
  .home-brand-moment,
  .home-hero-v2,
  .home-intent-grid,
  .home-editorial-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-v2 {
    gap: 24px;
  }

  .home-hero-art {
    max-height: 320px;
  }

  .home-intent-card {
    min-height: 0;
  }

  .safe-v1-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
  }

  .safe-v1-copy {
    max-width: 620px;
  }

  .safe-hero-visual {
    min-height: clamp(300px, 52vw, 480px);
  }

  .safety-call-intro,
  .safety-caller-grid,
  .safety-delay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    gap: 28px;
    padding-top: 24px;
  }

  .home-hero .hero-inner {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: 12px;
    margin-left: 12px;
    min-height: 0;
    padding: 22px 16px;
  }

  .home-hero .hero-illustration {
    width: 100%;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
  }

  .home-hero-v2 {
    min-height: 0;
    gap: 0;
  }

  .home-hero-copy-v2 {
    gap: 12px;
  }

  .home-hero-copy-v2 h1 {
    font-size: clamp(46px, 14vw, 62px);
    line-height: 0.94;
  }

  .home-hero-question {
    margin-top: 2px;
    font-size: clamp(22px, 7vw, 28px);
  }

  .home-confidence-line {
    max-width: 100%;
    font-size: 14px;
  }

  .home-hero-art {
    display: none;
  }

  .home-intent-grid,
  .home-editorial-grid {
    gap: 10px;
  }

  .home-intent-card,
  .home-editorial-card {
    padding: 18px;
  }

  .home-choice-button {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: start;
  }

  .home-today-card {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    overflow: hidden;
  }

  .home-today-card h2 {
    max-width: min(100%, 292px);
    font-size: clamp(27px, 8.2vw, 34px);
    overflow-wrap: anywhere;
  }

  .home-today-card p {
    max-width: min(100%, 292px);
  }

  .home-today-card > div,
  .home-meta-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-meta-row .pill,
  .home-meta-row .tag,
  .home-tag-row .tag {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .home-today-card .button {
    width: 100%;
  }

  .home-brand-moment {
    min-height: 0;
    padding: 24px 18px;
  }

  .home-brand-copy blockquote {
    font-size: clamp(28px, 9vw, 38px);
  }

  .home-brand-visual {
    min-height: 190px;
  }

  .home-brand-visual img {
    width: min(100%, 210px);
    max-height: 240px;
  }

  .home-brand-sketch {
    min-height: 158px;
  }

  .home-sketch-window {
    right: 18px;
    width: 104px;
    height: 128px;
  }

  .home-sketch-line {
    right: 50px;
    bottom: 10px;
    width: 112px;
    height: 60px;
  }

  .safe-v1-page {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: 12px;
    margin-left: 12px;
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
  }

  .safe-v1-hero {
    gap: 16px;
    margin: -18px 0 18px;
    padding-top: 0;
  }

  .safe-v1-copy {
    gap: 14px;
    padding-left: 0;
  }

  .safe-v1-brand {
    font-size: clamp(39px, 11vw, 52px);
    letter-spacing: 0;
  }

  .safe-v1-rule {
    width: 44px;
  }

  .safe-v1-copy h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .safe-v1-copy p:last-child {
    margin-top: 2px;
    font-size: clamp(19px, 6vw, 24px);
  }

  .safe-hero-visual {
    min-height: 250px;
    border-radius: 18px;
  }

  .safe-hero-visual::after {
    inset: 8px;
    border-radius: 16px;
  }

  .safe-hero-visual img {
    object-position: 58% center;
    transform: scale(1.01);
  }

  .safety-call-panel {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .safety-call-intro > div,
  .safety-call-stage > div,
  .safety-call-actions,
  .safety-message-list {
    width: 100%;
    max-width: min(280px, calc(100vw - 88px));
  }

  .safety-call-intro h2,
  .safety-call-intro p,
  .safety-call-stage h2,
  .safety-call-stage p,
  .safety-call-note {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .safety-call-intro,
  .safety-caller-grid,
  .safety-delay-grid,
  .safety-call-secondary {
    grid-template-columns: 1fr;
  }

  .safety-caller-card {
    min-height: 92px;
  }

  .safety-call-footer,
  .safety-call-footer.is-centered {
    align-items: stretch;
    flex-direction: column;
  }

  .safety-call-footer .button,
  .safety-call-footer .soft-button,
  .safety-call-footer .text-button,
  .safety-call-actions .button,
  .safety-call-secondary .soft-button {
    width: 100%;
  }

  .safety-countdown {
    font-size: clamp(52px, 18vw, 74px);
  }

  .safety-incoming-orb {
    width: 88px;
    height: 88px;
    font-size: 34px;
  }

  .safety-message {
    max-width: 100%;
  }

  .safety-connected-head,
  .safety-connected-person {
    width: 100%;
  }

  .safety-connected-person {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .safe-route-head,
  .safe-route-form,
  .safe-route-empty-state,
  .safe-route-detail,
  .safe-route-preview {
    padding: 16px;
  }

  .safe-route-form,
  .safe-route-fields {
    grid-template-columns: 1fr;
  }

  .safe-route-quick-actions,
  .safe-route-quick-actions .soft-button {
    width: 100%;
  }

  .safe-route-saved-place {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .safe-route-form .button,
  .safe-route-handoff .button {
    width: 100%;
  }

  .safe-route-disclosure {
    padding-left: 10px;
  }

  .safe-route-option {
    min-height: 0;
    padding: 16px;
  }

  .safe-route-detail-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .safe-route-time.is-large {
    width: max-content;
  }

  .safe-route-preview-line {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .safe-route-preview-line i {
    width: 100%;
  }

  .safe-scenario-card {
    min-height: 108px;
    gap: 12px;
    padding: 16px;
  }

  .safe-scenario-icon {
    width: 58px;
    height: 58px;
  }

  .safe-scenario-icon svg {
    width: 34px;
    height: 34px;
  }

  .safe-scenario-card strong {
    font-size: 16px;
  }

  .safe-scenario-arrow {
    font-size: 34px;
  }
}
