/* Spyder ML Tools
   Semua warna ada di variabel .sml. Kalau tema situs gelap, cukup ganti nilainya
   (contoh di bagian bawah file: .sml-dark). */

.sml {
	--sml-ink: #14213d;
	--sml-muted: #56637c;
	--sml-surface: #eef2f7;
	--sml-raised: #ffffff;
	--sml-line: #d3dbe6;
	--sml-focus: #c98a0b;

	--sml-ss: #e8a317;
	--sml-ss-ink: #2a1c00;
	--sml-s: #c93b31;
	--sml-a: #6f45cc;
	--sml-b: #2a74c4;
	--sml-c: #1f8a70;
	--sml-d: #667085;

	--sml-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	font-family: inherit;
	--sml-radius: 6px;

	color: var(--sml-ink);
	font-variant-numeric: tabular-nums;
	margin: 1.5rem 0;
}

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

.sml a { color: inherit; text-decoration: none; }
.sml a:hover .sml-grid__name,
.sml a:hover strong,
.sml a:hover .sml-tier__name { text-decoration: underline; text-underline-offset: 3px; }

.sml :focus-visible {
	outline: 3px solid var(--sml-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Toolbar: filter, cari, chip role ----------------------------------- */

.sml-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .75rem 1rem;
	margin-bottom: 1rem;
}

.sml-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.sml-filters label { display: grid; gap: .25rem; font-size: .8125rem; color: var(--sml-muted); }

.sml select,
.sml input[type="search"] {
	font: inherit;
	font-size: .9375rem;
	color: var(--sml-ink);
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	padding: .5rem .75rem;
	min-height: 40px;
}

.sml-search { flex: 1 1 220px; max-width: 320px; margin-left: auto; }
.sml-search input { width: 100%; }

.sml-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.sml-chip {
	font: inherit;
	font-size: .875rem;
	color: var(--sml-ink);
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: 999px;
	padding: .375rem .875rem;
	cursor: pointer;
}
.sml-chip[aria-pressed="true"] { background: var(--sml-ink); border-color: var(--sml-ink); color: var(--sml-raised); }

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

.sml-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: .5rem;
}
.sml-grid a {
	display: grid;
	justify-items: center;
	gap: .375rem;
	padding: .875rem .5rem;
	text-align: center;
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	height: 100%;
}
.sml-grid__name { font-weight: 600; line-height: 1.2; }
.sml-grid__meta { font-size: .75rem; color: var(--sml-muted); }

.sml-avatar {
	display: block;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--sml-surface);
}
.sml-avatar--initial {
	display: grid;
	place-items: center;
	font-family: var(--sml-display);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--sml-muted);
	border: 1px solid var(--sml-line);
}

/* Tabel statistik ----------------------------------------------------- */

.sml-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	background: var(--sml-raised);
}
.sml-table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 0; }
.sml-table th,
.sml-table td {
	padding: .625rem .75rem;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--sml-line);
	white-space: nowrap;
	vertical-align: middle;
}
.sml-table tbody tr:last-child > * { border-bottom: 0; }
.sml-table thead th {
	background: var(--sml-surface);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--sml-muted);
}
.sml-table th button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.sml-table th button::after { content: ""; display: inline-block; width: 1em; }
.sml-table th[aria-sort="descending"] button::after { content: "\2193"; }
.sml-table th[aria-sort="ascending"] button::after { content: "\2191"; }
.sml-col-pos { width: 3rem; color: var(--sml-muted); }

.sml-hero-cell { display: flex; align-items: center; gap: .625rem; }
.sml-hero-cell span { display: grid; line-height: 1.25; }
.sml-hero-cell small { font-size: .75rem; color: var(--sml-muted); }

.sml-wr { display: grid; gap: .25rem; min-width: 5.5rem; }
.sml-bar { display: block; height: 4px; background: var(--sml-surface); border-radius: 2px; overflow: hidden; }
.sml-bar > span { display: block; height: 100%; background: var(--sml-ink); opacity: .55; }

.sml-badge {
	display: inline-grid;
	place-items: center;
	min-width: 2.25rem;
	padding: .125rem .375rem;
	font-family: var(--sml-display);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1.2;
	color: #fff;
	background: var(--tier);
	border-radius: 4px;
}

/* Warna tiap tier */
.sml-t-ss { --tier: var(--sml-ss); --tier-ink: var(--sml-ss-ink); }
.sml-t-s  { --tier: var(--sml-s); }
.sml-t-a  { --tier: var(--sml-a); }
.sml-t-b  { --tier: var(--sml-b); }
.sml-t-c  { --tier: var(--sml-c); }
.sml-t-d  { --tier: var(--sml-d); }
.sml-badge.sml-t-ss { color: var(--sml-ss-ink); }

/* Tier list: huruf tier besar jadi elemen utama ---------------------- */

