/*
 * Bilal Oil Market Intelligence — public dashboard.
 * Everything is scoped to .bomi-dash so the theme is not affected.
 * The main column is a size container: cards and panels adapt to the width
 * they are given (full screen, a full-width block or a narrower column).
 * The sidebar becomes a drawer on small screens, or when the dashboard
 * itself is narrow (the script adds .bomi-dash--compact).
 */

@font-face {
	font-family: "BOMI Inter";
	src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BOMI Inter";
	src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BOMI Inter";
	src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BOMI Inter";
	src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BOMI Serif";
	src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "BOMI Serif";
	src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------ tokens and reset */

.bomi-dash {
	--bomi-green: #0b3d2e;
	--bomi-green-2: #0e4a37;
	--bomi-green-ink: #12382b;
	--bomi-gold: #c8a24a;
	--bomi-gold-2: #b48c37;
	--bomi-ink: #1d2a24;
	--bomi-muted: #66756e;
	--bomi-line: #e3e8e4;
	--bomi-bg: #f2f4f1;
	--bomi-panel: #fff;
	--bomi-up: #1e8e3e;
	--bomi-down: #d93025;
	--bomi-flat: #7a8a82;
	--bomi-pill: #e7f1ea;
	--bomi-pill-ink: #2b5a43;
	--bomi-radius: 7px;
	--bomi-shadow: 0 1px 2px rgba(16, 40, 30, 0.05), 0 2px 8px rgba(16, 40, 30, 0.04);
	--bomi-sans: "BOMI Inter", system-ui, -apple-system, "Segoe UI", roboto, arial, sans-serif;
	--bomi-serif: "BOMI Serif", georgia, "Times New Roman", serif;

	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	grid-template-areas: "side main" "foot foot";
	position: relative;
	max-width: none;
	margin-block: 0;
	background: var(--bomi-bg);
	color: var(--bomi-ink);
	font-family: var(--bomi-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.bomi-dash *,
.bomi-dash *::before,
.bomi-dash *::after {
	box-sizing: border-box;
}

.bomi-dash :where(h1, h2, h3, h4, p, ul, ol, li, figure, table, form) {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: inherit;
	letter-spacing: normal;
	text-transform: none;
	list-style: none;
}

.bomi-dash :where(h1, h2, h3, h4) {
	color: inherit;
	font-weight: 600;
	line-height: 1.2;
}

.bomi-dash img,
.bomi-dash svg {
	display: inline-block;
	max-width: none;
	height: auto;
	vertical-align: middle;
	border: 0;
	box-shadow: none;
}

.bomi-dash a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.bomi-dash a:hover {
	text-decoration: underline;
}

.bomi-dash :where(button) {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.bomi-dash :where(button, a, input, summary):focus-visible {
	outline: 2px solid var(--bomi-gold);
	outline-offset: 2px;
}

.bomi-dash [hidden] {
	display: none !important;
}

.bomi-dash .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bomi-dash table {
	width: 100%;
	border-collapse: collapse;
	background: none;
}

.bomi-dash :where(th, td) {
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	vertical-align: middle;
}

/* Full-screen page and theme breakout. */

.bomi-canvas-body {
	margin: 0;
	background: #f2f4f1;
}

.bomi-dash--canvas {
	min-height: 100vh;
}

.bomi-dash.alignfull {
	width: auto;
	margin-inline: 0;
}

.bomi-dash--no-sidebar {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "main" "foot";
}

/* ------------------------------------------------------------------ sidebar */

.bomi-side {
	grid-area: side;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 14px 0 0;
	background: linear-gradient(180deg, #0b3d2e 0%, #0a3729 55%, #082e23 100%);
	color: #fff;
}

.bomi-side__close {
	display: none;
}

.bomi-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 18px 0 22px;
	color: #fff;
}

.bomi-brand:hover {
	text-decoration: none !important;
}

.bomi-brand__logo {
	width: 46px;
	height: auto;
	flex: none;
}

.bomi-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.bomi-brand__name {
	font-family: var(--bomi-serif);
	font-size: 25px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bomi-brand__sub {
	margin-top: 2px;
	font-family: var(--bomi-serif);
	font-size: 18.5px;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.bomi-brand__tag {
	margin-top: 6px;
	color: #e7dcbd;
	font-size: 8.5px;
	letter-spacing: 0.04em;
}

.bomi-nav {
	margin-top: 20px;
}

.bomi-nav__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bomi-nav__link {
	display: flex;
	align-items: center;
	gap: 14px;
	width: calc(100% - 20px);
	min-height: 40px;
	margin: 0 10px;
	padding: 0 12px 0 14px;
	border-radius: 6px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	text-align: left;
}

.bomi-nav__link span {
	flex: 1;
}

.bomi-nav__link:hover {
	background: rgba(255, 255, 255, 0.07);
	text-decoration: none !important;
}

.bomi-nav__item.is-current > .bomi-nav__link {
	background: linear-gradient(90deg, #c8a24a 0%, #bf9a43 60%, #b18a36 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.18);
}

.bomi-nav__chev {
	opacity: 0.85;
	transition: transform 0.15s ease;
}

.bomi-nav__link[aria-expanded="true"] .bomi-nav__chev {
	transform: rotate(180deg);
}

.bomi-nav__sub {
	margin: 2px 10px 4px 46px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.bomi-nav__sub a {
	display: block;
	padding: 5px 4px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12.5px;
}

.bomi-nav__sub a[aria-current="page"] {
	color: var(--bomi-gold);
	font-weight: 600;
}

.bomi-side__art {
	position: relative;
	flex: 1 0 400px;
	margin-top: 24px;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

.bomi-side__tagline {
	position: absolute;
	left: 24px;
	right: 18px;
	bottom: 36px;
	color: #fff;
	font-family: var(--bomi-serif);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.32;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.bomi-side__overlay {
	display: none;
}

/* ------------------------------------------------------------------ main and top bar */

.bomi-dash__main {
	container: bomi / inline-size;
	grid-area: main;
	min-width: 0;
}

.bomi-top {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 62px;
	padding: 8px 24px 8px 26px;
	background: #fff;
	border-bottom: 1px solid var(--bomi-line);
}

.bomi-top__menu {
	display: none;
	padding: 6px;
	border-radius: 6px;
	color: var(--bomi-green);
}

.bomi-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 1 552px;
	min-width: 180px;
	height: 32px;
	padding: 0 6px 0 12px;
	border: 1px solid #cfd8d3;
	border-radius: 17px;
	background: #fff;
}

.bomi-search__icon {
	color: #35463e;
	flex: none;
}

.bomi-dash .bomi-search input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 30px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--bomi-ink);
	font: 400 12.5px/1 var(--bomi-sans);
	outline: none;
}

.bomi-dash .bomi-search input::placeholder {
	color: #7c8a83;
}

.bomi-search__go {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #35463e;
}

.bomi-search:focus-within {
	border-color: var(--bomi-gold);
	box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.2);
}

.bomi-search__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 50;
	max-height: 360px;
	overflow: auto;
	padding: 6px;
	border: 1px solid var(--bomi-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 40, 30, 0.14);
}

.bomi-search__group {
	padding: 6px 8px 2px;
	color: var(--bomi-muted);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bomi-search__item {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 6px;
	font-size: 12.5px;
}

.bomi-search__item small {
	color: var(--bomi-muted);
	white-space: nowrap;
}

.bomi-search__item:hover,
.bomi-search__item.is-active {
	background: #f1f5f2;
	text-decoration: none !important;
}

.bomi-search__msg {
	padding: 10px;
	color: var(--bomi-muted);
	font-size: 12.5px;
}

.bomi-top__date {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	color: var(--bomi-green-ink);
}

.bomi-top__date div {
	display: flex;
	flex-direction: column;
}

.bomi-top__date strong {
	font-size: 13px;
	font-weight: 600;
}

.bomi-top__date span {
	color: #3f4e47;
	font-size: 10.5px;
	white-space: nowrap;
}

.bomi-top__status {
	display: flex;
	align-items: center;
	gap: 7px;
	padding-right: 18px;
	border-right: 1px solid var(--bomi-line);
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
}

.bomi-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9aa59f;
}

.bomi-top__status.is-ok .bomi-dot {
	background: #1f8a3c;
	box-shadow: 0 0 0 3px rgba(31, 138, 60, 0.15);
}

.bomi-top__status.is-delayed .bomi-dot {
	background: #d99a12;
	box-shadow: 0 0 0 3px rgba(217, 154, 18, 0.18);
}

.bomi-top__lang {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid #d6ddd8;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
}

.bomi-drop {
	position: relative;
}

.bomi-drop > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
}

.bomi-drop > summary::-webkit-details-marker {
	display: none;
}

.bomi-drop > ul {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 50;
	min-width: 180px;
	padding: 6px;
	border: 1px solid var(--bomi-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 40, 30, 0.14);
}

.bomi-drop > ul a {
	display: block;
	padding: 7px 10px;
	border-radius: 6px;
	font-size: 12.5px;
}

.bomi-drop > ul a:hover {
	background: #f1f5f2;
	text-decoration: none !important;
}

.bomi-top__lang.bomi-drop {
	padding: 0;
}

.bomi-top__lang.bomi-drop > summary {
	padding: 5px 12px;
}

.bomi-top__account {
	padding-left: 18px;
	border-left: 1px solid var(--bomi-line);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.bomi-avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bomi-green);
}

/* ------------------------------------------------------------------ hero */

.bomi-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 116px;
	padding: 12px 34px 14px 28px;
	background:
		linear-gradient(90deg, #fbfbf8 0%, rgba(251, 251, 248, 0.97) 32%, rgba(251, 251, 248, 0.6) 52%, rgba(251, 251, 248, 0) 70%),
		var(--bomi-hero-image) right center / cover no-repeat,
		#f5ecd7;
	overflow: hidden;
}

.bomi-hero__kicker {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--bomi-gold-2);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bomi-hero__kicker::before {
	content: "";
	width: 16px;
	height: 3px;
	background: var(--bomi-gold);
}

.bomi-dash .bomi-hero__title {
	margin-top: 1px;
	color: var(--bomi-green);
	font-family: var(--bomi-serif);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.005em;
}

.bomi-hero__sub {
	margin-top: 6px;
	color: #1f2d27;
	font-size: 14.5px;
}

.bomi-hero__tagline {
	position: relative;
	flex: none;
	padding-bottom: 12px;
	color: #1d3a2e;
	font-family: var(--bomi-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.04;
	text-align: right;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.bomi-hero__tagline::after {
	content: "";
	position: absolute;
	right: 4px;
	bottom: 0;
	width: 36px;
	height: 3px;
	background: var(--bomi-gold);
}

/* ------------------------------------------------------------------ content grid */

.bomi-dash__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 18px 16px 20px;
}

.bomi-row {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.bomi-row--a {
	grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
}

.bomi-row--b {
	grid-template-columns: minmax(0, 2.11fr) minmax(0, 1fr);
	align-items: start;
}

.bomi-row--c {
	grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
	align-items: start;
}

.bomi-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

/* ------------------------------------------------------------------ panels */

.bomi-panel {
	min-width: 0;
	padding: 12px 14px 12px;
	border: 1px solid var(--bomi-line);
	border-radius: var(--bomi-radius);
	background: var(--bomi-panel);
	box-shadow: var(--bomi-shadow);
}

.bomi-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 28px;
	margin-bottom: 8px;
}

.bomi-dash .bomi-panel__head h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--bomi-green-ink);
	font-family: var(--bomi-serif);
	font-size: 17px;
	font-weight: 600;
}

.bomi-panel__head h3 .bomi-icon {
	flex: none;
	color: var(--bomi-green);
}

.bomi-dash .bomi-col--side .bomi-panel__head h3 {
	font-size: 16px;
	white-space: nowrap;
}

.bomi-reports {
	padding-right: 12px;
	padding-left: 12px;
}

.bomi-reports .bomi-panel__head,
.bomi-col--side .bomi-panel__head {
	flex-wrap: wrap;
	row-gap: 4px;
}

.bomi-reports .bomi-panel__head {
	column-gap: 6px;
}

.bomi-dash .bomi-reports .bomi-panel__head h3 {
	gap: 6px;
	font-size: 14.5px;
	white-space: nowrap;
}

.bomi-reports .bomi-panel__head h3 .bomi-icon {
	width: 20px;
	height: 20px;
}

.bomi-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--bomi-green) !important;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.bomi-panel__note {
	margin-top: 8px !important;
	color: var(--bomi-muted);
	font-size: 10.5px;
}

.bomi-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	background: var(--bomi-pill);
	color: var(--bomi-pill-ink);
	font-size: 9.5px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

.bomi-pill--muted {
	background: #eef0ef;
	color: #6b7671;
}

.bomi-badge {
	display: inline-block;
	min-width: 62px;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11.5px;
	font-weight: 500;
	text-align: center;
}

.bomi-badge--bullish,
.bomi-badge--official {
	background: #e3f3e6;
	color: #1d7a37;
}

.bomi-badge--bearish {
	background: #fde4e2;
	color: #c62f24;
}

.bomi-badge--neutral {
	background: #eceeed;
	color: #4f5a55;
}

.bomi-badge--market {
	background: #fbf0d9;
	color: #9a6b12;
}

.is-up {
	color: var(--bomi-up) !important;
}

.is-down {
	color: var(--bomi-down) !important;
}

.is-flat {
	color: var(--bomi-flat) !important;
}

.bomi-muted {
	color: var(--bomi-muted);
}

.bomi-unit {
	color: #7b8882;
	font-size: 10.5px;
}

.bomi-nowrap {
	white-space: nowrap;
}

/* States: loading, empty, error. */

.bomi-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 12px;
	color: var(--bomi-muted);
	font-size: 12.5px;
	text-align: center;
}

