/* ==========================================================================
   iKralFX Market Hours — front-end styles (no external dependencies)
   ========================================================================== */

.ikfxmh {
	--ikfxmh-accent: #f68420;
	--ikfxmh-volume: #10b981;
	--ikfxmh-radius: 20px;
	--ikfxmh-maxw: 1280px;
	--ikfxmh-card: #ffffff;
	--ikfxmh-text: #0f172a;
	--ikfxmh-muted: #64748b;
	--ikfxmh-line: #e7eaf0;
	--ikfxmh-line-soft: #eef1f5;
	--ikfxmh-stripe: #f7f9fc;
	--ikfxmh-soft: #f4f6fa;
	--ikfxmh-green: #16a34a;
	--ikfxmh-amber: #d97706;
	--ikfxmh-red: #dc2626;
	--ikfxmh-lw: 236px;
	--ikfxmh-bar: 24px;
	--ikfxmh-row: 74px;

	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ikfxmh-maxw);
	margin: 0 auto 1.5em;
	color: var(--ikfxmh-text);
	font-size: 14px;
	line-height: 1.6;
	text-align: start;
	position: relative;
	-webkit-font-smoothing: antialiased;
}
.ikfxmh *,
.ikfxmh *::before,
.ikfxmh *::after { box-sizing: border-box; }
.ikfxmh--font,
.ikfxmh--font button { font-family: 'IKFX Vazirmatn', 'Vazirmatn FD', 'Vazirmatn', Tahoma, sans-serif; }

.ikfxmh--bar-sm { --ikfxmh-bar: 16px; --ikfxmh-row: 66px; }
.ikfxmh--bar-lg { --ikfxmh-bar: 32px; --ikfxmh-row: 82px; }

/* Dark theme ------------------------------------------------------------- */
.ikfxmh--dark {
	--ikfxmh-card: #0e1525;
	--ikfxmh-text: #e6ebf5;
	--ikfxmh-muted: #93a1b8;
	--ikfxmh-line: rgba(148, 163, 184, .16);
	--ikfxmh-line-soft: rgba(148, 163, 184, .09);
	--ikfxmh-stripe: rgba(148, 163, 184, .045);
	--ikfxmh-soft: rgba(148, 163, 184, .08);
	--ikfxmh-green: #22c55e;
	--ikfxmh-amber: #f59e0b;
	--ikfxmh-red: #f87171;
}
@media (prefers-color-scheme: dark) {
	.ikfxmh--auto {
		--ikfxmh-card: #0e1525;
		--ikfxmh-text: #e6ebf5;
		--ikfxmh-muted: #93a1b8;
		--ikfxmh-line: rgba(148, 163, 184, .16);
		--ikfxmh-line-soft: rgba(148, 163, 184, .09);
		--ikfxmh-stripe: rgba(148, 163, 184, .045);
		--ikfxmh-soft: rgba(148, 163, 184, .08);
		--ikfxmh-green: #22c55e;
		--ikfxmh-amber: #f59e0b;
		--ikfxmh-red: #f87171;
	}
}

/* Card --------------------------------------------------------------------- */
.ikfxmh__card {
	position: relative;
	background: var(--ikfxmh-card);
	border-radius: var(--ikfxmh-radius);
	padding: 22px 24px 18px;
	overflow: hidden;
}
.ikfxmh--border .ikfxmh__card { border: 1px solid var(--ikfxmh-line); }
.ikfxmh--shadow .ikfxmh__card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .14); }
.ikfxmh--dark.ikfxmh--shadow .ikfxmh__card { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }

.ikfxmh__card::before { /* accent hairline */
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--ikfxmh-accent), transparent);
	opacity: .7;
}

.ikfxmh__head { margin: 0 0 14px; }
.ikfxmh .ikfxmh__title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--ikfxmh-text);
	letter-spacing: 0;
}
.ikfxmh .ikfxmh__subtitle { margin: 2px 0 0; padding: 0; font-size: 13px; color: var(--ikfxmh-muted); }

.ikfxmh button {
	font: inherit;
	line-height: 1.4;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	min-height: 0;
	cursor: pointer;
}
.ikfxmh svg { display: block; }
.ikfxmh button:focus { outline: none; }
.ikfxmh button:focus-visible { outline: 2px solid var(--ikfxmh-accent); outline-offset: 2px; }
.ikfxmh bdi { unicode-bidi: isolate; }

/* Skeleton (before JS) --------------------------------------------------- */
.ikfxmh__skeleton { padding-top: 130px; min-height: 420px; }
.ikfxmh__skeleton-row {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--ikfxmh-row);
	border-bottom: 1px solid var(--ikfxmh-line);
	color: var(--ikfxmh-muted);
	font-weight: 700;
}
.ikfxmh__skeleton-row span { width: 120px; }
.ikfxmh__skeleton-row i {
	flex: 1;
	height: 18px;
	border-radius: 9px;
	background: linear-gradient(90deg, var(--ikfxmh-soft) 25%, var(--ikfxmh-line) 50%, var(--ikfxmh-soft) 75%);
	background-size: 200% 100%;
	animation: ikfxmh-shimmer 1.4s linear infinite;
}
.ikfxmh.is-ready .ikfxmh__skeleton { display: none; }
.ikfxmh__noscript { color: var(--ikfxmh-muted); }

/* Toolbar ------------------------------------------------------------------ */
.ikfxmh__toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 6px;
	background: var(--ikfxmh-soft);
	border-radius: calc(var(--ikfxmh-radius) * .6);
}
.ikfxmh__toolrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ikfxmh__day { display: flex; align-items: center; gap: 10px; }
.ikfxmh__daytext { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.ikfxmh__dayname { font-size: 15px; font-weight: 800; }
.ikfxmh__daydates { font-size: 12px; color: var(--ikfxmh-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.ikfxmh__daydates i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }

.ikfxmh .ikfxmh__navbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--ikfxmh-line);
	background: var(--ikfxmh-card);
	color: var(--ikfxmh-text);
	transition: border-color .2s, color .2s, transform .2s;
}
.ikfxmh .ikfxmh__navbtn:hover { border-color: var(--ikfxmh-accent); color: var(--ikfxmh-accent); }
.ikfxmh .ikfxmh__navbtn:active { transform: scale(.94); }
.ikfxmh__navbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.ikfxmh__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ikfxmh__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: var(--ikfxmh-card);
	border: 1px solid var(--ikfxmh-line);
}
.ikfxmh__status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ikfxmh-muted); flex: none; }
.ikfxmh__status.is-open .ikfxmh__status-dot { background: var(--ikfxmh-green); box-shadow: 0 0 0 0 var(--ikfxmh-green); animation: ikfxmh-pulse 2s infinite; }
.ikfxmh__status.is-hot { color: var(--ikfxmh-accent); border-color: color-mix(in srgb, var(--ikfxmh-accent) 35%, transparent); }
.ikfxmh__status.is-hot .ikfxmh__status-dot { background: var(--ikfxmh-accent); animation: ikfxmh-pulse 1.6s infinite; }
.ikfxmh__status.is-weekend { color: var(--ikfxmh-red); }
.ikfxmh__status.is-weekend .ikfxmh__status-dot { background: var(--ikfxmh-red); }
.ikfxmh__next { font-size: 12px; color: var(--ikfxmh-muted); }
.ikfxmh__next bdi { font-weight: 700; color: var(--ikfxmh-text); font-variant-numeric: tabular-nums; }

