* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; max-width: 900px; margin: 0 auto; padding: 0 1rem; color: #222; line-height: 1.5; }
header { border-bottom: 2px solid #333; padding: 1rem 0; margin-bottom: 1.5rem; }
nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { font-size: 1.3rem; font-weight: bold; text-decoration: none; color: #222; }
.tagline { color: #666; font-size: 0.85rem; }
.nav-links { margin-left: auto; display: flex; gap: 1rem; }
.nav-links a { color: #0066cc; text-decoration: none; }
h1 { margin-bottom: 0.5rem; }
h2 { margin: 1.5rem 0 0.5rem; }
h3 { margin: 1rem 0 0.4rem; }
.subtitle { color: #555; margin-bottom: 1.5rem; }
.categories { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-link { padding: 0.5rem 1rem; background: #f0f0f0; text-decoration: none; color: #333; border: 1px solid #ddd; }
.cat-link:hover { background: #e0e0e0; }
.listing-list { list-style: none; }
.listing-list li { padding: 0.75rem 0; border-bottom: 1px solid #eee; }
.listing-list a { color: #0066cc; text-decoration: none; font-weight: 500; }
.meta { display: block; color: #666; font-size: 0.85rem; }
.price { color: #228B22; font-weight: bold; }
.search-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-form input, .search-form select { padding: 0.4rem; border: 1px solid #ccc; }
.search-form button { padding: 0.4rem 1rem; background: #333; color: white; border: none; cursor: pointer; }
.listing-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: #555; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.description { white-space: pre-wrap; margin-bottom: 1.5rem; }
.photos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.photos img { max-width: 300px; max-height: 300px; object-fit: cover; border: 1px solid #ddd; }
.agent-notice { background: #f8f8f0; border: 1px solid #ddd; padding: 1rem; margin: 1.5rem 0; }
.agent-notice code { background: #eee; padding: 0.2rem 0.4rem; }
.results-count { color: #666; margin-bottom: 0.5rem; }
footer { border-top: 1px solid #ddd; padding: 1rem 0; margin-top: 2rem; color: #888; font-size: 0.85rem; }
pre { background: #f5f5f5; padding: 1rem; overflow-x: auto; margin: 0.5rem 0; }
code { font-size: 0.9rem; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }
p { margin-bottom: 0.75rem; }

/* AgentWatch */
.aw-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.aw-stat { background: #f5f5f5; border: 1px solid #ddd; padding: 0.75rem 1rem; flex: 1; min-width: 120px; text-align: center; }
.aw-stat .num { font-size: 1.5rem; font-weight: bold; display: block; }
.aw-stat .label { font-size: 0.8rem; color: #666; }
.grade { display: inline-block; width: 2rem; height: 2rem; line-height: 2rem; text-align: center; font-weight: bold; color: white; border-radius: 4px; font-size: 0.9rem; }
.grade-A { background: #22863a; }
.grade-B { background: #0969da; }
.grade-C { background: #bf8700; }
.grade-D { background: #cf5500; }
.grade-F { background: #cf222e; }
.grade-NA { background: #888; }
.status-up { color: #22863a; }
.status-down { color: #cf222e; }
.aw-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.aw-table th { text-align: left; border-bottom: 2px solid #333; padding: 0.5rem 0.5rem; font-size: 0.85rem; color: #555; }
.aw-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid #eee; }
.aw-table tr:hover { background: #f8f8f8; }
.aw-table a { color: #0066cc; text-decoration: none; font-weight: 500; }
.aw-filters { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.aw-filters input, .aw-filters select { padding: 0.4rem; border: 1px solid #ccc; }
.aw-filters button { padding: 0.4rem 1rem; background: #333; color: white; border: none; cursor: pointer; }
.aw-profile-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.aw-profile-header .grade { width: 3rem; height: 3rem; line-height: 3rem; font-size: 1.4rem; }
.aw-detail { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin-bottom: 1.5rem; }
.aw-detail dt { font-weight: 600; color: #555; }
.aw-detail dd { margin: 0; }
.aw-cta { background: #f0f5ff; border: 1px solid #cce; padding: 1rem; margin: 1rem 0; }