.bomi-state .bomi-icon {
	color: #a4b1aa;
}

.bomi-state--error {
	color: #9b2c22;
}

.bomi-state--error .bomi-icon {
	color: #d0574b;
}

.bomi-state--error button {
	padding: 5px 12px;
	border: 1px solid #d0d8d3;
	border-radius: 6px;
	background: #fff;
	color: var(--bomi-ink);
	font-size: 12px;
}

.bomi-spinner {
	width: 22px;
	height: 22px;
	border: 2.5px solid #dfe6e1;
	border-top-color: var(--bomi-green);
	border-radius: 50%;
	animation: bomi-spin 0.8s linear infinite;
}

@keyframes bomi-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ------------------------------------------------------------------ price cards */

.bomi-cards {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 9px;
}

.bomi-card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	grid-template-areas:
		"img name"
		"img price"
		"img change"
		"meta meta"
		"foot foot";
	align-content: start;
	min-width: 0;
	min-height: 138px;
	padding: 12px 10px 10px 9px;
	border: 1px solid var(--bomi-line);
	border-radius: var(--bomi-radius);
	background: #fff;
	box-shadow: var(--bomi-shadow);
}

.bomi-card.is-focus {
	border-color: var(--bomi-gold);
	box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.25), var(--bomi-shadow);
}