.ikfxmh .ikfxmh__now {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 0;
	background: var(--ikfxmh-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	transition: filter .2s, transform .2s;
}
.ikfxmh .ikfxmh__now:hover { filter: brightness(1.08); }
.ikfxmh .ikfxmh__now[hidden] { display: none; }
.ikfxmh__now svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ikfxmh .ikfxmh__now--mini { padding: 3px 10px; font-size: 11px; margin-top: 4px; }

.ikfxmh__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ikfxmh-green); font-weight: 700; }
.ikfxmh__live[hidden] { display: none; }
.ikfxmh__live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ikfxmh-blink 1.6s infinite; }

/* Board grid ----------------------------------------------------------------- */
.ikfxmh__board {
	position: relative;
	display: grid;
	grid-template-columns: var(--ikfxmh-lw) minmax(0, 1fr);
	direction: ltr;
	user-select: none;
	-webkit-user-select: none;
}
.ikfxmh--labels-right .ikfxmh__board { grid-template-columns: minmax(0, 1fr) var(--ikfxmh-lw); }
.ikfxmh--labels-left .ikfxmh__label { grid-column: 1; border-right: 1px solid var(--ikfxmh-line); }
.ikfxmh--labels-left .ikfxmh__track,
.ikfxmh--labels-left .ikfxmh__layer { grid-column: 2; }
.ikfxmh--labels-right .ikfxmh__label { grid-column: 2; border-left: 1px solid var(--ikfxmh-line); }
.ikfxmh--labels-right .ikfxmh__track,
.ikfxmh--labels-right .ikfxmh__layer { grid-column: 1; }

.ikfxmh__label {
	direction: rtl;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 8px 14px;
	border-bottom: 1px solid var(--ikfxmh-line);
	text-align: start;
}
.ikfxmh__track { position: relative; min-width: 0; border-bottom: 1px solid var(--ikfxmh-line); }

/* Axis row */
.ikfxmh__label--axis { padding-top: 62px; padding-bottom: 10px; }
.ikfxmh__track--axis { padding-top: 62px; padding-bottom: 0; }
.ikfxmh__label--axis { flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; }
.ikfxmh__tzinfo { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; font-size: 13px; font-weight: 700; color: var(--ikfxmh-muted); text-align: center; }
.ikfxmh__gmt { color: var(--ikfxmh-accent); font-size: 12px; }
.ikfxmh__hours { position: relative; height: 26px; }
.ikfxmh__hours span {
	position: absolute;
	bottom: 6px;
	transform: translateX(-50%);
	font-size: 12px;
	line-height: 1;
	color: var(--ikfxmh-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ikfxmh__hours span::after {
	content: '';
	position: absolute;
	left: 50%;
	top: calc(100% + 3px);
	width: 1px;
	height: 5px;
	background: var(--ikfxmh-line);
}
.ikfxmh__hours span[data-h="0"] { transform: translateX(3px); }
.ikfxmh__hours span[data-h="0"]::after { left: -3px; }
.ikfxmh--axis-rtl .ikfxmh__hours span[data-h="0"] { transform: translateX(calc(-100% - 3px)); }
.ikfxmh--axis-rtl .ikfxmh__hours span[data-h="0"]::after { left: auto; right: -3px; }
.ikfxmh__hours span.is-hidden { visibility: hidden; }

/* Session rows */
.ikfxmh__label--session,
.ikfxmh__track--session { min-height: var(--ikfxmh-row); }
.ikfxmh--fa.ikfxmh--labels-left .ikfxmh__label .ikfxmh__flag,
.ikfxmh--en.ikfxmh--labels-right .ikfxmh__label .ikfxmh__flag { order: 2; }
.ikfxmh__flag {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ikfxmh-soft);
	box-shadow: 0 0 0 2px var(--ikfxmh-card), 0 0 0 3px var(--ikfxmh-line), 0 4px 10px -4px rgba(15, 23, 42, .35);
}
.ikfxmh .ikfxmh__flag img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.ikfxmh__flag--dot { width: 14px; height: 14px; box-shadow: none; }
.ikfxmh__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.ikfxmh__name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.ikfxmh__badge {
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	padding: 0 8px;
	border-radius: 999px;
	line-height: 19px;
	background: var(--ikfxmh-soft);
	color: var(--ikfxmh-muted);
}
.ikfxmh__badge.is-open { color: var(--ikfxmh-green); background: color-mix(in srgb, var(--ikfxmh-green) 13%, transparent); }
.ikfxmh__badge.is-closed { color: var(--ikfxmh-red); background: color-mix(in srgb, var(--ikfxmh-red) 10%, transparent); }
.ikfxmh__badge.is-weekend { color: var(--ikfxmh-amber); background: color-mix(in srgb, var(--ikfxmh-amber) 13%, transparent); }
.ikfxmh__clock { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ikfxmh-text); font-variant-numeric: tabular-nums; direction: ltr; opacity: .9; }
.ikfxmh--en .ikfxmh__clock { justify-content: flex-start; }
.ikfxmh__clock b { font-weight: 500; }
.ikfxmh__date { font-size: 11.5px; color: var(--ikfxmh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ikfxmh__countdown { font-size: 11.5px; color: var(--ikfxmh-muted); white-space: nowrap; }
.ikfxmh__countdown bdi { font-weight: 700; color: var(--ikfxmh-text); font-variant-numeric: tabular-nums; }
.ikfxmh__label.is-open .ikfxmh__countdown bdi { color: var(--ikfxmh-green); }

/* Hour grid */
.ikfxmh__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); pointer-events: none; }
.ikfxmh__grid i { border-left: 1px solid var(--ikfxmh-line-soft); }
.ikfxmh__grid i:first-child { border-left: 0; }
.has-stripes .ikfxmh__grid i:nth-child(odd) { background: var(--ikfxmh-stripe); }

