/* Agent network (/agents/) and shared listings (/l/…): white and harbor navy, like the rest of the site. */
:root { --bg: #F6F5F2; --panel: #FFFFFF; --ink: #111418; --navy: #1E3A5F; --muted: #6B7280; --soft: #4B5563; --line: #E3E1DC; }
* { box-sizing: border-box; }
body.ag { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Source Sans 3", system-ui, sans-serif; }
.ag a { color: var(--navy); }
.ag h1, .ag h2, .ag h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; line-height: 1.2; }
.ag h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 10px; }
.ag h2 { font-size: 1.25rem; margin: 0 0 12px; }
.ag h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.ag-lede { color: var(--soft); margin: 0 0 20px; max-width: 640px; }
.ag-small { font-size: .88rem; color: var(--muted); }
.ag-msg { background: #FBEBEB; border: 1px solid #F0C2C2; color: #8A1F1F; padding: 10px 12px; border-radius: 8px; }
.ag-note { background: #E7F1FB; border: 1px solid #C7DBF0; padding: 10px 12px; border-radius: 8px; }
.ag label { display: block; font-size: .9rem; color: var(--soft); margin-bottom: 14px; }
.ag label em { font-style: normal; color: var(--muted); }
.ag input[type=text], .ag input[type=email], .ag input[type=password], .ag input[type=number], .ag select, .ag textarea {
	display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--ink); background: #FFFFFF; border: 1px solid #D5D3CE; border-radius: 8px; }
.ag input:focus, .ag select:focus, .ag textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.ag-check { display: flex !important; align-items: center; gap: 8px; color: var(--ink) !important; }
.ag-btn { display: inline-block; padding: 11px 18px; border: 0; border-radius: 8px; background: var(--navy); color: #FFFFFF !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ag-btn:hover { background: #16304F; }
.ag-btn.is-ghost { background: #FFFFFF; color: var(--navy) !important; border: 1px solid #C9CED6; }
.ag-btn.is-danger { background: #FFFFFF; color: #A12828 !important; border: 1px solid #F0C2C2; }

.ag-auth { max-width: 420px; margin: 12vh auto; padding: 0 16px; }
.ag-auth form { margin-top: 8px; }
.ag-auth .ag-btn { width: 100%; }

.ag-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #FFFFFF; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ag-brand { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; color: var(--ink) !important; text-decoration: none; }
.ag-brand span { font-family: "Source Sans 3", sans-serif; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-left: 6px; }
.ag-who { display: flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--muted); }
.ag-who a { margin-left: 8px; }
.ag-tabs { display: flex; gap: 4px; padding: 0 16px; background: #FFFFFF; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ag-tabs a { padding: 12px 12px 11px; color: var(--soft) !important; text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.ag-tabs a[aria-current] { color: var(--navy) !important; border-bottom-color: var(--navy); }
.ag-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #B7791F; color: #fff; font-size: .72rem; line-height: 18px; text-align: center; }
.ag-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; margin-right: 6px; background: #E5E7EB; }
.ag-av--i { display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; color: var(--navy); }

.ag-main { max-width: 1040px; margin: 0 auto; padding: 28px 20px 60px; }
.ag-wide { max-width: 1280px; }
.ag-narrow { max-width: 680px; }
.ag-main > .ag-card + .ag-card { margin-top: 14px; }
.ag-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ag-back { margin: 0 0 10px; font-size: .9rem; }
.ag-empty { background: #FFFFFF; border: 1px dashed #CFCBC4; border-radius: 12px; padding: 28px; color: var(--soft); text-align: center; }
.ag-list { display: grid; gap: 12px; }
.ag-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.ag-item h2 { margin: 0 0 2px; font-size: 1.15rem; }
.ag-item h2 a { color: var(--ink); text-decoration: none; }
.ag-item p { margin: 2px 0; }
.ag-thumb { display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #EEF0F3; color: var(--muted); font-size: .8rem; text-decoration: none; }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-thumb span { display: flex; height: 100%; align-items: center; justify-content: center; }
.ag-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; margin-right: 6px; color: var(--soft); }
.ag-pill.is-on { border-color: #B9C6D8; color: var(--navy); background: #EEF3F9; }

.ag-new { position: relative; }
.ag-results { list-style: none; margin: -8px 0 14px; padding: 4px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(17,20,24,.08); }
.ag-results button { display: flex; justify-content: space-between; width: 100%; padding: 9px 10px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.ag-results button:hover, .ag-results button:focus { background: #EEF3F9; }
.ag-results span { color: var(--muted); font-size: .85rem; }

.ag-edit { display: grid; gap: 16px; }
.ag-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.ag-card em { font-style: normal; color: var(--muted); }
.ag-linkrow { display: flex; gap: 8px; margin-bottom: 14px; }
.ag-linkrow input { margin: 0 !important; }
.ag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.ag-grid .is-wide { grid-column: 1 / -1; }
.ag-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ag-photos figure { margin: 0; background: #F3F4F6; border-radius: 8px; overflow: hidden; }
.ag-photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ag-photos figcaption { display: flex; justify-content: space-between; padding: 6px 8px; font-size: .8rem; }
.ag-photos figcaption label { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--soft); }
.ag-actions { display: flex; justify-content: space-between; gap: 10px; }

/* Network card on the edit page */
.ag-netcard { border-color: #B9C6D8; }
.ag-vis { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: .92rem; }
.ag-vis th, .ag-vis td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.ag-vis th:first-child { text-align: left; font-weight: 600; }
.ag-vis thead th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ag-vis input { width: 18px; height: 18px; accent-color: var(--navy); }
.ag-access { list-style: none; padding: 0; margin: 0 0 12px; }
.ag-access li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ag-access label { margin: 0; }

/* Network page */
.ag-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.ag-filters select { width: auto; margin: 0; padding: 8px 10px; }
.ag-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-chips button { padding: 7px 12px; border-radius: 999px; border: 1px solid #C9CED6; background: #FFFFFF; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.ag-chips button.is-on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.ag-count { color: var(--muted); font-size: .9rem; margin-left: auto; }
.ag-net { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ag-map { height: calc(100vh - 240px); min-height: 420px; border-radius: 12px; border: 1px solid var(--line); position: sticky; top: 16px; z-index: 0; background: #CFDDE2; }
.ag-map--small { height: 280px; min-height: 0; position: relative; top: 0; margin-bottom: 6px; }
.ag-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ag-cards--row { margin: -4px 0 22px; }
.ag-nc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ag-nc[hidden] { display: none; }
.ag-nc__img { position: relative; display: block; aspect-ratio: 3/2; background: repeating-linear-gradient(135deg, #EEF0F3 0 10px, #F5F6F8 10px 20px); color: var(--muted); text-decoration: none; font-size: .85rem; }
.ag-nc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-nc__img > span:not(.ag-st) { display: flex; height: 100%; align-items: center; justify-content: center; }
.ag-nc__img .ag-st { position: absolute; top: 8px; left: 8px; }
.ag-nc__body { padding: 10px 12px 12px; }
.ag-nc__price { margin: 0; font-weight: 700; font-size: 1.1rem; }
.ag-nc h2 { font-family: "Source Sans 3", sans-serif; font-size: 1rem; font-weight: 600; margin: 2px 0; }
.ag-nc h2 a { color: var(--ink); text-decoration: none; }
.ag-nc__meta { margin: 0 0 8px; color: var(--soft); font-size: .88rem; }
.ag-nc__by { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 0; color: var(--muted); font-size: .84rem; }
.ag-nc__by .ag-pill { margin-left: 6px; }
.ag-st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: #FFFFFF; background: var(--navy); }
.ag-st--pre { background: #B7791F; }
.ag-st--uag { background: #6B7280; }
.ag-st--sold, .ag-st--draft { background: #9CA3AF; }
.ag-pop { display: grid; gap: 2px; color: var(--ink) !important; text-decoration: none; min-width: 160px; }
.ag-pop span { color: var(--soft); }
.ag-pop em { font-style: normal; color: var(--muted); font-size: .85em; }

/* Listing view for agents */
.ag-view { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ag-view .ag-hero { height: min(52vh, 460px); border-radius: 12px; margin-bottom: 18px; }
.ag-hero--none { display: flex; align-items: center; justify-content: center; color: var(--muted); background: repeating-linear-gradient(135deg, #EEF0F3 0 12px, #F5F6F8 12px 24px) !important; }
.ag-view__side { display: grid; gap: 14px; position: sticky; top: 16px; }
.ag-ask, .ag-fit { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.ag-ask { border-color: #B9C6D8; }
.ag-ask .ag-btn { width: 100%; }
.ag-fit ul { list-style: none; padding: 0; margin: 0; }
.ag-fit li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.ag-fit li span { color: var(--muted); font-size: .85rem; }
.ag-price small { font-size: .8rem; color: var(--muted); font-weight: 400; }

/* Requests */
.ag-req { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ag-req:last-child { border-bottom: 0; }
.ag-req p { margin: 2px 0; }
.ag-req__do { display: flex; gap: 8px; flex: none; }
.ag-quote { margin: 6px 0; padding: 8px 12px; background: #F6F5F2; border-left: 3px solid #C9CED6; border-radius: 4px; color: var(--soft); white-space: pre-line; }

/* Buyer needs */
.ag-demand { margin-bottom: 16px; }
.ag-demand ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; }
.ag-demand li { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #EEF3F9; }
.ag-demand b { font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; color: var(--navy); }
.ag-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ag-need { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.ag-needs .ag-need { margin: 0; }
.ag-need[hidden] { display: none; }
.ag-need__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ag-need__top h2 { font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: 1.05rem; margin: 0 0 4px; }
.ag-need__top .ag-btn { padding: 6px 12px; font-size: .85rem; }
.ag-need__line { margin: 0 0 4px; color: var(--soft); }
.ag-need__meta { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.ag-need__fit { margin: 10px 0 8px; font-size: .92rem; }
.ag-need__fit b { color: var(--navy); }
.ag-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ag-tags span { padding: 3px 9px; border-radius: 999px; border: 1px solid #C9CED6; font-size: .8rem; }
.ag-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ag-tick { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink) !important; cursor: pointer; }
.ag-tick input { accent-color: var(--navy); }
.ag-tick:has(input:checked) { border-color: var(--navy); background: #EEF3F9; }

/* Shared listing page */
.ag-preview { margin: 0; padding: 10px 16px; background: #F9EEDA; color: #8A5A12; font-size: .9rem; text-align: center; }
.ag-hero { height: min(62vh, 560px); background: #EEF0F3 center/cover no-repeat; }
.ag-lwrap { max-width: 820px; margin: 0 auto; padding: 28px 20px 60px; }
.ag-kicker { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.ag-where { color: var(--soft); margin: -4px 0 10px; }
.ag-price { font-size: 1.5rem; font-weight: 600; margin: 0 0 14px; }
.ag-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.ag-facts li { border: 1px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 5px 12px; font-size: .92rem; }
.ag-desc p { margin: 0 0 14px; color: #2B2F36; }
.ag-feat { columns: 2; padding-left: 18px; margin: 0 0 22px; }
.ag-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0 26px; }
.ag-gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.ag-agent { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 26px 0 16px; }
.ag-view__side .ag-agent { margin: 0; }
.ag-agent p { margin: 2px 0; }
.ag-agent__who { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.ag-agent__who .ag-av { width: 54px; height: 54px; margin: 0; font-size: .95rem; }
.ag-aname { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; }
.ag-fine { font-size: .8rem; color: var(--muted); }

@media (max-width: 900px) {
	.ag-net, .ag-view { grid-template-columns: 1fr; }
	.ag-map { position: relative; top: 0; height: 46vh; min-height: 280px; }
	.ag-view__side { position: static; }
}
@media (max-width: 680px) {
	.ag-grid { grid-template-columns: 1fr 1fr; }
	.ag-item { grid-template-columns: 96px 1fr; }
	.ag-linkrow { flex-wrap: wrap; }
	.ag-feat { columns: 1; }
	.ag-head { flex-wrap: wrap; }
	.ag-req { flex-wrap: wrap; }
	.ag-who { flex-wrap: wrap; }
}

/* Agent tools (0.224) */
.ag-find { position: relative; flex: 1 1 360px; max-width: 620px; margin: 0 24px; }
.ag-find input { display: block; width: 100%; box-sizing: border-box; margin: 0; height: 46px; padding: 0 18px 0 44px; font: inherit; font-size: 1rem; color: var(--ink); border: 1px solid #D5D3CE; border-radius: 999px; background: #F6F5F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 16px center / 18px 18px; -webkit-appearance: none; appearance: none; }
.ag-find input:focus { outline: none; background-color: #FFFFFF; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.ag-find .ag-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; z-index: 1000; }
.ag-find .ag-results a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 6px; color: var(--ink) !important; text-decoration: none; }
.ag-find .ag-results a:hover { background: #EEF3F9; }
.ag-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.ag-tile { display: grid; gap: 2px; padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; color: var(--ink) !important; text-decoration: none; }
.ag-tile b { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; font-weight: 500; color: var(--navy); line-height: 1.1; }
.ag-tile span { font-size: .85rem; color: var(--soft); }
.ag-tile.is-hot { border-color: #E2C48A; background: #FBF5E9; }
.ag-tile.is-hot b { color: #8A5A12; }
.ag-q { flex: 1 1 220px; width: auto !important; margin: 0 !important; padding: 8px 12px !important; }
.ag-views { display: inline-flex; border: 1px solid #C9CED6; border-radius: 999px; overflow: hidden; }
.ag-views button { padding: 7px 14px; border: 0; background: #FFFFFF; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.ag-views button.is-on { background: var(--navy); color: #FFFFFF; }
.ag-net[hidden], .ag-table[hidden] { display: none; }
.is-q-off { display: none !important; }
.ag-table { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.ag-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ag-table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ag-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ag-table td span:not(.ag-st) { display: block; color: var(--muted); font-size: .82rem; }
.ag-table tr:last-child td { border-bottom: 0; }
.ag-table tr[hidden] { display: none; }
.ag-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.ag-dl dt { color: var(--muted); font-size: .9rem; }
.ag-dl dd { margin: 0; font-weight: 600; }
.ag-paste { border-color: #B9C6D8; background: #F8FAFD; }
.ag-paste textarea { margin-top: 4px; }
.ag-paste__do { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ag-auth--two { max-width: 920px; margin: 8vh auto; display: grid; gap: 20px; }
.ag-auth__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ag-auth__cards .ag-btn { width: 100%; }
.ag-card--new { background: #F8FAFD; border-color: #B9C6D8; }
@media (max-width: 900px) {
	.ag-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ag-find { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
}
@media (max-width: 680px) {
	.ag-auth__cards { grid-template-columns: 1fr; }
	.ag-tiles .ag-tile:last-child { grid-column: 1 / -1; }
}

/* Photo ordering + LINK photos (0.225) */
.ag-photos figure { position: relative; cursor: grab; transition: box-shadow .15s, opacity .15s; }
.ag-photos figure.is-drag { opacity: .45; }
.ag-photos figure:hover { box-shadow: 0 0 0 2px #B9C6D8; }
.ag-cover { display: none; position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-size: .72rem; font-weight: 700; }
.ag-photos figure.is-cover .ag-cover { display: inline-block; }
.ag-photos figcaption { align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-move { display: flex; gap: 4px; }
.ag-move button { padding: 2px 7px; border: 1px solid #C9CED6; border-radius: 6px; background: #FFFFFF; font: inherit; font-size: .78rem; cursor: pointer; color: var(--ink); }
.ag-photos figure.is-cover [data-first] { display: none; }
.ag-linkph { border: 1px solid #B9C6D8; background: #F8FAFD; border-radius: 10px; padding: 12px; margin: 0 0 14px; }
.ag-linkph p { margin: 6px 0; }
.ag-linkph__row { display: flex; gap: 6px; overflow-x: auto; }
.ag-linkph__row img { width: 110px; height: 76px; object-fit: cover; border-radius: 6px; flex: none; }
.ag-linkph__row span { display: flex; align-items: center; padding: 0 10px; color: var(--muted); }
.ag-linkph__do { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.ag-item__do { display: flex; flex-direction: column; gap: 8px; padding-right: 6px; }
.ag-item__do .ag-btn { text-align: center; padding: 9px 16px; }
@media (max-width: 680px) { .ag-item { grid-template-columns: 96px 1fr; } .ag-item__do { grid-column: 1 / -1; flex-direction: row; padding: 0; } .ag-item__do .ag-btn { flex: 1; } }

/* Progress (0.225.4) */
.ag-prog { height: 8px; background: #E5E7EB; border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.ag-prog i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 999px; transition: width .25s ease; }
.ag-prog__pct { margin: 0 0 8px; font-size: .88rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.ag-steps { margin-top: 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ag-steps ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.ag-steps li { position: relative; padding-left: 26px; color: var(--muted); }
.ag-steps li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C9CED6; }
.ag-steps li.is-now { color: var(--ink); font-weight: 600; }
.ag-steps li.is-now::before { border-color: var(--navy); border-top-color: transparent; animation: agSpin .8s linear infinite; }
.ag-steps li.is-done { color: var(--soft); }
.ag-steps li.is-done::before { content: '✓'; border: 0; top: 0; left: 3px; width: auto; height: auto; color: #2F7D4F; font-weight: 700; }
@keyframes agSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ag-steps li.is-now::before { animation: none; } }

/* Statuses (0.226) */
.ag-st--open { background: #2F6B5A; }
.ag-stathelp { list-style: none; margin: -6px 0 14px; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.ag-stathelp li { padding: 4px 8px; border-radius: 6px; }
.ag-stathelp li.is-on { background: #EEF3F9; color: var(--ink); }
.ag-stathelp b { font-weight: 600; color: var(--soft); margin-right: 4px; }
.ag-stathelp li.is-on b { color: var(--navy); }

.ag-note--preview { background: #F9EEDA; border-color: #E2C48A; }
.ag-ask .ag-btn[disabled] { opacity: .55; cursor: not-allowed; }
/* Our buyers (anonymous private searches) */
.ag-dtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.ag-dtile { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ag-dtile strong { display: block; font: 600 30px/1.1 "Playfair Display", Georgia, serif; color: var(--navy); }
.ag-dtile span { color: var(--soft); font-size: 14px; }
.ag-dcheck, .ag-dareas { margin: 0 0 18px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ag-dcheck h2, .ag-dareas h2 { margin: 0 0 10px; font-size: 18px; }
.ag-find--big { max-width: 560px; }
.ag-find--big input { font-size: 17px; padding: 13px 14px; }
.ag-dbars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.ag-dbar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; padding: 4px 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer; }
.ag-dbar:hover, .ag-dbar.is-on { background: #EEF2F7; }
.ag-dbar.is-any { cursor: default; color: var(--soft); }
.ag-dbar i { height: 8px; border-radius: 4px; background: #ECEAE5; overflow: hidden; }
.ag-dbar i b { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.ag-dbar em { font-style: normal; font-weight: 600; text-align: right; }
.ag-dfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.ag-dfilter button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ag-dfilter button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ag-dfilter select { display: inline-block; width: auto; margin: 0; padding: 6px 10px; font-size: 14px; }
.ag-dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ag-dcard { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ag-dcard[hidden] { display: none; }
.ag-dcard h3 { margin: 4px 0 2px; font-size: 17px; }
.ag-dcard__band { margin: 0; font: 600 20px/1.3 "Playfair Display", Georgia, serif; color: var(--navy); }
.ag-dcard__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; min-height: 20px; }
.ag-dcard__tags span { padding: 1px 8px; border-radius: 999px; background: #EEF2F7; color: var(--navy); font-size: 12px; font-weight: 600; }
.ag-dcard__tags span.is-hot { background: #FDECEA; color: #A3261B; }
.ag-mm { margin-top: 10px; }
.ag-mm summary { list-style: none; display: inline-block; cursor: pointer; }
.ag-mm summary::-webkit-details-marker { display: none; }
.ag-mm[open] summary { opacity: .6; }
.ag-mm__f { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ag-mm__f label { font-size: 14px; font-weight: 600; }
.ag-mm__f small { font-weight: 400; color: var(--muted); }
.ag-fit--ours { border-color: var(--navy); }
@media (max-width: 720px) { .ag-dtiles { grid-template-columns: repeat(2, 1fr); } .ag-dbar { grid-template-columns: 110px 1fr 30px; } }
/* Match form fields: full width, clean */
.ag-mm__f label { margin: 0; color: var(--ink); }
.ag-mm__f input[type=text], .ag-mm__f select, .ag-mm__f textarea { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; font-size: 16px; border: 1px solid #D5D3CE; border-radius: 10px; background: #fff; }
.ag-mm__f .ag-btn { width: 100%; }
/* Address check: centered, larger */
.ag-dcheck { padding: 28px 20px 22px; text-align: center; }
.ag-dcheck h2 { margin: 0 0 6px; font: 600 24px/1.25 "Playfair Display", Georgia, serif; }
.ag-dcheck__sub { max-width: 560px; margin: 0 auto 16px; color: var(--soft); }
.ag-dcheck .ag-find--big { flex: none; max-width: 640px; margin: 0 auto; text-align: left; }
.ag-dcheck .ag-find--big input { height: 58px; padding-left: 52px; font-size: 18px; background-color: #fff; background-position: 20px center; background-size: 20px 20px; border: 1.5px solid #C9CED6; box-shadow: 0 2px 10px rgba(17,20,24,.06); }
.ag-dcheck .ag-small { margin: 10px 0 0; }
.ag-dcard__when { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
/* Share a property */
.ag-share .ag-card { margin-bottom: 14px; padding: 18px 20px; }
.ag-share h2 { margin: 0 0 12px; font-size: 18px; }
.ag-share input[type=text], .ag-share input[type=number], .ag-share select, .ag-share textarea { font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.ag-share label { color: var(--ink); font-weight: 600; }
.ag-share label small { font-weight: 400; color: var(--muted); }
.ag-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ag-flabel { margin: 4px 0 8px; font-weight: 600; }
.ag-flabel small { font-weight: 400; color: var(--muted); }
.ag-chks { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chk { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500 !important; cursor: pointer; }
.ag-chk input { width: auto; margin: 0; }
.ag-consent { display: flex !important; border-radius: 10px; margin: 6px 0 14px !important; background: #F7F6F3; }
.ag-share .ag-btn { width: 100%; }
.ag-shared-ok { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #E7F3EC; color: #1F5133; }
.ag-sharedrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ag-sharedrow span { display: block; color: var(--muted); font-size: 14px; }
.ag-sharedrow.is-old { opacity: .6; }
.ag-sharedrow form { display: flex; gap: 6px; }
@media (max-width: 720px) { .ag-grid2 { grid-template-columns: 1fr; } .ag-sharedrow { flex-direction: column; align-items: flex-start; } }
.ag-dcard__go { display: block; margin-top: 12px; text-align: center; }
.ag-forbuyer { margin: 0 0 14px; padding: 14px 18px; border: 1px solid #C9D6E6; border-radius: 12px; background: #EEF3F9; }
.ag-forbuyer span { display: block; color: var(--soft); font-size: 13px; }
.ag-forbuyer strong { display: block; font: 600 19px/1.3 "Playfair Display", Georgia, serif; color: var(--navy); }
.ag-forbuyer small { color: var(--soft); }
.ag-livefit { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(17,20,24,.06); }
.ag-livefit strong { min-width: 48px; font: 600 32px/1 "Playfair Display", Georgia, serif; color: var(--muted); text-align: center; }
.ag-livefit.is-hit { border-color: #9FC3A8; background: #F1F8F3; }
.ag-livefit.is-hit strong { color: #1F5133; }
.ag-livefit span { color: var(--soft); }
.ag-more { margin: 4px 0 14px; padding: 12px 14px; border: 1px dashed #D5D3CE; border-radius: 10px; }
.ag-more summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.ag-more summary small { font-weight: 400; color: var(--muted); }
.ag-more[open] summary { margin-bottom: 12px; }
.ag-addr { position: relative; } .ag-addr .ag-results { position: absolute; left: 0; right: 0; top: calc(100% - 8px); z-index: 20; margin: 0; }
/* Agent contact on buyer posts */
.ag-contact { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ag-contact img, .ag-contact .ag-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.ag-contact > div { flex: 1; min-width: 0; }
.ag-contact strong { display: block; font-size: 15px; }
.ag-contact span { display: block; color: var(--soft); font-size: 13px; }
.ag-contact__links { display: flex !important; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.ag-contact__links a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ag-contact__date { align-self: flex-start; color: var(--muted); font-size: 12px; white-space: nowrap; }
