/* Home Seller Pro — frontend agent panel. Gold + tints; black only for text. Usable at 390 px. */
.hsp-ap {
	--hsp-ink: var(--wp--preset--color--contrast, #1b1b1f);
	--hsp-muted: var(--wp--preset--color--contrast-2, #4a4a52);
	--hsp-strong: var(--wp--preset--color--accent-strong, #6f560d);
	--hsp-tint: var(--wp--preset--color--accent-soft, #fbf5e1);
	--hsp-tint-2: var(--wp--preset--color--accent-light, #efe0ae);
	--hsp-gold: var(--hsp-accent, #d3af37);
	display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start;
	max-width: 1280px; margin: 0 auto; font-size: 15px; color: var(--hsp-ink); box-sizing: border-box;
}
.hsp-ap *, .hsp-ap *::before, .hsp-ap *::after { box-sizing: border-box; }
.hsp-ap .hsp-icon { width: 18px; height: 18px; flex: none; }
.hsp-ap h2 { font-size: 1.6rem; margin: 0; }
.hsp-ap h3 { font-size: 1.1rem; margin: 0 0 12px; }

/* Side */
.hsp-ap__side { position: sticky; top: 90px; background: var(--hsp-tint); border: 1px solid var(--hsp-tint-2); border-top: 4px solid var(--hsp-gold); border-radius: var(--hsp-radius, 8px); padding: 16px 12px; }
.hsp-ap__user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--hsp-tint-2); margin-bottom: 10px; }
.hsp-ap__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); font-weight: 700; font-size: 1.1rem; flex: none; }
.hsp-ap__name { margin: 0; font-weight: 700; line-height: 1.2; }
.hsp-ap__role { margin: 0; font-size: .8rem; color: var(--hsp-muted); }
.hsp-ap__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hsp-ap__nav li { margin: 0; }
.hsp-ap__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--hsp-radius, 8px); color: var(--hsp-ink); text-decoration: none; font-weight: 600; }
.hsp-ap__nav a .hsp-icon { color: var(--hsp-strong); }
.hsp-ap__nav a:hover { background: #fff; }
.hsp-ap__nav a.is-active { background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-ap__nav a.is-active .hsp-icon { color: var(--hsp-accent-text, #1a1a1a); }
.hsp-ap__nav a:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 1px; }
.hsp-ap__logout { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--hsp-tint-2); }

/* Main */
.hsp-ap__main { min-width: 0; container-type: inline-size; container-name: hsp-main; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hsp-ap__main > *, .hsp-pform > * { min-width: 0; }
.hsp-ap__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hsp-ap__head h2 { margin-right: auto; }
.hsp-pbox { background: #fff; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); padding: 20px; }
.hsp-pbox--flush { padding: 0; overflow: hidden; }
.hsp-pbox--form { padding: 8px 20px 20px; }
.hsp-pbox--form .hsp-tabs { margin: 0 -20px 16px; padding: 0 12px; border-bottom-color: var(--hsp-tint-2); }
.hsp-note { padding: 12px 16px; border-radius: var(--hsp-radius, 8px); border-left: 4px solid var(--hsp-gold); background: var(--hsp-tint); }
.hsp-note--warn { border-left-color: var(--hsp-strong); background: #fff; box-shadow: inset 0 0 0 1px var(--hsp-tint-2); font-weight: 600; }
.hsp-plink { color: var(--hsp-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--hsp-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Buttons */
.hsp-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--hsp-radius, 8px); border: 2px solid var(--hsp-gold); background: #fff; color: var(--hsp-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.hsp-pbtn:hover { background: var(--hsp-tint); color: var(--hsp-ink); }
.hsp-pbtn--primary { background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-pbtn--primary:hover { background: var(--hsp-strong); border-color: var(--hsp-strong); color: #fff; }
.hsp-pbtn:focus-visible, .hsp-iconbtn:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--hsp-radius, 8px); border: 1px solid var(--hsp-tint-2); background: #fff; color: var(--hsp-strong); cursor: pointer; padding: 0; }
.hsp-iconbtn:hover { background: var(--hsp-tint); }
.hsp-iconbtn--danger:hover { background: #fdecec; color: #8a1f1f; }
.hsp-inline { display: inline; margin: 0; }

/* Stats */
.hsp-stats-p { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hsp-stats-p__item { display: grid; gap: 2px; padding: 16px; border-radius: var(--hsp-radius, 8px); background: var(--hsp-tint); border: 1px solid var(--hsp-tint-2); color: var(--hsp-ink); text-decoration: none; }
a.hsp-stats-p__item:hover { border-color: var(--hsp-gold); }
.hsp-stats-p__n { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.hsp-stats-p__l { font-size: .85rem; color: var(--hsp-muted); }

/* Filter */
.hsp-pfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.hsp-pfilter input, .hsp-pfilter select { min-height: 44px; padding: 6px 12px; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); background: var(--hsp-tint); font: inherit; color: var(--hsp-ink); }
.hsp-pfilter input { flex: 1 1 220px; }

/* Table */
.hsp-ptable { width: 100%; border-collapse: collapse; }
.hsp-ptable th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hsp-muted); padding: 10px 12px; background: var(--hsp-tint); border-bottom: 1px solid var(--hsp-tint-2); }
.hsp-ptable td { padding: 10px 12px; border-bottom: 1px solid var(--hsp-tint-2); vertical-align: middle; }
.hsp-ptable tr:last-child td { border-bottom: 0; }
.hsp-ptable__img { width: 76px; }
.hsp-ptable__img img, .hsp-ptable__noimg { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--hsp-tint); }
.hsp-ptable__title a { color: var(--hsp-ink); font-weight: 700; text-decoration: none; }
.hsp-ptable__title a:hover { text-decoration: underline; text-decoration-color: var(--hsp-gold); }
.hsp-ptable__meta { display: block; font-size: .8rem; color: var(--hsp-muted); }
.hsp-ptable__price { white-space: nowrap; font-weight: 600; }
.hsp-ptable__title { min-width: 220px; }
.hsp-ptable__price, .hsp-ptable__agent { white-space: nowrap; }
.hsp-ptable__actions { text-align: right; max-width: 300px; }
.hsp-ptable__actions > * { display: inline-flex; vertical-align: middle; margin-bottom: 4px; }
.hsp-ptable__actions > * { margin-left: 4px; }
.hsp-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.hsp-pill--live { background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-pill--hidden { background: #fff; box-shadow: inset 0 0 0 1px var(--hsp-tint-2); color: var(--hsp-muted); }
.hsp-pill--pending { background: var(--hsp-tint-2); color: var(--hsp-ink); }
.hsp-ppager { display: flex; gap: 6px; justify-content: center; }
.hsp-ppager a, .hsp-ppager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: var(--hsp-radius, 8px); border: 1px solid var(--hsp-tint-2); color: var(--hsp-ink); text-decoration: none; font-weight: 700; }
.hsp-ppager [aria-current] { background: var(--hsp-gold); border-color: var(--hsp-gold); }

/* Form */
.hsp-pform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hsp-pform__main { display: grid; gap: 16px; }
.hsp-ap .hsp-input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); background: #fff; font: inherit; color: var(--hsp-ink); }
.hsp-ap textarea.hsp-input { min-height: 180px; line-height: 1.55; }
.hsp-ap .hsp-input--lg { font-size: 1.15rem; font-weight: 600; }
.hsp-ap .hsp-input:focus-visible, .hsp-ap select:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 1px; }
.hsp-ap .hsp-affix__unit { border-color: var(--hsp-tint-2); background: var(--hsp-tint); border-radius: 0 var(--hsp-radius, 8px) var(--hsp-radius, 8px) 0; }
.hsp-ap .hsp-segmented { border-color: var(--hsp-tint-2); }
.hsp-ap .hsp-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--hsp-strong); }
.hsp-pform__actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px 16px; background: rgba(251, 245, 225, .96); border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); backdrop-filter: blur(4px); }
.hsp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.hsp-soon { text-align: center; padding: 36px 24px; }
.hsp-soon .hsp-icon { width: 42px; height: 42px; color: var(--hsp-strong); }
.hsp-soon p { max-width: 560px; margin: 0 auto; color: var(--hsp-muted); }

/* Login */
.hsp-ap--login { display: block; max-width: 1040px; }
.hsp-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 580px; background: #fff; border: 1px solid var(--hsp-tint-2); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(111, 86, 13, .14); }
.hsp-login__media { position: relative; min-height: 100%; background: var(--hsp-tint); }
.hsp-login__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hsp-login__badge { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 44px); padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--hsp-ink); font-weight: 700; font-size: .9rem; box-shadow: 0 6px 18px rgba(111, 86, 13, .18); backdrop-filter: blur(4px); }
.hsp-login__badge .hsp-icon { color: var(--hsp-strong); }
.hsp-login__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 56px); }
.hsp-login__logo { margin: 0 0 26px; }
.hsp-login__logo img { display: block; height: 44px; width: auto; max-width: 240px; object-fit: contain; }
.hsp-ap .hsp-login__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; }
.hsp-login__lead { margin: 0 0 24px; color: var(--hsp-muted); }
.hsp-login__form { display: grid; gap: 16px; margin: 0; }
.hsp-login__field { display: grid; gap: 6px; margin: 0; }
.hsp-login__field label { font-size: .85rem; font-weight: 700; }
.hsp-login__field input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--hsp-tint-2); border-radius: 10px; background: var(--hsp-tint); color: var(--hsp-ink); font: inherit; font-size: 1rem; transition: border-color .15s, background .15s; }
.hsp-login__field input:focus { background: #fff; border-color: var(--hsp-strong); outline: 3px solid color-mix(in srgb, var(--hsp-gold) 45%, transparent); outline-offset: 0; }
.hsp-login__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: .9rem; }
.hsp-login__row a, .hsp-login__alt a { color: var(--hsp-ink); text-decoration: underline; text-decoration-color: var(--hsp-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hsp-login__check { display: inline-flex; align-items: center; gap: 8px; }
.hsp-login__check input { width: 18px; height: 18px; accent-color: var(--hsp-strong); }
.hsp-login__submit { min-height: 52px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.hsp-login__submit:hover { background: var(--hsp-strong); color: #fff; }
.hsp-login__submit:focus-visible, .hsp-login a:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-login__msg { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hsp-tint-2); background: var(--hsp-tint); font-size: .92rem; }
.hsp-login__msg--error { border-color: #e8b4ae; background: #fdf1f0; color: #7d1d16; }
.hsp-login__hint { margin: -6px 0 0; font-size: .82rem; color: var(--hsp-muted); }
.hsp-login__note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: .85rem; color: var(--hsp-muted); }
.hsp-login__note .hsp-icon { color: var(--hsp-strong); }
.hsp-login__alt { margin: 18px 0 0; font-size: .9rem; }
.hsp-login__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
	.hsp-login { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 14px; }
	.hsp-login__media { height: 190px; min-height: 0; }
	.hsp-login__badge { left: 14px; bottom: 14px; }
	.hsp-login__body { padding: 26px 20px 30px; }
}
.hsp-admin-note { border: 1px dashed #b26200; background: #fff8ec; color: #5c3400; padding: 12px 14px; border-radius: 8px; }

@media (max-width: 900px) {
	.hsp-ap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.hsp-ap__side, .hsp-ap__nav { min-width: 0; }
	.hsp-ap__side { position: static; padding: 10px; }
	.hsp-ap__user { display: none; }
	.hsp-ap__nav ul { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: thin; }
	.hsp-ap__nav a { white-space: nowrap; padding: 8px 12px; }
	.hsp-ap__logout { margin: 0 !important; padding: 0; border: 0; }
	/* With JS: a menu button with the current section; the list opens below it. */
	.hsp-ap--menu .hsp-ap__toggle { display: flex; }
	.hsp-ap--menu .hsp-ap__nav { display: none; }
	.hsp-ap--menu.is-open .hsp-ap__nav { display: block; margin-top: 8px; }
	.hsp-ap--menu .hsp-ap__nav ul { display: grid; overflow: visible; gap: 2px; }
	.hsp-ap--menu .hsp-ap__nav a { white-space: normal; padding: 11px 12px; }
	.hsp-ap--menu .hsp-ap__logout { margin-top: 6px !important; padding-top: 6px; border-top: 1px solid var(--hsp-tint-2, #efe0ae); }
	.hsp-stats-p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.hsp-ap h2 { font-size: 1.3rem; }
	.hsp-pbox, .hsp-pbox--form { padding: 14px; }
	.hsp-pbox--form .hsp-tabs { margin: 0 -14px 14px; }
	.hsp-grid--2 { grid-template-columns: 1fr !important; }
	.hsp-ptable thead { display: none; }
	.hsp-ptable, .hsp-ptable tbody, .hsp-ptable tr, .hsp-ptable td { display: block; }
	.hsp-ptable tr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; border-bottom: 1px solid var(--hsp-tint-2); }
	.hsp-ptable td { padding: 0; border: 0; }
	.hsp-ptable__img { grid-row: span 3; width: auto; }
	.hsp-ptable__title { grid-column: 2 / 4; min-width: 0; }
	.hsp-ptable__agent { grid-column: 2 / 4; font-size: .8rem; color: var(--hsp-muted); }
	.hsp-ptable__actions { grid-column: 1 / -1; text-align: left; padding-top: 6px !important; max-width: none; }
	.hsp-ptable__actions > * { margin: 0 4px 0 0; }
	.hsp-pform__actions { justify-content: stretch; }
	.hsp-pform__actions .hsp-pbtn { flex: 1; }
}

/* ---------- Developments ---------- */
.hsp-pbtn--sm { min-height: 36px; padding: 0 12px; font-size: .88rem; border-width: 1px; }
.hsp-pbtn .hsp-icon { width: 18px; height: 18px; color: var(--hsp-strong); }
.hsp-pbtn--primary .hsp-icon { color: currentColor; }
.hsp-dev { margin-bottom: 18px; border-top: 4px solid var(--hsp-gold); }
.hsp-dev__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hsp-dev__title { min-width: 0; }
.hsp-dev__title h3 { margin: 0 0 4px; font-size: 1.15rem; }
.hsp-dev__title h3 a { color: var(--hsp-ink); text-decoration: none; }
.hsp-dev__title h3 a:hover { text-decoration: underline; text-decoration-color: var(--hsp-gold); }
.hsp-dev__meta, .hsp-dev__count { margin: 0; color: var(--hsp-muted); font-size: .88rem; }
.hsp-dev__count { font-weight: 700; color: var(--hsp-ink); margin-top: 4px; }
.hsp-dev__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hsp-devdel { position: relative; }
.hsp-devdel > summary { list-style: none; }
.hsp-devdel > summary::-webkit-details-marker { display: none; }
.hsp-devdel > summary:focus-visible { outline: 2px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-devdel[open] > summary { background: #fdecec; color: #8a1f1f; }
.hsp-devdel__pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, 86vw); background: #fff; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 14px; display: grid; gap: 8px; }
.hsp-devdel__pop p { margin: 0; font-size: .9rem; }
.hsp-devdel__pop .hsp-inline, .hsp-devdel__pop .hsp-pbtn { width: 100%; justify-content: center; text-align: center; }
.hsp-devdel__note { color: #555; font-size: .8rem !important; }
@media (max-width: 600px) { .hsp-devdel[open] { flex-basis: 100%; } .hsp-devdel__pop { position: static; width: auto; margin-top: 8px; box-shadow: none; } }
.hsp-private { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--hsp-tint); box-shadow: inset 0 0 0 1px var(--hsp-tint-2); color: var(--hsp-strong); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hsp-utable__ref code { font-size: .82rem; background: var(--hsp-tint); padding: 2px 6px; border-radius: 4px; }
.hsp-ptable__dev a { color: var(--hsp-strong); font-weight: 700; }
.hsp-muted { color: var(--hsp-muted); }
@media (max-width: 781px) {
	.hsp-dev__head { flex-direction: column; }
}
@media (max-width: 640px) {
	.hsp-utable tr { grid-template-columns: minmax(0, 1fr) auto; }
	.hsp-utable .hsp-utable__ref, .hsp-utable .hsp-ptable__title { grid-column: 1 / -1; }
}
.hsp-pform [data-modes][hidden] { display: none !important; }

/* ---------- Review & agents ---------- */
.hsp-ap__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--hsp-strong); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.hsp-ap__nav a.is-active .hsp-ap__badge { background: #fff; color: var(--hsp-ink); }
.hsp-review { margin-bottom: 14px; }
.hsp-review__head { display: flex; gap: 14px; align-items: flex-start; }
.hsp-review__img img, .hsp-review__img .hsp-ptable__noimg { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--hsp-tint); }
.hsp-review__text { min-width: 0; }
.hsp-review__text h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hsp-review__text h3 a { color: var(--hsp-ink); text-decoration: none; }
.hsp-review__warn { margin: 6px 0 0; font-weight: 700; color: var(--hsp-strong); font-size: .88rem; }
.hsp-review__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.hsp-review__reject { margin-top: 10px; }
.hsp-review__reject summary, .hsp-transfer summary { cursor: pointer; font-weight: 700; color: var(--hsp-strong); }
.hsp-review__reject form { display: grid; gap: 6px; margin-top: 8px; max-width: 560px; }
.hsp-addagent { margin-bottom: 16px; }
.hsp-addagent > summary { list-style: none; display: inline-flex; }
.hsp-addagent > summary::-webkit-details-marker { display: none; }
.hsp-addagent[open] > summary { margin-bottom: 14px; }
.hsp-addagent form { display: block; }
.hsp-transfer { display: inline-block; position: relative; vertical-align: middle; }
.hsp-transfer > summary { list-style: none; }
.hsp-transfer > summary::-webkit-details-marker { display: none; }
.hsp-transfer__box { position: absolute; right: 0; z-index: 5; width: 240px; padding: 12px; background: #fff; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); box-shadow: 0 10px 30px rgba(111, 86, 13, .15); text-align: left; }
.hsp-transfer__box form { display: grid; gap: 6px; }
@media (max-width: 640px) {
	.hsp-agents tr { grid-template-columns: minmax(0, 1fr) auto; }
	.hsp-agents .hsp-ptable__title { grid-column: 1 / -1; }
}

/* Profile photo (1.5.0). */
.hsp-avatar { width: var(--hsp-av, 56px); height: var(--hsp-av, 56px); border-radius: 50%; object-fit: cover; flex: none; display: block; font-size: calc(var(--hsp-av, 56px) * .38); }
.hsp-avatar--ini { display: inline-flex; align-items: center; justify-content: center; background: #f3e6bd; color: #3d3217; font-weight: 700; }
.hsp-profile__photo { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--hsp-line, #efe0ae); }
.hsp-profile__avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hsp-accent, #d3af37); }
.hsp-profile .hsp-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
@media (max-width: 600px) { .hsp-profile__photo { flex-direction: column; align-items: flex-start; } }
.hsp-profile select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--hsp-tint-2, #efe0ae); border-radius: var(--hsp-radius, 8px); background: #fff; color: inherit; font: inherit; }
.hsp-ap__photo { box-shadow: 0 0 0 2px var(--hsp-gold, #d3af37); }

/* ---------- CRM (1.9.0) ---------- */
.hsp-crm-back { margin: 0; font-size: .9rem; }
.hsp-crm-back a, .hsp-plink { color: var(--hsp-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hsp-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button.hsp-plink { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hsp-crm-head { gap: 8px 10px; }
.hsp-crm-head h2 { margin-right: 4px; }
.hsp-crm-pipe { display: flex; flex-wrap: wrap; gap: 6px; }
.hsp-crm-pipe a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--hsp-tint-2); border-radius: 999px; background: #fff; color: var(--hsp-ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.hsp-crm-pipe a b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--hsp-tint); font-size: .75rem; }
.hsp-crm-pipe a.is-empty { color: var(--hsp-muted); }
.hsp-crm-pipe a:hover { background: var(--hsp-tint); }
.hsp-crm-pipe a[aria-current] { background: var(--hsp-gold); border-color: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-crm-pipe a[aria-current] b { background: #fff; }
.hsp-crm-pipe a:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-crm-list__src, .hsp-crm-list__when { font-size: .85rem; color: var(--hsp-muted); white-space: nowrap; }
.hsp-crm { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.hsp-crm__main { display: grid; gap: 18px; min-width: 0; }
.hsp-crm__side { min-width: 0; display: grid; gap: 18px; align-content: start; }
.hsp-crm-card { display: grid; gap: 12px; }
.hsp-crm-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hsp-crm-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.hsp-crm-facts .hsp-icon { color: var(--hsp-strong); }
.hsp-crm-facts a { color: var(--hsp-ink); }
.hsp-crm-wa { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--hsp-tint); text-decoration: none; }
.hsp-crm-quick, .hsp-crm-more form { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--hsp-tint-2); }
.hsp-crm-quick .hsp-pbtn, .hsp-crm-more .hsp-pbtn { justify-self: start; margin-top: 4px; }
.hsp-crm-more { border-top: 1px solid var(--hsp-tint-2); padding-top: 10px; }
.hsp-crm-more > summary { cursor: pointer; font-weight: 700; color: var(--hsp-strong); }
.hsp-crm-more[open] > summary { margin-bottom: 10px; }
.hsp-crm-more form + form { border-top: 0; padding-top: 6px; }
.hsp-crm-reqedit form { border-top: 0; padding-top: 0; }
.hsp-crm-danger:hover { background: #fdecec; border-color: #c0392b; color: #7d1d16; }
.hsp-crm-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hsp-crm-sechead h3 { margin: 0; }
.hsp-crm-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); font-size: .8rem; vertical-align: middle; }
.hsp-crm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.hsp-crm-chips li { padding: 4px 12px; border-radius: 999px; background: var(--hsp-tint); border: 1px solid var(--hsp-tint-2); font-size: .88rem; font-weight: 600; }
.hsp-crm-notes { margin: 0 0 8px; padding: 10px 12px; border-left: 3px solid var(--hsp-gold); background: var(--hsp-tint); border-radius: 0 6px 6px 0; }
.hsp-crm-reqedit { margin-top: 12px; }
.hsp-crm-reqedit .hsp-rf { max-width: none; gap: 14px; }
.hsp-crm-mlist { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); overflow: hidden; }
.hsp-crm-m { display: grid; grid-template-columns: 34px 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hsp-tint-2); background: #fff; }
.hsp-crm-match .hsp-crm-m:not(:has(.hsp-crm-m__img)) { grid-template-columns: 34px minmax(0, 1fr) auto; }
.hsp-crm-m:last-child { border-bottom: 0; }
.hsp-crm-m:has(input:checked) { background: var(--hsp-tint); }
.hsp-crm-m.is-sent { background: repeating-linear-gradient(135deg, #fff, #fff 10px, #fdfaf0 10px, #fdfaf0 20px); }
.hsp-crm-m[hidden] { display: none; }
.hsp-crm-m__pick { display: grid; place-items: center; }
.hsp-crm-m__pick input { width: 20px; height: 20px; accent-color: var(--hsp-strong); }
.hsp-crm-m__img img, .hsp-crm-m__img .hsp-ptable__noimg { display: block; width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--hsp-tint); }
.hsp-crm-m__body { display: grid; gap: 3px; min-width: 0; }
.hsp-crm-m__title { color: var(--hsp-ink); font-weight: 700; text-decoration: none; }
.hsp-crm-m__title:hover { text-decoration: underline; text-decoration-color: var(--hsp-gold); }
.hsp-crm-why { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; }
.hsp-crm-why__ok { color: #1f5f2c; }
.hsp-crm-why__no { color: #8a1f1f; }
.hsp-crm-why__part { color: var(--hsp-strong); }
.hsp-crm-sent { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--hsp-strong); }
.hsp-crm-sent .hsp-icon { width: 14px; height: 14px; }
.hsp-crm-score { display: inline-grid; place-items: center; min-width: 54px; height: 34px; padding: 0 8px; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.hsp-crm-score--hi { background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-crm-score--mid { background: var(--hsp-tint-2); color: var(--hsp-ink); }
.hsp-crm-score--lo { background: #fff; box-shadow: inset 0 0 0 1px var(--hsp-tint-2); color: var(--hsp-muted); }
.hsp-crm-hidesent { font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.hsp-crm-compose { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--hsp-tint-2); }
.hsp-crm-compose h4 { margin: 0; font-size: 1rem; }
.hsp-crm-compose .hsp-field, .hsp-crm-add .hsp-field { display: grid; gap: 6px; }
.hsp-crm-compose .hsp-input, .hsp-crm-quick .hsp-input, .hsp-crm-more .hsp-input, .hsp-crm-tl .hsp-input, .hsp-crm-tpl .hsp-input { width: 100%; }
.hsp-ap textarea.hsp-crm-intro { min-height: 96px; }
.hsp-crm-compose__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.hsp-crm-picked { margin-right: auto; font-weight: 700; color: var(--hsp-strong); }
.hsp-crm-preview { margin-top: 16px; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); overflow: hidden; }
.hsp-crm-preview[hidden] { display: none; }
.hsp-crm-preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; background: var(--hsp-tint); border-bottom: 1px solid var(--hsp-tint-2); }
.hsp-crm-preview iframe { display: block; width: 100%; height: 640px; border: 0; background: #f5f5f4; }
.hsp-crm-addnote { display: grid; gap: 8px; margin-bottom: 16px; }
.hsp-ap .hsp-crm-addnote textarea.hsp-input { min-height: 64px; }
.hsp-crm-addnote__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hsp-crm-addnote__row .hsp-pbtn { margin-left: auto; }
.hsp-crm-addnote .hsp-check { display: inline-flex; align-items: center; gap: 6px; }
.hsp-crm-events { list-style: none; margin: 0; padding: 0; display: grid; }
.hsp-crm-ev { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 0; position: relative; }
.hsp-crm-ev:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 44px; bottom: -6px; width: 2px; background: var(--hsp-tint-2); }
.hsp-crm-ev__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hsp-tint); border: 1px solid var(--hsp-tint-2); color: var(--hsp-strong); }
.hsp-crm-ev--click .hsp-crm-ev__icon, .hsp-crm-ev--form .hsp-crm-ev__icon, .hsp-crm-ev--enquiry .hsp-crm-ev__icon { background: var(--hsp-gold); border-color: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-crm-ev__body { min-width: 0; }
.hsp-crm-ev__body p { margin: 0; }
.hsp-crm-ev__head { font-size: .92rem; }
.hsp-crm-ev__head time { color: var(--hsp-muted); font-size: .85rem; }
.hsp-crm-ev__prop a { color: var(--hsp-ink); font-weight: 600; font-size: .9rem; }
.hsp-crm-ev__text { margin-top: 4px !important; color: var(--hsp-muted); font-size: .9rem; overflow-wrap: anywhere; }
.hsp-crm-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hsp-crm-feed { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.hsp-crm-feed li { padding-bottom: 8px; border-bottom: 1px solid var(--hsp-tint-2); }
.hsp-crm-feed a { color: var(--hsp-ink); text-decoration: none; }
.hsp-crm-feed a:hover { text-decoration: underline; text-decoration-color: var(--hsp-gold); }
.hsp-crm-feed .hsp-muted { font-size: .85rem; }
.hsp-crm-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); font-size: .78rem; font-weight: 700; }
.hsp-crm-tpl { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.hsp-crm-tpl__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hsp-crm-tpl__nav a { display: block; padding: 10px 12px; border-radius: var(--hsp-radius, 8px); border: 1px solid var(--hsp-tint-2); background: #fff; color: var(--hsp-ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.hsp-crm-tpl__nav a[aria-current] { background: var(--hsp-gold); border-color: var(--hsp-gold); }
.hsp-crm-tpl__nav a:focus-visible, .hsp-crm-langs a:focus-visible, .hsp-crm-tag:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-crm-edited { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--hsp-tint); font-size: .7rem; font-weight: 700; }
.hsp-crm-langs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--hsp-tint-2); }
.hsp-crm-langs a { padding: 8px 14px; color: var(--hsp-ink); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.hsp-crm-langs a[aria-selected="true"] { border-bottom-color: var(--hsp-gold); }
.hsp-crm-tpl form { display: grid; gap: 8px; }
.hsp-crm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hsp-crm-tag { min-height: 30px; padding: 0 10px; border: 1px solid var(--hsp-tint-2); border-radius: 6px; background: var(--hsp-tint); font: .8rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--hsp-ink); cursor: pointer; }
.hsp-crm-tag:hover { border-color: var(--hsp-gold); }
.hsp-ap textarea.hsp-crm-tbody { min-height: 300px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.hsp-crm-reset { margin-top: 10px; }
@media (max-width: 1100px) {
	.hsp-crm { grid-template-columns: minmax(0, 1fr); }
	.hsp-crm__side { position: static; }
}
@media (max-width: 900px) {
	.hsp-crm-dash, .hsp-crm-tpl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.hsp-crm-m { grid-template-columns: 28px 56px minmax(0, 1fr); }
	.hsp-crm-m__img img, .hsp-crm-m__img .hsp-ptable__noimg { width: 56px; height: 44px; }
	.hsp-crm-score { grid-column: 3; justify-self: start; min-width: 0; height: 26px; font-size: .8rem; }
	.hsp-crm-list tr { grid-template-columns: minmax(0, 1fr) auto; }
	.hsp-crm-list .hsp-ptable__title { grid-column: 1 / -1; }
	.hsp-crm-preview iframe { height: 520px; }
}
/* Screen-reader text inside the scrolling phone menu must not widen the page. */
.hsp-ap__nav ul, .hsp-ap__nav a { position: relative; }

/* ---------- Tasks & stats (1.10.0) ---------- */
.hsp-task-add { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px 12px; align-items: end; margin: 0; }
.hsp-task-add > div { display: grid; gap: 4px; min-width: 0; }
.hsp-task-add .hsp-input { width: 100%; }
.hsp-task-add--compact { grid-template-columns: minmax(0, 1fr) auto; }
.hsp-task-add--compact .hsp-task-add__title { grid-column: 1 / -1; }
.hsp-task-add__go { align-self: end; }
.hsp-tasks h3 { display: flex; align-items: center; gap: 6px; }
.hsp-tasks--late h3 { color: #8a1f1f; }
.hsp-task-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.hsp-task { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hsp-tint-2); }
.hsp-task:last-child { border-bottom: 0; }
.hsp-task__check { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--hsp-tint-2); background: #fff; color: transparent; cursor: pointer; padding: 0; }
.hsp-task__check:hover { border-color: var(--hsp-gold); color: var(--hsp-strong); }
.hsp-task__check:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-task.is-done .hsp-task__check { background: var(--hsp-gold); border-color: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-task__body { display: grid; gap: 2px; min-width: 0; }
.hsp-task__title { font-weight: 600; overflow-wrap: anywhere; }
.hsp-task.is-done .hsp-task__title { text-decoration: line-through; color: var(--hsp-muted); }
.hsp-task__meta { font-size: .82rem; color: var(--hsp-muted); }
.hsp-task__meta a { color: var(--hsp-ink); }
.hsp-task.is-late .hsp-task__meta { color: #8a1f1f; font-weight: 600; }
.hsp-task.is-today .hsp-task__meta { color: var(--hsp-strong); font-weight: 600; }
.hsp-crm-badge--drop { background: var(--hsp-strong); color: #fff; }
.hsp-stats-p--wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.hsp-stats-chart { margin: 0; }
.hsp-stats-chart__svg { display: block; width: 100%; height: 180px; background: repeating-linear-gradient(to top, transparent 0, transparent 44px, var(--hsp-tint) 44px, var(--hsp-tint) 45px); }
.hsp-stats-chart__svg rect { fill: var(--hsp-gold); }
.hsp-stats-chart__svg rect:hover { fill: var(--hsp-strong); }
.hsp-stats-chart figcaption { display: flex; justify-content: space-between; font-size: .8rem; color: var(--hsp-muted); margin-top: 6px; }
.hsp-stats-h { padding: 16px 20px 0; margin: 0 0 8px; }
.hsp-stats-top td { font-variant-numeric: tabular-nums; }
.hsp-stats-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hsp-stats-bars li { display: grid; grid-template-columns: 180px minmax(0, 1fr) 40px; gap: 10px; align-items: center; }
.hsp-stats-bars__bar { height: 10px; border-radius: 5px; background: var(--hsp-tint); overflow: hidden; }
.hsp-stats-bars__bar i { display: block; height: 100%; background: var(--hsp-gold); }
.hsp-stats-bars b { text-align: right; }
@media (max-width: 900px) {
	.hsp-task-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hsp-task-add__title { grid-column: 1 / -1; }
	.hsp-stats-bars li { grid-template-columns: 120px minmax(0, 1fr) 36px; }
}
@media (max-width: 640px) {
	.hsp-stats-top tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hsp-stats-top .hsp-ptable__title { grid-column: 1 / -1; }
}

/* Viewings scheduler */
.hsp-pbtn--danger { color: #8a1f1f; border-color: #e6b4b4; }
.hsp-pbtn--danger:hover { background: #fbeaea; }
.hsp-vw-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.hsp-vw-list { display: grid; gap: 8px; margin: 0 0 12px; }
.hsp-vw { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--hsp-tint-2); border-left: 4px solid var(--hsp-gold); border-radius: 6px; background: #fff; color: var(--hsp-ink, #1b1b1f); text-decoration: none; font-size: .86rem; line-height: 1.35; min-width: 0; }
.hsp-vw:hover { background: var(--hsp-tint); }
.hsp-vw:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-vw > span { overflow: hidden; text-overflow: ellipsis; }
.hsp-vw__time { font-weight: 700; }
.hsp-vw__who { font-weight: 600; }
.hsp-vw__prop, .hsp-vw__agent { color: var(--hsp-muted); font-size: .8rem; }
.hsp-vw--requested { border-left-color: #b26a00; border-style: dashed; border-left-style: solid; }
.hsp-vw--done { border-left-color: #2e7d32; }
.hsp-vw--noshow, .hsp-vw--cancelled { border-left-color: #8a1f1f; opacity: .75; }
.hsp-vw-pill { justify-self: start; display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--hsp-tint); color: var(--hsp-strong); }
.hsp-vw-pill--requested { background: #fff1db; color: #7a4600; }
.hsp-vw-pill--done { background: #e6f4e7; color: #1e5a21; }
.hsp-vw-pill--noshow, .hsp-vw-pill--cancelled { background: #fbeaea; color: #8a1f1f; }
.hsp-ap__head .hsp-vw-pill { font-size: .8rem; padding: 3px 10px; margin: 0; }
.hsp-vw-req { margin-bottom: 16px; }
.hsp-vw-req .hsp-vw-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hsp-vw-week__nav { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.hsp-vw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hsp-vw-day { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 8px 6px 34px; border: 1px solid var(--hsp-tint-2); border-radius: 8px; background: #fff; min-width: 0; }
.hsp-vw-day.is-today { background: var(--hsp-tint); border-color: var(--hsp-gold); }
.hsp-vw-day__head { margin: 0 0 2px; font-size: .95rem; }
.hsp-vw-day__head span { color: var(--hsp-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.hsp-vw-day .hsp-vw { padding: 6px 7px; font-size: .8rem; }
.hsp-vw-day__add { position: absolute; left: 6px; right: 6px; bottom: 6px; display: grid; place-items: center; height: 24px; border-radius: 6px; color: var(--hsp-muted); text-decoration: none; }
.hsp-vw-day__add .hsp-icon { width: 16px; height: 16px; }
.hsp-vw-day__add:hover, .hsp-vw-day__add:focus-visible { background: var(--hsp-tint); color: var(--hsp-strong); outline: 2px solid var(--hsp-tint-2); }
.hsp-vw-dayhead { margin: 16px 0 8px; font-size: 1rem; }
.hsp-vw-dayhead:first-child { margin-top: 0; }
.hsp-vw-feed { margin-top: 16px; }
.hsp-vw-feed summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.hsp-vw-feed summary .hsp-icon { width: 20px; height: 20px; color: var(--hsp-strong); }
.hsp-vw-feed__row { display: flex; gap: 8px; }
.hsp-vw-feed__row .hsp-input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: .8rem; }
.hsp-vw-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin: 0 0 14px; }
.hsp-vw-form__grid .hsp-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.hsp-vw-form__wide { grid-column: 1 / -1; }
.hsp-vw-form__fixed { margin: 0; }
.hsp-vw-new { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: center; margin: 6px 0 0; padding: 10px 12px; border: 1px dashed var(--hsp-tint-2); border-radius: 8px; }
.hsp-vw-new legend { font-weight: 600; font-size: .85rem; padding: 0 4px; }
.hsp-vw-rate { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; padding: 0; margin: 0; }
.hsp-vw-rate legend { margin-bottom: 6px; }
.hsp-vw-rate label { display: inline-flex; align-items: center; gap: 4px; color: var(--hsp-strong); }
.hsp-vw-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hsp-vw-del { display: block; margin-top: 12px; }
.hsp-vw-client .hsp-vw-list { margin-bottom: 10px; }
@media (max-width: 1100px) {
	.hsp-vw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.hsp-vw-grid { grid-template-columns: minmax(0, 1fr); }
	.hsp-vw-day { min-height: 0; }
	.hsp-vw-day.is-empty { flex-direction: row; align-items: center; padding: 6px 8px; }
	.hsp-vw-day.is-empty .hsp-vw-day__add { position: static; margin-left: auto; width: 36px; }
	.hsp-vw-form__grid { grid-template-columns: minmax(0, 1fr); }
	.hsp-vw-feed__row { flex-direction: column; }
}
.hsp-vw-day .hsp-vw__prop { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Language tabs (Polylang) */
.hsp-langtabs__bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--hsp-tint-2); }
.hsp-langtabs__tab { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--hsp-tint-2); border-radius: 999px; background: #fff; color: var(--hsp-ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.hsp-langtabs__tab[aria-selected=true] { background: var(--hsp-gold); border-color: var(--hsp-gold); color: var(--hsp-accent-text, #1a1a1a); }
.hsp-langtabs__tab:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; }
.hsp-langtabs__code { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 4px; border-radius: 4px; background: var(--hsp-tint); color: var(--hsp-strong); font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.hsp-langtabs__tab[aria-selected=true] .hsp-langtabs__code { background: #fff; }
.hsp-langtabs__todo { font-weight: 400; font-size: .78rem; color: var(--hsp-muted); }
.hsp-langtabs__tab[aria-selected=true] .hsp-langtabs__todo { color: inherit; }
.hsp-langtabs__panel { display: grid; gap: 14px; }
.hsp-langtabs__panel[hidden] { display: none; }
.hsp-lang-chips { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.hsp-lang-chip { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 3px; border: 1px solid #e3a5a5; border-radius: 4px; background: #fdecec; color: #a3191b; font-size: .68rem; font-weight: 800; }
.hsp-lang-chip.is-done { border-color: #9fd3ae; background: #e8f6ec; color: #17602f; }

/* Narrow panel column (narrow page template or sidebar): table rows become cards. */
@container hsp-main (max-width: 820px) {
	.hsp-ptable thead { display: none; }
	.hsp-ptable, .hsp-ptable tbody, .hsp-ptable tr, .hsp-ptable td { display: block; }
	.hsp-ptable tr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; border-bottom: 1px solid var(--hsp-tint-2); }
	.hsp-ptable td { padding: 0; border: 0; }
	.hsp-ptable__img { grid-row: span 3; width: auto; }
	.hsp-ptable__title { grid-column: 2 / 4; min-width: 0; }
	.hsp-ptable__agent { grid-column: 2 / 4; font-size: .8rem; color: var(--hsp-muted); }
	.hsp-ptable__actions { grid-column: 1 / -1; text-align: left; padding-top: 6px !important; max-width: none; }
	.hsp-ptable__actions > * { margin: 0 4px 0 0; }
}

/* Add existing properties to a development */
.hsp-ap__headbtns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.hsp-attach__search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hsp-attach__search input[type="search"] { flex: 1 1 220px; min-width: 0; }
.hsp-attach__search input[type="search"], .hsp-attach .hsp-field select { min-height: 44px; padding: 6px 12px; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); background: var(--hsp-tint); font: inherit; color: var(--hsp-ink); }
.hsp-attach .hsp-field { display: grid; gap: 6px; margin: 0 0 6px; }
.hsp-attach .hsp-field label { font-weight: 700; }
.hsp-attach .hsp-field select { width: 100%; max-width: 520px; }
.hsp-attach__opts { border: 1px solid var(--hsp-tint-2); border-radius: 8px; padding: 10px 14px 12px; margin: 14px 0; display: grid; gap: 4px; }
.hsp-attach__opts legend { font-weight: 700; padding: 0 6px; }
.hsp-attach__opts .hsp-help { display: block; margin: -2px 0 6px 26px; font-size: .82rem; color: var(--hsp-muted); }
.hsp-attach__pick { width: 32px; }
.hsp-attach__pick input { width: 20px; height: 20px; }
.hsp-attach__table .hsp-ptable__title label { font-weight: 700; cursor: pointer; }
.hsp-attach__go { position: sticky; bottom: 0; background: var(--hsp-bg, #fff); padding: 12px 0 4px; margin: 0; }
@container hsp-main (max-width: 820px) {
	.hsp-attach__table tr { grid-template-columns: 28px 72px minmax(0, 1fr); }
	.hsp-attach__table .hsp-attach__pick { grid-row: span 3; align-self: center; }
	.hsp-attach__table .hsp-ptable__img { grid-row: span 3; }
	.hsp-attach__table .hsp-ptable__title, .hsp-attach__table .hsp-ptable__price, .hsp-attach__table td:last-child { grid-column: 3; }
}
.hsp-ap__back { margin: 0 0 6px; }
/* Offer composer: "why it fits" line under a ticked property */
.hsp-crm-m__line { display: none; grid-column: 2 / -1; }
.hsp-crm-m:has(.hsp-crm-m__pick input:checked) .hsp-crm-m__line { display: block; }
.hsp-crm-m__line .hsp-input { width: 100%; min-height: 38px; font-size: 14px; }
@media (max-width: 600px) { .hsp-crm-m__line { grid-column: 1 / -1; } }
/* Property list: active filters */
.hsp-fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 14px; }
.hsp-fchips__label { font-weight: 700; margin-right: 2px; }
.hsp-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--hsp-gold, #d3af37); border-radius: 999px; background: var(--hsp-tint, #fbf5e1); color: var(--hsp-ink, #1b1b1f); font-weight: 600; text-decoration: none; }
.hsp-fchip:hover, .hsp-fchip:focus-visible { background: #fff; }
.hsp-fchip span { color: var(--hsp-strong, #6f560d); font-size: 16px; line-height: 1; }

/* Panel menu button (phones). */
.hsp-ap__toggle { display: none; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 12px; border: 0; border-radius: var(--hsp-radius, 8px); background: var(--hsp-gold, #d3af37); color: var(--hsp-accent-text, #1a1a1a); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.hsp-ap__toggle[hidden] { display: none !important; }
.hsp-ap__toggle .hsp-icon { width: 22px; height: 22px; }
.hsp-ap__toggle-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsp-ap__toggle::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s ease; }
.hsp-ap__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.hsp-ap__toggle:focus-visible { outline: 3px solid var(--hsp-strong, #6f560d); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hsp-ap__toggle::after { transition: none; } }

/* Edit lock: "Laura is editing" badge and waiting screen. */
.hsp-lockbadge { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; padding: 2px 8px; border-radius: 999px; background: #fff3d6; color: #6b4300; font-size: .78rem; font-weight: 700; }
.hsp-lockbadge .hsp-icon { width: 14px; height: 14px; }
.hsp-ptable__title .hsp-lockbadge { display: flex; width: fit-content; }
.hsp-lockwait { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; text-align: center; }
.hsp-lockwait h3 { margin: 6px 0 0; }
.hsp-lockwait p { max-width: 520px; margin: 0; }
.hsp-lockwait__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hsp-tint); color: var(--hsp-strong); }
.hsp-lockwait__icon .hsp-icon { width: 28px; height: 28px; }
.hsp-lock-lost { margin-bottom: 14px; }

/* Development: who works on it (managers). */
.hsp-devaccess { margin: 0 0 16px; border: 1px solid var(--hsp-tint-2); }
.hsp-devaccess__title { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 700; }
.hsp-devaccess__title .hsp-icon { color: var(--hsp-strong); }
.hsp-devaccess__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.hsp-devaccess__opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); background: #fff; cursor: pointer; }
.hsp-devaccess__opt:has(input:checked) { border-color: var(--hsp-gold); background: var(--hsp-tint); }
.hsp-devaccess__opt input { margin-top: 3px; accent-color: var(--hsp-strong); }
.hsp-devaccess__opt small { display: block; color: var(--hsp-muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.hsp-devaccess__who { margin-top: 14px; }
.hsp-devaccess__who[hidden] { display: none; }
.hsp-pill--access { background: #fff; border: 1px solid var(--hsp-tint-2); color: var(--hsp-ink); margin-left: 6px; }

/* Foldable client boxes (matches). */
details.hsp-crm-fold > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
details.hsp-crm-fold > summary::-webkit-details-marker { display: none; }
details.hsp-crm-fold[open] > summary { margin-bottom: 12px; }
.hsp-crm-fold__hint::after { content: ""; display: inline-block; width: 10px; height: 10px; border-right: 2px solid var(--hsp-strong); border-bottom: 2px solid var(--hsp-strong); transform: rotate(45deg); transition: transform .15s ease; margin-right: 6px; }
details.hsp-crm-fold[open] .hsp-crm-fold__hint::after { transform: rotate(-135deg); }
details.hsp-crm-fold > summary:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 3px; border-radius: 6px; }
.hsp-crm-invite { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hsp-crm-invite select { width: auto; min-height: 36px; padding: 4px 8px; }

/* Client page: interested properties. */
.hsp-crm-intlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.hsp-crm-int__row { display: grid; grid-template-columns: 34px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--hsp-tint-2); border-radius: var(--hsp-radius, 8px); background: #fff; }
.hsp-crm-int__row .hsp-crm-m__img img, .hsp-crm-int__row .hsp-ptable__noimg { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; display: block; }
.hsp-crm-int__row--no { opacity: .7; }
.hsp-crm-int__sig { padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.hsp-crm-int__sig--yes { background: #dff3e6; color: #135d2d; }
.hsp-crm-int__sig--no { background: #fbe3e1; color: #8f1e18; }
.hsp-crm-int__sig--info { background: var(--hsp-tint); color: var(--hsp-ink); }
.hsp-crm-intform__more { max-width: 420px; }
@media (max-width: 600px) { .hsp-crm-int__row { grid-template-columns: 30px minmax(0, 1fr); } .hsp-crm-int__row .hsp-crm-m__img { display: none; } .hsp-crm-int__sig { grid-column: 2; justify-self: start; } }
/* 2.8.0 Sellers */
.hsp-grid--3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .hsp-grid--3 { grid-template-columns: 1fr; } }
.hsp-sel-sub { margin: -8px 0 16px; }
.hsp-sel .hsp-crm__main > .hsp-pbox h3 .hsp-icon { margin-right: 6px; vertical-align: -3px; color: var(--hsp-strong); }
.hsp-sel-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin: 4px 0 12px; }
.hsp-sel-facts div { min-width: 0; }
.hsp-sel-facts dt { font-size: 12px; color: var(--hsp-muted); margin: 0; }
.hsp-sel-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.hsp-sel-photos { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hsp-sel-photos img { width: 100%; height: 96px; object-fit: cover; border-radius: 6px; display: block; background: var(--hsp-tint); }
.hsp-sel-photos a:focus-visible { outline: 3px solid var(--hsp-strong); outline-offset: 2px; display: block; border-radius: 6px; }
.hsp-sel-big { font-size: 1.35rem; font-weight: 700; margin: 0 0 10px; }
.hsp-sel-market { background: var(--hsp-tint); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.hsp-sel-market p { margin: 4px 0; }
.hsp-sel-market a { margin-right: 8px; }
.hsp-sel-form .hsp-check { display: inline-flex; margin: 4px 0 8px; }
.hsp-sel-linkrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.hsp-sel-linkrow .hsp-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hsp-sel-linkrow .hsp-input { min-width: 200px; }
.hsp-sel-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--hsp-tint-2); border-radius: 8px; margin-bottom: 16px; }
.hsp-sel-card img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.hsp-sel-card > div { display: grid; gap: 2px; min-width: 0; }
.hsp-sel-card__links { display: flex; gap: 12px; }
.hsp-sel-docs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hsp-sel-docs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hsp-sel-docs .hsp-inline { margin-left: auto; }
.hsp-sel-stats { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hsp-sel-stats li { border: 1px solid var(--hsp-tint-2); border-left: 4px solid var(--hsp-gold); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.hsp-sel-stats b { font-size: 1.5rem; line-height: 1.1; }
.hsp-sel-stats span { font-size: 12px; color: var(--hsp-muted); }
.hsp-crm-langs a[aria-current="page"] { border-bottom-color: var(--hsp-gold); }
.hsp-sel-report .hsp-crm-compose__actions .hsp-input { width: auto; }
.hsp-sel-clientbox h3 .hsp-icon { margin-right: 6px; vertical-align: -3px; }
/* 2.8.0: client and seller pages in a narrow panel (theme content width under ~760 px): one column. */
@container hsp-main (max-width: 760px) {
	.hsp-crm { grid-template-columns: minmax(0, 1fr); }
	.hsp-crm__side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.hsp-crm-int__row { grid-template-columns: 30px 56px minmax(0, 1fr); }
	.hsp-crm-int__sig { grid-column: 3; justify-self: start; }
}
@container hsp-main (max-width: 420px) {
	.hsp-crm-int__row { grid-template-columns: 30px minmax(0, 1fr); }
	.hsp-crm-int__row .hsp-crm-m__img { display: none; }
	.hsp-crm-int__sig { grid-column: 2; }
}
/* 2.10.0 AI apps (MCP) in Profile */
.hsp-mcp { margin-top: 18px; }
.hsp-mcp h3 { display: flex; align-items: center; gap: 8px; }
.hsp-mcp h3 .hsp-icon { color: var(--hsp-strong); }
.hsp-mcp__steps { padding-left: 20px; }
.hsp-mcp__steps li { margin: 6px 0; }
.hsp-mcp__url { margin-top: 6px; }
.hsp-mcp__url .hsp-input, .hsp-mcp__token { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hsp-mcp__list td:last-child { text-align: right; }
@media (max-width: 600px) { .hsp-mcp__list th:nth-child(2), .hsp-mcp__list td:nth-child(2) { display: none; } }