.sml-tier {
	display: grid;
	grid-template-columns: 6rem 1fr;
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	overflow: hidden;
}
.sml-tier + .sml-tier { margin-top: .5rem; }

.sml-tier__label {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tier);
	color: var(--tier-ink, #fff);
	font-family: var(--sml-display);
	font-weight: 800;
	font-size: 3.25rem;
	line-height: 1;
	letter-spacing: -.03em;
}

.sml-tier__heroes {
	list-style: none;
	margin: 0;
	padding: .75rem;
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
}
.sml-tier__heroes a {
	display: grid;
	justify-items: center;
	gap: .125rem;
	width: 5rem;
	padding: .375rem .25rem;
	text-align: center;
	border-radius: 4px;
}
.sml-tier__heroes .sml-avatar { margin-bottom: .25rem; box-shadow: 0 0 0 2px var(--sml-raised), 0 0 0 4px var(--tier); }
.sml-tier__name { font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.sml-tier__wr { font-size: .75rem; color: var(--sml-muted); }

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

.sml-back { margin: 0 0 1rem; font-size: .875rem; }
.sml-back a { color: var(--sml-muted); }
.sml-back a::before { content: "\2190\00a0"; }

.sml-hero__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.sml-hero__head p { margin: 0; }
.sml-hero__roles { font-weight: 600; }
.sml-hero__lanes { color: var(--sml-muted); font-size: .9375rem; }

.sml-hero__tier {
	margin-left: auto;
	display: grid;
	justify-items: center;
	align-content: center;
	width: 5.5rem;
	height: 5.5rem;
	background: var(--tier);
	color: var(--tier-ink, #fff);
	border-radius: var(--sml-radius);
}
.sml-hero__tier span { font-family: var(--sml-display); font-weight: 800; font-size: 3rem; line-height: .9; }
.sml-hero__tier small { font-size: .75rem; opacity: .85; }

.sml-figures {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .5rem;
	margin: 0 0 1.5rem;
}
.sml-figures > div {
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	padding: .875rem 1rem;
}
.sml-figures dt { font-size: .8125rem; color: var(--sml-muted); }
.sml-figures dd { margin: 0; font-family: var(--sml-display); font-weight: 600; font-size: 2rem; line-height: 1.1; }

.sml-h { font-size: 1.125rem; margin: 0 0 .75rem; }

/* Teks pendukung ------------------------------------------------------ */

.sml-note { margin: .75rem 0 0; font-size: .8125rem; color: var(--sml-muted); max-width: 70ch; }
.sml-empty {
	margin: 1rem 0;
	padding: 1rem;
	background: var(--sml-surface);
	border-radius: var(--sml-radius);
	color: var(--sml-muted);
}

/* Mobile -------------------------------------------------------------- */

@media (max-width: 600px) {
	.sml-search { max-width: none; margin-left: 0; flex-basis: 100%; }
	.sml-tier { grid-template-columns: 4rem 1fr; }
	.sml-tier__label { font-size: 2.25rem; }
	.sml-tier__heroes a { width: 4.25rem; }
	.sml-figures dd { font-size: 1.5rem; }
	.sml-hero__head { flex-wrap: wrap; }
	.sml-hero__head > .sml-avatar { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
	.sml * { transition: none !important; }
}

/* Tema gelap: ikut tombol mode gelap tema Merinda (class "dark-mode" di <body>). */
.dark-mode .sml,
.sml-dark .sml {
	--sml-ink: #e6ecf5;
	--sml-muted: #9aa7bd;
	--sml-surface: #1a2333;
	--sml-raised: #212c40;
	--sml-line: #2e3b52;
	--sml-focus: #f0b43a;
}

/* Tahap 2: Meta Movers ------------------------------------------------ */

.sml { --sml-up: #1d7a4a; --sml-down: #b42318; }
.dark-mode .sml,
.sml-dark .sml { --sml-up: #4cc38a; --sml-down: #f97066; }

.sml-movers__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.sml-movers__list {
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	padding: 1rem;
}
.sml-movers__list ol { list-style: none; margin: 0; padding: 0; }
.sml-movers__list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .375rem 0; }
.sml-movers__list li + li { border-top: 1px solid var(--sml-line); }
.sml-movers__list a { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.sml-movers__list a span { display: grid; line-height: 1.25; }
.sml-movers__list small { font-size: .75rem; color: var(--sml-muted); }

.sml-delta { font-family: var(--sml-display); font-weight: 600; font-size: 1.375rem; line-height: 1; white-space: nowrap; }
.sml-delta.is-up { color: var(--sml-up); }
.sml-delta.is-down { color: var(--sml-down); }

.sml-tierchange { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.sml-tierchange li {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	padding: .5rem .75rem;
}
.sml-tierchange a { display: flex; align-items: center; gap: .5rem; margin-right: auto; min-width: 0; }
.sml-tierchange__name { font-weight: 600; }
.sml-tierchange__arrow { font-weight: 700; }
.sml-tierchange__arrow.is-up { color: var(--sml-up); }
.sml-tierchange__arrow.is-down { color: var(--sml-down); }
.sml-movers .sml-h { margin-top: 1.5rem; }
.sml-movers__list .sml-h { margin-top: 0; }

/* Tahap 2: Item dan emblem ------------------------------------------- */

.sml-avatar--square { border-radius: 8px; }

.sml-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: .5rem;
	align-items: start;
}
.sml-card {
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
}
.sml-card > summary,
.sml-card__head {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem;
	list-style: none;
}
.sml-card > summary { cursor: pointer; }
.sml-card > summary::-webkit-details-marker { display: none; }
.sml-card > summary::after { content: "+"; margin-left: auto; color: var(--sml-muted); font-size: 1.25rem; line-height: 1; }
.sml-card[open] > summary::after { content: "\2212"; }
.sml-card__title { display: grid; line-height: 1.3; min-width: 0; }
.sml-card__title small { font-size: .8125rem; color: var(--sml-muted); }
.sml-card__body { padding: 0 .75rem .75rem; font-size: .9375rem; }
.sml-cards--open .sml-card__body { padding-top: 0; }
.sml-card__body:empty { display: none; }
.sml-lines { margin: 0; padding-left: 1.1rem; }
.sml-lines li + li { margin-top: .125rem; }
.sml-card__passive { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--sml-line); color: var(--sml-muted); }

.sml-emblems__group + .sml-emblems__group { margin-top: 1.5rem; }

/* Tahap 3: katalog hero ---------------------------------------------- */

.sml-catalog__filters { display: grid; gap: .625rem; margin-bottom: .75rem; }
.sml-catalog__filters .sml-search { margin-left: 0; max-width: 360px; }
.sml-chiprow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sml-chiprow__label { font-size: .8125rem; color: var(--sml-muted); min-width: 2.75rem; }

.sml-hcards {
	list-style: none;
	margin: .5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .5rem;
}
.sml-hcard {
	display: grid;
	gap: .5rem;
	padding: .75rem;
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
}
.sml-hcard[hidden] { display: none; }
.sml-hcard__main { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.sml-hcard__text { display: grid; min-width: 0; line-height: 1.3; }
.sml-hcard__text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sml-hcard__text small { font-size: .8125rem; color: var(--sml-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sml-hcard__text .sml-hcard__lane { color: var(--sml-muted); }
.sml-hcard__tier { margin-left: auto; }
.sml-hcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--sml-muted); }
.sml-hcard__foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sml .sml-hcard__foot a { color: var(--sml-ink); font-weight: 600; white-space: nowrap; padding: .25rem 0; }
.sml .sml-hcard__foot a:hover { text-decoration: underline; }

/* Tahap 3: detail hero ------------------------------------------------ */

.sml-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.sml-tag {
	display: inline-block;
	font-size: .8125rem;
	line-height: 1.2;
	padding: .3rem .625rem;
	border-radius: 999px;
	border: 1px solid var(--sml-line);
	background: var(--sml-raised);
}
.sml-tag--strong { background: var(--sml-ink); border-color: var(--sml-ink); color: var(--sml-raised); }
.sml-tag--soft { background: var(--sml-surface); border-color: transparent; color: var(--sml-muted); }

.sml-hd__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1.25rem;
	align-items: center;
	padding: 1.25rem;
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	margin-bottom: 1rem;
}
.sml-hd__img { border-radius: 12px; width: 112px; height: 112px; }
.sml-hd__info { display: grid; gap: .875rem; min-width: 0; }
.sml-hd__figures { margin: 0; }
.sml-hd__figures > div { background: var(--sml-surface); border: 0; padding: .625rem .875rem; }
.sml-hd__figures dd { font-size: 1.625rem; }
.sml-hd__tier {
	display: grid;
	justify-items: center;
	align-content: center;
	width: 6rem;
	height: 6rem;
	background: var(--tier);
	color: var(--tier-ink, #fff);
	border-radius: var(--sml-radius);
	grid-row: span 1;
}
.sml-hd__tier span { font-family: var(--sml-display); font-weight: 800; font-size: 3.25rem; line-height: .9; }
.sml-hd__tier small { font-size: .75rem; opacity: .85; }
.sml-hd__change { grid-column: 3; justify-self: center; font-size: .75rem; font-weight: 600; margin-top: -.75rem; }
.sml-hd__change.is-up { color: var(--sml-up); }
.sml-hd__change.is-down { color: var(--sml-down); }
.sml-hd__updated { margin: 0; align-self: center; }

.sml-jump {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	padding: .375rem;
	margin: 1rem 0 1.5rem;
	background: var(--sml-surface);
	border-radius: var(--sml-radius);
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 5;
}
.sml .sml-jump a { padding: .5rem .875rem; border-radius: 4px; font-size: .875rem; font-weight: 600; }
.sml .sml-jump a:hover { background: var(--sml-raised); }

.sml-sec { scroll-margin-top: 4.5rem; margin-bottom: 2rem; }
.sml-sec__title {
	font-family: var(--sml-display);
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1.1;
	margin: 0 0 .875rem;
}

.sml-rankbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 640px; }
.sml-rankbars li { display: grid; grid-template-columns: 8.5rem 1fr 4rem; align-items: center; gap: .75rem; font-size: .9375rem; }
.sml-rankbars__bar { position: relative; height: 10px; background: var(--sml-surface); border-radius: 5px; overflow: hidden; }
.sml-rankbars__bar > span { display: block; height: 100%; border-radius: 5px; }
.sml-rankbars__bar > span.is-up { background: var(--sml-up); }
.sml-rankbars__bar > span.is-down { background: var(--sml-down); }
.sml-rankbars__bar i { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--sml-ink); opacity: .45; }
.sml-rankbars__val { text-align: right; font-weight: 600; }

.sml-mu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.sml-mu__col { background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); padding: 1rem; border-top: 4px solid var(--mu, var(--sml-line)); }
.sml-mu--countered_by { --mu: var(--sml-down); }
.sml-mu--counters { --mu: var(--sml-up); }
.sml-mu--synergy { --mu: var(--sml-b); }
.sml-mu__col .sml-h { margin: 0 0 .125rem; }
.sml-mu__desc { margin: 0 0 .5rem; }
.sml-mu__col ol { list-style: none; margin: 0; padding: 0; }
.sml-mu__col li { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 2.75rem; align-items: center; gap: .5rem; padding: .375rem 0; }
.sml-mu__col li + li { border-top: 1px solid var(--sml-line); }
.sml-mu__col li a { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 600; }
.sml-mu__col li a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sml-mu__bar { display: block; height: 6px; background: var(--sml-surface); border-radius: 3px; overflow: hidden; }
.sml-mu__bar span { display: block; height: 100%; background: var(--mu); }
.sml-mu__score { text-align: right; font-size: .875rem; font-weight: 600; }
.sml-mu__why { margin: .625rem 0 0; font-size: .875rem; color: var(--sml-muted); }

.sml-skills { display: grid; gap: .5rem; }
.sml-skill { background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-skill > summary { display: flex; align-items: center; gap: .875rem; padding: .75rem; cursor: pointer; list-style: none; }
.sml-skill > summary::-webkit-details-marker { display: none; }
.sml-skill > summary::after { content: "+"; margin-left: auto; color: var(--sml-muted); font-size: 1.25rem; }
.sml-skill[open] > summary::after { content: "\2212"; }
.sml-skill__icon { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; }
.sml-skill__icon--empty { display: grid; place-items: center; background: var(--sml-surface); font-family: var(--sml-display); font-weight: 800; font-size: 1.25rem; color: var(--sml-muted); }
.sml-skill__title { display: grid; line-height: 1.3; }
.sml-skill__title small { font-size: .8125rem; color: var(--sml-muted); }
.sml-skill__body { padding: 0 .875rem .875rem calc(48px + 1.625rem); display: grid; gap: .625rem; }
.sml-skill__body p { margin: 0; line-height: 1.6; }

.sml-guide { display: grid; gap: .5rem; margin: 1rem 0 0; }
.sml-guide > div { background: var(--sml-surface); border-radius: var(--sml-radius); padding: .75rem 1rem; }
.sml-guide dt { font-size: .8125rem; color: var(--sml-muted); margin-bottom: .125rem; }
.sml-guide dd { margin: 0; line-height: 1.6; }

.sml-build { background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); padding: 1rem; }
.sml-build + .sml-build { margin-top: .75rem; }
.sml-build .sml-h { margin: 0 0 .75rem; }
.sml-build__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.sml-build__items a,
.sml-build__items .sml-build__plain { display: grid; justify-items: center; gap: .375rem; text-align: center; font-size: .75rem; line-height: 1.25; }
.sml-build__extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: 1rem 0 0; }
.sml-build__extra dt { font-size: .8125rem; color: var(--sml-muted); margin-bottom: .375rem; }
.sml-build__extra dd { margin: 0; display: grid; gap: .375rem; }
.sml-build__extra a,
.sml-build__extra .sml-build__plain { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .875rem; }

.sml-similar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.sml-similar a { display: flex; align-items: center; gap: .5rem; padding: .5rem .625rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); font-weight: 600; }
.sml-similar .sml-badge { margin-left: auto; }

