/* BioStory builder.
   Layout: full-screen shell (ruby top bar, ivory page) → home = hero with sample phone, how it works,
   designs, price; editing = narrow column with progress bar, cards, sticky action bar on phones.
   Everything is scoped to .bs-app / body.bs-shell so it also works inside a theme. */

.bs-app, body.bs-shell {
	--bs-ruby: #6e1423;
	--bs-ruby-deep: #4f0d18;
	--bs-gold: #c39237;
	--bs-gold-soft: #e9cf8f;
	--bs-ivory: #fffaf2;
	--bs-paper: #f8eedd;
	--bs-card: #ffffff;
	--bs-ink: #2b1b16;
	--bs-muted: #6f5d50;
	--bs-line: #eadcc6;
	--bs-field: #dccbb0;
	--bs-ok: #2f6b3a;
	--bs-ok-bg: #e9f4ea;
	--bs-err: #a12a2a;
	--bs-err-bg: #fbeaea;
	--bs-wa: #1f7a3a;
	--bs-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--bs-body: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
	--bs-radius: 14px;
	--bs-shadow: 0 1px 2px rgba(79, 13, 24, .05), 0 12px 32px -18px rgba(79, 13, 24, .28);
}

/* ---------- full-screen shell ---------- */
body.bs-shell {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bs-ivory);
	color: var(--bs-ink);
	font-family: var(--bs-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.bs-shell *, body.bs-shell *::before, body.bs-shell *::after { box-sizing: border-box; }
.bs-topbar {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: rgba(255, 250, 242, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--bs-line);
	box-shadow: 0 1px 0 rgba(195, 146, 55, .25);
}
.bs-topbar-in {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 12px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px));
}
.bs-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bs-ink); margin-right: auto; }
.bs-logo-mark { width: 30px; height: 34px; flex: none; }
.bs-logo-text { display: flex; flex-direction: column; line-height: 1; }
.bs-logo-text strong { font-family: var(--bs-display); font-weight: 600; font-size: 1.65rem; letter-spacing: .01em; color: var(--bs-ruby); }
.bs-logo-text small { margin-top: 3px; font-family: var(--bs-display); font-style: italic; font-size: .9rem; letter-spacing: .01em; color: var(--bs-gold); white-space: nowrap; }
.bs-topnav { display: flex; gap: 24px; }
.bs-topnav a { color: var(--bs-ink); text-decoration: none; font-size: .95rem; position: relative; padding: 4px 0; }
.bs-topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--bs-gold); transform: scaleX(0); transition: transform .2s; }
.bs-topnav a:hover::after, .bs-topnav a:focus-visible::after { transform: scaleX(1); }
.bs-top-cta {
	flex: none;
	padding: 9px 20px;
	border-radius: 999px;
	background: var(--bs-ruby);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	box-shadow: 0 6px 16px -8px rgba(110, 20, 35, .6);
}
.bs-top-cta:hover { background: var(--bs-ruby-deep); color: #fff; }
.bs-topbar a:focus-visible { outline: 3px solid var(--bs-gold-soft); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 1040px) { .bs-logo-text small { display: none; } }
@media (max-width: 860px) { .bs-topnav { display: none; } }
@media (max-width: 420px) {
	.bs-logo-text small { display: none; }
	.bs-logo-text strong { font-size: 1.45rem; }
	.bs-top-cta { padding: 8px 14px; font-size: .88rem; }
}
.bs-main {
	flex: 1;
	width: 100%;
	padding: 0 max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px));
}
.bs-foot { border-top: 1px solid var(--bs-line); background: var(--bs-paper); }
.bs-foot-in {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 22px max(20px, env(safe-area-inset-right, 0px)) max(22px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
	color: var(--bs-muted);
	font-size: .86rem;
}
.bs-foot-brand { font-family: var(--bs-display); font-weight: 600; font-size: 1.2rem; color: var(--bs-ruby); }
.bs-foot-in p { margin: 0; flex: 1; min-width: 220px; }

/* ---------- app base ---------- */
.bs-app {
	margin: 0 auto;
	color: var(--bs-ink);
	font-family: var(--bs-body);
	font-size: 17px;
	line-height: 1.6;
	position: relative;
}
.bs-app *, .bs-app *::before, .bs-app *::after { box-sizing: border-box; }
.bs-app.is-home { max-width: 1080px; }
.bs-app.is-editing { max-width: 760px; padding-top: 18px; }
.bs-loading { text-align: center; padding: 80px 0; color: var(--bs-muted); }
.bs-app h1, .bs-app h2, .bs-app h3 {
	font-family: var(--bs-display);
	font-weight: 600;
	color: var(--bs-ink);
	line-height: 1.12;
	margin: 0;
	text-wrap: balance;
	letter-spacing: 0;
}
.bs-app h2 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin-bottom: 6px; }
.bs-app h3 { font-size: 1.35rem; }
.bs-app p { margin: 0; }
.bs-muted { color: var(--bs-muted); margin: 0 0 16px !important; }
.bs-app .small, .bs-muted.small { font-size: .9rem; }
.bs-eyebrow {
	font-size: .78rem !important;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--bs-gold) !important;
	margin: 0 0 8px !important;
}
.bs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-gap { margin-top: 14px; }