/* Bars */
.ikfxmh__bars { position: absolute; inset: 0; }
.ikfxmh__bar {
	position: absolute;
	top: 50%;
	height: var(--ikfxmh-bar);
	margin-top: calc(var(--ikfxmh-bar) / -2);
	border-radius: 8px;
	background: var(--c);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .08));
	box-shadow: 0 6px 14px -8px var(--c);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	container-type: inline-size;
	transform-origin: left center;
	transition: box-shadow .3s, filter .3s;
}
.ikfxmh--bar-sm .ikfxmh__bar { border-radius: 6px; }
.ikfxmh__bar.is-cut-l { border-top-left-radius: 2px; border-bottom-left-radius: 2px; }
.ikfxmh__bar.is-cut-r { border-top-right-radius: 2px; border-bottom-right-radius: 2px; }
.ikfxmh__bar span {
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	padding: 0 8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	font-variant-numeric: tabular-nums;
	letter-spacing: .2px;
}
.ikfxmh--bar-sm .ikfxmh__bar span { font-size: 10px; }
@container (max-width: 92px) { .ikfxmh__bar span { display: none; } }
.ikfxmh__track.is-open .ikfxmh__bar:not(.is-off) {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 18px -8px var(--c);
}
.ikfxmh__track.is-open .ikfxmh__bar:not(.is-off)::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
	background-size: 250% 100%;
	animation: ikfxmh-sheen 3.2s ease-in-out infinite;
}
.ikfxmh__bar.is-off {
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent) 0 6px, color-mix(in srgb, var(--c) 12%, transparent) 6px 12px);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
.ikfxmh__bar.is-off span { color: var(--ikfxmh-muted); text-shadow: none; font-weight: 500; }
.ikfxmh__wk {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ikfxmh-muted) 9%, transparent) 0 6px, transparent 6px 12px);
	pointer-events: none;
}
.ikfxmh__wk span {
	margin-top: 4px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 10.5px;
	line-height: 18px;
	color: var(--ikfxmh-muted);
	background: var(--ikfxmh-card);
	white-space: nowrap;
}
.is-animated .ikfxmh__bar { animation: ikfxmh-grow .9s cubic-bezier(.2, .8, .2, 1) both; }

/* Volume */
.ikfxmh__label--volume { flex-direction: column; justify-content: center; gap: 6px; border-bottom: 0; padding-top: 14px; }
.ikfxmh__track--volume { height: 104px; border-bottom: 0; padding-top: 14px; }
.ikfxmh__vtext { font-size: 12px; font-weight: 700; color: var(--ikfxmh-muted); text-align: center; white-space: nowrap; }
.ikfxmh__vpill.is-high { color: var(--ikfxmh-green); }
.ikfxmh__vpill.is-mid { color: var(--ikfxmh-amber); }
.ikfxmh__vpill.is-low { color: var(--ikfxmh-red); }
.ikfxmh__vlegend { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ikfxmh-muted); white-space: nowrap; }
.ikfxmh__vlegend i { width: 12px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ikfxmh-accent) 30%, transparent); }
.ikfxmh__vpill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 14px;
	border-radius: 999px;
	border: 1px solid var(--ikfxmh-line);
	background: var(--ikfxmh-card);
	font-size: 13px;
}
.ikfxmh__vpill i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ikfxmh__vpill b { color: var(--ikfxmh-text); font-weight: 700; }
.ikfxmh__vchart { width: 100%; height: 100%; overflow: visible; color: var(--ikfxmh-volume); }
.ikfxmh__vline { stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.ikfxmh__band { fill: var(--ikfxmh-accent); opacity: .16; }
.ikfxmh--dark .ikfxmh__band { opacity: .22; }
.ikfxmh__vwk { fill: var(--ikfxmh-muted); opacity: .07; }

/* Cursor layer --------------------------------------------------------- */
.ikfxmh__layer { position: relative; grid-row-start: 1; pointer-events: none; z-index: 4; }
.ikfxmh__cursor {
	position: absolute;
	top: 10px;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background: var(--ikfxmh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ikfxmh-accent) 14%, transparent);
	pointer-events: auto;
	cursor: grab;
	touch-action: none;
	outline: none;
}
.ikfxmh__cursor::after { /* wide invisible grab area */
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -10px;
	right: -10px;
}
.ikfxmh__cursor.is-static { pointer-events: none; cursor: default; }
.ikfxmh.is-dragging .ikfxmh__cursor { cursor: grabbing; }
.ikfxmh.is-manual .ikfxmh__cursor { background-image: repeating-linear-gradient(180deg, var(--ikfxmh-accent) 0 6px, transparent 6px 10px); background-color: transparent; box-shadow: none; }
.ikfxmh__cursor:focus-visible .ikfxmh__bubble { outline: 3px solid color-mix(in srgb, var(--ikfxmh-accent) 40%, transparent); outline-offset: 2px; }
.ikfxmh__bubble {
	position: absolute;
	top: -10px;
	left: 50%;
	z-index: 2;
	transform: translateX(calc(-50% + var(--shift, 0px)));
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5px 14px 6px;
	border-radius: 12px;
	background: var(--ikfxmh-accent);
	color: #fff;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--ikfxmh-accent) 70%, transparent);
	direction: rtl;
}
.ikfxmh__bubble::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: calc(50% - var(--shift, 0px));
	width: 11px;
	height: 11px;
	margin-left: -5.5px;
	background: inherit;
	transform: rotate(45deg);
	border-radius: 2px;
	z-index: -1;
}
.ikfxmh__btime { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.ikfxmh__bday { font-size: 11px; opacity: .9; }

.ikfxmh.is-draggable .ikfxmh__track { cursor: pointer; touch-action: pan-y; }

.ikfxmh__empty { margin: 16px 0 0; text-align: center; color: var(--ikfxmh-muted); }

/* Responsive (classes set by JS from the widget's own width) --------------- */
.ikfxmh.is-compact { --ikfxmh-lw: 148px; --ikfxmh-row: 70px; }
.ikfxmh.is-compact .ikfxmh__card { padding: 16px 14px 12px; }
.ikfxmh.is-compact .ikfxmh__label { padding: 6px 8px; gap: 8px; }
.ikfxmh.is-compact .ikfxmh__flag { width: 28px; height: 28px; }
.ikfxmh.is-compact .ikfxmh__name { font-size: 13.5px; }
.ikfxmh.is-compact .ikfxmh__date { display: none; }
.ikfxmh.is-compact .ikfxmh__clock { font-size: 12px; }
.ikfxmh.is-compact .ikfxmh__toolrow { flex-direction: column; align-items: stretch; }
.ikfxmh.is-compact .ikfxmh__day { justify-content: space-between; }
.ikfxmh.is-compact .ikfxmh__daytext { align-items: center; text-align: center; }
.ikfxmh.is-compact .ikfxmh__tools { justify-content: center; }
.ikfxmh.is-compact .ikfxmh__tzinfo { font-size: 11px; }

.ikfxmh.is-stacked .ikfxmh__board { grid-template-columns: minmax(0, 1fr); }
.ikfxmh.is-stacked .ikfxmh__label,
.ikfxmh.is-stacked .ikfxmh__track,
.ikfxmh.is-stacked .ikfxmh__layer { grid-column: 1; }
.ikfxmh.is-stacked .ikfxmh__label {
	position: relative;
	z-index: 5; /* hides the cursor line behind the label strips */
	border: 0;
	background: var(--ikfxmh-card);
	padding: 12px 2px 6px;
}
.ikfxmh.is-stacked .ikfxmh__label--axis { flex-direction: row; justify-content: center; padding: 4px 0 0; }
.ikfxmh.is-stacked .ikfxmh__tzinfo { font-size: 12px; }
.ikfxmh.is-stacked .ikfxmh__track--axis { padding-top: 56px; }
.ikfxmh.is-stacked .ikfxmh__label--session { min-height: 0; gap: 8px; }
.ikfxmh.is-stacked .ikfxmh__label .ikfxmh__flag { order: 0; width: 24px; height: 24px; }
.ikfxmh.is-stacked .ikfxmh__info { flex-direction: row; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.ikfxmh.is-stacked .ikfxmh__name { flex: 1 1 auto; font-size: 14px; }
.ikfxmh.is-stacked .ikfxmh__clock { font-size: 12.5px; }
.ikfxmh.is-stacked .ikfxmh__date { display: none; }
.ikfxmh.is-stacked .ikfxmh__countdown { font-size: 11.5px; flex-basis: 100%; }
.ikfxmh.is-stacked .ikfxmh__track--session { min-height: 50px; }
.ikfxmh.is-stacked .ikfxmh__track--session .ikfxmh__bar span { font-size: 10px; }
.ikfxmh.is-stacked .ikfxmh__label--volume { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding-top: 14px; }
.ikfxmh.is-stacked .ikfxmh__track--volume { height: 84px; padding-top: 6px; }
.ikfxmh.is-stacked .ikfxmh__bubble { padding: 4px 11px; }
.ikfxmh.is-stacked .ikfxmh__btime { font-size: 13.5px; }
.ikfxmh.is-tiny .ikfxmh__info { gap: 2px 8px; }
.ikfxmh.is-tiny .ikfxmh__vlegend { display: none; }

/* Animations ---------------------------------------------------------------- */
@keyframes ikfxmh-grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes ikfxmh-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes ikfxmh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ikfxmh-sheen { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes ikfxmh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
	.ikfxmh *, .ikfxmh *::before, .ikfxmh *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   v1.1 — views, tools and presets
   ========================================================================== */

.ikfxmh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ikfxmh__pane[hidden], .ikfxmh [hidden] { display: none !important; }
.ikfxmh--en .ikfxmh__bubble, .ikfxmh--en .ikfxmh__label { direction: ltr; }
.ikfxmh--en.ikfxmh--font, .ikfxmh--en.ikfxmh--font button, .ikfxmh--en.ikfxmh--font select { font-family: 'IKFX Vazirmatn Latin', 'Vazirmatn', system-ui, sans-serif; }
html.ikfxmh-noscroll { overflow: hidden; }

/* Controls row ---------------------------------------------------------- */
.ikfxmh__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; border-top: 1px dashed var(--ikfxmh-line); }
.ikfxmh__spacer { flex: 1 1 auto; }
.ikfxmh__seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--ikfxmh-card); border: 1px solid var(--ikfxmh-line); }
.ikfxmh .ikfxmh__seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ikfxmh-muted); transition: background .2s, color .2s; }
.ikfxmh .ikfxmh__seg button:hover { color: var(--ikfxmh-text); }
.ikfxmh .ikfxmh__seg button.is-active { background: var(--ikfxmh-accent); color: #fff; box-shadow: 0 4px 10px -4px var(--ikfxmh-accent); }
.ikfxmh__select { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ikfxmh-muted); margin: 0; }
.ikfxmh .ikfxmh__select select {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	min-height: 32px;
	height: auto;
	max-width: 180px;
	padding: 4px 30px 4px 12px;
	border: 1px solid var(--ikfxmh-line);
	border-radius: 999px;
	background: var(--ikfxmh-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
	color: var(--ikfxmh-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: none;
	cursor: pointer;
}
.ikfxmh--fa .ikfxmh__select select { padding: 4px 12px 4px 30px; background-position: left 10px center; }
.ikfxmh .ikfxmh__select select:focus-visible { outline: 2px solid var(--ikfxmh-accent); outline-offset: 2px; }
.ikfxmh__select--block { display: flex; justify-content: space-between; margin: 8px 0; }

.ikfxmh .ikfxmh__iconbtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 10px;
	border: 1px solid var(--ikfxmh-line);
	background: var(--ikfxmh-card);
	color: var(--ikfxmh-text);
	transition: border-color .2s, color .2s, transform .15s;
}
.ikfxmh .ikfxmh__iconbtn:hover, .ikfxmh .ikfxmh__iconbtn.is-on { color: var(--ikfxmh-accent); border-color: color-mix(in srgb, var(--ikfxmh-accent) 50%, var(--ikfxmh-line)); }
.ikfxmh .ikfxmh__iconbtn:active { transform: scale(.94); }
.ikfxmh__iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ikfxmh__dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ikfxmh-accent); box-shadow: 0 0 0 2px var(--ikfxmh-card); }
.ikfxmh .ikfxmh__iconbtn--sm { width: 28px; height: 28px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ikfxmh-muted); }