.sml-faq { display: grid; gap: .5rem; }
.sml-faq details { background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-faq summary { padding: .875rem 1rem; cursor: pointer; font-weight: 600; }
.sml-faq p { margin: 0; padding: 0 1rem 1rem; line-height: 1.6; color: var(--sml-muted); }

@media (max-width: 700px) {
	.sml-hd__head { grid-template-columns: auto minmax(0, 1fr); }
	.sml-hd__img { width: 80px; height: 80px; }
	.sml-hd__info { grid-column: 1 / -1; grid-row: 2; }
	.sml-hd__tier { grid-column: 2; grid-row: 1; justify-self: end; width: 4.5rem; height: 4.5rem; }
	.sml-hd__tier span { font-size: 2.5rem; }
	.sml-hd__change { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 0; }
	.sml-hd__figures dd { font-size: 1.25rem; }
	.sml-build__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sml-rankbars li { grid-template-columns: 6.5rem 1fr 3.5rem; }
	.sml-skill__body { padding-left: .875rem; }
}
.sml-similar { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sml-similar a > span:not(.sml-badge) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sml-similar .sml-badge, .sml-similar .sml-avatar { flex: none; }

/* Jaga gambar tetap bulat/persegi walau tema mengatur img { height: auto } */
.sml img.sml-avatar,
.sml img.sml-skill__icon {
	max-width: none !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
	flex: none;
	margin: 0;
}
.sml-hcard__main,
.sml-hcard__main:hover { text-decoration: none; }

/* ===== v0.5: tahan gaya tema (list, link, justify) ===== */
.sml, .sml-shell { text-align: left; word-spacing: normal; letter-spacing: normal; font-family: Cabin, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45; }
.sml ul, .sml ol { list-style: none !important; margin: 0; padding: 0 !important; }
.sml ul > li, .sml ol > li { list-style: none !important; margin-left: 0 !important; padding-left: 0; }
.sml ul > li::marker, .sml ol > li::marker { content: ""; }
.sml ul > li::before, .sml ol > li::before { content: none !important; display: none !important; }
.sml ul.sml-lines { padding-left: 1.1rem !important; }
.sml ul.sml-lines > li { list-style: disc !important; }
.sml ul.sml-lines > li::marker { content: initial; }
.sml a, .sml a:hover, .sml a:visited { color: inherit; text-decoration: none; box-shadow: none; }
.sml h2, .sml h3, .sml p { letter-spacing: normal; }
.sml-toolbar:empty { display: none; }
.sml-tag { color: var(--sml-ink); }
.sml-tag--soft { color: var(--sml-muted); }
.sml-avatar--initial { font-family: inherit; font-weight: 700; letter-spacing: .02em; }

/* ===== Sidebar ===== */
.sml-shell {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
	width: min(1200px, calc(100vw - 32px));
	margin-left: calc(50% - min(600px, 50vw - 16px));
	margin-right: 0;
}
.sml-shell__main > .sml { margin-top: 0; }
.sml-side {
	position: sticky;
	top: calc(env(safe-area-inset-top, 0px) + 1rem);
	margin: 0;
	padding: .75rem;
	background: var(--sml-raised);
	border: 1px solid var(--sml-line);
	border-radius: var(--sml-radius);
	max-height: calc(100vh - 2rem);
	overflow: auto;
}
.sml-side__search { display: block; margin-bottom: .75rem; }
.sml-side__search input { width: 100%; }
.sml-side__group + .sml-side__group { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--sml-line); }
.sml-side__title { margin: 0 0 .25rem; padding: 0 .5rem; font-size: .75rem; font-weight: 700; color: var(--sml-muted); }
.sml-side a { display: block; padding: .5rem; border-radius: 4px; font-size: .9375rem; }
.sml-side a:hover { background: var(--sml-surface); }
.sml-side a.is-active { background: var(--sml-ink); color: var(--sml-raised); font-weight: 600; }

@media (max-width: 900px) {
	.sml-shell { grid-template-columns: minmax(0, 1fr); width: auto; margin-left: 0; gap: 1rem; }
	.sml-side { position: static; max-height: none; padding: .5rem; }
	.sml-side nav { display: flex; gap: .25rem; overflow-x: auto; }
	.sml-side__group { display: contents; }
	.sml-side__title { display: none; }
	.sml-side ul { display: flex; gap: .25rem; }
	.sml-side a { white-space: nowrap; padding: .45rem .75rem; }
}

/* ===== Build (v0.5) ===== */
.sml-build__items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.sml-itm { display: grid; justify-items: center; gap: .375rem; padding: .5rem .25rem; border-radius: var(--sml-radius); text-align: center; font-size: .75rem; line-height: 1.25; font-weight: 600; }
a.sml-itm:hover { background: var(--sml-surface); }
.sml-build__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--sml-line); }
.sml-build__label { margin: 0 0 .375rem; font-size: .75rem; font-weight: 700; color: var(--sml-muted); }
.sml-build__chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.sml-chipx { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .625rem .25rem .25rem; background: var(--sml-surface); border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.sml-chipx .sml-avatar { border-radius: 50%; }
a.sml-chipx:hover { background: var(--sml-line); }
@media (max-width: 700px) { .sml-build__items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sml-shell { max-width: none !important; margin-left: calc(50% - min(600px, 50vw - 16px)) !important; margin-right: 0 !important; }
@media (max-width: 900px) { .sml-shell { margin-left: 0 !important; width: auto !important; } }
.sml a, .sml a:hover, .sml a:visited, .sml a:focus { color: inherit !important; text-decoration: none !important; }
.sml-side a.is-active, .sml-side a.is-active:hover { color: var(--sml-raised) !important; }
.sml-tag.sml-tag--strong { color: var(--sml-raised); }
.sml { font-size: 1rem; }
.sml-mu__col li a { font-size: .9375rem; }
.sml-skill__body p, .sml-guide dd, .sml-faq p, .sml-build .sml-note { font-size: .9375rem; }
.sml-skill__title strong { font-size: 1rem; }

/* ===== v0.6: ikon, sidebar multi-game ===== */
.sml-tile { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; }
.sml-tile .sml-ico { display: block; }
.sml-side a { display: flex; align-items: center; gap: .625rem; }
.sml-side a.is-active .sml-tile { background: rgba(255,255,255,.16) !important; color: #fff !important; }
.sml-gswitch { display: flex; gap: .25rem; margin-bottom: .75rem; padding: .25rem; background: var(--sml-surface); border-radius: 8px; }
.sml-gsw { flex: 1; text-align: center; padding: .375rem; border-radius: 6px; font-size: .8125rem; font-weight: 700; }
.sml .sml-gsw.is-active { background: var(--sml-raised); box-shadow: 0 1px 2px rgba(20,33,61,.12); }
.sml-gsw.is-soon { color: var(--sml-muted); opacity: .6; cursor: default; }

/* ===== Landing ===== */
.sml-intro { font-size: 1.0625rem; line-height: 1.6; max-width: 68ch; margin: 0 0 1.5rem; color: var(--sml-muted); }
.sml-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.sml-gcard { display: grid; gap: .5rem; align-content: start; padding: 1.25rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: 12px; }
a.sml-gcard:hover { border-color: var(--sml-ink); }
.sml-gcard.is-soon { opacity: .6; }
.sml-gcard__badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: #fff; font-family: var(--sml-display); font-weight: 800; font-size: 1.5rem; }
.sml-gcard__name { font-size: 1.25rem; margin: .25rem 0 0; }
.sml-gcard p { margin: 0; color: var(--sml-muted); font-size: .9375rem; }
.sml-gcard__meta { font-size: .8125rem; font-weight: 700; }

.sml-ghome__sec { margin: 0 0 2rem; }
.sml-ghome__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sml .sml-more { font-size: .875rem; font-weight: 700; }
.sml .sml-more:hover { text-decoration: underline !important; }
.sml-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.sml-strip a { display: grid; justify-items: center; gap: .375rem; padding: .875rem .5rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); text-align: center; }
.sml-strip__name { font-weight: 700; font-size: .9375rem; }
.sml-strip__meta { font-size: .8125rem; color: var(--sml-muted); display: flex; align-items: center; gap: .375rem; }
.sml-tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.sml-tcard { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
a.sml-tcard:hover { border-color: var(--sml-ink); }
.sml-tcard .sml-tile { width: 40px; height: 40px; border-radius: 10px; }
.sml-tcard span:last-child { display: grid; gap: .125rem; }
.sml-tcard small { color: var(--sml-muted); font-size: .8125rem; line-height: 1.4; }

/* ===== Tools interaktif ===== */
.sml-mini { font-size: .75rem; font-weight: 700; color: var(--sml-muted); margin: .75rem 0 .375rem; }
.sml-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.sml-slots--ban { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sml-slots--ban .sml-slot { min-height: 64px; }
.sml-slots--ban .sml-slot .sml-avatar { width: 32px !important; height: 32px !important; filter: grayscale(1); }
.sml-slot { position: relative; display: grid; justify-items: center; align-content: center; gap: .25rem; min-height: 92px; padding: .5rem .25rem; font: inherit; font-size: .75rem; font-weight: 600; color: var(--sml-muted); background: var(--sml-surface); border: 1.5px dashed var(--sml-line); border-radius: var(--sml-radius); cursor: pointer; }
.sml-slot.is-next { border-color: var(--sml-ink); color: var(--sml-ink); }
.sml-slot.is-filled { background: var(--sml-raised); border-style: solid; color: var(--sml-ink); }
.sml-slot span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sml-slot i { position: absolute; top: 2px; right: 6px; font-style: normal; color: var(--sml-muted); font-size: 1rem; }
.sml-slot__plus { font-size: 1.5rem; line-height: 1; }
.sml-target { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: 1rem 0 .5rem; }
.sml-target .sml-mini { margin: 0 .25rem 0 0; }
.sml-picker { margin-top: 1rem; padding: .75rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-picker__bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.sml-picker__bar .sml-search { margin-left: 0; flex: 1 1 200px; }
.sml-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .25rem; max-height: 340px; overflow-y: auto; }
.sml-pick { display: grid; justify-items: center; gap: .25rem; padding: .375rem .125rem; font: inherit; font-size: .6875rem; font-weight: 600; color: var(--sml-ink); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.sml-pick:hover { background: var(--sml-surface); }
.sml-pick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sml-pick.is-used { opacity: .3; cursor: default; }
.sml-result { margin-top: 1.5rem; }
.sml-recs { display: grid; gap: .5rem; }
.sml-rec { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-rec__add { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.sml-rec__body { min-width: 0; flex: 1; }
.sml-rec__body small { color: var(--sml-muted); font-size: .8125rem; }
.sml-reasons { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .375rem; }
.sml-reason { display: inline-block; font: inherit; font-size: .75rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: var(--sml-surface); color: var(--sml-muted); border: 0; }
.sml-reason.is-good { color: var(--sml-up); background: color-mix(in srgb, var(--sml-up) 12%, transparent); }
.sml-reason.is-bad { color: var(--sml-down); background: color-mix(in srgb, var(--sml-down) 12%, transparent); }
.sml-reason.is-add { cursor: pointer; color: var(--sml-ink); background: var(--sml-raised); border: 1px solid var(--sml-line); }
.sml-draft { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sml-draft__side .sml-h { margin: 0 0 .5rem; }
.sml-draft__side .sml-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sml-draft__mid { align-self: center; }
.sml-win__labels { display: flex; justify-content: space-between; font-weight: 700; font-size: .875rem; margin-bottom: .375rem; }
.sml-win__bar { height: 12px; border-radius: 6px; background: var(--sml-down); overflow: hidden; }
.sml-win__bar span { display: block; height: 100%; background: var(--sml-up); }
.sml-win .sml-mini { font-weight: 400; }
.sml-plain { display: grid; gap: .25rem; font-size: .875rem; margin-bottom: .5rem !important; }
.sml-note.is-warn { color: var(--sml-down); }
.sml-checks { display: grid; gap: .5rem; }
.sml-checks > li { display: flex; gap: .75rem; padding: .875rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-checks p { margin: .125rem 0 0; font-size: .875rem; color: var(--sml-muted); }
.sml-check__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-weight: 800; color: #fff; }
.is-ok .sml-check__icon { background: var(--sml-up); }
.is-miss .sml-check__icon { background: var(--sml-down); }

.sml-blist { display: grid; gap: .5rem; margin-top: .75rem; }
.sml-blist__row { display: grid; grid-template-columns: auto minmax(0, 180px) minmax(0, 1fr); gap: .875rem; align-items: center; padding: .625rem .75rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-blist__row[hidden] { display: none; }
a.sml-blist__row:hover { border-color: var(--sml-ink); }
.sml-blist__hero { display: grid; line-height: 1.3; min-width: 0; }
.sml-blist__hero small { color: var(--sml-muted); font-size: .8125rem; }
.sml-blist__items { display: flex; flex-wrap: wrap; gap: .375rem; }

@media (max-width: 900px) {
	.sml-draft { grid-template-columns: minmax(0, 1fr); }
	.sml-blist__row { grid-template-columns: auto minmax(0, 1fr); }
	.sml-blist__items { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.sml-slots { gap: .25rem; }
	.sml-slot { min-height: 76px; font-size: .6875rem; }
	.sml-slot .sml-avatar { width: 36px !important; height: 36px !important; }
}
.sml-side a.sml-gsw { justify-content: center; padding: .375rem; }
.sml-side a.sml-gsw.is-active, .sml-side a.sml-gsw.is-active:hover { background: var(--sml-raised) !important; color: var(--sml-ink) !important; }
.sml-strip { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }

/* ===== v0.7: mode terang/gelap ===== */
.dark-mode .sml,
.sml-dark .sml,
.sml-shell.is-dark .sml {
	--sml-ink: #e8ebf1;
	--sml-muted: #98a2b3;
	--sml-surface: #1c212b;
	--sml-raised: #141820;
	--sml-line: #272e3a;
	--sml-focus: #f0b43a;
	--sml-up: #4cc38a;
	--sml-down: #f97066;
	--sml-d: #7d8799;
	color-scheme: dark;
}
/* Pengunjung memilih terang walau tema sedang gelap. */
.dark-mode .sml-shell.is-light .sml {
	--sml-ink: #14213d;
	--sml-muted: #56637c;
	--sml-surface: #eef2f7;
	--sml-raised: #ffffff;
	--sml-line: #d3dbe6;
	--sml-up: #1d7a4a;
	--sml-down: #b42318;
	color-scheme: light;
}
/* Gelap di atas halaman terang: tools jadi panel gelap sendiri. */
.sml-shell.is-dark { background: #0d1015; padding: 1rem; border-radius: 16px; }
.dark-mode .sml-shell.is-dark { background: transparent; padding: 0; }
.dark-mode .sml-shell.is-light { background: #f6f8fb; padding: 1rem; border-radius: 16px; }
.sml-shell.is-dark .sml-shell__main,
.dark-mode .sml-shell:not(.is-light) .sml-shell__main { color: #e8ebf1; }
.sml-shell.is-dark .sml-avatar--initial,
.dark-mode .sml-shell:not(.is-light) .sml-avatar--initial { border-color: var(--sml-line); }
.sml-shell.is-dark .sml-sec__title, .sml-shell.is-dark .sml-h, .sml-shell.is-dark h2, .sml-shell.is-dark h3 { color: var(--sml-ink); }
.sml-shell.is-dark select, .sml-shell.is-dark input[type="search"] { color-scheme: dark; }

.sml-mode {
	display: flex; align-items: center; gap: .5rem; width: 100%;
	margin-top: .75rem; padding: .5rem .625rem;
	font: inherit; font-size: .8125rem; font-weight: 600; color: var(--sml-muted);
	background: var(--sml-surface); border: 0; border-radius: 6px; cursor: pointer;
}
.sml-mode:hover { color: var(--sml-ink); }
.sml-mode .sml-ico--sun { display: none; }
.sml-mode[aria-pressed="true"] .sml-ico--sun { display: block; }
.sml-mode[aria-pressed="true"] .sml-ico--moon { display: none; }
@media (max-width: 900px) {
	.sml-mode { width: auto; margin: .5rem 0 0; }
	.sml-shell.is-dark { padding: .75rem; }
}

/* ===== v0.8: ikon buatan, kalkulator ===== */
svg.sml-gen { display: block; flex: none; border-radius: 0; }
.sml-chipx svg.sml-gen, .sml-strip svg.sml-gen { border-radius: 50%; }
.sml-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.sml-field { display: grid; gap: .3rem; font-size: .8125rem; font-weight: 600; color: var(--sml-muted); }
.sml-field input, .sml-field select { width: 100%; font: inherit; font-size: 1rem; font-weight: 600; color: var(--sml-ink); background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); padding: .55rem .75rem; min-height: 44px; }
.sml-big { display: grid; gap: .125rem; padding: 1rem 1.25rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); margin-bottom: .75rem; }
.sml-big span { font-size: .8125rem; font-weight: 700; color: var(--sml-muted); }
.sml-big strong { font-family: var(--sml-display); font-weight: 800; font-size: 2.5rem; line-height: 1.05; }
.sml-big small { color: var(--sml-muted); font-size: .875rem; }
.sml-steps, .sml-breakdown { display: grid; gap: .25rem; margin-bottom: 1rem !important; }
.sml-steps > li, .sml-breakdown > li { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem .875rem; background: var(--sml-surface); border-radius: 6px; font-size: .9375rem; }
.sml-steps span, .sml-breakdown span { color: var(--sml-muted); }
.sml-steps strong, .sml-breakdown strong { text-align: right; font-variant-numeric: tabular-nums; }
.sml-breakdown .is-total { background: var(--sml-raised); border: 1px solid var(--sml-line); font-weight: 700; }
.sml-breakdown .is-total span { color: var(--sml-ink); }
.sml-breakdown .is-cut strong { color: var(--sml-down); }
.sml-dmg { margin: 0 0 .75rem; }
.sml-explain { margin-top: 2rem; }
.sml-clock { padding: 1.5rem; text-align: center; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: 12px; margin-bottom: 1rem; }
.sml-clock .sml-mini { margin-top: 0; }
.sml-clock__time { margin: 0; font-family: var(--sml-display); font-weight: 800; font-size: clamp(3rem, 9vw, 5rem); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sml-clock__date { margin: .5rem 0 0; color: var(--sml-muted); }
.sml-resets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.sml-reset { padding: 1rem; background: var(--sml-raised); border: 1px solid var(--sml-line); border-radius: var(--sml-radius); }
.sml-reset p { margin: 0; }
.sml-reset__name { font-weight: 700; }
.sml-reset__left { font-family: var(--sml-display); font-weight: 800; font-size: 1.75rem; font-variant-numeric: tabular-nums; margin: .25rem 0 !important; }
.sml-reset__meta { font-size: .8125rem; color: var(--sml-muted); line-height: 1.45; }
.sml-bsim { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.sml-bsim__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sml-picker__grid--items .sml-pick small { font-size: .6875rem; color: var(--sml-muted); font-weight: 600; }
@media (max-width: 760px) { .sml-bsim { grid-template-columns: minmax(0, 1fr); } }

/* v0.8.2: judul ikut warna tools (tema gelap memaksa heading putih) */
.sml h2, .sml h3, .sml .sml-sec__title, .sml .sml-h, .sml .sml-gcard__name { color: var(--sml-ink); }
.dark-mode .sml-shell.is-light .sml h2,
.dark-mode .sml-shell.is-light .sml h3 { color: var(--sml-ink) !important; fill: var(--sml-ink) !important; }
.sml-side ul { margin: 0 !important; }
.sml-side p.sml-side__title { margin: 0 0 .25rem !important; }