/* ---------- buttons ---------- */
.bs-app button, .bs-app input, .bs-app textarea { font: inherit; }
.bs-primary, .bs-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid var(--bs-ruby);
	transition: background .15s, transform .1s, box-shadow .15s;
}
.bs-primary { background: var(--bs-ruby); color: #fff !important; box-shadow: 0 6px 16px -8px rgba(110, 20, 35, .6); }
.bs-primary:hover { background: var(--bs-ruby-deep); }
.bs-primary:active { transform: translateY(1px); }
.bs-secondary { background: #fff; color: var(--bs-ruby) !important; }
.bs-secondary:hover { background: #fdf6ec; }
.bs-primary[disabled], .bs-secondary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.bs-big { min-height: 54px; padding: 14px 34px; font-size: 1.08rem; }
.bs-block { display: flex; width: 100%; margin-top: 16px; }
.bs-link { background: none; border: 0; padding: 0; color: var(--bs-ruby); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bs-app :focus-visible { outline: 3px solid var(--bs-gold-soft); outline-offset: 2px; }

/* ---------- home: hero ---------- */
.bs-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 48px;
	align-items: center;
	padding: 56px 0 40px;
}
.bs-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; margin-bottom: 18px; }
.bs-hero h1 em { color: var(--bs-ruby); font-style: italic; }
.bs-lede { font-size: 1.12rem; color: var(--bs-muted); max-width: 30em; margin-bottom: 26px !important; }
.bs-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 18px 0 0; padding: 0; color: var(--bs-muted); font-size: .92rem; }
.bs-trust li::before { content: "✓"; color: var(--bs-ok); font-weight: 700; margin-right: 6px; }
.bs-turnstile { margin: 0 0 14px; min-height: 65px; max-width: 360px; }

/* sample phone */
.bs-phone {
	position: relative;
	justify-self: center;
	width: min(280px, 100%);
	aspect-ratio: 9 / 18;
	padding: 10px;
	border-radius: 38px;
	background: #1d1214;
	box-shadow: 0 30px 60px -28px rgba(79, 13, 24, .55);
	transform: rotate(2deg);
}
.bs-phone-screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--bs-ivory); display: flex; flex-direction: column; }
.bs-mock-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 16px 12px 22px;
	background: radial-gradient(ellipse at 70% 0%, #8a1d2f, transparent 60%), var(--bs-ruby);
	color: var(--bs-ivory);
	text-align: center;
}
.bs-mock-inv { font-family: "Tiro Devanagari Hindi", serif; font-size: .62rem; color: var(--bs-gold-soft); }
.bs-mock-arch {
	width: 92px;
	height: 112px;
	margin: 10px 0 8px;
	border-radius: 999px 999px 4px 4px;
	border: 1.5px solid var(--bs-gold-soft);
	background: linear-gradient(160deg, #e7c9a3, #b98d69 60%, #8e6a52);
}
.bs-mock-hero b { font-family: var(--bs-display); font-size: 1.5rem; line-height: 1; font-weight: 600; }
.bs-mock-hero i { font-family: var(--bs-display); font-size: 1.5rem; line-height: 1; color: var(--bs-gold-soft); }
.bs-mock-hero small { font-size: .5rem; letter-spacing: .24em; color: var(--bs-gold-soft); margin-top: 6px; }
.bs-mock-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; }
.bs-mock-body em { font-family: var(--bs-display); font-size: .62rem; color: var(--bs-gold); margin-top: 6px; }
.bs-mock-body strong { font-family: var(--bs-display); font-size: .95rem; line-height: 1.1; }
.bs-mock-line { height: 5px; border-radius: 4px; background: var(--bs-line); }
.bs-mock-line.short { width: 60%; }
.bs-sample-tag {
	position: absolute;
	top: 22px;
	right: -14px;
	background: var(--bs-gold);
	color: #fff;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	transform: rotate(-2deg);
}