.ikfxmh__next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ikfxmh__next > i { width: 1px; height: 12px; background: var(--ikfxmh-line); }
.ikfxmh__next-ev.is-high { color: var(--ikfxmh-red); font-weight: 700; }
.ikfxmh__next-ev.is-medium { color: var(--ikfxmh-amber); font-weight: 700; }

/* Status badges (holiday) and dimmed (pair focus) ---------------------- */
.ikfxmh__badge.is-holiday { color: #7c3aed; background: color-mix(in srgb, #7c3aed 12%, transparent); cursor: help; }
.ikfxmh--dark .ikfxmh__badge.is-holiday { color: #c4b5fd; }
.ikfxmh__bars { transition: opacity .3s, filter .3s; }
.ikfxmh__track.is-dim .ikfxmh__bars { opacity: .3; filter: grayscale(.7); }
.ikfxmh__track.is-dim .ikfxmh__bar { box-shadow: none; }
.ikfxmh__track.is-dim .ikfxmh__bar span { opacity: 0; }
.ikfxmh__label.is-dim { opacity: .45; }
.ikfxmh__label, .ikfxmh__track { transition: opacity .3s; }

/* Day / night ---------------------------------------------------------------- */
.ikfxmh__night { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(49, 46, 129, .075), rgba(49, 46, 129, .03)); pointer-events: none; }
.ikfxmh--dark .ikfxmh__night { background: linear-gradient(180deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, .14)); }
.ikfxmh__wk { pointer-events: none; }
.ikfxmh__dn { display: inline-grid; place-items: center; width: 15px; height: 15px; }
.ikfxmh__dn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ikfxmh__dn.is-day { color: #f59e0b; }
.ikfxmh__dn.is-night { color: #6366f1; }
.ikfxmh__dn.is-night svg { fill: currentColor; fill-opacity: .2; }

/* Holiday bars -------------------------------------------------------------- */
.ikfxmh__bar.is-holiday {
	background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c) 24%, transparent) 0 5px, transparent 5px 10px);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
}
.ikfxmh__bar.is-holiday span { color: var(--ikfxmh-text); text-shadow: none; font-weight: 700; }
.ikfxmh__bar { cursor: help; }
.ikfxmh.is-draggable .ikfxmh__bar { cursor: pointer; }

