/* Home and community follow the Flutter app at phone widths only. */
.mobile-parity-activity-icon { display:none; }
@media (max-width:700px) {
  body.mobile-home-app {
    --app-brown:#9a6741;
    --app-paper:#fffcf9;
    --app-ink:#30251f;
    --app-muted:#8b7b71;
    color:var(--app-ink);
    background:var(--app-paper);
    padding-bottom:calc(112px + env(safe-area-inset-bottom));
  }
  body.mobile-home-app,body.mobile-home-app * {
    font-family:Roboto,'Noto Sans KR','Malgun Gothic',system-ui,sans-serif!important;
  }
  .mobile-home-app .mobile-app-header { height:72px; padding:0; background:var(--app-paper); }
  .mobile-home-app .mobile-top-row { height:72px; padding:0 4px 0 16px; margin:0; }
  .mobile-home-app .mobile-brand img { height:48px; width:auto; }
  .mobile-home-app .mobile-top-actions { gap:8px; }
  .mobile-home-app .mobile-alert,.mobile-home-app .mobile-chat,.mobile-home-app .mobile-login {
    width:48px; height:48px; flex:0 0 48px; background:#f7f3f0; color:#5b4638;
  }
  .mobile-home-app .mobile-top-actions svg { width:25px; height:25px; }
  .mobile-home-app .mobile-search { display:none!important; }
  .mobile-home-app .mobile-fixed-banner {
    height:254px; min-height:254px; max-height:none; background:var(--app-paper);
  }
  .mobile-home-app .mobile-banner-track,.mobile-home-app .mobile-banner-slide { height:238px; }
  .mobile-home-app .mobile-banner-dots { bottom:0; height:8px; gap:6px; }
  .mobile-home-app .mobile-banner-dot {
    width:8px; height:8px; background:#d8cbc2; box-shadow:none;
  }
  .mobile-home-app .mobile-banner-dot.active { width:22px; background:var(--app-brown); }
  .mobile-home-app .mobile-fixed-category {
    display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important; padding:16px 20px 0!important; background:var(--app-paper);
  }
  .mobile-home-app .mobile-fixed-category .mobile-category-button {
    min-height:54px; width:100%!important; padding:12px 8px!important;
    border:1px solid #e7d9cf; border-radius:999px; background:#fff;
    color:var(--app-ink); font-size:16px!important; font-weight:700!important; letter-spacing:0;
  }
  .mobile-home-app .mobile-fixed-category .mobile-category-button.active {
    background:var(--app-brown); border-color:var(--app-brown); color:#fff!important;
  }
  .mobile-home-app #care>.page-content { padding:18px 20px 0; min-height:0; }
  .mobile-home-app .care-location-bar {
    display:flex; flex-direction:column; align-items:stretch; gap:16px;
    min-height:0; margin:0 0 30px; padding:18px; border:1px solid #e8d9ce;
    border-radius:18px; background:#faf6f2;
  }
  .mobile-home-app .care-location-bar .desktop-location-info { align-items:flex-start; gap:12px; width:100%; }
  .mobile-home-app .care-location-bar .desktop-location-icon { width:40px; height:40px; box-shadow:none; }
  .mobile-home-app .care-location-bar .desktop-location-info>div { flex:1; min-width:0; }
  .mobile-home-app .care-location-name {
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    margin:0 0 6px; color:var(--app-ink); font-size:16px!important; font-weight:700; line-height:1.3; word-break:keep-all; overflow-wrap:anywhere;
  }
  .mobile-home-app .care-location-bar .desktop-location-info p {
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    margin:0; color:var(--app-muted); font-size:12px; font-weight:400; line-height:1.5; word-break:keep-all; overflow-wrap:anywhere;
  }
  .mobile-home-app #openCareLocationButton,.mobile-home-app .community-location .desktop-location-change {
    display:flex!important; align-items:center; justify-content:center; width:100%!important;
    min-width:0!important; min-height:48px; padding:12px 16px!important; border:.8px solid var(--app-brown);
    border-radius:14px; background:#fff; color:#8b5e3c; font-size:14px; font-weight:800!important;
  }
  .mobile-home-app .home-facility-search {
    padding:14px 14px 12px; margin:0 0 34px; border:1px solid #e8d9ce;
    border-radius:18px; background:#fff; box-shadow:0 10px 24px #65442e0d;
  }
  .mobile-home-app .home-facility-search>label { margin-bottom:10px; font-size:20px; font-weight:800; color:var(--app-ink); }
  .mobile-home-app .home-facility-search>div { min-height:54px; gap:0; padding:4px 4px 4px 10px; border-color:#d9c5b5; border-radius:14px; }
  .mobile-home-app .home-facility-search input { width:0; padding:8px 0; font-size:14px; }
  .mobile-home-app .home-facility-search button { min-width:56px; min-height:44px; padding:10px 12px; border-radius:14px; background:var(--app-brown); font-size:13px; font-weight:800!important; }
  .mobile-home-app .home-facility-search p { margin:8px 0 0; color:var(--app-muted); font-size:12px; line-height:1.5; }
  .mobile-home-app .home-section-heading { margin-bottom:18px; align-items:flex-end; }
  .mobile-home-app .home-section-heading h2 { margin:0 0 4px; font-size:22px; font-weight:800; }
  .mobile-home-app .home-section-heading p { overflow:visible; white-space:normal!important; font-size:14px!important; color:var(--app-muted)!important; letter-spacing:0!important; line-height:1.4; }
  .mobile-home-app .home-section-heading>a { color:var(--app-brown)!important; font-size:13px!important; font-weight:700; white-space:nowrap; }
  .mobile-home-app #homeFacilityGrid { flex-direction:column; gap:12px!important; overflow:visible!important; padding:0; }
  .mobile-home-app #homeFacilityGrid .facility-home-card-wrap { flex:none!important; width:100%!important; }
  .mobile-home-app #homeFacilityGrid .facility-home-card {
    display:flex!important; flex-direction:row!important; flex:none!important; width:100%!important;
    min-width:0!important; min-height:190px!important; border:1px solid #e8d9ce; border-radius:22px;
    overflow:hidden; box-shadow:0 8px 20px #65442e0f;
  }
  .mobile-home-app #homeFacilityGrid .facility-home-card .home-preview-image {
    flex:0 0 39%; width:39%!important; min-width:126px!important; max-width:180px; min-height:190px!important; aspect-ratio:auto!important;
  }
  .mobile-home-app #homeFacilityGrid .facility-home-card-copy { flex:1; min-width:0; padding:14px 25px 12px 13px!important; }
  .mobile-home-app #homeFacilityGrid .facility-home-card h3 { font-size:17px!important; line-height:1.3; font-weight:800; }
  .mobile-home-app #homeFacilityGrid .home-facility-info p { font-size:12.5px!important; }
  .mobile-home-app .home-care-shortcut { width:100%; margin:0 0 16px; }
  .mobile-home-app .home-care-shortcut-card { padding:16px; border-radius:20px; border-color:#e7cdbb; background:#fff8f1; box-shadow:none; }
  .mobile-home-app #community { margin:0; padding:18px 20px 0; max-width:none; }
  .mobile-home-app .community-heading { margin:0 0 18px; align-items:center; flex-wrap:nowrap; }
  .mobile-home-app .community-heading>div:first-child { min-width:0; }
  .mobile-home-app .community-heading h1 { margin:0 0 6px; font-size:27px; font-weight:800; color:var(--app-ink); }
  .mobile-home-app .community-heading p { color:#795548; font-size:14px; line-height:1.5; }
  .mobile-home-app #communityActivity { display:flex; align-items:center; flex-shrink:0; gap:6px; min-height:40px; padding:10px 14px; border:1.3px solid #b28a6b; border-radius:16px; color:var(--app-brown); font-size:13px; }
  .mobile-home-app .mobile-parity-activity-icon { display:block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
  .mobile-home-app .community-location {
    display:flex; flex-direction:column; align-items:stretch; gap:16px;
    width:calc(100% - 8px); min-height:0; margin:0 4px 18px; padding:16px;
    border:.8px solid #b28a6b; border-radius:20px; background:#faf6f2;
  }
  .mobile-home-app .community-location .desktop-location-info { width:100%; gap:12px; }
  .mobile-home-app .community-location .desktop-location-info>div { flex:1; min-width:0; }
  .mobile-home-app .community-location .desktop-location-icon { width:60px; height:60px; }
  .mobile-home-app .community-location strong { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-bottom:5px; font-size:17px; font-weight:700; line-height:1.3; word-break:keep-all; overflow-wrap:anywhere; }
  .mobile-home-app .community-location p { font-size:13px; color:#795548; line-height:1.4; }
  .mobile-home-app #communityRoot .community-tabs { margin-bottom:24px; }
  .mobile-home-app #communityRoot .community-tabs button { font-weight:600!important; }
  .mobile-home-app #communityRoot .community-tabs button[aria-selected=true] { font-weight:800!important; }
  .mobile-home-app .community-filters { gap:8px; padding:0 0 16px; }
  .mobile-home-app #communityRoot .community-filters button { min-height:40px; padding:9px 14px; border-radius:16px; border-color:#b28a6b; font-size:14px; }
  .mobile-home-app #communitySearch { position:relative; display:block; margin-bottom:14px; }
  .mobile-home-app #communitySearch input { width:100%; min-height:56px; padding:16px 52px 16px 14px; border-radius:16px; border-color:#b28a6b; font-size:14px; }
  .mobile-home-app #communitySearch .community-primary {
    position:absolute; top:4px; right:4px; display:grid; place-items:center; width:48px; height:48px;
    min-height:0; padding:0; border-radius:50%; background:transparent!important; color:#604737!important; font-size:0;
  }
  .mobile-home-app #communitySearch .community-primary::before { content:''; width:23px; height:23px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/contain no-repeat; }
  .mobile-home-app .community-sort-row { margin:0 0 14px; }
  .mobile-home-app .community-sort-row #communityWrite { min-height:40px; border-radius:999px; padding:10px 18px; font-size:14px; }
  .mobile-home-app .community-sort-row select { min-height:48px; font-size:14px; }
  .mobile-home-app .community-list { border:0; border-radius:0; background:transparent; overflow:visible; }
  .mobile-home-app .community-post { margin:0 0 10px; padding:18px; border:.8px solid #e8d9ce; border-radius:16px; background:#fff; }
  .mobile-home-app .community-post h3 { font-size:18px; font-weight:800; }
  .mobile-home-app .home-meeting-search { margin-top:0!important; padding:18px!important; border-radius:20px!important; background:#fff!important; }
  .mobile-home-app .home-meeting-search>label { font-size:20px!important; font-weight:800!important; }
  .mobile-home-app .home-support-card { margin:32px 20px 125px; width:calc(100% - 40px); padding:20px; }
  .mobile-home-app .site-footer { display:none; }
  .mobile-home-app .shared-mobile-bottom-nav {
    bottom:calc(10px + env(safe-area-inset-bottom)); width:calc(100% - 28px); max-width:none;
    height:78px; min-height:78px; padding:6px; gap:0; border:1.2px solid #ffffffeb;
    border-radius:36px; background:#ffffffdb; box-shadow:0 9px 24px #00000026;
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  }
  .mobile-home-app .shared-mobile-bottom-nav a { min-height:64px; border-radius:28px; gap:3px; color:#4c433e; }
  .mobile-home-app .shared-mobile-bottom-nav a::before { border-radius:28px; background:#f2e8e0eb; }
  .mobile-home-app .shared-mobile-bottom-nav svg { width:25px; height:25px; }
  .mobile-home-app .shared-mobile-bottom-nav span { font-size:11.5px; font-weight:600; line-height:1; }
  .mobile-home-app .shared-mobile-bottom-nav a.active { color:#8d5f3d; }
  .mobile-home-app .shared-mobile-bottom-nav a.active span { font-weight:800; }
  .mobile-home-app .shared-mobile-bottom-nav a.active svg { fill:currentColor; }
  .mobile-home-app .luna-assistant-launcher { right:14px; bottom:calc(104px + env(safe-area-inset-bottom)); width:62px; height:62px; border:0; border-radius:22px; background:#a96f43; box-shadow:0 8px 18px #5f392440; }
  .mobile-home-app .luna-assistant-launcher>svg { width:28px; height:28px; }
  .mobile-home-app .luna-assistant-launcher>span { right:5px; bottom:5px; padding:2px 5px; font-size:10px; }
  .mobile-home-app.mobile-community-view .mobile-app-header,
  .mobile-home-app.mobile-community-view .mobile-fixed-banner,
  .mobile-home-app.mobile-community-view .mobile-fixed-category,
  .mobile-home-app.mobile-community-view .home-support-card { display:none!important; }
  .mobile-home-app.mobile-community-view #community { padding-top:24px; padding-bottom:125px; }
}