/* how it works */
.bs-how, .bs-designs { padding: 40px 0; border-top: 1px solid var(--bs-line); }
.bs-how ol { list-style: none; counter-reset: bs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 22px 0 0; padding: 0; }
.bs-how li { counter-increment: bs; position: relative; background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--bs-radius); padding: 22px; }
.bs-how li::after {
	content: counter(bs);
	position: absolute;
	top: 18px;
	right: 20px;
	font-family: var(--bs-display);
	font-size: 2.4rem;
	line-height: 1;
	color: var(--bs-line);
}
.bs-how b { display: block; font-family: var(--bs-display); font-size: 1.35rem; margin: 10px 0 4px; }
.bs-how p { color: var(--bs-muted); font-size: .95rem; }
.bs-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bs-paper); color: var(--bs-ruby); }
.bs-ico svg { width: 22px; height: 22px; }

/* designs */
.bs-design-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.bs-design { display: flex; flex-direction: column; gap: 4px; }
.bs-design b { font-family: var(--bs-display); font-size: 1.25rem; margin-top: 8px; }
.bs-design small { color: var(--bs-muted); font-size: .88rem; }
.bs-swatch { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

/* price band */
.bs-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 20px 0 32px;
	padding: clamp(24px, 5vw, 40px);
	border-radius: 18px;
	background: radial-gradient(ellipse at 90% 0%, #8a1d2f, transparent 60%), var(--bs-ruby);
	color: var(--bs-ivory);
}
.bs-price > div { max-width: 36em; }
.bs-price h2 { color: var(--bs-ivory) !important; margin: 12px 0 6px; }
.bs-price p { color: #f3e4d6; }
.bs-price .bs-ico { background: rgba(255, 255, 255, .12); color: var(--bs-gold-soft); }
.bs-price .bs-primary { background: var(--bs-ivory); color: var(--bs-ruby) !important; border-color: var(--bs-ivory); }
.bs-price .bs-primary:hover { background: #fff; }

/* find / recover */
.bs-find { display: grid; gap: 12px; padding-bottom: 8px; }
.bs-recover { background: var(--bs-card); border: 1px solid var(--bs-line); border-radius: var(--bs-radius); }
.bs-recover summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--bs-ruby); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bs-recover summary::-webkit-details-marker { display: none; }
.bs-recover summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--bs-gold); }
.bs-recover[open] summary::after { content: "–"; }
.bs-recover-body { padding: 0 20px 18px; }
.bs-recover form { margin: 0; }

