/* Shared, quiet surfaces for the catalog and workspace. Existing brand and content are retained. */
:root {
    --primary-color: #24282d;
    --secondary-color: #252b32;
    --background-color: #f5f6f7;
    --text-color: #252b32;
    --text-muted: #58616c;
    --surface-card: #fff;
    --border-subtle: #e1e4e8;
    --focus-ring: #285fa6;
    --radius-card: 8px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-card-hover: none;
    --admin-primary: #292d32;
    --admin-primary-hover: #11151a;
    --admin-bg: #f5f6f7;
    --admin-card-bg: #fff;
    --admin-border: #e1e4e8;
    --admin-text: #252b32;
    --admin-text-muted: #58616c;
    --admin-sidebar-bg: #fff;
    --admin-sidebar-text: #414953;
    --admin-sidebar-hover: #f0f2f4;
}
body { font-family: Inter, system-ui, sans-serif; }
h1, h2, h3 { text-wrap: pretty; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: #68717c; opacity: 1; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000; padding: 12px 18px; background: #fff; color: #252b32; }
.skip-link:focus { top: 12px; }
body > header { background: #fff; border-bottom: 1px solid var(--border-subtle); box-shadow: none; }
.logo { color: #b92d3b; letter-spacing: -.035em; }
.logo-icon { background: #b92d3b; }
.primary-nav a { font-size: 14px; color: var(--text-muted); }
.primary-nav a[aria-current="page"] { color: var(--text-color); font-weight: 700; }
.primary-nav a:hover { color: #111; }
.btn, .search-submit, .lot-btn { border-radius: 6px; box-shadow: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary, .search-submit { background: #252b32; border-color: #252b32; color: #fff; }
.btn-primary:hover, .search-submit:hover { background: #11151a; border-color: #11151a; color: #fff; transform: none; box-shadow: none; }
.btn-outline { color: #343b44; border-color: #cbd0d6; background: #fff; }
.header-right .btn-login { color: #343b44; background: #f0f2f4; border: 0; text-decoration: none; font-size: 14px; }
.user-menu-toggle, .secondary-nav .secondary-nav-admin { color: var(--text-color); }
.user-menu-dropdown { box-shadow: 0 8px 24px #17202b1a; }
.public-page .card, .public-page .lot-card, .home-page .lot-card,
.search-results-card, .search-lot-card { border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: none; }
.public-page .card:hover, .public-page .lot-card:hover, .home-page .lot-card:hover,
.search-lot-card:hover { box-shadow: none; transform: none; border-color: #aeb6c0; }
.public-page .section-title { color: var(--text-color); font-size: clamp(22px, 2.5vw, 28px); font-weight: 600; letter-spacing: -.025em; }
.home-page .hero-search { padding: 48px 0 40px; background: #fff; color: var(--text-color); overflow: visible; }
.home-page .hero-search::before, .home-page .hero-search::after { content: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.home-page .hero-search h1 { max-width: none; margin: 0 0 20px; color: #252b32; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.14; letter-spacing: -.04em; font-weight: 600; }
.home-page .hero-search p { max-width: 56ch; margin: 0 0 24px; color: #58616c; font-size: 16px; line-height: 1.65; }
.home-page .search-box { display: flex; width: 100%; max-width: none; padding: 5px; gap: 8px; background: #fff; border: 1px solid #bdc5ce; border-radius: 8px; box-shadow: none; }
.home-page .search-box input { min-width: 0; flex: 1; padding: 10px; background: #fff; color: #252b32; font-size: 16px; }
.home-page .hero-search .hero-search-btn { min-height: 46px; flex: 0 0 auto; padding: 10px 22px; background: #252b32; color: #fff; font-size: 15px; }
.home-page .hero-capabilities { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.hero-capabilities a { color: #505965; font-size: 13px; text-decoration: none; }
.hero-capabilities a:hover { text-decoration: underline; }
.home-page .hero-model, .home-page .hero-model:hover { padding: 0; border: 1px solid var(--border-subtle); border-radius: 8px; background: #fff; box-shadow: none; transform: none; overflow: hidden; }
.hero-model-photo { display: block; width: 100%; height: 174px; object-fit: cover; }
.hero-model-content { padding: 16px 20px 20px; }
.hero-model-head { color: #58616c; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hero-model-content > strong { display: block; margin: 8px 0 16px; color: #252b32; font-size: 17px; line-height: 1.4; font-weight: 600; }
.hero-model-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-model-metrics div { padding: 0; border: 0; }
.hero-model-metrics span { font-size: 12px; color: #58616c; }
.hero-model-metrics b { font-size: 17px; color: #252b32; margin-top: 4px; }
.home-page .section { padding-top: 32px; padding-bottom: 32px; }
.home-page .lots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-page .lot-card-add { background: #eef0f2; border: 1px solid var(--border-subtle); }
.home-page .lot-card-add-icon, .home-page .lot-card-add-title, .home-page .lot-card-add-text { color: #414953; }
.home-page .lot-card-add-content { padding: 20px 16px; }
.home-page .lot-card-add-icon { background: transparent; width: 32px; height: 32px; }
.home-page .lot-card-add-icon svg { width: 28px; height: 28px; }
.home-page .lot-card-add-btn { background: #fff; color: #343b44; border: 1px solid #cbd0d6; box-shadow: none; }
.home-page .lot-card-title { font-size: 15px; }
.lot-card-price, .card-price, .search-lot-price { color: #252b32; font-variant-numeric: tabular-nums; }
.lot-btn { background: #f0f2f4; color: #343b44; }
.lot-card-link:hover .lot-btn { background: #e4e7eb; color: #252b32; }
.home-ai-pitch { margin-top: 0; padding: 12px 0 20px; }
.home-ai-pitch-shell { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: none; animation: none; }
.home-ai-pitch-shell::before { content: none; }
.home-ai-pitch-intro { padding: 24px; border-right: 0; }
.home-ai-pitch h2 { max-width: none; color: #252b32; font-size: 24px; line-height: 1.25; font-weight: 600; }
.home-ai-pitch-intro p { color: #58616c; font-size: 14px; }
.home-ai-pitch-action, .home-ai-pitch-action:hover { min-height: 40px; box-sizing: border-box; margin-top: 16px; padding: 9px 14px; background: #f0f2f4; color: #252b32; border-radius: 6px; box-shadow: none; transform: none; font-weight: 500; }
.home-ai-pitch-flow { padding: 16px 24px; }
.home-ai-pitch-flow li { grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
.home-ai-pitch-flow li::after { content: none; }
.home-ai-pitch-flow li + li { border-color: #e9ecef; }
.home-ai-pitch-flow strong { color: #252b32; font-size: 14px; font-weight: 500; }
.home-ai-pitch-flow small { color: #58616c; font-size: 12px; }
.home-page .sites-column { background: #fff; border-radius: 8px; box-shadow: none; }
.home-page .sites-column-title { color: #252b32; font-size: 18px; font-weight: 600; }
.home-page .site-traffic { color: #58616c; }
.catalog-toolbar, .sites-page-shell .catalog-toolbar-sites { padding: 0; background: transparent; border: 0; box-shadow: none; margin: 0 0 16px; }
.catalog-filter-form { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.catalog-filter-form .btn { min-height: 44px; box-sizing: border-box; }
.catalog-reset, .catalog-more { color: #414953; text-decoration: none; font-size: 14px; }
.catalog-reset:hover, .catalog-more:hover { text-decoration: underline; }
.catalog-more { display: inline-block; padding: 10px 0; }
.catalog-result-count { margin: 0 0 20px; color: #58616c; font-size: 14px; font-variant-numeric: tabular-nums; }
.catalog-empty { grid-column: 1 / -1; padding: 32px; border: 1px solid var(--border-subtle); border-radius: 8px; background: #fff; }
.catalog-empty h2 { margin: 0 0 8px; font-size: 20px; }
.catalog-empty p { color: #58616c; margin: 0 0 20px; }
.catalog-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin: 28px 0 0; color: #58616c; font-size: 14px; }
.catalog-pagination a, .catalog-pagination > span { padding: 10px 12px; border-radius: 6px; text-decoration: none; color: #343b44; }
.catalog-pagination a { background: #fff; border: 1px solid #cbd0d6; }
.catalog-pagination a:hover { background: #eceff2; }
.catalog-pagination [aria-disabled] { color: #68717c; }
.catalog-page-position { font-variant-numeric: tabular-nums; }
#lotsGrid { gap: 20px; }
#lotsGrid .lot-card-img { height: 180px; }
#lotsGrid .lot-card-title { font-size: 17px; }
#sitesGrid .card-body { align-items: flex-start; text-align: left !important; padding: 20px; }
#sitesGrid .site-card-logo { width: 36px; height: 36px; border-radius: 6px; margin-bottom: 14px; }
#sitesGrid .card-title { color: #252b32; font-size: 17px; }
#sitesGrid .card-meta { text-align: left; color: #58616c; font-size: 14px; }
#sitesGrid .site-card-rating { color: #58616c; }
#sitesGrid .btn { color: #414953; background: #f0f2f4; border-color: transparent; }
.search-page .search-hero { padding: 28px 0 20px; background: #fff; }
.search-shell { gap: 16px; }
.search-shell h1 { font-size: 28px; margin: 0; color: #252b32; }
.search-panel { background: #f5f6f7; border: 1px solid var(--border-subtle); box-shadow: none; border-radius: 8px; }
.search-panel-meta, .search-results-summary { color: #58616c; }
.search-results-card { padding: 20px; }
.search-lot-title a, .search-site-title { color: #252b32; }
.search-site-row { box-shadow: none; background: #fff; border-radius: 6px; }
.search-provider-card { background: #fff; border: 1px solid var(--border-subtle); box-shadow: none; }
.site-footer { background: #fff; color: #58616c; border-top: 1px solid var(--border-subtle); }
.site-footer-name, .site-footer-text, .site-footer-text strong, .site-footer-links a, .site-footer-legal a { color: #58616c; }
.site-footer-name { color: #252b32; }
/* Workspace density and user data colours are preserved; panel chrome stays quiet. */
.workspace-page .objects-panel, .workspace-page .objects-create-section,
.workspace-page .objects-table-wrap { box-shadow: none; border-radius: 8px; }
.admin-sidebar { border-right: 1px solid #e1e4e8; }
.admin-logo { color: #252b32; border-bottom-color: #e1e4e8; }
.admin-logo .logo-icon { background: #b92d3b; }
.admin-nav a, .admin-sidebar a { color: #414953; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #eef0f2; color: #252b32; }
.admin-card, .stat-card, .admin-content .card { box-shadow: none; border-radius: 8px; }
.admin-content th { text-transform: none; letter-spacing: 0; }
@media (max-width: 1100px) {
    .home-page .lots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-layout { gap: 24px; }
}
@media (max-width: 768px) {
    .home-page .hero-search { padding: 28px 0; }
    .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .home-page .hero-model { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
    .hero-model-photo { height: 100%; min-height: 170px; }
    .hero-model-content { padding: 16px; }
    .hero-model-content > strong { font-size: 15px; }
    .home-page .lots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-ai-pitch-shell { grid-template-columns: minmax(0, 1fr); }
    .home-ai-pitch-intro { padding: 20px; }
    .home-ai-pitch-flow { padding: 0 20px 16px; }
    .home-ai-pitch h2 { font-size: 22px; }
    .catalog-filter-form { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .catalog-filter-form > select, .catalog-filter-category { grid-column: 1 / -1; }
    .catalog-filter-form > input, .catalog-filter-search { grid-column: 1; }
    .catalog-reset { grid-column: 1 / -1; padding: 6px 0; }
    .catalog-empty { padding: 24px 20px; }
    .search-results-card { padding: 16px; }
}
@media (max-width: 480px) {
    .home-page .hero-search h1 { font-size: 28px; }
    .home-page .hero-search p { font-size: 15px; }
    .home-page .search-box { flex-direction: row; box-sizing: border-box; }
    .home-page .search-box input { font-size: 16px; width: 0; }
    .home-page .hero-search .hero-search-btn { width: auto; padding: 10px 14px; }
    .home-page .hero-model { grid-template-columns: minmax(0, 1fr); }
    .hero-model-photo { height: 160px; min-height: 0; }
    .hero-model-content { padding: 14px 16px; }
    .home-page .lots-grid { grid-template-columns: minmax(0, 1fr); }
    .home-page .lot-card-add-text, .home-page .lot-card-add-btn { display: block; }
    .home-page .lot-card-add-content { padding: 20px; }
    .catalog-pagination { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Keep the compact catalog readable and aligned at every width. */
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.mobile-menu-toggle { align-items: center; justify-content: center; }
.mobile-menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }
.home-page .sites-catalog-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.home-page .sites-column { padding: 16px; box-sizing: border-box; }
.home-page .sites-column-title { display: flex; align-items: start; padding: 0 0 12px; margin: 0 0 8px; border: 0; text-align: left; font-family: inherit; }
.home-page .sites-column-name { font-size: 16px; line-height: 1.3; overflow-wrap: normal; }
.home-page .sites-column-count { font-size: 12px; color: #58616c; }
.home-page .site-item, .home-page .site-item-main { min-width: 0; }
.home-page .site-item-main { overflow: hidden; }
.home-page .site-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-page .site-traffic { font-size: 12px; background: transparent; }
.home-page .sites-column-more { margin-top: 12px; }
.home-page .sites-column-more .btn { padding: 8px; color: #414953; background: #f5f6f7; text-decoration: none; }
.home-page .sites-column, .home-page .sites-column-title, .home-page .site-name { font-family: Inter, system-ui, sans-serif; }
.home-ai-pitch-flow li:last-child::after { content: none; }
.home-page .lot-btn { text-decoration: none; }
@media (max-width: 1000px) { .home-page .sites-catalog-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .home-page .hero-model { width: 100%; max-width: none; }
    .home-page .search-box { flex-direction: row; }
    .home-page .hero-search .hero-search-btn { width: auto; }
    .home-page .hero-search .container { padding-inline: var(--page-gutter); }
}
@media (max-width: 580px) {
    .home-page .sites-catalog-container { grid-template-columns: minmax(0, 1fr); }
    .home-page .sites-column-name { font-size: 17px; }
}
.home-page .search-box, .home-page .search-box input { box-sizing: border-box; }
.site-footer-name { font-family: inherit; }
.workspace-page .objects-register-table { font-variant-numeric: tabular-nums; }
.admin-mobile-toggle { align-items: center; justify-content: center; }
.admin-menu a.active { box-shadow: none; }
.admin-menu .menu-label { font-size: 12px; letter-spacing: 0; text-transform: none; color: #58616c; }
.admin-menu .menu-divider { background: #e1e4e8; }
@media (max-width: 768px) { .home-page .hero-search .container { padding-inline: 24px; } }
@media (max-width: 480px) { .home-page .hero-search .container { padding-inline: 16px; } }
.btn, .lot-btn, .lot-card-add-btn { text-decoration: none; }
.home-page .hero-search .hero-search-btn:hover { background: #11151a; transform: none; }
.workspace-page .profile-header { gap: 16px; flex-wrap: wrap; }
.workspace-page .profile-header h1 { font-size: 28px; margin: 0; }
.workspace-page .profile-card { padding: 24px; border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: none; }
.workspace-page .profile-card h3 { font-size: 18px; }
.workspace-page .profile-table td { font-size: 14px; overflow-wrap: anywhere; }
.workspace-page .profile-stat-value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.workspace-page .profile-stat-label { font-size: 13px; color: #58616c; }
.workspace-page .finance-chart-tools { min-width: 0; max-width: 100%; }
.workspace-page .finance-chart-legend { min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: #58616c; }
.workspace-page .finance-table-wrap { max-width: 100%; }
.workspace-page .finance-table th { text-transform: none; letter-spacing: 0; font-size: 12px; color: #58616c; }
.workspace-page .finance-table { font-variant-numeric: tabular-nums; }
@media (min-width: 481px) and (max-width: 768px) { .home-page .hero-model-photo { height: 200px; min-height: 0; } }
@media (max-width: 768px) {
    .workspace-page .container { padding-inline: 16px; }
    .workspace-page .profile-header { margin-bottom: 20px; }
    .workspace-page .profile-header h1 { font-size: 24px; }
    .workspace-page .profile-header .btn { width: auto; min-height: 40px; }
    .workspace-page .profile-card { padding: 18px; }
    .workspace-page .profile-grid { gap: 24px; }
    .workspace-page .profile-table td:first-child { width: 45%; }
    .workspace-page .profile-stat-value { font-size: 16px; }
}