/* Kill zones ------------------------------------------------------------------- */
.ikfxmh__label--zones { justify-content: center; font-size: 11.5px; font-weight: 700; color: var(--ikfxmh-muted); padding-top: 4px; padding-bottom: 4px; }
.ikfxmh__track--zones { height: 36px; }
.ikfxmh__zone {
	position: absolute;
	top: 8px;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 6px;
	background: color-mix(in srgb, var(--z) 15%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--z) 45%, transparent);
	container-type: inline-size;
	cursor: help;
}
.ikfxmh__zone span { font-size: 10.5px; font-weight: 700; color: color-mix(in srgb, var(--z) 75%, var(--ikfxmh-text)); white-space: nowrap; padding: 0 6px; }
@container (max-width: 64px) { .ikfxmh__zone span { display: none; } }

/* Economic events ------------------------------------------------------------- */
.ikfxmh__events { position: absolute; inset: 0; pointer-events: none; }
.ikfxmh__ev { --ev: #64748b; position: absolute; top: 36px; bottom: 0; width: 0; }
.ikfxmh__ev.is-high { --ev: #dc2626; }
.ikfxmh__ev.is-medium { --ev: #d97706; }
.ikfxmh__ev::before { content: ''; position: absolute; top: 18px; bottom: 0; left: -1px; border-left: 2px dotted var(--ev); opacity: .55; }
.ikfxmh__ev-pin {
	position: absolute;
	top: 0;
	left: 0;
	transform: translateX(-50%);
	pointer-events: auto;
	padding: 0 6px;
	border-radius: 6px;
	background: var(--ev);
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	line-height: 17px;
	letter-spacing: .3px;
	white-space: nowrap;
	cursor: help;
	box-shadow: 0 4px 10px -4px var(--ev);
	direction: ltr;
}
.ikfxmh__ev-pin:focus-visible { outline: 2px solid var(--ikfxmh-accent); outline-offset: 2px; }
.ikfxmh.is-stacked .ikfxmh__ev { top: 30px; }

/* Volume overlap hit areas ----------------------------------------------------- */
.ikfxmh__track--volume { position: relative; }
.ikfxmh__ovhit { position: absolute; top: 14px; bottom: 0; cursor: help; }

/* Flash on open/close ----------------------------------------------------------- */
.ikfxmh .is-flash { animation: ikfxmh-flash 2.4s ease-out; }
@keyframes ikfxmh-flash {
	0%, 30% { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--ikfxmh-accent) 16%, transparent); }
	100% { box-shadow: inset 0 0 0 999px transparent; }
}

/* Tooltip ------------------------------------------------------------------------ */
.ikfxmh__tip {
	position: absolute;
	z-index: 120;
	display: flex;
	flex-direction: column;
	max-width: 290px;
	padding: 8px 12px;
	border-radius: 10px;
	background: #0f172a;
	color: #f1f5f9;
	font-size: 12px;
	line-height: 1.65;
	box-shadow: 0 14px 30px -12px rgba(2, 6, 23, .55);
	pointer-events: none;
	animation: ikfxmh-tip .12s ease-out;
}
.ikfxmh__tip b { font-size: 12.5px; font-weight: 800; color: #fff; }
.ikfxmh__tip span { opacity: .85; font-variant-numeric: tabular-nums; }
.ikfxmh--dark .ikfxmh__tip { background: #1e293b; box-shadow: 0 0 0 1px rgba(148, 163, 184, .2), 0 14px 30px -12px rgba(0, 0, 0, .7); }
@keyframes ikfxmh-tip { from { opacity: 0; transform: translateY(3px); } }

/* Reminder panel ------------------------------------------------------------------ */
.ikfxmh__panel {
	position: absolute;
	z-index: 60;
	width: 300px;
	max-width: calc(100% - 16px);
	border-radius: 14px;
	border: 1px solid var(--ikfxmh-line);
	background: var(--ikfxmh-card);
	color: var(--ikfxmh-text);
	box-shadow: 0 24px 48px -18px rgba(15, 23, 42, .4);
	animation: ikfxmh-tip .15s ease-out;
}
.ikfxmh__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px 14px; border-bottom: 1px solid var(--ikfxmh-line); }
.ikfxmh__panel-head b { font-size: 14px; }
.ikfxmh__panel-body { padding: 8px 14px 12px; }
.ikfxmh__check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; cursor: pointer; margin: 0; }
.ikfxmh__check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ikfxmh-accent); }
.ikfxmh__check i { width: 10px; height: 10px; border-radius: 3px; }
.ikfxmh__check i.is-ev { background: #dc2626; transform: rotate(45deg) scale(.85); }
.ikfxmh .ikfxmh__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin: 6px 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 10px;
	background: var(--ikfxmh-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.ikfxmh .ikfxmh__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ikfxmh .ikfxmh__btn--ghost { width: auto; background: var(--ikfxmh-soft); color: var(--ikfxmh-text); }
.ikfxmh__note { margin: 6px 0; font-size: 12px; color: var(--ikfxmh-muted); line-height: 1.6; }
.ikfxmh__note.is-ok { color: var(--ikfxmh-green); }
.ikfxmh__panel-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--ikfxmh-line); margin-top: 6px; padding-top: 6px; }
.ikfxmh__panel-foot small { font-size: 11px; color: var(--ikfxmh-muted); flex: 1; }

