/* Wrapped in @layer legacy: these rules lose to prestige-ds.css regardless
   of specificity. Rules are deleted from here as the design system covers them. */
@layer legacy {
/* Shared website and workspace visual system. Loaded after legacy page styles. */
:root {
    --green: #235b48; --green-600: #1c4b3b; --green-700: #173e32; --green-050: #edf3ee;
    --ink: #20382e; --muted: #6d776f; --line: #e1e5dc; --canvas: #f5f5ef;
    --pp-green: #235b48; --pp-green-600: #1c4b3b; --pp-green-700: #173e32;
    --pp-ink: #20382e; --pp-muted: #6d776f; --pp-canvas: #f8f8f2; --pp-line: #e1e5dc;
    --sidebar-w: 256px; --radius: 16px; --shadow-1: 0 2px 8px #20382e05;
}
:focus-visible { outline: 3px solid #b48b42; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2000; padding: 12px 20px; background: #fff; color: #173e32; border-radius: 8px; }
.skip-link:focus { top: 12px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.btn { min-height: 44px; border-radius: 9px; font-weight: 600; box-shadow: none; }
.btn-primary, .hero-search-button { background: #235b48; border-color: #235b48; color: white; }
.btn-primary:hover, .hero-search-button:hover { background: #173e32; }
.btn-outline { border-color: #cdd8cd; }
.eyebrow { font-size: 10px; letter-spacing: .16em; }
.site-header { background: #fffffff5; border-bottom: 1px solid #e1e5dc; box-shadow: none; }
.site-header-inner { max-width: 1280px; min-height: 86px; }
.site-nav a { font-size: 13px; font-weight: 600; padding: 12px 4px; }
.site-nav a[aria-current], .site-nav a:hover { color: #235b48; text-decoration: underline; text-underline-offset: 8px; }
.site-logo { width: 200px; }
.home-hero { margin: 22px auto 0; width: min(1360px, calc(100% - 40px)); border-radius: 22px; min-height: 660px; padding: 64px 0 30px; align-items: center; }
.home-hero::before { background-image: linear-gradient(90deg, #102e25e8, #102e2580), var(--hero-bg, linear-gradient(125deg, #173e32, #70836a)); }
.home-hero-inner { gap: 24px; width: calc(100% - 88px); }
.home-hero-content { max-width: 760px; }
.home-hero-content h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 5.6vw, 78px); line-height: 1.06; letter-spacing: -.04em; font-weight: 400; margin: 20px 0; }
.home-hero-content h1 em { font-weight: 400; color: #e1d7b9; }
.home-hero-content p { max-width: 580px; font-size: 15px; line-height: 1.8; color: #edf0e7; }
.hero-kicker { border: 1px solid #ffffff40; border-radius: 30px; background: #ffffff0d; font-size: 10px; letter-spacing: .08em; padding: 10px 14px; }
.hero-meta-row { margin-top: 24px; gap: 28px; }
.hero-meta-row strong { color: #f4ead2; }
.hero-search-heading { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.hero-search-heading span { font-size: 9px; letter-spacing: .18em; color: #dfd7bd; }
.hero-search-heading strong { font-size: 17px; font-weight: 500; }
.hero-search-panel { border-radius: 12px; padding: 14px; background: #fff; box-shadow: 0 12px 32px #071c2520; gap: 12px; }
.hero-search-panel label { min-width: 0; }
.hero-search-panel input, .hero-search-panel select { min-height: 44px; width: 100%; font-size: 14px; }
.hero-search-button { border-radius: 8px; min-height: 48px; }
.hero-pills a { border: 1px solid #ffffff40; background: transparent; font-size: 11px; }
.home-trust-strip { background: transparent; border-bottom: 1px solid #e1e5dc; }
.home-trust-strip .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 24px; }
.home-trust-strip .container > div { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #526656; }
.home-section h2, .inner-hero h1, .page-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; }
.home-section h2 { font-size: clamp(29px, 3vw, 42px); }
.type-tile { background: #fff; border: 1px solid #e1e5dc; border-radius: 12px; box-shadow: none; padding: 25px; }
.type-tile:hover { border-color: #235b48; background: #edf3ee; }
.type-tile > i { background: #edf3ee; color: #235b48; border-radius: 10px; }
.property-card, .area-card, .testi-card, .auth-card, .contact-card { border-radius: 16px; box-shadow: 0 4px 16px #20382e06; border-color: #e1e5dc; }
.property-card-body { padding: 22px; }
.property-card img { transition: transform .25s ease; }
.property-card:hover img { transform: scale(1.025); }
.site-footer { background: #163c30; color: #e8eee5; }
.footer-col a, .footer-brand p, .footer-contact span { color: #c1cec3; }
.footer-bottom { border-top: 1px solid #ffffff20; }
/* Workspace */
.app-body { background: #f5f5ef; }
.app-sidebar { background: #173e32; padding: 26px 16px 18px; }
.app-brand { padding-bottom: 25px; }
.app-brand-text strong { font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.app-brand-text small { color: #c4ceb9; font-size: 9px; }
.app-brand-mark { box-shadow: none; }
.app-sidebar-summary { background: #ffffff08; border: 1px solid #ffffff15; border-radius: 12px; margin-bottom: 24px; }
.nav-section-label { padding: 0 12px 12px; font-size: 9px; color: #b9c9bc; text-transform: uppercase; letter-spacing: .18em; }
.app-nav { gap: 5px; }
.app-nav-link { min-height: 44px; font-size: 12px; font-weight: 500; color: #d0ddd0; border-radius: 8px; }
.app-nav-link.is-active { color: #173e32; background: #e7ebd7; box-shadow: none; }
.app-nav-link.is-active::before { display: none; }
.app-nav-link:hover { background: #ffffff14; }
.app-nav-link.is-active:hover { background: #f0f3e4; }
.app-topbar { background: #ffffffed; padding: 20px 32px; min-height: 92px; box-shadow: none; }
.app-topbar-lead h1 { font-size: 22px; font-weight: 600; }
.app-user-meta { max-width: 170px; overflow-wrap: anywhere; }
.app-iconbtn, .app-menu-toggle { width: 44px; height: 44px; border-radius: 10px; }
.app-avatar { background: #e8eddf; color: #235b48; border: 1px solid #d8e0ce; }
.app-content { padding: 30px 32px 48px; width: 100%; max-width: 1600px; margin-inline: auto; }
.workspace-welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 32px; margin-bottom: 26px; border: 1px solid #dce3d5; border-radius: 16px; background: #eaf0e1; }
.workspace-welcome h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); margin: 10px 0; line-height: 1.2; }
.workspace-welcome p { font-size: 13px; color: #54664f; max-width: 620px; line-height: 1.7; }
.welcome-emblem { flex-shrink: 0; width: 92px; height: 92px; border: 1px solid #b8c9aa; border-radius: 50%; display: grid; place-items: center; font-size: 35px; color: #65825a; }
.stat-card { padding: 24px; border: 1px solid #e1e5dc; border-radius: 14px; box-shadow: none; align-items: flex-start; }
.stat-card::after { display: none; }
.stat-card span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; }
.stat-card strong { font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); overflow-wrap: anywhere; }
.stat-card > div { min-width: 0; }
.stat-card > i { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; background: #eef1e6; }
.panel, .queue-card, .qa-tile, .listing-card { border: 1px solid #e1e5dc; box-shadow: none; border-radius: 14px; }
.panel { padding: 26px; }
.qa-tile { padding: 20px; }
.qa-ic { background: #edf3ee; color: #235b48; border-radius: 10px; }
.data-table th { background: #f4f6ef; color: #66755d; font-size: 10px; letter-spacing: .05em; padding: 15px 18px; }
.data-table td { padding: 17px 18px; border-color: #edf0e8; }
.data-table tbody tr:hover { background: #fafbf7; }
.form-group input, .form-group select, .form-group textarea { border-radius: 9px; border-color: #d8dfd2; min-height: 46px; }
.sidebar-dismiss { display: none; }
/* Notifications remain one bounded surface, with a separately scrolling list. */
.notification-panel { width: 420px; border: 1px solid #dde4d6; border-radius: 16px; background: #fff; box-shadow: 0 18px 65px #15332926; padding: 0; }
.notification-panel.is-open { display: flex; flex-direction: column; }
.notification-head { background: #fff; padding: 20px; gap: 10px; flex-shrink: 0; }
.notification-head > div { flex: 1; min-width: 0; }
.notification-head strong { font-size: 17px; }
.notification-head span { font-size: 11px; }
.notification-head .btn { padding: 6px; border: 0; font-size: 10px; color: #235b48; }
.notification-head .app-iconbtn { width: 32px; height: 32px; flex-shrink: 0; }
.notification-filters { display: flex; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid #e1e5dc; }
.notification-filters button { min-height: 36px; border: 0; padding: 8px 12px; border-radius: 8px; background: transparent; color: #62705e; font-size: 12px; cursor: pointer; }
.notification-filters button.is-active { background: #eaf0e1; color: #173e32; font-weight: 600; }
.notification-filters span { padding: 2px 5px; border-radius: 4px; background: #fff; margin-left: 4px; }
.notification-list { min-height: 0; overflow-y: auto; }
.notification-item { padding: 18px 20px; gap: 12px; border-bottom: 1px solid #edf0e8; }
.notification-item.is-unread { background: #f6f8f1; }
.notification-copy { min-width: 0; overflow-wrap: anywhere; }
.notification-dot { margin-top: 7px; flex-shrink: 0; }
.notification-copy strong { font-size: 13px; }
.notification-copy span { font-size: 12px; line-height: 1.6; }
.notification-copy small { font-size: 10px; color: #75816e; }
.notification-empty { padding: 40px 26px; text-align: center; gap: 12px; }
.notification-empty strong { color: #20382e; }
.notification-empty span { font-size: 12px; line-height: 1.7; max-width: 250px; }
.notification-feedback { font-size: 12px; color: #6d776f; padding: 12px 20px; }
.notification-permission { margin: 0 16px 14px; width: auto; border-radius: 8px; font-size: 11px; }
@media (max-width: 1100px) {
    .home-trust-strip .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .sidebar-dismiss { display: grid; place-items: center; align-self: flex-end; margin-bottom: 8px; color: #fff; background: #ffffff15; }
    .app-sidebar:not(.is-open) { visibility: hidden; }
    body.sidebar-open .app-sidebar { visibility: visible; }
    body.sidebar-open { overflow: hidden; }
}
@media (max-width: 768px) {
    .home-hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 16px; padding: 0; }
    .home-hero-inner { width: calc(100% - 40px); }
    .hero-meta-row { gap: 16px; font-size: 11px; }
    .hero-search-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-search-button { grid-column: 1 / -1; }
    .hero-search-heading strong { font-size: 16px; }
    .workspace-welcome { padding: 22px; gap: 12px; }
    .welcome-emblem { display: none; }
    .stat-card { padding: 18px; gap: 8px; }
    .stat-card > i { width: 30px; height: 30px; font-size: 13px; }
    .notification-head { padding: 16px; }
    .panel { padding: 20px; }
    input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 560px) {
    .hero-search-panel { grid-template-columns: minmax(0, 1fr) !important; }
    .hero-search-panel label { border: 0; border-bottom: 1px solid #e1e5dc; padding: 4px 0 10px; }
    .hero-pills { display: flex !important; flex-wrap: wrap; }
    .home-trust-strip .container { gap: 16px; }
    .home-trust-strip .container > div { align-items: flex-start; font-size: 10px; }
    .workspace-welcome h2 { font-size: 28px; }
    .notification-head span { font-size: 10px; }
    .notification-head { gap: 5px; }
    .notification-head strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.home-hero .hero-kicker, .home-hero .hero-kicker i { color: #edf0e7; }
.home-hero .hero-pills a { color: #edf0e7; }
.home-hero .hero-pills a:hover { background: #ffffff20; color: #fff; }
.notification-toggle { color: #235b48; }

}
