:root {
	--bb-cream: #fdfbf5;
	--bb-ink: #18202d;
	--bb-moss: #35594a;
	--bb-sky: #e7f1fb;
	--bb-border: #d9dfeb;
}

body {
	font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: var(--bb-ink);
	background:
		radial-gradient(circle at 12% 18%, #ffffff 0%, #ffffff00 35%),
		radial-gradient(circle at 88% 8%, #daf0ff 0%, #daf0ff00 34%),
		linear-gradient(180deg, var(--bb-cream) 0%, #f5f9ff 45%, #f4fbf6 100%);
	min-height: 100vh;
}

.bb-navbar {
	background: #ffffffc9;
	backdrop-filter: blur(7px);
	border-bottom: 1px solid var(--bb-border);
}

.bb-topbar {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 0.8rem;
	min-height: 62px;
}

.bb-logo-link {
	width: 40px;
	height: 40px;
	border-radius: 0.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: #244464;
	border: 1px solid var(--bb-border);
	background: #ffffff;
	text-decoration: none;
}

.bb-title {
	text-align: center;
	font-size: clamp(1rem, 2.8vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	padding-right: 3.2rem;
}

.bb-title-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
}

.bb-title-tagline {
	font-size: 0.76rem;
	font-weight: 500;
	color: #53708f;
	padding-right: 3.2rem;
}

.bb-subnav {
	background: #f5f9ffcb;
	border-bottom: 1px solid #dce4f2;
	padding: 0.55rem 0 0.7rem;
}

.bb-subnav-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.bb-search-wrap {
	display: flex;
	justify-content: flex-start;
	flex: 1 1 280px;
}

.bb-search-group {
	width: 280px;
}

.bb-search-group:focus-within {
	width: 280px;
}

.bb-search-input {
	width: 100%;
	font-size: 0.9rem;
	min-height: 2rem;
	padding: 0.35rem 0.75rem;
	border-top-right-radius: 0.55rem;
	border-bottom-right-radius: 0.55rem;
}

.bb-search-group .input-group-text {
	border-top-left-radius: 0.55rem;
	border-bottom-left-radius: 0.55rem;
	background: #ffffff;
	color: #5b7591;
}

.bb-recent-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.55rem;
	min-height: 0.9rem;
}

.bb-recent-chip {
	display: inline-flex;
	align-items: center;
	border: 1px solid #c7d7ea;
	background: #ffffff;
	border-radius: 999px;
	position: relative;
	padding: 0.15rem 0.35rem 0.15rem 0.2rem;
}

.bb-recent-text {
	border: 0;
	background: transparent;
	color: #39597a;
	font-size: 0.78rem;
	padding: 0.2rem 0.5rem 0.2rem 0.65rem;
	max-width: 220px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bb-recent-remove {
	border: 0;
	background: #5d9fe1;
	color: #ffffff;
	font-size: 0.68rem;
	font-weight: 700;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	position: absolute;
	top: -0.38rem;
	right: -0.34rem;
	box-shadow: 0 0 0 2px #f5f9ff;
	z-index: 1;
}

.bb-recent-text:hover,
.bb-recent-remove:hover {
	background: #eaf2fb;
}

.bb-active-summary {
	margin-top: 0.45rem;
	font-size: 0.78rem;
	font-weight: 500;
	color: #5a7290;
	letter-spacing: 0.01em;
}

.bb-filter-toggle {
	min-width: 64px;
	border-radius: 0.45rem;
	border: 1px solid #ced8e8;
	background: #ffffff;
	color: #49617e;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
}

.bb-filter-toggle.is-active {
	background: #e9f2ff;
	border-color: #8fb4e0;
	color: #1f4368;
}

#ideaActions .bb-filter-toggle.is-active {
	background: #ffeef2;
	border-color: #e29ab0;
	color: #8a2b4b;
}

.bb-control-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5f7996;
	min-width: fit-content;
}

.bb-add-idea-btn {
	border: 1px solid #2d6b3d;
	background: #e8f7ec;
	color: #2d6b3d;
	font-weight: 700;
	border-radius: 0.55rem;
	padding-inline: 0.68rem;
	white-space: nowrap;
}

.bb-add-idea-btn:hover,
.bb-add-idea-btn:focus {
	background: #d7f0de;
	border-color: #245532;
	color: #245532;
}

.bb-admin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.6rem;
}