.bomi-card__img {
	grid-area: img;
	width: 50px;
	height: 50px;
	margin-top: 2px;
}

.bomi-dash .bomi-card__name {
	grid-area: name;
	overflow: hidden;
	color: var(--bomi-green-ink);
	font-family: var(--bomi-serif);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.bomi-card__price {
	grid-area: price;
	margin-top: 5px !important;
	color: #142019;
	font-size: 18.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.bomi-card__price--none {
	color: #8a968f;
	font-size: 14px;
	font-weight: 600;
}

.bomi-card__change {
	grid-area: change;
	margin-top: 4px !important;
	color: var(--bomi-muted);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.bomi-card.is-empty .bomi-card__change {
	white-space: normal;
	font-size: 11px;
}

.bomi-card__meta {
	grid-area: meta;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6px;
	min-height: 34px;
	margin-top: -4px;
	padding-left: 56px;
}

.bomi-card__unit {
	padding-bottom: 6px;
	color: #7b8882;
	font-size: 9.5px;
	white-space: nowrap;
}

.bomi-spark {
	flex: 0 1 auto;
	min-width: 0;
}

.bomi-card__foot {
	grid-area: foot;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: 6px !important;
	min-width: 0;
}

.bomi-card__foot .bomi-pill {
	overflow: hidden;
	text-overflow: ellipsis;
}

.bomi-card__asof {
	color: #8a968f;
	font-size: 9.5px;
	white-space: nowrap;
}

.bomi-card__fix {
	color: var(--bomi-green) !important;
	font-size: 10px;
	font-weight: 600;
}

/* ------------------------------------------------------------------ trends */

.bomi-trends {
	display: flex;
	flex-direction: column;
}

.bomi-range,
.bomi-mode {
	display: flex;
	gap: 5px;
}

.bomi-range button,
.bomi-mode button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 23px;
	padding: 0 8px;
	border: 1px solid #d6ddd8;
	border-radius: 4px;
	background: #fff;
	color: #26352e;
	font-size: 11px;
	font-weight: 500;
}

.bomi-range button[aria-pressed="true"],
.bomi-mode button[aria-pressed="true"] {
	border-color: var(--bomi-green);
	background: var(--bomi-green);
	color: #fff;
}

.bomi-range button:hover,
.bomi-mode button:hover {
	border-color: var(--bomi-green);
}

.bomi-trends__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: -2px 0 4px;
}

.bomi-mode button {
	min-width: 0;
	height: 21px;
	font-size: 10.5px;
}

.bomi-custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-right: auto;
	font-size: 11px;
}

.bomi-custom label {
	display: flex;
	align-items: center;
	gap: 4px;
}

.bomi-dash .bomi-custom input {
	height: 24px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid #d6ddd8;
	border-radius: 4px;
	background: #fff;
	color: var(--bomi-ink);
	font: 400 11px var(--bomi-sans);
}

.bomi-custom button {
	height: 24px;
	padding: 0 10px;
	border-radius: 4px;
	background: var(--bomi-green);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.bomi-trends__plot {
	position: relative;
	height: 170px;
	min-height: 150px;
}

.bomi-trends__plot canvas {
	width: 100% !important;
	height: 100% !important;
}

.bomi-trends__plot .bomi-state {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.86);
}

.bomi-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	margin-top: 10px;
}

.bomi-legend button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 2px 4px;
	border-radius: 4px;
	color: #34443c;
	font-size: 11.5px;
}

