/* The site theme styles every <form> as a white card with a gold top bar and 30px padding.
   Inside the portal, forms are layout-free unless a portal rule says otherwise (rules below win). */
.lore-app form,
.lore-card form,
form[class*="lore-"] {
	display: block;
	gap: normal;
	background: none;
	padding: 0;
	border-top: 0;
	color: inherit;
}

/* LORE Members portal */
.lore-app, .lore-convo {
	--lore-primary: #111111;
	--lore-accent: #b08d57;
	--lore-bg: #f6f7f9;
	--lore-line: #e2e5ea;
	--lore-text: #1f2430;
	--lore-muted: #6b7280;
	--lore-danger: #b42318;
	--lore-radius: 10px;
	color: var(--lore-text);
	font-size: 15px;
	line-height: 1.5;
	max-width: 1400px;
	margin: 0 auto;
}
.lore-app *, .lore-app *::before, .lore-app *::after { box-sizing: border-box; }
.lore-app h2, .lore-app h3, .lore-app h4, .lore-app h5 { margin: 0 0 .5em; line-height: 1.25; color: var(--lore-text); }
.lore-app h3 { font-size: 1.1em; }
.lore-app h4 { font-size: .95em; }
.lore-app a { color: var(--lore-primary); }
.lore-muted { color: var(--lore-muted); }
.lore-small { font-size: .85em; color: var(--lore-muted); }