.bb-admin-tile {
	min-height: 72px;
}

.bb-admin-pre {
	max-height: 220px;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.76rem;
	line-height: 1.35;
	padding: 0.45rem;
	border: 1px solid #d9e2ee;
	background: #f8fbff;
	border-radius: 0.45rem;
}

.bb-idea-card {
	border-radius: 0.8rem;
	box-shadow: 0 10px 22px #1b29420f;
}

.bb-idea-card.is-clickable {
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.bb-idea-card.is-clickable:hover,
.bb-idea-card.is-clickable:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px #1b29421a;
	border-color: #b8cade;
}

.bb-idea-list-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.bb-idea-list-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bb-idea-grid {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr;
	gap: 0.8rem;
	align-items: stretch;
}

.bb-idea-thumb {
	width: 100%;
	height: 100%;
	max-height: 118px;
	object-fit: cover;
	border-radius: 0.6rem;
	border: 1px solid #d5deeb;
	background: #f0f4fa;
}

.bb-idea-meta {
	font-size: 0.84rem;
	color: #54708e;
	font-weight: 600;
}

.bb-idea-desc {
	font-size: 0.9rem;
	color: #2d3a4f;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.bb-idea-tag {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.2rem 0.42rem;
	border-radius: 999px;
	background: #eef4fd;
	border: 1px solid #cad8ea;
	color: #36577a;
}