/* Toasts --------------------------------------------------------------------- */
.ikfxmh__toasts { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ikfxmh__toast {
	min-width: 220px;
	max-width: 340px;
	padding: 10px 14px;
	border-radius: 12px;
	border-inline-start: 4px solid var(--ikfxmh-accent);
	background: #0f172a;
	color: #fff;
	font-size: 13px;
	line-height: 1.6;
	box-shadow: 0 18px 36px -14px rgba(2, 6, 23, .6);
	animation: ikfxmh-toast .3s cubic-bezier(.2, .8, .2, 1);
	transition: opacity .4s, transform .4s;
}
.ikfxmh__toast.is-ok { border-inline-start-color: #22c55e; }
.ikfxmh__toast.is-alert { border-inline-start-color: #ef4444; }
.ikfxmh__toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes ikfxmh-toast { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Full screen ----------------------------------------------------------------- */
.ikfxmh:fullscreen, .ikfxmh.is-pseudo-fs {
	--ikfxmh-row: 92px;
	--ikfxmh-bar: 30px;
	max-width: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 2.5vh 2.5vw;
	overflow: auto;
	background: #e9eef5;
	font-size: 15px;
}
.ikfxmh--dark:fullscreen, .ikfxmh--dark.is-pseudo-fs { background: #050914; }
.ikfxmh.is-pseudo-fs { position: fixed; inset: 0; z-index: 99998; }
.ikfxmh:fullscreen .ikfxmh__card, .ikfxmh.is-pseudo-fs .ikfxmh__card { min-height: 100%; }
.ikfxmh:fullscreen .ikfxmh__title, .ikfxmh.is-pseudo-fs .ikfxmh__title { font-size: 26px; }
.ikfxmh::backdrop { background: #050914; }

/* Week view -------------------------------------------------------------------- */
.ikfxmh__wgrid { display: grid; grid-template-columns: var(--ikfxmh-lw) minmax(0, 1fr); grid-auto-flow: row dense; direction: ltr; margin-top: 8px; }
.ikfxmh--labels-right .ikfxmh__wgrid { grid-template-columns: minmax(0, 1fr) var(--ikfxmh-lw); }
.ikfxmh--labels-right .ikfxmh__wlabel { grid-column: 2; }
.ikfxmh--labels-right .ikfxmh__wrow, .ikfxmh--labels-right .ikfxmh__whours { grid-column: 1; }
.ikfxmh--labels-left .ikfxmh__wlabel { grid-column: 1; }
.ikfxmh--labels-left .ikfxmh__wrow, .ikfxmh--labels-left .ikfxmh__whours { grid-column: 2; }
.ikfxmh__whours { position: relative; height: 30px; border-bottom: 1px solid var(--ikfxmh-line); }
.ikfxmh__whours span { position: absolute; bottom: 7px; transform: translateX(-50%); font-size: 11.5px; color: var(--ikfxmh-muted); }
.ikfxmh__whours span:first-child { transform: translateX(2px); }
.ikfxmh--axis-rtl .ikfxmh__whours span:first-child { transform: translateX(calc(-100% - 2px)); }
.ikfxmh .ikfxmh__wlabel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0;
	min-height: 58px;
	margin: 0;
	padding: 6px 14px;
	border: 0;
	border-bottom: 1px solid var(--ikfxmh-line);
	border-radius: 0;
	background: none;
	color: var(--ikfxmh-text);
	text-align: start;
	line-height: 1.5;
	cursor: pointer;
}
.ikfxmh--labels-left .ikfxmh__wlabel { border-right: 1px solid var(--ikfxmh-line); }
.ikfxmh--labels-right .ikfxmh__wlabel { border-left: 1px solid var(--ikfxmh-line); }
.ikfxmh__wlabel--head { min-height: 30px; padding: 0; border-bottom: 1px solid var(--ikfxmh-line); }
.ikfxmh--labels-left .ikfxmh__wlabel--head { border-right: 1px solid var(--ikfxmh-line); }
.ikfxmh--labels-right .ikfxmh__wlabel--head { border-left: 1px solid var(--ikfxmh-line); grid-column: 2; }
.ikfxmh__wlabel b { font-size: 13.5px; font-weight: 800; }
.ikfxmh__wlabel small { font-size: 11px; color: var(--ikfxmh-muted); }
.ikfxmh .ikfxmh__wlabel.is-today b { color: var(--ikfxmh-accent); }
.ikfxmh .ikfxmh__wlabel.is-sel, .ikfxmh__wrow.is-sel { background: color-mix(in srgb, var(--ikfxmh-accent) 6%, transparent); }
.ikfxmh .ikfxmh__wlabel:hover { background: var(--ikfxmh-soft); }
.ikfxmh__wrow { position: relative; min-height: 58px; border-bottom: 1px solid var(--ikfxmh-line); cursor: pointer; }
.ikfxmh__wrow:hover .ikfxmh__wheat { filter: brightness(1.04) saturate(1.15); }
.ikfxmh__wheat { position: absolute; inset: 7px 0 20px; display: flex; gap: 1px; }
.ikfxmh__wheat i { flex: 1; border-radius: 3px; background: var(--ikfxmh-volume); opacity: calc(.06 + var(--v) * .86); }
.ikfxmh__wheat i.is-wk { background: repeating-linear-gradient(135deg, var(--ikfxmh-muted) 0 2px, transparent 2px 5px); opacity: .22; }
.ikfxmh__wlines { position: absolute; left: 0; right: 0; bottom: 3px; height: 14px; }
.ikfxmh__wlines span { position: absolute; top: calc(var(--i) * 3.2px); height: 2.6px; border-radius: 2px; background: var(--c); cursor: help; }
.ikfxmh__wlines span.is-hol { background: repeating-linear-gradient(90deg, var(--c) 0 3px, transparent 3px 6px); }
.ikfxmh__wev { --ev: #64748b; position: absolute; bottom: 2px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--ev); border-radius: 1px; cursor: help; z-index: 1; }
.ikfxmh__wev.is-high { --ev: #dc2626; }
.ikfxmh__wev.is-medium { --ev: #d97706; }
.ikfxmh__wnow { position: absolute; top: 3px; bottom: 3px; z-index: 2; width: 2px; margin-left: -1px; background: var(--ikfxmh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ikfxmh-accent) 18%, transparent); border-radius: 2px; }
.ikfxmh__wlegend { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--ikfxmh-muted); }
.ikfxmh__wlegend i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--ikfxmh-volume) 12%, transparent), var(--ikfxmh-volume)); }
.ikfxmh--fa .ikfxmh__wlegend i { transform: scaleX(-1); }
.ikfxmh__wlegend em { font-style: normal; font-weight: 700; margin-inline-start: 6px; }
.ikfxmh.is-stacked .ikfxmh__wgrid { --ikfxmh-lw: 64px; }
.ikfxmh.is-stacked .ikfxmh__wlabel { padding: 4px 6px; align-items: center; }
.ikfxmh.is-stacked .ikfxmh__wlabel small { display: none; }
.ikfxmh.is-stacked .ikfxmh__wlabel b { font-size: 12px; }

/* Clock (24h dial) view ---------------------------------------------------------- */
.ikfxmh__pane--clock { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: center; gap: 28px; padding: 12px 0 4px; }
.ikfxmh__dial svg { display: block; width: 100%; height: auto; touch-action: none; overflow: visible; }
.ikfxmh.is-draggable .ikfxmh__dial svg { cursor: grab; }
.ikfxmh__dface { fill: var(--ikfxmh-soft); }
.ikfxmh__dtick { stroke: var(--ikfxmh-line); stroke-width: 1; }
.ikfxmh__dtick.is-major { stroke: var(--ikfxmh-muted); stroke-width: 1.6; }
.ikfxmh__dnum { fill: var(--ikfxmh-muted); font-size: 11px; text-anchor: middle; dominant-baseline: central; }
.ikfxmh__dnum.is-major { fill: var(--ikfxmh-text); font-weight: 800; font-size: 12.5px; }
.ikfxmh__dring { fill: none; stroke: var(--ikfxmh-line); opacity: .7; }
.ikfxmh__darc { fill: none; stroke-linecap: round; transition: opacity .3s; cursor: help; }
.ikfxmh__darc.is-dim { opacity: .2; }
.ikfxmh__darc.is-hol { stroke-dasharray: 2 5; opacity: .7; }
.ikfxmh__dwk { fill: none; stroke: var(--ikfxmh-muted); opacity: .08; }
.ikfxmh__dzone { fill: none; stroke-width: 5; stroke-linecap: round; opacity: .75; cursor: help; }
.ikfxmh__dvbase { fill: none; stroke: var(--ikfxmh-line); }
.ikfxmh__dvol { fill: var(--ikfxmh-volume); fill-opacity: .22; stroke: var(--ikfxmh-volume); stroke-width: 1.5; stroke-linejoin: round; }
.ikfxmh__dev { --ev: #64748b; fill: var(--ev); stroke: var(--ikfxmh-card); stroke-width: 2; cursor: help; }
.ikfxmh__dev.is-high { fill: #dc2626; }
.ikfxmh__dev.is-medium { fill: #d97706; }
.ikfxmh__dhand line { stroke: var(--ikfxmh-accent); stroke-width: 3; stroke-linecap: round; }
.ikfxmh__dhand circle { fill: var(--ikfxmh-accent); stroke: var(--ikfxmh-card); stroke-width: 2.5; }
.ikfxmh.is-animated .ikfxmh__dhand { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ikfxmh.is-dragging .ikfxmh__dhand { transition: none; }
.ikfxmh__dcenter { fill: var(--ikfxmh-card); stroke: var(--ikfxmh-line); filter: drop-shadow(0 6px 12px rgba(15, 23, 42, .12)); }
.ikfxmh__dtime { fill: var(--ikfxmh-text); font-size: 26px; font-weight: 800; text-anchor: middle; font-variant-numeric: tabular-nums; }
.ikfxmh__dday { fill: var(--ikfxmh-muted); font-size: 12px; text-anchor: middle; }
.ikfxmh__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ikfxmh__legend-item { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--ikfxmh-soft); border-inline-start: 4px solid var(--c); transition: box-shadow .3s; }
.ikfxmh__legend-item.is-open { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent), 0 10px 22px -16px var(--c); background: var(--ikfxmh-card); }
.ikfxmh__legend-item .ikfxmh__info { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.ikfxmh__legend-item .ikfxmh__name { flex: 1 1 auto; }
.ikfxmh__legend-item .ikfxmh__countdown { flex-basis: 100%; }
.ikfxmh.is-compact .ikfxmh__pane--clock { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
.ikfxmh.is-compact .ikfxmh__dial { width: min(100%, 420px); }
.ikfxmh.is-compact .ikfxmh__legend { width: 100%; }

/* Mini card -------------------------------------------------------------------------- */
.ikfxmh.ikfxmh--layout-mini { max-width: min(var(--ikfxmh-maxw), 420px); }
.ikfxmh--layout-mini .ikfxmh__card { padding: 18px 18px 14px; }
.ikfxmh--layout-mini .ikfxmh__head { margin-bottom: 8px; }
.ikfxmh--layout-mini .ikfxmh__title { font-size: 16px; }
.ikfxmh--layout-mini .ikfxmh__skeleton { padding-top: 40px; min-height: 260px; }
.ikfxmh__mini-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ikfxmh__mini-clock { display: flex; flex-direction: column; min-width: 0; }
.ikfxmh__mini-time { font-size: 32px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.ikfxmh--fa .ikfxmh__mini-time { text-align: right; }
.ikfxmh__mini-day { font-size: 12px; color: var(--ikfxmh-muted); }
.ikfxmh__mini .ikfxmh__status { margin: 12px 0 10px; }
.ikfxmh__mini-strip { position: relative; height: 34px; margin-bottom: 12px; border-radius: 9px; background: var(--ikfxmh-soft); overflow: hidden; }
.ikfxmh__mini-lines { position: absolute; inset: 5px 0; }
.ikfxmh__mini-lines span { position: absolute; border-radius: 3px; opacity: .92; }
.ikfxmh__mini-cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ikfxmh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ikfxmh-accent) 18%, transparent); }
.ikfxmh__mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ikfxmh__mini-item { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--ikfxmh-soft); }
.ikfxmh__mini-item.is-open { background: color-mix(in srgb, var(--c) 9%, var(--ikfxmh-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.ikfxmh__mini-item .ikfxmh__flag { width: 28px; height: 28px; }
.ikfxmh__mini-item .ikfxmh__info { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.ikfxmh__mini-item .ikfxmh__name { font-size: 14px; }
.ikfxmh__mini-item .ikfxmh__clock { font-size: 12px; }
.ikfxmh__mini-item .ikfxmh__countdown { flex-basis: 100%; }
.ikfxmh__mini .ikfxmh__next { margin-top: 10px; font-size: 12px; color: var(--ikfxmh-muted); }

/* Ticker ------------------------------------------------------------------------------ */
.ikfxmh.ikfxmh--layout-ticker { margin-bottom: 1em; }
.ikfxmh--layout-ticker .ikfxmh__card { padding: 8px 12px; }
.ikfxmh--layout-ticker .ikfxmh__card::before { display: none; }
.ikfxmh--layout-ticker .ikfxmh__skeleton { display: none; }
.ikfxmh__ticker { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.ikfxmh__ticker .ikfxmh__status { flex: none; font-size: 12px; padding: 4px 10px; }
.ikfxmh__ticker-track {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 22px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
	padding: 0 16px;
}
.ikfxmh__ticker-track::-webkit-scrollbar { display: none; }
.ikfxmh__ticker-item { display: flex; align-items: center; gap: 8px; flex: none; }
.ikfxmh__ticker-item .ikfxmh__flag { width: 22px; height: 22px; }
.ikfxmh__ticker-item .ikfxmh__info { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
.ikfxmh__ticker-item .ikfxmh__name { font-size: 13.5px; }
.ikfxmh__ticker-item .ikfxmh__clock { display: none; }
.ikfxmh__ticker-time { flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ikfxmh.is-tiny .ikfxmh__ticker .ikfxmh__status-text { display: none; }

/* SEO / accessible table --------------------------------------------------------------- */
.ikfxmh__table { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ikfxmh-line); }
.ikfxmh__table summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ikfxmh-muted); }
.ikfxmh__table summary::-webkit-details-marker { display: none; }
.ikfxmh__table summary::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; }
.ikfxmh--fa .ikfxmh__table summary::before { transform: rotate(135deg); }
.ikfxmh__table[open] summary::before { transform: rotate(45deg); }
.ikfxmh__table summary:hover { color: var(--ikfxmh-text); }
.ikfxmh__table-wrap { overflow-x: auto; }
.ikfxmh .ikfxmh__table table { width: 100%; margin: 10px 0 0; border: 0; border-collapse: collapse; font-size: 13px; background: none; }
.ikfxmh .ikfxmh__table th, .ikfxmh .ikfxmh__table td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--ikfxmh-line); text-align: start; background: none; color: var(--ikfxmh-text); font-variant-numeric: tabular-nums; }
.ikfxmh .ikfxmh__table thead th { font-size: 12px; font-weight: 700; color: var(--ikfxmh-muted); background: var(--ikfxmh-soft); }
.ikfxmh--fa .ikfxmh__table td[dir="ltr"] { text-align: right; }
.ikfxmh .ikfxmh__table tbody th { font-weight: 700; white-space: nowrap; }
.ikfxmh__table tbody th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.ikfxmh__table-note { margin: 8px 0 0; font-size: 11.5px; color: var(--ikfxmh-muted); }

/* ==========================================================================
   Style presets
   ========================================================================== */

/* Glass */
.ikfxmh--preset-glass .ikfxmh__card {
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ikfxmh-accent) 16%, transparent), transparent 55%),
		radial-gradient(90% 80% at 100% 100%, rgba(14, 165, 233, .16), transparent 60%),
		linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
	border: 1px solid rgba(255, 255, 255, .7);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	backdrop-filter: blur(18px) saturate(1.3);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 48px -24px rgba(15, 23, 42, .3);
}
.ikfxmh--preset-glass { --ikfxmh-soft: rgba(255, 255, 255, .55); --ikfxmh-stripe: rgba(255, 255, 255, .35); --ikfxmh-line: rgba(148, 163, 184, .28); }
.ikfxmh--preset-glass .ikfxmh__toolbar { background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.ikfxmh--preset-glass.ikfxmh--dark .ikfxmh__card {
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ikfxmh-accent) 22%, transparent), transparent 55%),
		radial-gradient(90% 80% at 100% 100%, rgba(56, 189, 248, .14), transparent 60%),
		linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .62));
	border-color: rgba(148, 163, 184, .2);
}
.ikfxmh--preset-glass.ikfxmh--dark { --ikfxmh-soft: rgba(148, 163, 184, .1); --ikfxmh-stripe: rgba(148, 163, 184, .04); }
.ikfxmh--preset-glass.ikfxmh--dark .ikfxmh__toolbar { background: rgba(148, 163, 184, .08); box-shadow: none; }