.bomi-legend button[aria-pressed="false"] {
	color: #9aa49f;
}

.bomi-legend button[aria-pressed="false"] .bomi-legend__mark {
	background: #c9d0cc;
}

.bomi-legend button:disabled {
	cursor: not-allowed;
	text-decoration: line-through;
}

.bomi-legend__mark {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bomi-series);
}

.bomi-trends__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-top: 6px;
}

.bomi-trends__note {
	flex: 1 1 300px;
	color: var(--bomi-muted);
	font-size: 10px;
}

.bomi-trends__table {
	font-size: 11px;
}

.bomi-trends__table summary {
	color: var(--bomi-muted);
	font-size: 10px;
	cursor: pointer;
}

.bomi-trends__table[open] {
	flex-basis: 100%;
}

/* ------------------------------------------------------------------ signals */

.bomi-signals__list li {
	display: grid;
	grid-template-columns: 34px minmax(80px, 0.9fr) 84px minmax(0, 2.6fr);
	align-items: center;
	gap: 10px;
	min-height: 43px;
	padding: 4px 4px 4px 2px;
	border-bottom: 1px solid #eef1ee;
}

.bomi-signals__list li:last-child {
	border-bottom: 0;
}

.bomi-signals__list img {
	width: 28px;
	height: 28px;
	justify-self: center;
}

.bomi-signal__name {
	color: #1c2a23;
	font-family: var(--bomi-serif);
	font-size: 13px;
	font-weight: 600;
}

.bomi-signal__why {
	color: #5d6b64;
	font-size: 11.5px;
	line-height: 1.35;
}

.bomi-signal__by {
	color: var(--bomi-gold-2);
	font-style: normal;
}

/* ------------------------------------------------------------------ developments */

.bomi-dev__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.bomi-dev__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--bomi-line);
	border-radius: 6px;
	background: #fff;
}

