/* Mobile app shell: one clear action row, a focus-contained menu and safe areas. */
.header .brand { min-width: 0; flex-shrink: 1; }
.header-right { flex-shrink: 0; }
.navigation-dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px 22px; }
.navigation-dialog h2 { padding-right: 44px; margin-bottom: 24px; }
.mobile-menu-list { display: grid; gap: 8px; }
.mobile-menu-list a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 14px; border: 1px solid #b8ab97; border-radius: 14px; color: var(--ink); background: #ded8ce; }
.mobile-menu-list a span { flex: 1; }
.mobile-menu-list a[aria-current] { background: #cbdafe; border-color: #819ed6; color: #193db0; }
.mobile-menu-actions { display: grid; gap: 12px; margin-top: 24px; }
.mobile-menu-actions .btn { width: 100%; min-height: 48px; }
.mobile-menu-list a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.saved-address { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line-slate); border-radius: 16px; background: var(--surface-slate); }
.saved-address p { margin: 8px 0; }
.case-card { padding: 22px; margin-bottom: 20px; }
.case-card .response { padding: 16px; margin-top: 16px; background: #c3deda; border-radius: 12px; }
.finance-grid { display: grid; gap: 22px; }
.pagination { flex-wrap: wrap; }
.account-photo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid #b8ab97; }
.finance-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.app-update { position: fixed; right: 20px; bottom: 24px; z-index: 55; max-width: 360px; padding: 18px; background: #d0d6df; color: var(--ink); border: 1px solid #969faf; border-radius: 18px; box-shadow: 0 5px 0 #969faf, 0 12px 25px #29303d33; }
.app-update p { margin-bottom: 12px; }
.app-update .row { flex-wrap: wrap; }
@media(max-width: 1100px) {
  .header nav { gap: 14px; font-size: 12px; }
  .header .brand { font-size: 20px; gap: 8px; }
  .header-right { gap: 8px; }
}
@media(max-width: 850px) {
  .header { min-height: 68px; height: auto; padding: 10px 14px; gap: 10px; margin: 10px 12px 0; top: max(10px, env(safe-area-inset-top)); }
  .header > nav, .header .header-cta, .header .tagline { display: none !important; }
  .header .brand { font-size: 18px; letter-spacing: -.04em; gap: 8px; }
  .header .brand img { width: 44px; height: 44px; flex-shrink: 0; }
  .header-right { gap: 8px; }
  .header .menu-button { display: inline-flex; width: 44px; height: 44px; min-width: 44px; border-color: #b8ab97; background: #ded8ce; }
  .header .avatar { width: 40px; height: 40px; font-size: 12px; flex-shrink: 0; }
  .header .guest-signin { min-height: 44px; padding: 8px; font-size: 13px; white-space: nowrap; }
  .header .icon-btn { width: 44px; height: 44px; min-width: 44px; }
  .mobile-nav { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .mobile-nav a { min-width: 0; min-height: 50px; flex: 1; padding: 6px 4px; }
  .mobile-nav a span { font-size: 10px; overflow-wrap: anywhere; }
  .page-head { align-items: flex-start; flex-wrap: wrap; }
  .app-update { right: 14px; left: 14px; max-width: none; bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media(max-width: 400px) {
  .header .brand > span { display: none; }
  .header .brand img { width: 52px; height: 48px; }
  .header .avatar { display: none; }
  .header-right { gap: 10px; }
}
@media(max-width: 600px) {
  .navigation-dialog { margin: auto 10px; width: calc(100% - 20px); padding: 25px 18px; border-radius: 24px; }
  .saved-address { flex-direction: column; }
  .finance-action-row .btn { flex: 1; }
  .filter-bar input, .filter-bar select, .map-place-input input { font-size: 16px; }
}
@media(prefers-reduced-motion: reduce) { .navigation-dialog { scroll-behavior: auto; } }

/* Shared footer navigation: public pages and every workspace. */
.footer.site-footer{display:block;width:100%;margin:44px 0 10px;padding:30px;border:1px solid #42516b;border-radius:26px;background-color:#202c40;background-image:radial-gradient(circle at 1px 1px,#ffffff09 1px,transparent 0);background-size:18px 18px;color:#d8e0ed;box-shadow:0 7px 0 #101a2c,0 20px 28px -22px #15223988,inset 0 1px 0 #60708b;font-size:13px;line-height:1.6}
.site-footer .footer-grid{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(0,1fr));gap:26px}
.site-footer .footer-intro,.site-footer .footer-menu{min-width:0}
.site-footer .footer-brand{display:flex;align-items:center;gap:14px;color:#f3e6d1;font-size:16px;font-weight:700;line-height:1.45}
.site-footer .footer-logo{width:76px;height:76px;background:#ede1cc;border:1px solid #c2ad8a;border-radius:17px;padding:5px;object-fit:contain;box-shadow:0 4px 0 #9b8463;flex-shrink:0}
.site-footer .footer-intro p{margin:16px 0;color:#d8e0ed;font-size:12px;line-height:1.8}
.site-footer .footer-menu h2{font-size:13px;line-height:1.5;letter-spacing:.025em;color:#f3e6d1;margin:3px 0 12px;font-weight:700}
.site-footer a{margin:0;text-decoration:none;overflow-wrap:anywhere}
.site-footer .footer-menu a{display:flex;align-items:center;min-height:44px;padding:5px 0;width:fit-content;max-width:100%;color:#d8e0ed;font-size:13px}
.site-footer a:hover,.site-footer a[aria-current="page"]{color:#f3e6d1;text-decoration:underline;text-underline-offset:4px}
.site-footer :is(a,button):focus-visible{outline:3px solid #f0c881;outline-offset:4px;border-radius:5px}
.site-footer .footer-install{min-height:44px;padding:10px 15px;background:#ecdcc0;border:1px solid #b9a582;box-shadow:0 4px 0 #9b8463,inset 0 1px 0 #f7eddb;color:#253047;font-size:12px;gap:9px}
.site-footer .footer-install svg{width:18px;height:18px}
.site-footer .footer-install:hover{background:#f2e5d0;color:#253047}
.site-footer .footer-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 24px;margin-top:26px;padding-top:19px;border-top:1px solid #53617a;font-size:11px;color:#d8e0ed}
.site-footer .footer-bottom a{display:flex;align-items:center;gap:8px;min-height:44px;color:#d8e0ed}
.site-footer .footer-bottom svg{width:16px;height:16px}
@media(max-width:1100px){.site-footer .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.site-footer .footer-intro{grid-column:1/-1}.site-footer .footer-intro p{max-width:400px}}
@media(max-width:600px){.footer.site-footer{padding:24px 20px;margin-top:32px;border-radius:22px}.site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 16px}.site-footer .footer-menu:last-child{grid-column:1/-1}.site-footer .footer-menu h2{margin-bottom:6px}.site-footer .footer-bottom{align-items:flex-start;flex-direction:column;gap:0;margin-top:22px}.site-footer .footer-brand{font-size:17px}}
@media(max-width:359px){.site-footer .footer-grid{grid-template-columns:1fr}.site-footer .footer-menu,.site-footer .footer-intro{grid-column:1}.site-footer .footer-brand{gap:10px;font-size:15px}}
@media print{.footer.site-footer{display:none!important}}

/* v13: solid white search surfaces with visible keyboard focus. */
.search-form,.visitor-search,.search-form input,.filter-bar input,.map-place-input input{
 background:#fff!important;background-image:none!important;color:#17233d!important;
}
.search-form:focus-within,.filter-bar input:focus,.map-place-input input:focus{
 outline:3px solid #174be7;outline-offset:3px;
}
.search-form input::placeholder,.filter-bar input::placeholder,.map-place-input input::placeholder{color:#56647a;opacity:1}
@media(max-width:600px){.search-form input{font-size:16px!important}}