/* Minimal */
.ikfxmh--preset-minimal .ikfxmh__card { box-shadow: none !important; border: 0 !important; padding-left: 0; padding-right: 0; background: transparent; }
.ikfxmh--preset-minimal .ikfxmh__card::before { display: none; }
.ikfxmh--preset-minimal .ikfxmh__toolbar { background: none; padding: 0 0 10px; border-bottom: 1px solid var(--ikfxmh-line); border-radius: 0; }
.ikfxmh--preset-minimal .ikfxmh__controls { border-top: 0; padding-top: 0; }
.ikfxmh--preset-minimal .ikfxmh__bar { background-image: none; box-shadow: none !important; border-radius: 4px; }
.ikfxmh--preset-minimal .ikfxmh__bar::after { display: none; }
.ikfxmh--preset-minimal .has-stripes .ikfxmh__grid i:nth-child(odd) { background: none; }
.ikfxmh--preset-minimal .ikfxmh__flag { box-shadow: none; }
.ikfxmh--preset-minimal .ikfxmh__status, .ikfxmh--preset-minimal .ikfxmh__seg, .ikfxmh--preset-minimal .ikfxmh__iconbtn { box-shadow: none; }

/* Neon (always dark) */
.ikfxmh--preset-neon {
	--ikfxmh-card: #070b16;
	--ikfxmh-text: #e8eefc;
	--ikfxmh-muted: #8392b0;
	--ikfxmh-line: rgba(99, 132, 255, .16);
	--ikfxmh-line-soft: rgba(99, 132, 255, .08);
	--ikfxmh-stripe: rgba(99, 132, 255, .035);
	--ikfxmh-soft: rgba(99, 132, 255, .07);
	--ikfxmh-green: #4ade80;
	--ikfxmh-amber: #fbbf24;
	--ikfxmh-red: #fb7185;
}
.ikfxmh--preset-neon .ikfxmh__card {
	background:
		linear-gradient(rgba(99, 132, 255, .05) 1px, transparent 1px) 0 0 / 100% 28px,
		radial-gradient(80% 60% at 50% -10%, color-mix(in srgb, var(--ikfxmh-accent) 18%, transparent), transparent 70%),
		#070b16;
	border: 1px solid rgba(99, 132, 255, .22);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 60px -30px color-mix(in srgb, var(--ikfxmh-accent) 50%, transparent);
}
.ikfxmh--preset-neon .ikfxmh__bar { box-shadow: 0 0 14px -2px var(--c), 0 0 2px var(--c); }
.ikfxmh--preset-neon .ikfxmh__track.is-open .ikfxmh__bar:not(.is-off) { box-shadow: 0 0 22px 0 var(--c), 0 0 3px var(--c); }
.ikfxmh--preset-neon .ikfxmh__cursor { box-shadow: 0 0 12px 1px var(--ikfxmh-accent); }
.ikfxmh--preset-neon .ikfxmh__bubble { box-shadow: 0 0 22px -2px var(--ikfxmh-accent); }
.ikfxmh--preset-neon .ikfxmh__vline { filter: drop-shadow(0 0 4px var(--ikfxmh-volume)); }
.ikfxmh--preset-neon .ikfxmh__title { text-shadow: 0 0 18px color-mix(in srgb, var(--ikfxmh-accent) 45%, transparent); }
.ikfxmh--preset-neon .ikfxmh__darc { filter: drop-shadow(0 0 5px currentColor); }
.ikfxmh--preset-neon .ikfxmh__tip { background: #111a33; box-shadow: 0 0 0 1px rgba(99, 132, 255, .3), 0 14px 30px -12px #000; }
.ikfxmh--preset-neon:fullscreen, .ikfxmh--preset-neon.is-pseudo-fs { background: #02040a; }
.ikfxmh--preset-neon .ikfxmh__night { background: rgba(0, 0, 0, .3); }

/* iKral brand */
.ikfxmh--preset-ikral { --ikfxmh-soft: #f4f3ff; --ikfxmh-stripe: #faf9ff; --ikfxmh-line: #e7e5f8; --ikfxmh-line-soft: #f0eefb; }
.ikfxmh--preset-ikral .ikfxmh__card { border-radius: max(var(--ikfxmh-radius), 24px); }
.ikfxmh--preset-ikral .ikfxmh__card::before { height: 4px; opacity: 1; background: linear-gradient(90deg, #4f46e5, #7c3aed 50%, var(--ikfxmh-accent)); }
.ikfxmh--preset-ikral .ikfxmh__title { background: linear-gradient(90deg, #4338ca, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ikfxmh--preset-ikral .ikfxmh__toolbar { background: linear-gradient(135deg, #f5f3ff, #eef2ff); box-shadow: inset 0 0 0 1px #e4e1fb; }
.ikfxmh--preset-ikral .ikfxmh__seg button.is-active { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 6px 14px -6px #6d28d9; }
.ikfxmh--preset-ikral .ikfxmh__bar { border-radius: 999px; }
.ikfxmh--preset-ikral .ikfxmh__flag { box-shadow: 0 0 0 2px var(--ikfxmh-card), 0 0 0 3.5px #c7d2fe; }
.ikfxmh--preset-ikral.ikfxmh--dark { --ikfxmh-soft: rgba(129, 140, 248, .1); --ikfxmh-stripe: rgba(129, 140, 248, .04); --ikfxmh-line: rgba(129, 140, 248, .18); }
.ikfxmh--preset-ikral.ikfxmh--dark .ikfxmh__toolbar { background: rgba(129, 140, 248, .08); box-shadow: none; }
.ikfxmh--preset-ikral.ikfxmh--dark .ikfxmh__title { background: linear-gradient(90deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; }

@media (prefers-reduced-motion: reduce) {
	.ikfxmh__dhand { transition: none !important; }
	.ikfxmh .is-flash { animation: none !important; }
}