.bomi-dev__top {
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.bomi-dev__img {
	display: block;
	width: 66px;
	height: 48px;
	border-radius: 3px;
	object-fit: cover;
}

.bomi-dev__img--art {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #f6efdc, #ebf2e8);
}

.bomi-dev__cat {
	color: #56645d;
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bomi-dash .bomi-dev__title {
	margin-top: 4px;
	color: #13261d;
	font-family: var(--bomi-serif);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
}

.bomi-dev__summary {
	display: -webkit-box;
	margin-top: 6px !important;
	overflow: hidden;
	color: #6a7871;
	font-size: 11px;
	line-height: 1.4;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.bomi-dev__foot {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto !important;
	padding-top: 8px;
	color: #7b8882;
	font-size: 10px;
}

/* ------------------------------------------------------------------ tables */

.bomi-table th,
.bomi-table td {
	padding: 5px 6px;
	border-bottom: 1px solid #eef1ee;
	font-size: 11.5px;
}

.bomi-table thead th {
	background: #f5f7f5;
	color: #3d4b44;
	font-size: 11px;
	font-weight: 500;
}

.bomi-table tbody tr:last-child > * {
	border-bottom: 0;
}

.bomi-snap {
	container: snap / inline-size;
}

.bomi-snap__table td.bomi-muted {
	white-space: normal;
}

@container snap (max-width: 392px) {

	.bomi-snap__table th:last-child,
	.bomi-snap__table td:last-child:not([colspan]) {
		display: none;
	}
}

.bomi-snap__table tbody th {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	white-space: nowrap;
}

.bomi-snap__table td:nth-child(2),
.bomi-snap__table td:nth-child(3) {
	white-space: nowrap;
}

.bomi-snap__table td:last-child {
	width: 92px;
}

.bomi-news__src {
	color: #142019;
	font-weight: 600;
}

.bomi-news__table td a {
	color: #22312a;
}

.bomi-impact {
	white-space: nowrap;
}

.bomi-impact small {
	color: #98a39d;
	font-size: 9px;
}

.bomi-impact--bullish {
	color: var(--bomi-up);
}

.bomi-impact--bearish {
	color: var(--bomi-down);
}

.bomi-impact--neutral,
.bomi-impact--none {
	color: #7d8a84;
}

.bomi-impact__level {
	margin-left: 4px;
	padding: 1px 5px;
	border-radius: 9px;
	background: #f1f3f1;
	color: #5d6b64;
	font-size: 9.5px;
	font-weight: 500;
}

.bomi-impact__level--high {
	background: #fbeed2;
	color: #7a5a12;
}

.bomi-impact__level--medium {
	background: #eef3ee;
	color: #2f5a44;
}

.bomi-dev__impact {
	margin-top: 6px !important;
	font-size: 10.5px;
}

.bomi-dev__sources {
	color: #7b8882;
	font-size: 10px;
}

.bomi-news__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 3px;
	font-size: 10px;
}

.bomi-panel__links {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.bomi-dash .bomi-chip {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 10px;
	background: var(--bomi-pill);
	color: var(--bomi-pill-ink);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
}

.bomi-dash .bomi-chip:hover,
.bomi-dash .bomi-chip:focus-visible {
	background: #d9eadf;
}

/* ------------------------------------------------------------------ news page */

.bomi-newsview {
	padding: 18px 20px 20px;
	border: 1px solid var(--bomi-line);
	border-radius: var(--bomi-radius);
	background: var(--bomi-panel);
	box-shadow: var(--bomi-shadow);
}

.bomi-dash .bomi-newsview__head h2 {
	margin: 0;
	color: var(--bomi-green);
	font-family: var(--bomi-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.bomi-newsview__head p {
	max-width: 760px;
	margin-top: 6px !important;
	color: var(--bomi-muted);
	font-size: 13px;
	line-height: 1.5;
}

.bomi-newsview__filters {
	display: grid;
	grid-template-columns: minmax(200px, 2fr) repeat(6, minmax(110px, 1fr)) auto;
	gap: 10px;
	align-items: end;
	margin-top: 16px;
	padding: 12px;
	border-radius: 6px;
	background: #f6f8f6;
}

.bomi-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bomi-dash .bomi-field label {
	color: #4b5952;
	font-size: 11px;
	font-weight: 600;
}

.bomi-dash .bomi-field input,
.bomi-dash .bomi-field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 6px 9px;
	border: 1px solid #cfd8d2;
	border-radius: 5px;
	background: #fff;
	color: var(--bomi-ink);
	font: 13px/1.3 var(--bomi-sans);
}

.bomi-dash .bomi-field input:focus,
.bomi-dash .bomi-field select:focus {
	border-color: var(--bomi-green);
	outline: 2px solid rgba(200, 162, 74, 0.55);
	outline-offset: 0;
}

.bomi-newsview__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 36px;
}

.bomi-dash .bomi-btn {
	min-height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 5px;
	background: var(--bomi-green);
	color: #fff;
	font: 600 13px/1 var(--bomi-sans);
	cursor: pointer;
}

.bomi-dash .bomi-btn:hover,
.bomi-dash .bomi-btn:focus-visible {
	background: var(--bomi-green-2);
	color: var(--bomi-gold);
}

.bomi-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.bomi-dash .bomi-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border: 1px solid var(--bomi-line);
	border-radius: 16px;
	background: #fff;
	color: #2b3a33;
	font-size: 12px;
	text-decoration: none;
}

.bomi-dash .bomi-chips a span {
	color: var(--bomi-muted);
	font-size: 11px;
}

.bomi-dash .bomi-chips a[aria-current="page"] {
	border-color: var(--bomi-green);
	background: var(--bomi-green);
	color: #fff;
}

.bomi-dash .bomi-chips a[aria-current="page"] span {
	color: var(--bomi-gold);
}

.bomi-newsview__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
	margin-top: 16px;
}

.bomi-newsview__count {
	color: var(--bomi-muted);
	font-size: 12px;
}

.bomi-feed {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.bomi-feed__item {
	padding: 14px 0 14px 12px;
	border-bottom: 1px solid #edf0ed;
	border-left: 3px solid #dfe5e1;
}

.bomi-feed__item--bullish {
	border-left-color: var(--bomi-up);
}

.bomi-feed__item--bearish {
	border-left-color: var(--bomi-down);
}

.bomi-feed__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
}

.bomi-feed__topic {
	color: var(--bomi-muted);
	font-size: 11px;
}

.bomi-dash .bomi-feed__title {
	margin: 6px 0 0;
	font-family: var(--bomi-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.bomi-dash .bomi-feed__title a {
	color: #13261d;
	text-decoration: none;
}

.bomi-dash .bomi-feed__title a:hover,
.bomi-dash .bomi-feed__title a:focus-visible {
	color: var(--bomi-green);
	text-decoration: underline;
}

.bomi-feed__src {
	margin-top: 4px !important;
	color: #45534c;
	font-size: 12px;
}

.bomi-feed__summary {
	margin-top: 6px !important;
	color: #4f5d56;
	font-size: 13px;
	line-height: 1.5;
}

.bomi-feed__why,
.bomi-feed__copies {
	margin-top: 6px;
	font-size: 12px;
}

.bomi-dash .bomi-feed__why summary,
.bomi-dash .bomi-feed__copies summary {
	color: var(--bomi-green);
	cursor: pointer;
}

.bomi-feed__why p,
.bomi-feed__copies ul {
	margin: 4px 0 0 !important;
	padding: 6px 10px !important;
	border-radius: 4px;
	background: #f6f8f6;
	color: #45534c;
	line-height: 1.5;
}

.bomi-feed__copies ul {
	list-style: none;
}

.bomi-pager ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.bomi-dash .bomi-pager a {
	display: inline-flex;
	align-items: center;
	min-width: 34px;
	min-height: 34px;
	justify-content: center;
	padding: 0 10px;
	border: 1px solid var(--bomi-line);
	border-radius: 5px;
	color: var(--bomi-green);
	font-size: 13px;
	text-decoration: none;
}

.bomi-dash .bomi-pager a[aria-current="page"] {
	border-color: var(--bomi-green);
	background: var(--bomi-green);
	color: #fff;
}

.bomi-newsview__side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bomi-side-box {
	padding: 14px;
	border: 1px solid var(--bomi-line);
	border-radius: 6px;
	background: #fbfcfb;
	font-size: 12.5px;
	line-height: 1.5;
}

.bomi-dash .bomi-side-box h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--bomi-green);
	font-family: var(--bomi-serif);
	font-size: 15px;
	font-weight: 600;
}

.bomi-dash .bomi-side-box h4 {
	margin: 12px 0 6px;
	color: #2b3a33;
	font-size: 12.5px;
	font-weight: 600;
}

.bomi-side-box p + p {
	margin-top: 8px !important;
}

.bomi-side-box ul {
	margin: 0 !important;
	padding-left: 18px !important;
}

.bomi-side-box__note {
	margin-top: 8px !important;
	color: var(--bomi-muted);
	font-size: 11px;
}

.bomi-ai-badge {
	padding: 1px 7px;
	border-radius: 9px;
	background: #2f3d8a;
	color: #fff;
	font-family: var(--bomi-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.bomi-dash .bomi-brief__list {
	padding-left: 16px !important;
}

.bomi-brief__list li + li {
	margin-top: 8px;
}

.bomi-brief__refs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px !important;
	font-size: 11px;
}

.bomi-china__table {
	width: 100%;
}

.bomi-china__table th,
.bomi-china__table td {
	padding: 4px 5px;
	font-size: 11px;
	white-space: nowrap;
}

.bomi-china__table thead th {
	font-size: 10.5px;
	line-height: 1.25;
	white-space: normal;
}

.bomi-dash .bomi-sources ul {
	list-style: disc;
}

.bomi-sources li + li {
	margin-top: 4px;
}

.bomi-china__table tbody th {
	font-weight: 500;
	white-space: normal;
}

.bomi-china__esr {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
}

.bomi-china__esr div {
	padding: 6px;
	border-radius: 4px;
	background: #eef3ef;
}

.bomi-china__esr dt {
	color: var(--bomi-muted);
	font-size: 10.5px;
}

.bomi-china__esr dd {
	margin: 0;
	font-weight: 600;
}

.bomi-newsview .bomi-china {
	margin-bottom: 12px;
}

.bomi-dash .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.bomi-dash--news-only {
	display: block;
	background: transparent;
}

.bomi-dash--news-only .bomi-dash__main,
.bomi-dash--news-only .bomi-dash__content {
	padding: 0;
}

@container bomi (max-width: 1180px) {

	.bomi-newsview__filters {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bomi-field--q {
		grid-column: span 2;
	}
}

@container bomi (max-width: 900px) {

	.bomi-newsview__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@container bomi (max-width: 560px) {

	.bomi-newsview {
		padding: 14px 12px;
	}

	.bomi-newsview__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bomi-field--q,
	.bomi-newsview__actions {
		grid-column: 1 / -1;
	}

	.bomi-dash .bomi-newsview__head h2 {
		font-size: 20px;
	}

	.bomi-china__esr {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ reports and links */

.bomi-reports__list li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 6px 2px;
	border-bottom: 1px solid #eef1ee;
}

.bomi-reports__list li:last-child {
	border-bottom: 0;
}

.bomi-reports__list .bomi-icon {
	color: var(--bomi-green);
}

.bomi-reports__title {
	color: #13261d;
	font-size: 11.5px;
	font-weight: 600;
}

.bomi-reports__date {
	color: #7b8882;
	font-size: 10.5px;
}

.bomi-reports__list .bomi-badge {
	min-width: 0;
	padding: 2px 9px;
	font-size: 10px;
}

.bomi-links__list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 2px;
	color: #24342c;
	font-size: 11.5px;
}

.bomi-links__list li a span:first-of-type {
	flex: 1;
}

.bomi-links__ext {
	color: #4c5b54;
}

/* ------------------------------------------------------------------ footer */

.bomi-credits {
	margin: 2px 2px 0 !important;
	color: #6b7a72;
	font-size: 10.5px;
	line-height: 1.5;
}

.bomi-foot {
	grid-area: foot;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 52px;
	padding: 10px 28px 10px 26px;
	background: #0b3d2e;
	color: #fff;
	font-size: 11px;
}

.bomi-foot__left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bomi-foot__left strong {
	font-weight: 700;
	letter-spacing: 0.03em;
}

.bomi-foot__right {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ------------------------------------------------------------------ responsive (by dashboard width) */

@container bomi (max-width: 1240px) {

	.bomi-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bomi-dev__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container bomi (max-width: 1120px) {

	.bomi-row--a,
	.bomi-row--b {
		grid-template-columns: minmax(0, 1fr);
	}

	.bomi-trends__plot {
		height: 240px;
	}
}

/* Sidebar as a drawer: small screens, or a narrow dashboard. */

@media (max-width: 1180px) {

	.bomi-dash:not(.bomi-dash--no-sidebar) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "main" "foot";
	}

	.bomi-dash.is-js .bomi-side {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		width: 268px;
		max-width: 86vw;
		min-height: 0;
		overflow-y: auto;
		transform: translateX(-102%);
		transition: transform 0.2s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
	}

	.bomi-dash:not(.is-js) .bomi-side {
		grid-area: auto;
	}

	.bomi-dash.is-js .bomi-side__close,
	.bomi-dash.is-js .bomi-top__menu {
		display: grid;
		place-items: center;
	}

	.bomi-dash.is-js .bomi-side__overlay {
		position: fixed;
		inset: 0;
		z-index: 99999;
		display: block;
		background: rgba(4, 20, 14, 0.45);
	}
}

.bomi-dash.bomi-dash--compact:not(.bomi-dash--no-sidebar) {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "main" "foot";
}

.bomi-dash--compact .bomi-side {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	width: 268px;
	max-width: 86vw;
	min-height: 0;
	overflow-y: auto;
	transform: translateX(-102%);
	transition: transform 0.2s ease;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.bomi-dash--compact .bomi-side__close,
.bomi-dash--compact .bomi-top__menu {
	display: grid;
	place-items: center;
}

.bomi-dash--compact .bomi-side__overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: block;
	background: rgba(4, 20, 14, 0.45);
}

.bomi-dash.is-menu-open .bomi-side {
	transform: none;
}

.bomi-side__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	color: #fff;
}

.bomi-top__menu {
	width: 36px;
	height: 36px;
	flex: none;
}

@container bomi (max-width: 860px) {

	.bomi-top {
		flex-wrap: wrap;
		gap: 10px 14px;
		padding: 10px 16px;
	}

	.bomi-search {
		order: 10;
		flex: 1 1 100%;
	}

	.bomi-top__date {
		margin-left: 0;
	}

	.bomi-top__status {
		margin-left: auto;
	}

	.bomi-top__account-name {
		display: none;
	}

	.bomi-hero {
		padding: 16px 18px;
	}

	.bomi-dash .bomi-hero__title {
		font-size: 30px;
	}

	.bomi-hero__tagline {
		font-size: 17px;
	}

	.bomi-row--c {
		grid-template-columns: minmax(0, 1fr);
	}

	.bomi-dash__content {
		padding: 10px 12px 14px;
	}
}

@container bomi (max-width: 640px) {

	.bomi-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bomi-hero {
		min-height: 0;
		background:
			linear-gradient(180deg, rgba(251, 251, 248, 0.94), rgba(251, 251, 248, 0.82)),
			var(--bomi-hero-image) right center / cover no-repeat;
	}

	.bomi-hero__tagline,
	.bomi-top__lang span,
	.bomi-top__status,
	p.bomi-top__lang {
		display: none;
	}

	.bomi-top__account {
		margin-left: auto;
		padding-left: 0;
		border-left: 0;
	}

	.bomi-dash .bomi-card__name {
		display: -webkit-box;
		line-height: 1.2;
		white-space: normal;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.bomi-card__foot {
		flex-wrap: wrap;
		row-gap: 4px;
	}

	.bomi-dash .bomi-hero__title {
		font-size: 25px;
	}

	.bomi-hero__sub {
		font-size: 13px;
	}

	.bomi-dev__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bomi-panel__head {
		flex-wrap: wrap;
	}

	.bomi-range {
		flex-wrap: wrap;
	}

	.bomi-signals__list li {
		grid-template-columns: 30px minmax(0, 1fr) auto;
		grid-template-areas: "img name badge" "why why why";
		row-gap: 2px;
		padding: 8px 2px;
	}

	.bomi-signals__list img {
		grid-area: img;
	}

	.bomi-signal__name {
		grid-area: name;
	}

	.bomi-signals__list .bomi-badge {
		grid-area: badge;
	}

	.bomi-signal__why {
		grid-area: why;
	}

	.bomi-news__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.bomi-news__table tr {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 2px 10px;
		padding: 8px 0;
		border-bottom: 1px solid #eef1ee;
	}

	.bomi-news__table td {
		padding: 0;
		border: 0;
	}

	.bomi-news__table td:nth-child(3) {
		grid-column: 1 / -1;
	}

	.bomi-foot {
		flex-direction: column;
		align-items: flex-start;
		padding: 14px 16px;
	}

	.bomi-trends__plot {
		height: 220px;
	}
}

@container bomi (max-width: 340px) {

	.bomi-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.bomi-top__date span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.bomi-dash *,
	.bomi-dash *::before,
	.bomi-dash *::after {
		animation: none !important;
		transition: none !important;
	}
}

@media print {

	.bomi-side,
	.bomi-top,
	.bomi-range,
	.bomi-trends__tools {
		display: none !important;
	}

	.bomi-dash {
		display: block;
	}
}

/* ------------------------------------------------------------------ report archive and calendar */

.bomi-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 14px 0 0;
	padding: 0;
	border-bottom: 1px solid var(--bomi-line);
	list-style: none;
}

.bomi-dash .bomi-tabs a {
	display: inline-block;
	margin-bottom: -1px;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: 6px 6px 0 0;
	color: var(--bomi-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.bomi-dash .bomi-tabs a:hover,
.bomi-dash .bomi-tabs a:focus-visible {
	color: var(--bomi-green);
}

.bomi-dash .bomi-tabs a[aria-current="page"] {
	border-color: var(--bomi-line) var(--bomi-line) var(--bomi-panel);
	background: var(--bomi-panel);
	color: var(--bomi-green);
}

.bomi-dash .bomi-report__series {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--bomi-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.bomi-dash .bomi-report__series:hover,
.bomi-dash .bomi-report__series:focus-visible {
	color: var(--bomi-gold);
}

.bomi-report__summary {
	margin-top: 8px;
	padding: 10px 12px;
	border-left: 3px solid var(--bomi-gold);
	border-radius: 0 5px 5px 0;
	background: #f8f6ef;
	font-size: 13px;
	line-height: 1.55;
}

.bomi-report__summary--data {
	border-left-color: #3a7bd5;
	background: #f2f6fc;
}

.bomi-report__summary--editor {
	border-left-color: var(--bomi-green);
	background: #f1f6f2;
}

.bomi-dash .bomi-report__summary p {
	margin: 0 0 6px;
}

.bomi-dash .bomi-report__summary p:last-child {
	margin-bottom: 0;
}

.bomi-dash .bomi-report__label {
	font-size: 11.5px;
}

.bomi-report__type {
	margin-right: 4px;
	color: var(--bomi-ink);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bomi-report__more summary {
	color: var(--bomi-green);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.bomi-report__more[open] summary {
	margin-bottom: 6px;
}

.bomi-dash .bomi-report__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 10px 0 0;
}

.bomi-dash .bomi-btn--small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 12px;
	font-size: 12px;
	text-decoration: none;
}

.bomi-dash .bomi-report__credit {
	margin: 8px 0 0;
	color: var(--bomi-muted);
	font-size: 11px;
}

.bomi-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	background: #eef1ee;
	color: #4b5952;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.bomi-status--published {
	background: #e3f3e7;
	color: #1b6b32;
}

.bomi-status--pending {
	background: #e8effa;
	color: #224f8f;
}

.bomi-status--due {
	background: #fdf1d8;
	color: #7a5300;
}

.bomi-calendar-mini {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.45;
}

.bomi-table-wrap {
	position: relative;
	overflow-x: auto;
	margin-top: 6px;
	border: 1px solid var(--bomi-line);
	border-radius: 6px;
}

.bomi-calendar {
	width: 100%;
	border-collapse: collapse;
}

.bomi-calendar td,
.bomi-calendar th {
	padding: 8px 10px;
	font-size: 12.5px;
	text-align: left;
	vertical-align: top;
}

.bomi-calendar__row--published td {
	background: #fbfdfb;
}

.bomi-calendar__row--past td {
	color: var(--bomi-muted);
}

.bomi-reports__all {
	margin: -4px 0 8px;
	font-size: 12px;
}

@container bomi (max-width: 560px) {

	.bomi-dash .bomi-tabs a {
		padding: 8px 10px;
		font-size: 12px;
	}

	.bomi-calendar td,
	.bomi-calendar th {
		padding: 6px;
		font-size: 12px;
	}
}

.bomi-dash .bomi-calendar__month th {
	padding: 10px 10px 6px;
	background: #f2f5f2;
	color: var(--bomi-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

@container bomi (max-width: 640px) {

	.bomi-calendar thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.bomi-calendar,
	.bomi-calendar tbody,
	.bomi-calendar tr,
	.bomi-calendar td,
	.bomi-calendar__month th {
		display: block;
		width: auto;
	}

	.bomi-calendar tr {
		padding: 10px 12px;
		border-bottom: 1px solid var(--bomi-line);
	}

	.bomi-calendar tr.bomi-calendar__month {
		padding: 0;
	}

	.bomi-dash .bomi-calendar td {
		padding: 2px 0;
		border: 0;
	}

	.bomi-calendar td:first-child {
		font-weight: 600;
	}

	.bomi-calendar td:first-child br {
		display: none;
	}

	.bomi-calendar td:first-child .bomi-muted::before {
		content: " · ";
	}
}

/* ------------------------------------------------------------------ phase 7: currency filter */

.bomi-dash .bomi-cur select {
	height: 23px;
	padding: 0 22px 0 6px;
	border: 1px solid #d6ddd8;
	border-radius: 4px;
	background-color: #fff;
	color: #26352e;
	font-size: 11px;
	line-height: 1;
}

.bomi-dash .bomi-cur select:focus-visible {
	outline: 2px solid var(--bomi-gold);
	outline-offset: 1px;
}

/* ------------------------------------------------------------------ evidence labels */

.bomi-kind {
	display: inline-block;
	padding: 1px 7px;
	border: 1px solid currentcolor;
	border-radius: 10px;
	font-family: var(--bomi-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}

.bomi-kind--observed {
	color: #1d6a49;
	background: #eaf5ef;
}

.bomi-kind--calculated {
	color: #3d5a80;
	background: #edf2f9;
}

.bomi-kind--analyst {
	color: #8a6416;
	background: #fbf3e2;
}

.bomi-kind--ai {
	color: #6b3fa0;
	background: #f3edfa;
}

.bomi-signals__list .bomi-evidence {
	grid-column: 1 / -1;
	margin: 0 0 4px 44px;
}

.bomi-evidence summary {
	width: max-content;
	color: var(--bomi-green-2);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
}

.bomi-evidence summary:focus-visible {
	outline: 2px solid var(--bomi-gold);
	outline-offset: 2px;
}

.bomi-evidence__list {
	max-height: 340px;
	margin: 6px 0 2px;
	padding: 0 6px 0 0;
	overflow-y: auto;
	list-style: none;
}

.bomi-evidence__item {
	display: block !important;
	min-height: 0 !important;
	padding: 6px 0 !important;
	border-bottom: 1px dashed #e3e8e4 !important;
}

.bomi-evidence__item:last-child {
	border-bottom: 0 !important;
}

.bomi-evidence__head,
.bomi-evidence__facts,
.bomi-evidence__formula,
.bomi-evidence__source,
.bomi-evidence__note {
	margin: 0 0 3px;
	color: #45544c;
	font-size: 11px;
	line-height: 1.45;
}

.bomi-evidence__head > span:not(.bomi-kind) {
	color: #1c2a23;
	font-weight: 600;
}

.bomi-evidence__date,
.bomi-evidence__formula {
	color: var(--bomi-muted) !important;
	font-weight: 400 !important;
}

.bomi-evidence__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.bomi-evidence__fact strong {
	color: #1c2a23;
	font-variant-numeric: tabular-nums;
}

.bomi-evidence__links {
	margin: 2px 0 4px;
	padding-left: 16px;
	font-size: 11px;
}

.bomi-evidence__links li {
	display: list-item !important;
	min-height: 0 !important;
	padding: 1px 0 !important;
	border: 0 !important;
}

.bomi-evidence__links span {
	color: var(--bomi-muted);
}

.bomi-dash .bomi-evidence a {
	color: var(--bomi-green-2);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ analytics page */

.bomi-analytics__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.bomi-analytics__legend .bomi-kind:not(:first-child) {
	margin-left: 10px;
}

.bomi-analytics__filters {
	grid-template-columns: repeat(7, minmax(110px, 1fr)) auto;
}

.bomi-analytics__section {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--bomi-line);
}

.bomi-analytics__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.bomi-dash .bomi-analytics__head h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--bomi-green-ink);
	font-family: var(--bomi-serif);
	font-size: 17px;
	font-weight: 600;
}

.bomi-analytics__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.bomi-dash .bomi-analytics__csv::before {
	content: "↓ ";
}

.bomi-analytics__table th,
.bomi-analytics__table td {
	font-size: 12.5px;
	white-space: nowrap;
}

.bomi-analytics__table td:last-child {
	white-space: normal;
}

.bomi-analytics__table .bomi-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.bomi-chg--up {
	color: var(--bomi-up);
}

.bomi-chg--down {
	color: var(--bomi-down);
}

.bomi-chg--flat {
	color: var(--bomi-flat);
}

.bomi-analytics__summaries {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bomi-analytics__summaries li {
	display: flex;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--bomi-line);
	border-radius: 6px;
	background: #fbfcfb;
}

.bomi-analytics__summaries img {
	flex: none;
	width: 32px;
	height: 32px;
}

.bomi-dash .bomi-analytics__summaries h4 {
	margin: 0 0 4px;
	color: #1c2a23;
	font-family: var(--bomi-serif);
	font-size: 14px;
}

.bomi-analytics__summaries p {
	margin: 0 0 4px;
	color: #3f4d46;
	font-size: 12.5px;
	line-height: 1.5;
}

.bomi-analytics__src {
	color: var(--bomi-muted) !important;
	font-size: 11px !important;
}

.bomi-analytics__chart {
	position: relative;
	height: 300px;
	margin-bottom: 14px;
}

.bomi-analytics__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 18px;
}

.bomi-dash .bomi-analytics__cols h4 {
	margin: 0 0 6px;
	color: #1c2a23;
	font-size: 13px;
}

.bomi-analytics__sub {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 8px;
	color: #3f4d46;
	font-size: 12.5px;
	font-weight: 600;
}

.bomi-analytics__stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin: 0;
}

.bomi-analytics__stats div {
	padding: 9px 11px;
	border: 1px solid var(--bomi-line);
	border-radius: 6px;
	background: #fbfcfb;
}

.bomi-analytics__stats dt {
	color: var(--bomi-muted);
	font-size: 11px;
}

.bomi-analytics__stats dd {
	margin: 2px 0 0;
	color: #1c2a23;
	font-size: 13.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.bomi-analytics__scroll {
	max-height: 420px;
	overflow: auto;
}

.bomi-analytics__aibrief {
	margin: 0;
	padding-left: 18px;
	color: #3f4d46;
	font-size: 13px;
	line-height: 1.55;
}

.bomi-analytics__ai {
	padding: 14px 16px;
	border: 1px dashed #cdb8e6;
	border-radius: 6px;
	background: #fcfaff;
}

.bomi-analytics__conventions {
	margin-top: 18px;
	color: #3f4d46;
	font-size: 12px;
}

.bomi-analytics__conventions summary {
	color: var(--bomi-green-2);
	font-weight: 600;
	cursor: pointer;
}

.bomi-analytics__conventions ul {
	margin: 8px 0 0;
	padding-left: 18px;
	line-height: 1.55;
}

@media (max-width: 1100px) {
	.bomi-analytics__filters {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bomi-analytics__cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.bomi-analytics__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bomi-analytics__chart {
		height: 240px;
	}

	.bomi-analytics__summaries {
		grid-template-columns: minmax(0, 1fr);
	}

	.bomi-signals__list .bomi-evidence {
		margin-left: 0;
	}
}