.bb-favorite-btn {
	border: 1px solid #d6deea;
	background: #ffffff;
	color: #6f8298;
	border-radius: 999px;
	width: 1.8rem;
	height: 1.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.bb-favorite-btn.is-active {
	background: #ffeef2;
	border-color: #e2a2b7;
	color: #ba275a;
}

@media (max-width: 640px) {
	.bb-title {
		padding-right: 0;
	}

	.bb-title-tagline {
		padding-right: 0;
	}

	.bb-subnav-row {
		align-items: stretch;
	}

	.bb-search-wrap {
		justify-content: stretch;
	}

	.bb-search-input,
	.bb-search-group,
	.bb-search-group:focus-within {
		width: 100%;
	}

	.bb-idea-grid {
		grid-template-columns: 1fr;
	}

	.bb-idea-thumb {
		max-height: 160px;
	}
}

.bb-profile-chip {
	border-radius: 999px;
	padding-inline: 0.7rem;
}

.bb-shell {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.card {
	border: 1px solid var(--bb-border);
	border-radius: 1rem;
	box-shadow: 0 12px 28px #1b294209;
}

.bb-card-exemplar {
	border: 2px dashed #7da8cd;
	background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.bb-section-title {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.bb-muted {
	color: #4f6278;
}

.bb-footer {
	border-top: 1px solid var(--bb-border);
	background: #ffffff9c;
	backdrop-filter: blur(5px);
	padding: 1rem 0;
	margin-top: 2rem;
}

.bb-auth-card {
	border-radius: 1.1rem;
	box-shadow: 0 28px 56px #1b2b4526;
}

.bb-auth-panel {
	background: linear-gradient(180deg, #1f3558 0%, #29456f 100%);
	color: #eff5ff;
}

.bb-auth-panel p,
.bb-auth-panel li {
	color: #dae8ff;
}

body.bb-auth-page {
	background:
		linear-gradient(180deg, #081a27 0%, #081a27 38%, #0c2230 38%, #0c2230 100%);
}

.bb-auth-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.bb-auth-panel-clean {
	width: min(100%, 460px);
	background: #0b1f2d;
	border: 1px solid #274254;
	border-radius: 1rem;
	padding: 1.4rem;
	box-shadow: 0 24px 52px #00000052;
}

.bb-login-title {
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: #e6f1fa;
}

.bb-login-input {
	background-color: #1a303f;
	border: 1px solid #355466;
	border-radius: 0.8rem;
	color: #e3edf8;
	min-height: 3rem;
	padding-inline: 1rem;
}

.bb-login-input::placeholder {
	color: #afc3d3;
}

.bb-login-input:focus {
	background-color: #1f3747;
	color: #f1f8ff;
	border-color: #49b4e4;
	box-shadow: 0 0 0 0.2rem #49b4e433;
}

.bb-login-btn {
	background: #45b3e3;
	border: 0;
	border-radius: 0.95rem;
	color: #082033;
	font-weight: 700;
	letter-spacing: 0.06em;
	min-height: 3rem;
}

.bb-login-btn:hover,
.bb-login-btn:focus {
	background: #5cc0ec;
	color: #071b2b;
}

.bb-or-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.65rem;
	color: #7ea0b7;
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.75rem;
}

.bb-or-row::before,
.bb-or-row::after {
	content: '';
	height: 1px;
	background: #325066;
}

.bb-social-btn {
	background: transparent;
	border: 1px solid #355466;
	border-radius: 0.9rem;
	color: #7eaad0;
	font-weight: 700;
	min-height: 2.9rem;
}

.bb-social-btn:disabled {
	opacity: 1;
	color: #5f87a5;
}

body.bb-auth-page #authMsg {
	color: #97b2c6;
}

body.bb-idea-form-page {
	background:
		linear-gradient(180deg, #0d1d2f 0%, #0d1d2f 34%, #f0f6ff 34%, #f0f6ff 100%);
}

.bb-idea-form-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.bb-idea-form-card {
	width: min(100%, 980px);
	position: relative;
	border-radius: 1rem;
	box-shadow: 0 22px 48px #06101d40;
}

.bb-idea-form-head {
	border: 1px solid #d7e3f1;
	background: #f6faff;
	border-radius: 0.7rem;
	padding: 0.5rem 0.65rem;
}

.bb-idea-form-card .form-label {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5a7492;
	margin-bottom: 0.2rem;
}

.bb-form-section-label {
	font-size: 0.76rem;
}

.bb-idea-form-card .form-control,
.bb-idea-form-card .form-select {
	font-size: 0.88rem;
	padding: 0.38rem 0.6rem;
	min-height: 2.15rem;
	border-radius: 0.5rem;
	border-color: #cedaea;
}

.bb-inline-label-group .input-group-text {
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #5a7492;
	background: #f5f9ff;
	border-color: #cedaea;
	padding: 0.25rem 0.5rem;
}

.bb-inline-label-group .form-control {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	min-height: 2rem;
}

.bb-idea-form-card textarea.form-control {
	min-height: 4.7rem;
}

.bb-idea-form-card .form-text {
	font-size: 0.74rem;
	color: #637d9a;
	margin-top: 0.22rem;
}

.bb-idea-form-card .btn {
	font-size: 0.82rem;
	padding-block: 0.34rem;
	border-radius: 0.5rem;
}

.bb-idea-form-card .bb-link-row {
	padding: 0.38rem;
	border: 1px solid #e2eaf5;
	border-radius: 0.58rem;
	background: #fbfdff;
}

.bb-link-top {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.42rem;
	align-items: center;
	margin-bottom: 0.4rem;
}

.bb-link-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.42rem;
	align-items: start;
}

.bb-link-type-col {
	min-width: 172px;
}

.bb-link-remove {
	min-width: 2rem;
	height: 2rem;
	padding: 0;
}

.bb-link-type-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.bb-link-type-btn {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.2rem 0.38rem;
	border-radius: 0.4rem;
	border: 1px solid #cfdae8;
	background: #ffffff;
	color: #55708c;
}

.bb-link-type-btn.is-active {
	background: #eaf3ff;
	border-color: #91b0d4;
	color: #294c71;
}

@media (max-width: 768px) {
	.bb-link-bottom {
		grid-template-columns: 1fr;
	}

	.bb-link-type-col {
		min-width: 0;
	}
}

.bb-form-panel {
	border: 1px solid #dbe5f2;
	border-radius: 0.75rem;
	padding: 0.55rem;
	background: #f9fbff;
}

.bb-form-panel-primary {
	background: #f9fbff;
	border-color: #dbe5f2;
}

@media (min-width: 992px) {
	.bb-form-panel-primary .row.g-2 {
		--bs-gutter-y: 0.34rem;
	}

	.bb-form-panel-primary .form-label {
		font-size: 0.64rem;
		margin-bottom: 0.1rem;
	}

	.bb-form-panel-primary .form-control,
	.bb-form-panel-primary .form-select {
		font-size: 0.78rem;
		padding: 0.2rem 0.45rem;
		min-height: 1.18rem;
	}

	.bb-form-panel-primary .bb-inline-label-group .input-group-text {
		font-size: 0.62rem;
		padding: 0.1rem 0.36rem;
	}

	.bb-form-panel-primary .bb-inline-label-group .form-control {
		padding-top: 0.16rem;
		padding-bottom: 0.16rem;
		min-height: 1.18rem;
	}
}

.bb-form-panel-secondary {
	background: #f9fbff;
	border-color: #dbe5f2;
}

.bb-form-panel-tertiary {
	background: #f9fbff;
	border-color: #dbe5f2;
}

.bb-form-panel-userstory {
	background: #f9fbff;
	border-color: #dbe5f2;
}

.bb-form-panel-links {
	background: #f9fbff;
	border-color: #dbe5f2;
}

.bb-panel-title {
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4b6786;
	margin: 0;
}

.bb-story-row {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 0.55rem;
	align-items: center;
}

.bb-story-label {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #5e7691;
}

.bb-form-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	padding-top: 0.45rem;
	border-top: 1px solid #dfe8f3;
}

.bb-form-actions .btn {
	min-width: 132px;
	font-weight: 700;
	font-size: 0.96rem;
	padding: 0.58rem 1rem;
}

.bb-save-idea-btn {
	background: #2f854a;
	border: 1px solid #286f3e;
	color: #ffffff;
	box-shadow: 0 6px 16px #2f854a2e;
}

.bb-save-idea-btn:hover,
.bb-save-idea-btn:focus {
	background: #276f3d;
	border-color: #215f34;
	color: #ffffff;
}

@media (max-width: 768px) {
	.bb-story-row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.bb-form-actions {
		justify-content: stretch;
	}

	.bb-form-actions .btn {
		flex: 1;
	}
}

.bb-form-close {
	position: absolute;
	top: 0.65rem;
	right: 0.7rem;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cad8e8;
	background: #ffffff;
	border-radius: 999px;
	color: #49617a;
	text-decoration: none;
	z-index: 2;
}

.bb-form-close:hover,
.bb-form-close:focus {
	background: #eef4fb;
	color: #2d4f6d;
}

#output {
	background-color: #0f1c33;
	color: #d6e2ff;
	border-radius: 0.6rem;
	padding: 1rem;
	max-height: 320px;
	overflow: auto;
}

.editable-field {
	background-color: #fff9ea;
	border: 1px dashed #d7bb74;
	border-radius: 0.45rem;
	padding: 0.35rem 0.5rem;
	min-height: 2.2rem;
	display: block;
}

.editable-field:focus {
	outline: 2px solid #f4b942;
	outline-offset: 0;
	background-color: #fffef7;
}