/* home: saved biodatas */
.bs-mine { padding: 40px 0; display: grid; gap: 18px; }
.bs-mine-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.bs-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bs-mine-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 14px;
	background: var(--bs-card);
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius);
	padding: 16px 18px;
	box-shadow: var(--bs-shadow);
}
.bs-mine-info { min-width: 0; display: flex; flex-direction: column; }
.bs-mine-info strong { font-family: var(--bs-display); font-size: 1.35rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-mine-info span { color: var(--bs-muted); font-size: .88rem; }

.bs-pill { font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--bs-paper); color: var(--bs-muted); white-space: nowrap; }
.bs-pill.ok { background: var(--bs-ok-bg); color: var(--bs-ok); }

/* ---------- editing ---------- */
.bs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bs-back {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--bs-line);
	background: #fff;
	color: var(--bs-ruby);
	font-size: 1.2rem;
	cursor: pointer;
}
.bs-back:hover { background: var(--bs-paper); }
.bs-head-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bs-head-name small { color: var(--bs-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.bs-head-name strong { font-family: var(--bs-display); font-size: 1.45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bs-progress { margin-bottom: 18px; }
.bs-progress-bar { height: 6px; border-radius: 999px; background: var(--bs-line); overflow: hidden; }
.bs-progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--bs-ruby), var(--bs-gold)); transition: width .3s ease; }
.bs-progress-label { margin: 8px 0 10px !important; font-size: .88rem; color: var(--bs-muted); }
.bs-progress-label b { color: var(--bs-ink); }
.bs-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bs-steps::-webkit-scrollbar { display: none; }
.bs-steps button {
	flex: 1 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--bs-line);
	background: #fff;
	color: var(--bs-muted);
	border-radius: 999px;
	padding: 5px 14px 5px 5px;
	cursor: pointer;
	font-size: .86rem;
	white-space: nowrap;
}
.bs-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bs-paper); font-size: .76rem; color: var(--bs-ink); }
.bs-steps button.done { color: var(--bs-ink); }
.bs-steps button.done b { background: var(--bs-ok-bg); color: var(--bs-ok); }
.bs-steps button.on { background: var(--bs-ruby); border-color: var(--bs-ruby); color: #fff; }
.bs-steps button.on b { background: var(--bs-gold); color: #fff; }

.bs-card {
	background: var(--bs-card);
	border: 1px solid var(--bs-line);
	border-radius: var(--bs-radius);
	box-shadow: var(--bs-shadow);
	padding: clamp(20px, 4vw, 32px);
	margin-bottom: 16px;
}
.bs-card > h2 + .bs-muted { margin-top: 4px !important; }

.bs-app fieldset { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
.bs-app legend {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 0;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--bs-ruby);
}
.bs-app legend::after { content: ""; flex: 1; height: 1px; background: var(--bs-line); }
.bs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 16px; }
.bs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.bs-grid .bs-field { margin-bottom: 0; }
.bs-field.wide { grid-column: 1 / -1; }
.bs-field > span { font-size: .86rem; font-weight: 600; color: var(--bs-ink); }
.bs-field small { color: var(--bs-muted); font-size: .82rem; }
.bs-app input[type=text], .bs-app textarea {
	width: 100%;
	min-height: 48px;
	font-size: 16px;
	color: var(--bs-ink);
	background: #fffdf9;
	border: 1.5px solid var(--bs-field);
	border-radius: 10px;
	padding: 11px 14px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.bs-app textarea { resize: vertical; line-height: 1.55; }
.bs-app input[type=text]:hover, .bs-app textarea:hover { border-color: #c9b18c; }
.bs-app input[type=text]:focus, .bs-app textarea:focus { outline: none; background: #fff; border-color: var(--bs-gold); box-shadow: 0 0 0 4px rgba(195, 146, 55, .18); }
.bs-app input:disabled { background: var(--bs-paper); color: var(--bs-muted); }
.bs-app input::placeholder, .bs-app textarea::placeholder { color: #b4a490; }

.bs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) 44px; gap: 10px; align-items: end; margin-bottom: 10px; }
.bs-row .bs-field { margin-bottom: 0; }
.bs-x {
	width: 44px;
	height: 48px;
	border-radius: 10px;
	border: 1.5px solid var(--bs-line);
	background: #fff;
	color: var(--bs-muted);
	font-size: 1.3rem;
	cursor: pointer;
}
.bs-x:hover { color: var(--bs-err); border-color: var(--bs-err); background: var(--bs-err-bg); }
.bs-add {
	background: none;
	border: 1.5px dashed var(--bs-gold);
	color: var(--bs-ruby);
	border-radius: 10px;
	padding: 9px 16px;
	cursor: pointer;
	font-weight: 600;
	font-size: .92rem;
}
.bs-add:hover { background: #fdf6ec; }
.bs-group { background: var(--bs-ivory); border: 1px solid var(--bs-line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.bs-member { border-left: 3px solid var(--bs-gold-soft); padding-left: 14px; margin: 14px 0; }
.bs-person { padding-left: 6px; }
.bs-check { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; font-weight: 500; cursor: pointer; }
.bs-check input { width: 20px; height: 20px; accent-color: var(--bs-ruby); }

.bs-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* upload */
.bs-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	border: 2px dashed var(--bs-gold);
	background: linear-gradient(180deg, #fffdf8, var(--bs-paper));
	border-radius: var(--bs-radius);
	padding: 44px 18px;
	cursor: pointer;
	margin: 18px 0 12px;
	transition: background .15s, border-color .15s;
}
.bs-drop:hover { border-color: var(--bs-ruby); }
.bs-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bs-drop strong { color: var(--bs-ruby); font-size: 1.12rem; }
.bs-drop span { color: var(--bs-muted); font-size: .9rem; }
.bs-drop-ico { display: inline-grid !important; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--bs-ruby) !important; box-shadow: var(--bs-shadow); margin-bottom: 6px; }
.bs-drop-ico svg { width: 28px; height: 28px; }
.bs-drop.small { padding: 16px; margin: 0; aspect-ratio: 3 / 4; }

/* photos */
.bs-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.bs-photos figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--bs-line); background: var(--bs-paper); }
.bs-photos img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bs-photos figcaption { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #fff; }
.bs-photos figcaption button { flex: 1 0 auto; font-size: .78rem; padding: 5px 6px; border: 1px solid var(--bs-line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--bs-ink); }
.bs-photos figcaption button:hover { background: var(--bs-paper); }
.bs-badge { position: absolute; top: 8px; left: 8px; background: var(--bs-ruby); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

/* design picker */
.bs-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bs-theme {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: left;
	border: 2px solid var(--bs-line);
	background: #fff;
	border-radius: 12px;
	padding: 10px 10px 14px;
	cursor: pointer;
	color: var(--bs-ink);
	transition: border-color .15s, box-shadow .15s;
}
.bs-theme strong { font-family: var(--bs-display); font-size: 1.2rem; margin-top: 6px; }
.bs-theme small { color: var(--bs-muted); line-height: 1.4; }
.bs-theme:hover { border-color: var(--bs-gold-soft); }
.bs-theme.on { border-color: var(--bs-ruby); box-shadow: 0 0 0 4px rgba(110, 20, 35, .1); }
.bs-themes .bs-swatch { aspect-ratio: auto; height: 74px; border-radius: 8px; }

.bs-pay h2 { margin-bottom: 4px; }
.bs-ticks { list-style: none; margin: 12px 0 20px; padding: 0; display: grid; gap: 8px; }
.bs-ticks li::before { content: "✓"; color: var(--bs-ok); font-weight: 700; margin-right: 10px; }
.bs-linkbox { display: flex; gap: 8px; margin: 12px 0; align-items: stretch; }
.bs-linkbox input { flex: 1; min-width: 0; }
.bs-linkbox .bs-primary, .bs-linkbox .bs-secondary { flex: none; }

/* WhatsApp save card */
.bs-save { background: linear-gradient(180deg, #f4fbf4, #fff); border-color: #cfe6d2; }
.bs-save h3 { margin-bottom: 4px; }
.bs-save .bs-primary { background: var(--bs-wa); border-color: var(--bs-wa); box-shadow: none; }
.bs-save .bs-primary:hover { background: #17612d; }
.bs-saved { margin: 0 0 14px !important; padding: 10px 14px; border-radius: 10px; background: var(--bs-ok-bg); color: var(--bs-ok); font-weight: 600; font-size: .92rem; }

/* notices + busy */
.bs-notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px !important; font-weight: 500; }
.bs-notice.error { background: var(--bs-err-bg); color: var(--bs-err); }
.bs-notice.ok { background: var(--bs-ok-bg); color: var(--bs-ok); }
.bs-app.is-home > .bs-notice { margin-top: 24px !important; }
.bs-busy {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 16px;
	background: rgba(255, 250, 242, .9);
	backdrop-filter: blur(3px);
	text-align: center;
	padding: 24px;
}
.bs-busy p { font-family: var(--bs-display); font-size: 1.4rem; font-weight: 600; max-width: 20em; }
.bs-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--bs-line); border-top-color: var(--bs-ruby); animation: bs-spin 1s linear infinite; }
@keyframes bs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bs-spinner { animation-duration: 3s; } .bs-progress-bar span { transition: none; } }

/* ---------- phones ---------- */
@media (max-width: 860px) {
	.bs-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; text-align: center; }
	.bs-lede { margin-inline: auto; }
	.bs-trust { justify-content: center; }
	.bs-turnstile { margin-inline: auto; }
	.bs-phone { width: min(230px, 70%); }
	.bs-how ol, .bs-design-row { grid-template-columns: minmax(0, 1fr); }
	.bs-design { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 14px; align-items: center; }
	.bs-design b { margin: 0; }
}
@media (max-width: 600px) {
	body.bs-shell, .bs-app { font-size: 16px; }
	.bs-hero .bs-big, .bs-price .bs-big { width: 100%; }
	.bs-steps { display: none; }
	.bs-mine-list li { grid-template-columns: minmax(0, 1fr) auto; }
	.bs-mine-list li .bs-primary { grid-column: 1 / -1; }
	.bs-row { grid-template-columns: minmax(0, 1fr) 44px; }
	.bs-row .bs-field { grid-column: 1; }
	.bs-row .bs-x { grid-column: 2; grid-row: 1; }
	.bs-linkbox { flex-wrap: wrap; }
	.bs-linkbox .bs-primary, .bs-linkbox .bs-secondary { flex: 1 1 100%; }
	/* sticky action bar */
	.bs-app.is-editing .bs-nav {
		position: sticky;
		bottom: 0;
		z-index: 20;
		margin: 24px calc(-1 * clamp(20px, 4vw, 32px)) calc(-1 * clamp(20px, 4vw, 32px));
		padding: 12px clamp(20px, 4vw, 32px) max(12px, env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, .94);
		backdrop-filter: blur(6px);
		border-top: 1px solid var(--bs-line);
		border-radius: 0 0 var(--bs-radius) var(--bs-radius);
		flex-wrap: nowrap;
	}
	.bs-app.is-editing .bs-nav > * { flex: 1; }
	.bs-app.is-editing .bs-nav > span:empty { display: none; }
}

/* ---------- layout mockups ---------- */
.bs-lm { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; aspect-ratio: 4 / 3; padding: 8px; border-radius: 10px; overflow: hidden; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); }
.bs-lm b, .bs-lm i { display: block; height: 6px; border-radius: 3px; background: currentColor; opacity: .85; }
.bs-lm b { height: 9px; width: 70%; }
.bs-lm b.s, .bs-lm i.s { width: 50%; }
.bs-lm b.xl { height: 16px; width: 85%; }
.bs-lm i { opacity: .25; }
.lm-txt { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.lm-txt.c { align-items: center; }
.lm-top, .lm-row, .lm-sheet { display: flex; gap: 8px; align-items: center; }
/* ruby */
.lm-ruby .lm-top { flex: 1.3; margin: -8px -8px 0; padding: 8px 10px; background: var(--a); color: var(--b); }
.lm-ruby .lm-arch { width: 30%; aspect-ratio: 3 / 4; border-radius: 999px 999px 3px 3px; border: 1.5px solid var(--b); background: color-mix(in srgb, var(--b) 35%, transparent); }
.lm-ruby .lm-row { flex: 1; color: var(--d); }
.lm-ruby .lm-img { width: 34%; align-self: stretch; border-radius: 4px; background: color-mix(in srgb, var(--d) 25%, var(--c)); }
/* scroll */
.lm-scroll { background: var(--a); padding: 8px; }
.lm-scroll .lm-frame { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--c); border: 1.5px solid var(--b); outline: 1px solid var(--b); outline-offset: -5px; padding: 10px; color: var(--d); }
.lm-scroll .lm-circle { width: 30%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--b); background: color-mix(in srgb, var(--d) 25%, var(--c)); }
.lm-scroll .lm-orn { width: 40%; height: 2px; background: var(--b); }
.lm-scroll b { margin-inline: auto; }
/* editorial */
.lm-editorial { padding: 0; }
.lm-editorial .lm-top { flex: 1; gap: 0; align-items: stretch; background: var(--a); }
.lm-editorial .lm-cover { width: 48%; background: linear-gradient(160deg, color-mix(in srgb, var(--d) 45%, #d9c4b1), color-mix(in srgb, var(--d) 70%, #3a2a24)); }
.lm-editorial .lm-txt { padding: 12px 10px; justify-content: center; color: var(--d); }
.lm-editorial b { color: #2a2422; }
/* diary */
.lm-diary { background: radial-gradient(circle, rgba(0, 0, 0, .12) .8px, transparent 1.2px) 0 0 / 8px 8px, var(--c); color: var(--d); }
.lm-diary .lm-top, .lm-diary .lm-sheet { flex: 1; }
.lm-diary .lm-sheet { background: #fff; padding: 6px; border-radius: 3px; transform: rotate(-1.5deg); box-shadow: 0 3px 6px -3px rgba(0, 0, 0, .3); }
.lm-diary .lm-pol { width: 32%; aspect-ratio: 4 / 5; background: #fff; padding: 3px 3px 8px; transform: rotate(4deg); box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .35); background-clip: content-box; background-color: color-mix(in srgb, var(--d) 30%, #f0d5c8); border: 3px solid #fff; border-bottom-width: 8px; }
.lm-diary .lm-pol.sm { width: 24%; transform: rotate(-4deg); }

.bs-themes .bs-lm { margin-bottom: 4px; }
.bs-design-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bs-design-actions > * { flex: 1 1 220px; }

/* photo placement */
.bs-photos select { width: 100%; font: inherit; font-size: .88rem; padding: 7px 8px; border: 1.5px solid var(--bs-field); border-radius: 8px; background: #fffdf9; color: var(--bs-ink); }
.bs-photos select:focus { outline: none; border-color: var(--bs-gold); box-shadow: 0 0 0 3px rgba(195, 146, 55, .18); }
.bs-photos figcaption { flex-direction: column; align-items: stretch; gap: 6px; }
.bs-photo-tools { display: flex; gap: 4px; }
.bs-photo-tools button { flex: 1; }
.bs-badge.quiet { background: rgba(43, 27, 22, .72); }
.bs-photos figure.is-hidden img { opacity: .35; filter: grayscale(1); }
.bs-tip { margin: 0 0 12px !important; padding: 10px 14px; border-radius: 10px; background: var(--bs-paper); font-size: .9rem; color: var(--bs-muted); }

.bs-find h2 { margin-bottom: 4px; }
.bs-app [id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px); }

/* design cards: sample preview */
.bs-design { gap: 6px; }
.bs-design-thumb { position: relative; display: block; border-radius: 10px; text-decoration: none; }
.bs-design-thumb .bs-lm { transition: transform .25s ease, box-shadow .25s ease; }
.bs-design-thumb:hover .bs-lm { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(79, 13, 24, .45); }
.bs-design-eye {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translate(-50%, 6px);
	opacity: 0;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(43, 27, 22, .85);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	transition: opacity .2s, transform .2s;
	pointer-events: none;
}
.bs-design-thumb:hover .bs-design-eye, .bs-design-thumb:focus-visible .bs-design-eye { opacity: 1; transform: translate(-50%, 0); }
.bs-design-btn { align-self: flex-start; min-height: 38px; padding: 7px 16px; font-size: .9rem; margin-top: 6px; }
@media (max-width: 860px) {
	.bs-design { grid-template-columns: 120px minmax(0, 1fr); }
	.bs-design .bs-design-thumb { grid-row: span 3; }
	.bs-design-btn { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .bs-design-thumb .bs-lm, .bs-design-eye { transition: none; } }

.bs-designs-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.bs-seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--bs-line); }
.bs-seg span { padding: 0 8px 0 10px; font-size: .82rem; color: var(--bs-muted); }
.bs-seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--bs-ink); }
.bs-seg button[aria-pressed="true"] { background: var(--bs-ruby); color: #fff; }

/* delete drafts */
.bs-mine-list li { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.bs-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bs-line); background: #fff; color: var(--bs-muted); cursor: pointer; }
.bs-icon-btn svg { width: 19px; height: 19px; }
.bs-icon-btn:hover { color: var(--bs-err); border-color: var(--bs-err); background: var(--bs-err-bg); }
.bs-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--bs-err); background: var(--bs-err); color: #fff; font-weight: 600; cursor: pointer; }
.bs-danger:hover { background: #861f1f; }
.bs-danger[disabled] { opacity: .6; cursor: progress; }
.bs-mine-list li.is-confirm { grid-template-columns: minmax(0, 1fr) auto auto; border-color: #e7b8b8; background: #fffafa; }
.bs-mine-list li.is-confirm .bs-mine-info strong { font-family: var(--bs-body); font-size: 1.05rem; font-weight: 600; white-space: normal; }
@media (max-width: 600px) {
	.bs-mine-list li { grid-template-columns: minmax(0, 1fr) auto auto; }
	.bs-mine-list li .bs-primary { grid-column: 1 / -1; }
	.bs-mine-list li.is-confirm { grid-template-columns: 1fr 1fr; }
	.bs-mine-list li.is-confirm .bs-mine-info { grid-column: 1 / -1; }
}

/* footer policy links */
.bs-foot-links { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); font-size: .86rem; }
.bs-foot-links a { color: var(--bs-ruby); text-decoration: none; }
.bs-foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bs-foot-in { padding-bottom: 12px; }

/* policy pages */
.bs-policy { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 0 24px; color: var(--bs-ink); font-family: var(--bs-body); font-size: 17px; line-height: 1.75; }
.bs-policy-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bs-gold); }
.bs-policy h1 { margin: 0 0 24px; font-family: var(--bs-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.08; text-wrap: balance; }
.bs-policy-body h2 { margin: 34px 0 10px; font-family: var(--bs-display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; color: var(--bs-ruby); }
.bs-policy-body p { margin: 0 0 14px; }
.bs-policy-body ul { margin: 0 0 16px; padding-left: 1.2em; }
.bs-policy-body li { margin-bottom: 8px; }
.bs-policy-body li::marker { color: var(--bs-gold); }
.bs-policy-body a { color: var(--bs-ruby); text-underline-offset: 3px; }
.bs-policy-body code { background: var(--bs-paper); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.bs-policy-body .bs-updated { color: var(--bs-muted); font-size: .92rem; }

.bs-foot-in em { font-family: var(--bs-display); font-size: 1.05rem; color: var(--bs-ink); margin-right: 4px; }