/* Top bar */
.lore-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75em; background: var(--lore-primary); color: #fff; padding: .75em 1.25em; border-radius: var(--lore-radius); margin-bottom: 1.25em; }
.lore-brand { font-weight: 800; letter-spacing: .08em; font-size: 1.1em; }
.lore-brand span { font-weight: 400; letter-spacing: 0; opacity: .8; }
.lore-nav { display: flex; flex-wrap: wrap; gap: .25em; }
.lore-app .lore-topbar .lore-brand,
.lore-app .lore-topbar .lore-brand span,
.lore-app .lore-topbar .lore-nav a,
.lore-app .lore-topbar .lore-nav a:visited { color: #fff !important; }
.lore-app .lore-topbar .lore-nav a { text-decoration: none !important; padding: .35em .8em; border-radius: 999px; font-weight: 600; }
.lore-app .lore-topbar .lore-nav a:hover,
.lore-app .lore-topbar .lore-nav a:focus { background: rgba(255,255,255,.16); color: #fff !important; }
.lore-app .lore-topbar .lore-nav a.is-active { background: #fff; color: var(--lore-primary) !important; }
.lore-app [hidden] { display: none !important; }

.lore-page-head { margin-bottom: 1em; }

/* Notices */
.lore-notice { padding: .75em 1em; border-radius: 8px; margin: 0 0 1em; border: 1px solid var(--lore-line); background: #fff; }
.lore-notice.is-success { background: #ecfdf3; border-color: #abefc6; }
.lore-notice.is-error { background: #fef3f2; border-color: #fecdca; }
.lore-notice.is-warn { background: #fffaeb; border-color: #fedf89; }
.lore-notice.is-info { background: #faf6ee; border-color: #e6d5b0; }

/* Layout */
.lore-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1em; margin-bottom: 1em; }
.lore-panel { background: #fff; border: 1px solid var(--lore-line); border-radius: var(--lore-radius); padding: 1.1em 1.2em; margin-bottom: 1em; }
.lore-row > .lore-panel { margin-bottom: 0; }
.lore-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75em; margin-bottom: .75em; }
.lore-panel-head h3 { margin: 0; }

/* Buttons */
.lore-btn { display: inline-block; background: var(--lore-primary); color: #fff !important; border: 1px solid var(--lore-primary); border-radius: 8px; padding: .55em 1.1em; font-weight: 600; font-size: .95em; cursor: pointer; text-decoration: none; line-height: 1.2; }
.lore-btn:hover { filter: brightness(1.1); }
.lore-btn.is-small { padding: .35em .7em; font-size: .85em; }
.lore-btn.is-ghost { background: #fff; color: var(--lore-primary) !important; }
.lore-link { background: none; border: 0; padding: 0; color: var(--lore-danger); cursor: pointer; font-size: .85em; text-decoration: underline; }

/* Forms */
.lore-app input[type=text], .lore-app input[type=email], .lore-app input[type=tel], .lore-app input[type=url],
.lore-app input[type=date], .lore-app input[type=number], .lore-app input[type=password], .lore-app select, .lore-app textarea {
	width: 100%; padding: .5em .65em; border: 1px solid #cfd4dc; border-radius: 7px; font: inherit; background: #fff; color: inherit; margin-top: .25em;
}
.lore-app label { display: block; font-size: .9em; font-weight: 600; }
.lore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85em 1em; }
.lore-grid .is-wide { grid-column: 1 / -1; }
.lore-inline { display: flex; gap: .5em; }
.lore-check-label { display: flex !important; align-items: center; gap: .5em; font-weight: 500 !important; }
.lore-check-label input { width: auto; margin: 0; }
.lore-section { border: 1px solid var(--lore-line); border-radius: var(--lore-radius); padding: 1em 1.2em 1.2em; margin: 0 0 1em; background: #fff; }
.lore-section legend { font-weight: 700; padding: 0 .4em; color: var(--lore-primary); }

/* Login */
.lore-login { display: flex; justify-content: center; padding: 2em 0; }
.lore-login-box { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--lore-line); border-top: 4px solid var(--lore-accent); border-radius: var(--lore-radius); padding: 2em; }
.lore-login-box form p { margin: 0 0 1em; }
.lore-login-box .login-remember label { display: flex; align-items: center; gap: .5em; font-weight: 500; }
.lore-login-box .login-remember input { width: auto; }
.lore-login-box input[type=submit] { width: 100%; background: var(--lore-primary); color: #fff; border: 0; border-radius: 8px; padding: .7em; font-weight: 700; cursor: pointer; font-size: 1em; }

/* Progress */
.lore-progress { height: 10px; background: #edf0f4; border-radius: 999px; overflow: hidden; margin: .5em 0 .25em; }
.lore-progress span { display: block; height: 100%; background: var(--lore-accent); border-radius: 999px; transition: width .3s; }
.lore-progress.is-small { height: 6px; }

/* Numbers */
.lore-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75em; margin-bottom: .5em; }
.lore-stats > div { display: flex; flex-direction: column; }
.lore-stat { font-size: 1.7em; font-weight: 800; color: var(--lore-primary); line-height: 1.1; }
.lore-stat.is-text { font-size: 1.05em; padding-top: .35em; }

/* Lists */
.lore-dates, .lore-celebrations { list-style: none; margin: 0; padding: 0; }
.lore-dates li, .lore-celebrations li { display: flex; gap: .75em; padding: .45em 0; border-bottom: 1px solid var(--lore-line); }
.lore-dates li:last-child, .lore-celebrations li:last-child { border-bottom: 0; }
.lore-cel-date { flex: 0 0 3.6em; font-weight: 700; color: var(--lore-primary); }
.lore-dates li.is-soon .lore-cel-date { color: var(--lore-danger); }

/* Tabs */
.lore-tabs { display: flex; flex-wrap: wrap; gap: .4em; }
.lore-tab { background: var(--lore-bg); border: 1px solid var(--lore-line); border-radius: 999px; padding: .45em 1em; cursor: pointer; font: inherit; font-weight: 600; color: var(--lore-text); }
.lore-tab.is-active { background: var(--lore-primary); border-color: var(--lore-primary); color: #fff; }
.lore-count { display: inline-block; min-width: 1.6em; text-align: center; font-size: .78em; padding: 0 .4em; border-radius: 999px; background: rgba(0,0,0,.08); }
.lore-tab.is-active .lore-count { background: rgba(255,255,255,.22); }
.lore-filter select { width: auto; margin: 0; }

/* New card */
.lore-new-card { margin-bottom: 1em; }
.lore-new-card > summary { list-style: none; }
.lore-new-card > summary::-webkit-details-marker { display: none; }
.lore-new-card[open] > summary { margin-bottom: .85em; }
.lore-new-card form { background: var(--lore-bg); border: 1px solid var(--lore-line); border-radius: var(--lore-radius); padding: 1em; }

/* Board */
.lore-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .85em; overflow-x: auto; padding-bottom: .5em; }
.lore-column { background: var(--lore-bg); border-radius: var(--lore-radius); padding: .75em; min-height: 140px; }
.lore-column h4 { display: flex; justify-content: space-between; align-items: center; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--lore-muted); }
.lore-empty { color: #a0a6b1; font-size: .85em; text-align: center; margin: 1.5em 0; }
.lore-card { background: #fff; border: 1px solid var(--lore-line); border-left: 4px solid var(--lore-accent); border-radius: 8px; padding: .75em .8em; margin-bottom: .65em; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.lore-card:target { outline: 2px solid var(--lore-accent); }
.lore-card-title { font-weight: 700; }
.lore-card-meta { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; font-size: .85em; color: var(--lore-muted); margin: .15em 0 .35em; }
.lore-chip { display: inline-block; background: #eef2f7; color: var(--lore-primary); border-radius: 999px; padding: .05em .55em; font-size: .8em; font-weight: 600; }
.lore-date { font-size: .85em; }
.lore-date.is-soon { color: var(--lore-danger); }
.lore-card-actions { display: flex; flex-wrap: wrap; gap: .35em; margin: .5em 0 .25em; }
.lore-card-actions form { margin: 0; }
.lore-card-details { margin-top: .4em; font-size: .9em; }
.lore-card-details > summary { cursor: pointer; color: var(--lore-primary); font-weight: 600; font-size: .9em; }
.lore-checklist { list-style: none; margin: .6em 0; padding: 0; }
.lore-checklist li { margin: .2em 0; }
.lore-checklist label { display: flex; gap: .45em; align-items: flex-start; font-weight: 400; }
.lore-checklist input { margin-top: .25em; }
.lore-mini-form { display: grid; gap: .45em; margin: .6em 0; }
.lore-mini-form label { font-size: .85em; }
.lore-notes { margin-top: .6em; border-top: 1px solid var(--lore-line); padding-top: .5em; }
.lore-note { background: var(--lore-bg); border-radius: 6px; padding: .4em .55em; margin: .4em 0; }
.lore-history ul { margin: .4em 0; padding-left: 1em; font-size: .85em; }
.lore-card-sheet-head .lore-archive { margin: 0 0 0 auto; flex: 0 0 auto; }
.lore-card-archive { background: none; border: 1px solid #555; color: #ddd; border-radius: 999px; padding: .35em .8em; font: inherit; font-size: .88em; cursor: pointer; }
.lore-card-archive:hover { border-color: var(--lore-gold, #c9a227); color: #fff; }

/* Guided questions */
.lore-q { margin: 0 0 .9em; }
.lore-app .lore-q-text { display: block; font-weight: 700; font-size: .95em; margin-bottom: .35em; }
.lore-app .lore-q-sub { font-weight: 600; font-size: .85em; margin-top: .7em; }
.lore-choices { display: flex; flex-wrap: wrap; gap: .4em; }
.lore-app .lore-choice { position: relative; display: inline-flex; font-weight: 500; font-size: .9em; cursor: pointer; }
.lore-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lore-choice span { display: inline-block; padding: .4em .85em; border: 1px solid #cfd4dc; border-radius: 999px; background: #fff; transition: background .15s, border-color .15s; }
.lore-choice input:checked + span { background: var(--lore-primary); border-color: var(--lore-primary); color: #fff; }
.lore-choice input:focus-visible + span { outline: 2px solid var(--lore-accent); outline-offset: 2px; }

.lore-wizard { background: var(--lore-bg); border: 1px solid var(--lore-line); border-radius: var(--lore-radius); padding: 1.2em; max-width: 620px; }
.lore-wizard-progress { height: 6px; background: #e3e7ed; border-radius: 999px; overflow: hidden; display: none; }
.lore-wizard-progress span { display: block; height: 100%; width: 0; background: var(--lore-accent); transition: width .25s; }
.lore-wizard-count { display: none; margin: .4em 0 .9em; }
.lore-wizard.is-wizard .lore-wizard-progress, .lore-wizard.is-wizard .lore-wizard-count { display: block; }
.lore-wizard.is-wizard .lore-q { display: none; }
.lore-wizard.is-wizard .lore-q.is-current { display: block; animation: loreFade .2s ease; }
.lore-wizard.is-wizard .lore-q-text { font-size: 1.1em; }
.lore-wizard-nav { display: flex; flex-wrap: wrap; gap: .5em; margin-top: 1em; }
.lore-wizard-nav .lore-wiz-next, .lore-wizard-nav .lore-wiz-submit { margin-left: auto; }
.lore-wizard:not(.is-wizard) .lore-wiz-back, .lore-wizard:not(.is-wizard) .lore-wiz-next, .lore-wizard:not(.is-wizard) .lore-wiz-skip { display: none; }
@keyframes loreFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.lore-ask { background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px; padding: .5em .65em; margin: .55em 0; font-size: .9em; }
.lore-ask > summary { cursor: pointer; font-weight: 700; color: #93370d; }
.lore-ask[open] > summary { margin-bottom: .5em; }
.lore-q-form .lore-q { margin-bottom: .7em; }
.lore-q-form .lore-q-text { font-size: .9em; }
.lore-q-form .lore-choice span { padding: .3em .7em; font-size: .9em; }
.lore-move { width: 100%; }
.lore-move > summary { list-style: none; }
.lore-move > summary::-webkit-details-marker { display: none; }
.lore-move[open] > summary { margin-bottom: .5em; }
.lore-move form { background: var(--lore-bg); border-radius: 8px; padding: .6em .7em; }
.lore-answers { font-size: .85em; margin-top: .5em; }

/* Grouped questions */
.lore-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6em .8em; }
.lore-app .lore-q-subfield { font-weight: 600; font-size: .85em; }
.lore-app .lore-q-subfield span { display: block; color: var(--lore-muted); font-weight: 600; }

/* Paperwork */
.lore-paper { border: 1px solid var(--lore-line); border-radius: 8px; padding: .5em .65em; margin: .55em 0; background: #fbfcfd; font-size: .9em; }
.lore-paper > summary { cursor: pointer; font-weight: 700; color: var(--lore-primary); }
.lore-paper[open] > summary { margin-bottom: .4em; }
.lore-paper-list { list-style: none; margin: 0; padding: 0; }
.lore-paper-list li { padding: .5em 0; border-bottom: 1px solid var(--lore-line); }
.lore-paper-list li:last-child { border-bottom: 0; }
.lore-app .lore-paper-check { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em; font-weight: 500; }
.lore-paper-check input { margin: 0; width: 18px; height: 18px; flex: 0 0 18px; position: relative; top: 3px; }
.lore-paper-check span { flex: 1 1 60%; }
.lore-paper-list li.is-done .lore-paper-check span { color: var(--lore-muted); text-decoration: line-through; }
.lore-req { font-style: normal; font-size: .75em; font-weight: 700; padding: .05em .45em; border-radius: 999px; }
.lore-req.is-r { background: #fde8e8; color: #9b1c1c; }
.lore-req.is-cr { background: #fff4e5; color: #8a4b00; }
.lore-paper-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin: .35em 0 0 1.6em; }
.lore-fill-note { flex-basis: 100%; margin: .2em 0 0; }

/* Send all */
.lore-send { margin: .6em 0 .3em; }
.lore-send > summary { list-style: none; }
.lore-send > summary::-webkit-details-marker { display: none; }
.lore-send-body { background: #fff; border: 1px solid var(--lore-line); border-radius: 8px; padding: .7em .8em; margin-top: .5em; }
.lore-send-body .lore-q-text { margin: .5em 0 .3em; font-size: .9em; }
.lore-send-body .lore-check-label { margin: .25em 0; font-size: .9em; }
.lore-send-body label { margin-top: .5em; }

.lore-send-buttons { display: flex; flex-wrap: wrap; gap: .5em; }
.lore-btn.is-accent { background: var(--lore-accent); border-color: var(--lore-accent); }

/* Team */
.lore-table-wrap { overflow-x: auto; }
.lore-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.lore-table th, .lore-table td { text-align: left; padding: .55em .6em; border-bottom: 1px solid var(--lore-line); white-space: nowrap; }
.lore-table th { font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--lore-muted); }
.lore-dl { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: .3em 1em; margin: 0 0 1em; font-size: .92em; }
.lore-dl dt { color: var(--lore-muted); }
.lore-dl dd { margin: 0; }
.lore-panel h5 { margin: 1em 0 .4em; color: var(--lore-primary); }

/* Quick start */
.lore-quick-new { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: 0 0 1em; }
.lore-quick-label { font-weight: 700; margin-right: .25em; }
.lore-quick-btn { font: inherit; font-weight: 600; background: #fff; color: var(--lore-primary); border: 1px solid var(--lore-primary); border-radius: 999px; padding: .5em 1em; cursor: pointer; }
.lore-quick-btn:hover { background: var(--lore-primary); color: #fff; }
.lore-quick-new.is-highlight { animation: loreFade .3s ease; }

/* Install-on-phone steps */
.lore-install { position: relative; background: #fff; border: 1px solid var(--lore-line); border-left: 4px solid var(--lore-accent); border-radius: var(--lore-radius); padding: 1em 1.2em; margin: 0 0 1em; }
.lore-install h3 { margin-bottom: .2em; }
.lore-install ol { margin: .6em 0 0; padding-left: 1.3em; }
.lore-install li { margin: .3em 0; }
.lore-install-close { position: absolute; top: .4em; right: .6em; background: none; border: 0; font-size: 1.5em; line-height: 1; color: var(--lore-muted); cursor: pointer; }
.lore-install-ios, .lore-install-android, .lore-install-desktop { display: none; }
.lore-install.is-ios .lore-install-ios, .lore-install.is-android .lore-install-android, .lore-install.is-desktop .lore-install-desktop { display: block; }
.lore-install-go { margin-top: .6em; }
.lore-share-icon { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 .3em; font-size: .85em; }

/* Phone tab bar (shown on small screens only) */
.lore-tabbar { display: none; }

/* Hide the theme's big page title on member pages; the portal has its own header. */
body.lore-portal .entry-title,
body.lore-portal .page-title,
body.lore-portal .wp-block-post-title { display: none; }

@media (max-width: 782px) {
	.lore-app { font-size: 16px; padding-bottom: 84px; }
	.lore-app input[type=text], .lore-app input[type=email], .lore-app input[type=tel], .lore-app input[type=url],
	.lore-app input[type=date], .lore-app input[type=number], .lore-app select, .lore-app textarea { font-size: 16px; padding: .7em .75em; }

	/* Top bar: brand only; navigation moves to the bottom tab bar. */
	.lore-topbar { margin: 0 0 1em; padding: .75em 1em; position: sticky; top: 0; z-index: 50; }
	.lore-topbar .lore-nav a:not([href*="logout"]) { display: none; }
	.lore-app .lore-topbar .lore-nav a { padding: .3em .6em; font-size: .85em; font-weight: 500; }

	.lore-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff; border-top: 1px solid var(--lore-line); padding: .35em .25em calc(.35em + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(16,24,40,.06); }
	.lore-app .lore-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15em; text-decoration: none !important; color: var(--lore-muted) !important; font-size: .72em; font-weight: 600; padding: .3em 0; }
	.lore-tabbar svg { width: 24px; height: 24px; }
	.lore-app .lore-tabbar a.is-active { color: var(--lore-primary) !important; }
	.lore-app .lore-tabbar a.lore-tab-new { color: var(--lore-accent) !important; }
	.lore-tabbar a.lore-tab-new svg { width: 30px; height: 30px; }

	.lore-page-head h2 { font-size: 1.35em; }
	.lore-row { grid-template-columns: 1fr; gap: .75em; }
	.lore-panel { padding: 1em; border-radius: 12px; }

	/* Quick start becomes three big buttons. */
	.lore-quick-new { display: grid; grid-template-columns: 1fr; gap: .5em; }
	.lore-quick-btn { padding: .9em 1em; border-radius: 12px; text-align: left; font-size: 1em; }
	.lore-quick-btn:first-of-type { background: var(--lore-primary); color: #fff; }

	/* Board: swipe between stages, one column at a time. */
	.lore-boards, .lore-board-wrap, .lore-row > * { min-width: 0; }
	.lore-panel-head > .lore-tabs { flex: 1 1 100%; min-width: 0; }
	.lore-wizard-nav .lore-btn { white-space: nowrap; }
	.lore-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .25em; width: 100%; }
	.lore-tab { white-space: nowrap; padding: .55em 1em; }
	.lore-filter, .lore-filter select { width: 100%; }
	.lore-board { grid-auto-columns: 86%; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5em; }
	.lore-column { scroll-snap-align: start; min-height: 0; }
	.lore-new-card > summary { display: block; text-align: center; padding: .85em; border-radius: 12px; }

	/* Cards and buttons: thumb-sized. */
	.lore-card { padding: .9em; border-radius: 12px; }
	.lore-card-title { font-size: 1.05em; }
	.lore-btn, .lore-btn.is-small { padding: .7em 1em; font-size: .95em; border-radius: 10px; }
	.lore-card-actions { gap: .5em; }
	.lore-card-actions form, .lore-move, .lore-move > summary { flex: 1; }
	.lore-card-actions form:first-child:not(:last-child) { flex: 0 0 auto; }
	.lore-card-actions form button, .lore-move > summary { width: 100%; text-align: center; }
	.lore-card-details > summary, .lore-ask > summary { padding: .35em 0; }
	.lore-checklist li { margin: .45em 0; }
	.lore-checklist input { width: 20px; height: 20px; flex: 0 0 20px; }

	/* Guided questions: big tap targets, wizard fills the screen width. */
	.lore-choices { gap: .5em; }
	.lore-choice span { padding: .65em 1.05em; font-size: 1em; }
	.lore-q-form .lore-choice span { padding: .55em .9em; }
	.lore-wizard { max-width: none; margin: 0 -.25em; padding: 1em; }
	.lore-wizard.is-wizard .lore-q-text { font-size: 1.15em; }
	.lore-wizard-nav { position: sticky; bottom: 74px; background: var(--lore-bg); padding: .6em 0; margin-bottom: -.4em; }
	.lore-wizard-nav .lore-btn { flex: 1; text-align: center; }
	.lore-wizard-nav .lore-wiz-next, .lore-wizard-nav .lore-wiz-submit { flex: 2; }

	.lore-stats { grid-template-columns: 1fr 1fr; }
	.lore-stats > div:nth-child(3) { grid-column: 1 / -1; }
	.lore-dl { grid-template-columns: 1fr; gap: 0; }
	.lore-dl dd { margin-bottom: .5em; }
	.lore-grid { grid-template-columns: 1fr; }
	.lore-section { padding: .9em 1em 1em; }
	.lore-login { padding: 1em 0; }
	.lore-login-box { padding: 1.4em; }
}

/* Tax card lookup */
.lore-parcel { margin: .5em 0 .65em; padding: .55em .6em; border: 1px dashed var(--lore-line); border-radius: 8px; background: #fff; }
.lore-parcel > .lore-small { display: block; margin-top: .3em; }
.lore-parcel-out:empty { display: none; }
.lore-parcel-out { margin-top: .5em; }
.lore-parcel-hit { margin: .4em 0; }
.lore-parcel-site { font-weight: 700; }
.lore-parcel-warn { margin: .4em 0; padding: .4em .55em; border-radius: 6px; background: #fff4e5; color: #8a4b00; font-size: .9em; }
.lore-parcel-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45em .6em; margin-top: .45em; }
.lore-parcel-form label { display: flex; flex-direction: column; font-size: .85em; font-weight: 600; min-width: 0; }
.lore-parcel-form input, .lore-parcel-form textarea { width: 100%; box-sizing: border-box; font-size: 16px; padding: .35em .45em; border: 1px solid var(--lore-line); border-radius: 6px; font-weight: 400; }
.lore-parcel-form .is-wide { grid-column: 1 / -1; }
.lore-parcel-form p { margin: 0; }
.lore-parcel-pick { border: 1px solid var(--lore-line); border-radius: 6px; padding: .35em .5em; margin: .35em 0; }
.lore-parcel-pick > summary { cursor: pointer; font-weight: 600; }
.lore-parcel-pin { display: flex; gap: .4em; margin-top: .55em; }
.lore-parcel-pin input { flex: 1; min-width: 0; font-size: 16px; padding: .35em .45em; border: 1px solid var(--lore-line); border-radius: 6px; }

/* DocuSign review step */
.lore-review { margin-top: .6em; padding: .6em .65em; border: 1px solid var(--lore-line); border-radius: 8px; background: #fff; }
.lore-review-list { list-style: none; margin: .3em 0 .5em; padding: 0; }
.lore-review-list li { padding: .4em 0; border-bottom: 1px solid var(--lore-line); overflow-wrap: anywhere; }
.lore-review-list li:last-child { border-bottom: 0; }
.lore-review .lore-send-buttons { display: flex; flex-direction: column; align-items: stretch; gap: .45em; }

/* Records bot */
.lore-records { margin: .5em 0 .65em; padding: .55em .6em; border: 1px solid var(--lore-line); border-radius: 8px; background: #fff; }
.lore-records-head { display: flex; justify-content: space-between; align-items: center; gap: .5em; flex-wrap: wrap; }
.lore-record { margin-top: .5em; padding-top: .5em; border-top: 1px solid var(--lore-line); overflow-wrap: anywhere; }
.lore-record-title { font-weight: 700; display: flex; gap: .4em; align-items: center; flex-wrap: wrap; }
.lore-record.is-review .lore-chip { background: #fff4e5; color: #8a4b00; }
.lore-record.is-approved .lore-chip { background: #e8f6ee; color: #1d6b3d; }
.lore-record-actions { display: flex; gap: .4em; flex-wrap: wrap; margin-top: .4em; }

/* Easy Button */
.lore-easy { border: 2px solid var(--lore-accent, #b08d57); }
.lore-easy h3 { margin: 0 0 .25em; }
.lore-easy-form { display: flex; gap: .5em; flex-wrap: wrap; margin-top: .5em; }
.lore-easy-form input, .lore-easy-form select { flex: 1 1 220px; min-width: 0; font-size: 16px; padding: .6em .7em; border: 1px solid var(--lore-line); border-radius: 8px; }
.lore-easy-go, .lore-buyer-easy-go { flex: 0 0 auto; background: var(--lore-accent, #b08d57); color: #111 !important; border: 0; border-radius: 999px; padding: .7em 1.4em; font: inherit; font-weight: 800; font-size: 1.05em; letter-spacing: .02em; box-shadow: 0 3px 0 rgba(0,0,0,.35); cursor: pointer; }
.lore-easy-go:active, .lore-buyer-easy-go:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.lore-easy-go:disabled, .lore-buyer-easy-go:disabled { opacity: .6; }
.lore-buyer-easy-form { display: flex; gap: .5em; flex-wrap: wrap; margin-top: .5em; }
.lore-buyer-easy-form input, .lore-buyer-easy-form select { flex: 1 1 220px; min-width: 0; font-size: 16px; padding: .6em .7em; border: 1px solid var(--lore-line); border-radius: 8px; }
.lore-easy-out:empty { display: none; }
.lore-easy-out { margin-top: .7em; }
.lore-easy-hit { border: 1px solid var(--lore-line); border-radius: 8px; padding: .6em .7em; margin: .5em 0; background: #fff; overflow-wrap: anywhere; }
.lore-easy-fact { display: flex; justify-content: space-between; gap: .6em; padding: .2em 0; border-bottom: 1px dashed var(--lore-line); }
.lore-easy-fact strong { text-align: right; }
.lore-easy-hit .lore-btn { margin-top: .55em; width: 100%; }
.lore-easy-list { margin: .3em 0 .7em 1.1em; padding: 0; }
.lore-easy-list li { margin: .2em 0; }
.lore-easy-finish .lore-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .45em .6em; }
.lore-easy-finish .lore-sub { display: flex; flex-direction: column; font-size: .88em; font-weight: 600; }
.lore-easy-finish input, .lore-easy-finish select { font-size: 16px; padding: .45em .5em; border: 1px solid var(--lore-line); border-radius: 6px; width: 100%; box-sizing: border-box; font-weight: 400; }
.lore-easy-finish .lore-q { margin: .6em 0; }
.lore-easy-finish .lore-easy-done { width: 100%; margin-top: .4em; }
.lore-easy-ready { margin: .4em 0; padding: .45em .6em; background: #e8f6ee; color: #1d6b3d; border-radius: 6px; font-weight: 600; }
.lore-records-guided { margin-top: .35em; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.lore-records-guided p { flex-basis: 100%; margin: 0; }

/* Website box */
.lore-web { margin: .5em 0; padding: .45em .6em; border: 1px solid var(--lore-line); border-radius: 8px; background: #fff; }
.lore-web > summary { cursor: pointer; font-weight: 600; }
.lore-web-form .lore-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .45em .6em; margin: .5em 0; }
.lore-web-form .lore-sub { display: flex; flex-direction: column; font-size: .88em; font-weight: 600; margin-bottom: .45em; }
.lore-web-form input[type=text], .lore-web-form select, .lore-web-form textarea { font-size: 16px; padding: .4em .5em; border: 1px solid var(--lore-line); border-radius: 6px; width: 100%; box-sizing: border-box; font-weight: 400; }
.lore-web-form .lore-web-save { width: 100%; }
.lore-chip-btn { border: 1px solid var(--lore-line); background: #fff; border-radius: 999px; padding: .25em .7em; margin: .15em .1em; font-size: .85em; cursor: pointer; }
.lore-chip-btn.is-on { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.lore-check { display: flex; gap: .4em; align-items: center; font-size: .9em; margin: .3em 0 .5em; }

/* Team meter */
.lore-meter { background: #0b0b0b; color: #fff; border-radius: 12px; padding: .8em 1em .9em; margin: 0 0 1em; }
.lore-meter.is-empty { background: #f3efe6; color: #3a3324; }
.lore-meter.is-empty a { color: inherit; font-weight: 700; }
.lore-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; flex-wrap: wrap; margin-bottom: .45em; }
.lore-meter-head strong { color: var(--lore-accent, #b08d57); letter-spacing: .04em; text-transform: uppercase; font-size: .85em; }
.lore-meter-head span { font-size: .8em; opacity: .7; }
.lore-meter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.lore-meter-item { display: flex; flex-direction: column; min-width: 0; }
.lore-meter-num { font-size: clamp(1.25em, 5vw, 1.9em); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.lore-meter-label { font-size: .8em; opacity: .75; }
.lore-meter-bar { display: block; height: 6px; background: rgba(255,255,255,.15); border-radius: 99px; margin-top: .35em; overflow: hidden; }
.lore-meter-bar span { display: block; height: 100%; background: var(--lore-accent, #b08d57); border-radius: 99px; }
.lore-meter-goal { font-size: .72em; opacity: .7; margin-top: .15em; }
.lore-prod-form .lore-sub { display: flex; flex-direction: column; font-size: .88em; font-weight: 600; margin: .4em 0; }
.lore-prod-form textarea, .lore-prod-form input[type=text] { font-size: 16px; padding: .4em .5em; border: 1px solid var(--lore-line); border-radius: 6px; }

/* Listing agreement details + broker checklist */
.lore-la, .lore-kwre { margin: .5em 0; padding: .45em .6em; border: 1px solid var(--lore-line); border-radius: 8px; background: #fff; }
.lore-la > summary, .lore-kwre > summary, .lore-la-easy > summary { cursor: pointer; font-weight: 600; }
.lore-la-easy { margin: .6em 0; padding: .4em .5em; border: 1px dashed var(--lore-line); border-radius: 8px; }
.lore-la-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: .4em .7em; margin: .4em 0 .7em; }
.lore-la-q { display: flex; flex-direction: column; font-size: .86em; font-weight: 600; }
.lore-la-q[hidden] { display: none; }
.lore-la-q select, .lore-la-q input { font-size: 16px; padding: .4em .45em; border: 1px solid var(--lore-line); border-radius: 6px; font-weight: 400; margin-top: .15em; }
.lore-la-q .lore-small { font-weight: 400; }
.lore-count.is-done { background: #e8f6ee; color: #1d6b3d; }
.lore-kwre-list { margin: .6em 0 0 1.1em; padding: 0; }
.lore-kwre-list li { margin: 0 0 .7em; }
.lore-kwre-list li.is-done strong { color: #1d6b3d; }
.lore-kwre-row { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.lore-kwre-bot { margin-top: .25em; padding: .35em .5em; background: #f3efe6; border-radius: 6px; font-size: .86em; }

/* Keep the send/review panel inside the card on phones (long emails and button labels were pushing it out). */
.lore-send, .lore-send form, .lore-review { min-width: 0; max-width: 100%; box-sizing: border-box; }
.lore-review { overflow-wrap: anywhere; word-break: break-word; }
.lore-review * { max-width: 100%; box-sizing: border-box; }
.lore-review .lore-btn, .lore-review button { white-space: normal; width: 100%; }
@media (max-width: 600px) {
	.lore-review { margin-left: 0; margin-right: 0; padding: .55em; }
}

/* ---------- Listing conversation ---------- */
html.lore-convo-on, html.lore-convo-on body { overflow: hidden; }
.lore-convo { position: fixed; inset: 0; z-index: 100000; background: #fff; display: flex; flex-direction: column; font-size: 17px; color: #1d2230; }
.lore-convo-head { background: var(--lore-primary, #1d3557); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + .6em) 1em .7em; }
.lore-convo-top { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.lore-convo-where { font-size: .82em; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lore-convo-x { background: none; border: 0; color: #fff; font-size: 1.8em; line-height: 1; padding: 0 .2em; cursor: pointer; }
.lore-convo-bar { height: 5px; background: rgba(255,255,255,.25); border-radius: 3px; margin: .5em 0; overflow: hidden; }
.lore-convo-bar span { display: block; height: 100%; width: 0; background: var(--lore-accent, #b08d57); transition: width .3s; }
.lore-convo-hand { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: .3em .9em; font-size: .85em; cursor: pointer; }
.lore-convo-body { flex: 1; overflow-y: auto; padding: 1.2em 1.1em 2em; max-width: 680px; width: 100%; margin: 0 auto; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.lore-convo-foot { display: flex; gap: .6em; padding: .7em 1em calc(env(safe-area-inset-bottom, 0px) + .7em); border-top: 1px solid #e3e6ec; background: #fafbfc; }
.lore-convo-foot .lore-btn { flex: 1; min-height: 48px; font-size: 1em; }
.lore-convo-foot .lore-btn:last-child { flex: 2; }
.lore-convo-chapter { font-size: .85em; color: #6b7280; margin-bottom: .8em; padding: .5em .7em; background: #f4f1ea; border-left: 3px solid var(--lore-accent, #b08d57); border-radius: 4px; }
.lore-convo-chapter strong { color: var(--lore-primary, #1d3557); }
.lore-convo-q { font-size: 1.35em; line-height: 1.3; margin: .2em 0 .5em; color: var(--lore-primary, #1d3557); }
.lore-convo-help { color: #6b7280; font-size: .9em; margin: .3em 0 1em; }
.lore-convo-choices { display: flex; flex-direction: column; gap: .55em; }
.lore-convo-choice { text-align: left; padding: .9em 1em; min-height: 52px; border: 2px solid #d6dbe4; border-radius: 10px; background: #fff; font-size: 1em; color: #1d2230; cursor: pointer; }
.lore-convo-choice[aria-pressed="true"] { border-color: var(--lore-primary, #1d3557); background: #eef2f8; font-weight: 600; }
.lore-chips { display: flex; flex-wrap: wrap; gap: .5em; }
.lore-chip { padding: .7em 1em; min-height: 46px; border: 2px solid #d6dbe4; border-radius: 999px; background: #fff; font-size: .95em; color: #1d2230; cursor: pointer; }
.lore-chip[aria-pressed="true"] { border-color: var(--lore-accent, #b08d57); background: var(--lore-accent, #b08d57); color: #fff; }
.lore-convo-fields { display: flex; flex-direction: column; gap: .8em; }
.lore-convo-field span { display: block; font-size: .85em; color: #4b5563; margin-bottom: .25em; }
.lore-convo-field input, .lore-convo-field select, .lore-convo-field textarea, .lore-convo-row input { width: 100%; box-sizing: border-box; font-size: 16px; padding: .7em .75em; border: 1px solid #c9cfd9; border-radius: 8px; background: #fff; }
.lore-convo-rows { display: flex; flex-direction: column; gap: .7em; }
.lore-convo-row { display: grid; grid-template-columns: 1fr 1fr; gap: .4em .6em; }
.lore-convo-rowlabel { grid-column: 1 / -1; font-weight: 600; font-size: .92em; color: var(--lore-primary, #1d3557); }
.lore-convo-facts { padding-left: 1.1em; line-height: 1.5; }
.lore-convo-facts li { margin-bottom: .5em; }
.lore-convo-net { width: 100%; border-collapse: collapse; font-size: .92em; }
.lore-convo-net th, .lore-convo-net td { padding: .45em .3em; border-bottom: 1px solid #eceff3; text-align: right; white-space: nowrap; }
.lore-convo-net th { text-align: left; font-weight: 500; color: #4b5563; white-space: normal; }
.lore-convo-net tr:first-child td { font-weight: 600; }
.lore-convo-net tr.is-net td, .lore-convo-net tr.is-net th { font-weight: 700; color: var(--lore-primary, #1d3557); border-top: 2px solid var(--lore-primary, #1d3557); }
.lore-convo-flags li { margin-bottom: .4em; }
.lore-convo-review .lore-btn { width: 100%; min-height: 52px; margin-top: .5em; font-size: 1em; }
.lore-convo-handback { font-size: 1.4em; color: var(--lore-primary, #1d3557); text-align: center; margin-top: 2em; }
.lore-convo.is-seller .lore-convo-head { background: var(--lore-accent, #b08d57); }
.lore-convo.is-seller .lore-convo-q { font-size: 1.5em; }
.lore-convo-launch { margin: .8em 0; padding: .8em; background: #f4f1ea; border-radius: 8px; }
.lore-convo-launch .lore-btn { width: 100%; }
.lore-convo-launch .lore-muted { font-size: .85em; margin: .4em 0 0; color: #6b7280; }

/* The conversation lives outside the dashboard wrapper, so it carries its own button and type styles. */
.lore-convo, .lore-convo button, .lore-convo input, .lore-convo select, .lore-convo textarea { font-family: inherit; }
.lore-convo .lore-convo-q { font-family: inherit; font-weight: 700; }
.lore-convo .lore-btn { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--lore-primary, #1d3557); background: var(--lore-primary, #1d3557); color: #fff; border-radius: 10px; padding: .6em 1em; font-weight: 600; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.lore-convo .lore-btn.is-ghost { background: #fff; color: var(--lore-primary, #1d3557); border-color: #c9cfd9; }
.lore-convo .lore-btn:disabled { opacity: .45; cursor: default; }
.lore-kwre-links { font-size: .82em; color: var(--lore-muted, #6b7280); margin-top: .3em; line-height: 1.7; }
.lore-kwre-links a { display: inline-block; margin-right: .7em; white-space: nowrap; }

/* Listing Easy Button paths */
.lore-easy-paths { display: grid; gap: .6rem; margin: .5rem 0 1rem; }
.lore-easy-path { display: block; width: 100%; text-align: left; padding: .85rem 1rem; border: 1px solid #d6d9de; border-left: 4px solid var(--lore-accent, #b08d57); border-radius: 10px; background: #fff; color: #1f2937; cursor: pointer; font: inherit; }
.lore-easy-path:hover, .lore-easy-path:focus-visible { border-color: var(--lore-primary, #1d3557); background: #f7f8fa; }
.lore-easy-path strong { display: block; color: var(--lore-primary, #1d3557); font-size: 1.02rem; margin-bottom: .2rem; }
.lore-easy-path span { display: block; font-size: .88rem; color: #4b5563; line-height: 1.35; }
.lore-easy-path:disabled { opacity: .6; cursor: wait; }

/* Pre-listing package box */
.lore-prelist { border: 1px solid #e3e5e8; border-radius: 10px; padding: .6rem .9rem; margin: .8rem 0; background: #fff; }
.lore-prelist > summary { cursor: pointer; font-weight: 600; color: var(--lore-primary, #1d3557); }
.lore-prelist textarea { width: 100%; box-sizing: border-box; }
.lore-prelist-comps-list { display: grid; gap: .35rem; margin: .5rem 0; max-width: 100%; }
.lore-prelist-comps-list .lore-check-label { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
.lore-prelist-range { background: #f6f3ec; border-left: 4px solid var(--lore-accent, #b08d57); padding: .5rem .7rem; border-radius: 6px; }
.lore-prelist-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.lore-prelist .lore-badge { background: var(--lore-accent, #b08d57); color: #fff; font-size: .72rem; padding: .1rem .45rem; border-radius: 99px; margin-left: .35rem; vertical-align: middle; }

/* Offer Easy Button on buyer cards */
.lore-offer-box { border: 1px solid #e3e5e8; border-left: 4px solid var(--lore-accent, #b08d57); border-radius: 10px; padding: .6rem .9rem; margin: .8rem 0; background: #fff; }
.lore-offer-start { display: flex; flex-wrap: wrap; gap: .5rem; }
.lore-offer-start input { flex: 1 1 14rem; min-width: 0; }
.lore-prelist { overflow: hidden; }
.lore-prelist input, .lore-prelist select, .lore-prelist textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.lore-prelist input[type=checkbox] { width: auto; flex: 0 0 auto; }
.lore-prelist .lore-la-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr)); gap: .5rem; }
.lore-prelist .lore-la-grid label, .lore-prelist-kind { display: block; min-width: 0; }
.lore-offer-box input { box-sizing: border-box; max-width: 100%; }

/* Nothing on a card may be wider than the card (narrow board columns on phones). */
.lore-card { min-width: 0; overflow-wrap: anywhere; }
.lore-card input:not([type=checkbox]):not([type=radio]), .lore-card select, .lore-card textarea, .lore-card button, .lore-card .lore-btn, .lore-card .lore-review, .lore-card details, .lore-card form, .lore-card table { box-sizing: border-box; max-width: 100%; min-width: 0; }
.lore-card .lore-la-q, .lore-card .lore-sub, .lore-card .lore-q { min-width: 0; }
.lore-card .lore-la-q select, .lore-card .lore-la-q input, .lore-card .lore-q select { width: 100%; }
.lore-prelist-won-box { margin: 0 -.4rem; }
.lore-prelist-won-box .lore-easy-path { padding: .7rem .75rem; }
.lore-card .lore-kwre-links a, .lore-card a { white-space: normal; overflow-wrap: anywhere; }

/* Toasts (instead of browser alert popups). */
.lore-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 30rem); background: #111; color: #fff; border-left: 4px solid var(--lore-accent, #b08d57); border-radius: 10px; padding: .75em 1em; font-size: .95em; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 100000; opacity: 0; transition: opacity .2s; }
.lore-toast.is-on { opacity: 1; }
.lore-toast.is-error { border-left-color: #d92d20; }

/* Orientation panel */
.lore-tour { position: relative; background: #111; color: #fff; border: 0; border-bottom: 4px solid var(--lore-accent, #b08d57); }
.lore-tour h3 { color: #fff; margin: 0 0 .6em; }
.lore-tour-kicker { color: var(--lore-accent, #b08d57); text-transform: uppercase; letter-spacing: .08em; font-size: .78em; font-weight: 700; margin: 0 0 .2em; }
.lore-tour-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1em; align-items: start; }
.lore-tour-video video { width: 100%; border-radius: 10px; display: block; background: #000; }
.lore-tour-steps { margin: 0; padding-left: 1.2em; line-height: 1.45; font-size: .95em; color: #e6e6e6; }
.lore-tour-steps li { margin-bottom: .55em; }
.lore-tour-steps a { color: var(--lore-accent, #b08d57) !important; }
.lore-tour-hide { background: none; border: 0; color: #fff; cursor: pointer; }
button.lore-tour-hide[aria-label] { position: absolute; top: .5em; right: .6em; font-size: 1.6em; line-height: 1; opacity: .8; }
.lore-tour-foot { margin: .8em 0 0; display: flex; flex-wrap: wrap; gap: .6em; align-items: center; color: #bbb; }
.lore-tour-foot .lore-btn.is-ghost { background: transparent; color: #fff !important; border-color: #666; }
@media (max-width: 720px) { .lore-tour-body { grid-template-columns: 1fr; } }

/* Resources */
.lore-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: .7em; }
.lore-res-item { display: flex; flex-direction: column; gap: .25em; border: 1px solid var(--lore-line); border-radius: 10px; padding: .7em .8em; background: #fff; min-width: 0; }
.lore-res-title { font-weight: 700; color: #111 !important; text-decoration: none; overflow-wrap: anywhere; }
.lore-res-title span { color: var(--lore-accent, #b08d57); }
.lore-res-thumb { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 8px; background: #111; margin-bottom: .35em; }
.lore-res-thumb img { max-height: 80px; max-width: 90%; object-fit: contain; }
.lore-res-remove { margin: .2em 0 0; }
.lore-link-btn { background: none; border: 0; padding: 0; color: #b42318; font-size: .82em; cursor: pointer; text-decoration: underline; }
.lore-res-swag { background: #faf6ee; border: 1px dashed var(--lore-accent, #b08d57); border-radius: 10px; padding: .8em 1em; }
.lore-res-add input[type=file] { font-size: .9em; }

/* ---------- Card tiles and the full card sheet ---------- */
.lore-card .lore-card-body { display: none; }
.lore-card-title { cursor: pointer; }
.lore-card-open { display: flex; align-items: center; justify-content: space-between; gap: .5em; width: 100%; margin-top: .55em; padding: .55em .7em; border: 0; border-radius: 8px; background: #f6f3ec; color: #111; font: inherit; font-size: .88em; text-align: left; cursor: pointer; }
.lore-card-open:hover { background: #efe8da; }
.lore-card-next { font-weight: 600; line-height: 1.3; }
.lore-card-next.is-date { color: #b42318; }
.lore-card-next.is-done { color: #1d6b3d; }
.lore-card-open-go { flex: 0 0 auto; font-weight: 700; color: var(--lore-accent, #b08d57); }
html.lore-sheet-open, html.lore-sheet-open body { overflow: hidden; }
html.lore-sheet-open body::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 8999; }
.lore-card.is-open { position: fixed; inset: 0; z-index: 9000; margin: 0; border: 0; border-radius: 0; padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f6f6f4; box-shadow: none; }
.lore-card.is-open > :not(.lore-card-body) { display: none !important; }
.lore-card.is-open .lore-card-body { display: flex; flex-direction: column; min-height: 100%; }
.lore-card-sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .8em; background: #111; color: #fff; padding: calc(.7em + env(safe-area-inset-top)) 1em .7em; }
.lore-card-close { background: none; border: 1px solid #555; color: #fff; border-radius: 999px; padding: .35em .8em; font: inherit; font-size: .88em; cursor: pointer; flex: 0 0 auto; }
.lore-card-sheet-title { display: flex; flex-direction: column; min-width: 0; }
.lore-card-sheet-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lore-card-sheet-title span { font-size: .8em; color: var(--lore-accent, #b08d57); }
.lore-card-tabs { position: sticky; top: calc(3.3em + env(safe-area-inset-top)); z-index: 2; display: flex; gap: .3em; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--lore-line); padding: .4em .6em; -webkit-overflow-scrolling: touch; }
.lore-card-tab { flex: 0 0 auto; background: none; border: 0; border-radius: 999px; padding: .45em .9em; font: inherit; font-size: .9em; font-weight: 600; color: #555; cursor: pointer; }
.lore-card-tab.is-active { background: #111; color: #fff; }
.lore-card-panel { display: none; padding: 1em; flex: 1 0 auto; }
.lore-card-panel.is-active { display: block; }
.lore-card-panel > details, .lore-card-panel > div, .lore-card-panel > section, .lore-card-panel > form { background: #fff; border-radius: 10px; margin: 0 0 .8em; }
.lore-card-panel > details { padding: .6em .8em; border: 1px solid var(--lore-line); }
.lore-card-foot { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; background: #fff; border-top: 1px solid var(--lore-line); padding: .7em 1em calc(.7em + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.lore-card-foot .lore-card-do { flex: 1 1 12rem; }
.lore-card-foot .lore-card-actions { display: flex; flex-wrap: wrap; gap: .4em; margin: 0; }
.lore-card-foot .lore-move[open] { flex-basis: 100%; }
.is-flash { animation: loreFlash 1.6s ease; }
@keyframes loreFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--lore-accent, #b08d57); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (min-width: 900px) {
	.lore-card.is-open { left: auto; width: min(780px, 100%); box-shadow: -12px 0 40px rgba(0,0,0,.25); }
}

/* ---------- Today ---------- */
.lore-today-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; }
.lore-today-head h3 { margin: 0; }
.lore-today-list { list-style: none; margin: .6em 0 0; padding: 0; display: grid; gap: .45em; }
.lore-today-item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "kind addr" "kind what"; column-gap: .7em; align-items: center; padding: .6em .7em; border: 1px solid var(--lore-line); border-radius: 10px; background: #fff; color: #111 !important; text-decoration: none; }
.lore-today-item:hover { border-color: var(--lore-accent, #b08d57); }
.lore-today-kind { grid-area: kind; font-size: .68em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #111; border-radius: 6px; padding: .35em .5em; text-align: center; max-width: 6.5em; line-height: 1.2; }
.lore-today-kind.is-date { background: #b42318; }
.lore-today-item strong { grid-area: addr; overflow-wrap: anywhere; }
.lore-today-item > span:last-child { grid-area: what; font-size: .88em; color: #444; }

/* ---------- Phones: boards as a vertical list of stages ---------- */
@media (max-width: 720px) {
	.lore-board { display: block !important; overflow: visible !important; }
	.lore-column { min-height: 0 !important; margin-bottom: .6em; padding: .55em .6em; }
	.lore-column:not(:has(.lore-card)) { padding: .4em .6em; opacity: .75; }
	.lore-column:not(:has(.lore-card)) > :not(h4) { display: none; }
	.lore-column h4 { margin: 0 0 .4em; }
}

/* ---------- Start panel ---------- */
.lore-start h3 { margin: 0 0 .6em; }
.lore-start-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; }
.lore-start-choice { display: flex; flex-direction: column; align-items: flex-start; gap: .15em; padding: .8em .8em; border: 1px solid var(--lore-line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: #111; min-width: 0; }
.lore-start-choice strong { font-size: 1.05em; }
.lore-start-choice span { font-size: .78em; color: #666; }
.lore-start-choice:hover { border-color: var(--lore-accent, #b08d57); }
.lore-start-choice.is-active { background: #111; border-color: #111; color: #fff; }
.lore-start-choice.is-active span { color: var(--lore-accent, #b08d57); }
.lore-start-pane { margin-top: .8em; }
.lore-start-pane > .lore-panel { margin: 0; border: 0; padding: 0; box-shadow: none; background: transparent; }
.lore-start-pane > .lore-panel h3 { display: none; }
.lore-start-offer { border: 0; padding: 0; margin: 0; }
.lore-start-offer select { width: 100%; font-size: 16px; padding: .5em; border: 1px solid var(--lore-line); border-radius: 8px; margin: .25em 0 .5em; }
.lore-start-blank { margin-top: .8em; font-size: .9em; }
.lore-start-blank summary { cursor: pointer; color: #555; }
.lore-start-blank-btns { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .5em; }

.lore-card-tabs { gap: .15em; padding: .4em .4em; }
.lore-card-tab { padding: .45em .7em; font-size: .86em; }
.lore-today-kind { min-width: 4.6em; }

/* Background job progress (broker checks) */
.lore-job { margin: 10px 0 6px; }
.lore-job-bar { height: 8px; border-radius: 999px; background: #eee; overflow: hidden; }
.lore-job-bar span { display: block; height: 100%; background: var(--lore-gold, #c9a227); transition: width .6s ease; }
.lore-job-text { margin-top: 4px; }
.lore-job-failed { color: #a33; }

.lore-undo { display: inline; margin-left: .5em; }
.lore-undo .lore-link { font-weight: 600; }

/* Signatures on the card */
.lore-sigs:empty { display: none; }
.lore-sigs { border: 1px solid var(--lore-line); border-radius: 12px; padding: .8em 1em; margin: 0 0 1em; background: #fff; }
.lore-sigs-head { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin-bottom: .4em; }
.lore-sig { border-top: 1px solid var(--lore-line); padding: .6em 0; }
.lore-sig-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4em; font-weight: 600; }
.lore-sig.is-completed .lore-chip { background: #e9f6ec; color: #1d6b33; }
.lore-sig.is-declined .lore-chip, .lore-sig.is-voided .lore-chip { background: #fbeaea; color: #a33; }
.lore-sig.is-sent .lore-chip, .lore-sig.is-delivered .lore-chip { background: #fff6dc; color: #7a5b00; }
.lore-sig-review { margin: .35em 0; }
.lore-sig-ok { color: #1d6b33; font-size: .9em; font-weight: 600; }
.lore-sig-returned { background: #fff6dc; border-left: 3px solid var(--lore-gold, #c9a227); padding: .45em .6em; border-radius: 6px; font-size: .92em; }
.lore-sig-actions, .lore-q-actions { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .35em; }
.lore-sig-note { flex-basis: 100%; display: flex; flex-direction: column; gap: .4em; margin-top: .4em; }
.lore-sig-note textarea { width: 100%; max-width: 100%; box-sizing: border-box; }

/* Compliance queue */
.lore-q-group h3 { display: flex; align-items: center; gap: .5em; margin: 0 0 .2em; }
.lore-q-group > summary { cursor: pointer; list-style: none; }
.lore-q-group > summary h3 { display: inline-flex; }
.lore-count.is-hot { background: var(--lore-gold, #c9a227); color: #111; }
.lore-q-list { list-style: none; margin: .6em 0 0; padding: 0; }
.lore-q-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6em; border-top: 1px solid var(--lore-line); padding: .7em 0; }
.lore-q-main { display: flex; flex-direction: column; gap: .15em; min-width: 0; flex: 1 1 16rem; }
.lore-q-main a { color: inherit; text-decoration: none; }
.lore-q-row.is-approved { opacity: .75; }
.lore-today-review { display: block; background: #111; color: #fff; border-radius: 10px; padding: .7em .9em; margin: .2em 0 .7em; text-decoration: none; }
.lore-today-review strong { color: var(--lore-gold, #c9a227); }
.lore-sig .lore-chip { font-size: .78em; padding: .2em .65em; border: 0; }

/* Weekly seller report box */
.lore-report { border: 1px solid var(--lore-line); border-radius: 12px; padding: .7em 1em; margin: 1em 0; background: #fff; }
.lore-report > summary { cursor: pointer; font-weight: 600; }
.lore-report .lore-field { display: flex; flex-direction: column; gap: .25em; margin: .6em 0; }
.lore-report .lore-field input, .lore-report .lore-field textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.lore-report-btns { display: flex; flex-wrap: wrap; gap: .4em; margin: .6em 0; }
.lore-report-showings { border-top: 1px solid var(--lore-line); margin-top: .8em; padding-top: .6em; }
.lore-report-showings ul { list-style: none; margin: .4em 0; padding: 0; }
.lore-report-showings li { display: flex; gap: .5em; align-items: baseline; padding: .3em 0; border-bottom: 1px dashed var(--lore-line); font-size: .92em; }
.lore-report-showings li span { color: #777; min-width: 5.5em; }
.lore-report-showings li .lore-link { margin-left: auto; }
.lore-report-showing { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .4em; }
.lore-report-showing input[type="text"] { flex: 1 1 10rem; min-width: 0; }

/* Journey: listing appointment (or first buyer meeting) to closing */
.lore-journey { padding: .55em 1em .5em; background: #111; color: #ddd; }
.lore-journey-bar { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; }
.lore-journey-bar li { flex: 1 1 0; height: 6px; border-radius: 3px; background: #3a3a3a; margin: 0; }
.lore-journey-bar li.is-done { background: #8a8a8a; }
.lore-journey-bar li.is-now { background: var(--lore-gold, #c9a227); box-shadow: 0 0 0 2px rgba(201,162,39,.25); }
.lore-journey-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2em 1em; font-size: .82em; margin-top: .4em; }
.lore-journey-text strong { color: #fff; }
.lore-journey-next { color: #aaa; }
.lore-card-close { white-space: nowrap; }
.lore-card-sheet-head .lore-card-close { background: var(--lore-gold, #c9a227); border-color: var(--lore-gold, #c9a227); color: #111; font-weight: 700; }

.lore-paper-alldone { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .7em; background: #faf6ea; border: 1px solid #ecdfb5; border-radius: 10px; padding: .6em .8em; margin: .6em 0; }

/* WordPress admin bar (admins only) sits on top of the page: start the card below it. */
body.admin-bar .lore-card.is-open { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .lore-card.is-open { top: 46px; }
}

/* My active listings */
.lore-mylist-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; flex-wrap: wrap; }
.lore-mylist-head h3 { margin: 0; display: flex; align-items: center; gap: .5em; }
.lore-mylist-list { list-style: none; margin: .6em 0 0; padding: 0; }
.lore-mylist-item { border-top: 1px solid var(--lore-line); }
.lore-mylist-item > details > summary { display: flex; align-items: center; gap: .8em; padding: .7em 0; cursor: pointer; list-style: none; }
.lore-mylist-item > details > summary::-webkit-details-marker { display: none; }
.lore-mylist-photo { flex: 0 0 72px; height: 54px; border-radius: 8px; background: #e9e7e1 center / cover no-repeat; }
.lore-mylist-main { display: flex; flex-direction: column; gap: .15em; min-width: 0; flex: 1 1 auto; }
.lore-mylist-addr { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lore-mylist-status { display: inline-block; font-size: .78em; font-weight: 700; padding: .1em .55em; border-radius: 999px; background: #eef6ee; color: #1d6b33; margin-right: .3em; }
.lore-mylist-status.is-under-contract { background: #fff6dc; color: #7a5b00; }
.lore-mylist-status.is-coming-soon { background: #eef0fb; color: #33408f; }
.lore-mylist-views { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; }
.lore-mylist-views strong { font-size: 1.35em; }
.lore-mylist-body { padding: 0 0 1em; }
.lore-mylist-chart { display: flex; align-items: flex-end; gap: 2px; height: 70px; padding: 4px 0; border-bottom: 1px solid var(--lore-line); }
.lore-mylist-chart span { flex: 1 1 0; background: var(--lore-gold, #c9a227); border-radius: 2px 2px 0 0; min-height: 2px; }
.lore-mylist-chart span.is-zero { background: #e5e2d8; }
.lore-mylist-chart-note { display: flex; justify-content: space-between; gap: .5em; margin-top: .2em; }
.lore-mylist-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr)); gap: .5em; margin: .8em 0 .3em; }
.lore-mylist-stats div { background: #f6f5f1; border-radius: 8px; padding: .5em .6em; display: flex; flex-direction: column; }
.lore-mylist-stats strong { font-size: 1.2em; }
.lore-mylist-stats span { font-size: .78em; color: #666; }
.lore-mylist-btns { display: flex; flex-wrap: wrap; gap: .4em; }

.lore-mylist-addr { white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lore-mylist-views { min-width: 3.2em; }
.lore-mylist-views .lore-small { white-space: nowrap; }
@media (max-width: 480px) { .lore-mylist-photo { flex-basis: 56px; height: 44px; } }

.lore-ml-send { margin-top: .6em; }
.lore-ml-send > summary { list-style: none; display: inline-flex; }
.lore-ml-send > summary::-webkit-details-marker { display: none; }
.lore-ml-send-form { background: #f6f5f1; border-radius: 10px; padding: .7em .8em; margin-top: .5em; }
.lore-ml-send-form .lore-field { display: flex; flex-direction: column; gap: .25em; margin-bottom: .5em; }
.lore-ml-send-form input, .lore-ml-send-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.lore-ml-send-form button { margin-right: .5em; }

/* Get set up checklist */
.lore-onboard-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; }
.lore-onboard-head h3 { margin: 0; }
.lore-onboard .lore-progress { margin: .5em 0 .4em; }
.lore-onboard-list { list-style: none; margin: 0; padding: 0; }
.lore-onboard-list li { display: flex; align-items: center; gap: .7em; padding: .55em 0; border-top: 1px solid var(--lore-line); }
.lore-onboard-tick { flex: 0 0 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid #cfc8b4; display: inline-flex; align-items: center; justify-content: center; font-size: .85em; font-weight: 700; color: #111; }
.lore-onboard-list li.is-done .lore-onboard-tick { background: var(--lore-gold, #c9a227); border-color: var(--lore-gold, #c9a227); }
.lore-onboard-list li.is-done .lore-onboard-text strong { color: #888; text-decoration: line-through; }
.lore-onboard-text { display: flex; flex-direction: column; gap: .1em; flex: 1 1 auto; min-width: 0; }
.lore-onboard-go { flex: 0 0 auto; }
@media (max-width: 520px) { .lore-onboard-list li { flex-wrap: wrap; } .lore-onboard-go { margin-left: 2.2em; } }
.lore-onboard-list li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; align-items: center; column-gap: .7em; row-gap: .35em; }
.lore-onboard-list li .lore-onboard-go { margin-left: 0; }
@media (max-width: 520px) {
	.lore-onboard-list li { grid-template-columns: 1.6em minmax(0, 1fr); }
	.lore-onboard-list li .lore-onboard-go { grid-column: 2; }
}
.lore-onboard-tick { width: 1.5em; height: 1.5em; aspect-ratio: 1; box-sizing: border-box; }
