:root{--qp-service-height:70px;--qp-bottom-height:76px}
html{scroll-padding-top:calc(var(--qp-service-height) + 16px)}
body.qp-site-with-nav{padding-bottom:0!important}
.qp-service-header,.qp-service-bottom{box-sizing:border-box;font-family:inherit;color:#285840}
.qp-service-header{position:sticky;top:0;z-index:40;background:#faf7edf7;border-bottom:1px solid #dce0cc;backdrop-filter:blur(12px)}
.qp-service-inner{box-sizing:border-box;min-height:var(--qp-service-height);max-width:1280px;margin:auto;padding:9px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.qp-service-brand{display:flex!important;flex-direction:column;justify-content:center;flex-shrink:0;min-height:44px;color:#285840!important;text-decoration:none!important}
.qp-service-brand strong{font-family:inherit;font-size:20px;font-weight:700;line-height:1.35;letter-spacing:.035em}
.qp-service-brand small{font-size:11px;line-height:1.5;letter-spacing:.08em;color:#64725b}
.qp-route-links{display:flex!important;flex-direction:row!important;align-items:center;gap:6px!important}
.qp-route-links a,.qp-service-bottom a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 14px;border:1px solid transparent;border-radius:24px;color:#285840!important;text-decoration:none!important;font-size:14px;font-weight:600;line-height:1.5;white-space:nowrap}
.qp-route-links svg,.qp-service-bottom svg{display:block;width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qp-route-links a:hover,.qp-route-links a[aria-current],.qp-service-bottom a[aria-current]{background:#e8ecd9;border-color:#d7dfc5}
.qp-route-links a.qp-direct-line,.qp-service-bottom a.qp-direct-line{background:#285840;color:#fff!important;border-color:#285840}
.qp-route-links a.qp-direct-line:hover,.qp-service-bottom a.qp-direct-line:hover{background:#173e30}
.qp-service-header a:focus-visible,.qp-service-bottom a:focus-visible{outline:3px solid #b8782e!important;outline-offset:2px}
.qp-service-bottom{display:none}
body.qp-site-with-nav .qp-line-dock{display:none!important}
body.qp-site-with-nav .v2-routebar{display:none!important}
body.qp-case-page .brand-masthead{display:none!important}
.qp-life-local-nav{display:flex!important;flex-direction:row!important;gap:22px!important;max-width:1180px;margin:auto;padding:10px 24px!important;flex-wrap:wrap;font-size:14px;border-bottom:1px solid #e5e5d6}
.qp-life-local-nav a{min-height:36px;display:inline-flex;align-items:center;text-decoration:none;color:#355840}
body.qp-site-with-nav .backtop{bottom:24px}
body.qp-market-page .sidebar{top:var(--qp-service-height);height:calc(100dvh - var(--qp-service-height))}
body.qp-market-page .app{min-height:calc(100dvh - var(--qp-service-height))}
@media(max-width:760px){
 :root{--qp-service-height:60px}
 body.qp-site-with-nav{padding-bottom:calc(var(--qp-bottom-height) + env(safe-area-inset-bottom,0px))!important}
 .qp-service-inner{padding:5px 18px;gap:10px}
 .qp-service-brand strong{font-size:18px}
 .qp-service-brand small{font-size:10px}
 .qp-route-links{display:none!important}
 .qp-service-bottom{position:fixed;inset:auto 0 0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-height:var(--qp-bottom-height);padding:7px max(8px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));border-top:1px solid #d6dec7;background:#faf7edf7;backdrop-filter:blur(12px);box-shadow:0 -4px 20px #173e300d}
 .qp-service-bottom a{padding:6px 2px;min-width:0;min-height:60px;flex-direction:column;gap:5px;border-radius:14px;font-size:12px}
 .qp-service-bottom svg{width:21px;height:21px}
 .qp-life-local-nav{padding:6px 18px!important;font-size:13px;gap:20px!important}
 body.qp-site-with-nav .backtop{bottom:calc(var(--qp-bottom-height) + env(safe-area-inset-bottom,0px) + 14px)}
 body:has(dialog[open]) .qp-service-bottom{visibility:hidden;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Gemini task review: clearer current tab and compact, direct-entry case cards. */
.qp-route-links a:not(.qp-direct-line),.qp-service-bottom a:not(.qp-direct-line){color:#64705f!important}
.qp-route-links a[aria-current],.qp-service-bottom a[aria-current]{background:#e8efe9;color:#1e4620!important;border-color:#9caf98;font-weight:800}
.qp-catalog-notes{margin:0 0 18px;border:1px solid #e0ddd5;border-radius:10px;padding:0 14px;background:#fffdf6}
.qp-catalog-notes summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:13px;color:#52644d}
.qp-catalog-notes summary::-webkit-details-marker{display:none}
.qp-catalog-notes summary span{font-size:20px;line-height:1}
.qp-catalog-notes[open] summary span{transform:rotate(45deg)}
.qp-catalog-notes p{font-size:13px!important;line-height:1.7!important;color:#64705f!important;padding:0 0 14px;margin:0;max-width:900px}
body.qp-site-with-nav #homes .listing-shortcuts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;margin:0 0 26px!important;align-items:stretch}
body.qp-site-with-nav #homes .case-shortcut{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;min-height:70px;width:auto;min-width:0;padding:12px 16px!important;gap:3px;border:1px solid #e0ddd5!important;border-radius:10px!important;background:#fffdf6!important;text-align:left!important;color:#285840!important;white-space:normal!important}
body.qp-site-with-nav #homes .case-shortcut:hover{background:#eef2e5!important;border-color:#96ab83!important}
body.qp-site-with-nav #homes .case-shortcut .case-name{display:block!important;width:100%;white-space:normal!important;line-height:1.5}
body.qp-site-with-nav #homes .case-shortcut .case-community{display:block;font-size:15px;font-weight:700}
body.qp-site-with-nav #homes .case-shortcut .case-format{display:block;font-size:13px;font-weight:400;color:#65705f;white-space:normal}
@media(max-width:760px){
 .qp-service-bottom a{font-size:13px}
 body.qp-site-with-nav #homes .listing-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 body.qp-site-with-nav #homes .case-shortcut{padding:10px 12px!important}
}


