:root {
	--bg: #08080a;
	--surface: #111114;
	--surface-2: #16161a;
	--surface-3: #1d1d22;
	--line: rgba(255, 255, 255, 0.07);
	--line-strong: rgba(255, 255, 255, 0.13);
	--hover: rgba(255, 255, 255, 0.045);
	--text: #ececef;
	--text-2: #a3a3ab;
	--muted: #6c6c75;
	--ice: #f4f6f8;
	--metal: linear-gradient(180deg, #ffffff 0%, #d9dce2 45%, #aeb2bb 100%);
	--danger: #ff6b6b;
	--ok: #8be0a4;
	--warn: #f2c46d;
	--t1: #5e98d9;
	--t2: #4b69ff;
	--t3: #8847ff;
	--t4: #d32ce6;
	--t5: #eb4b4b;
	--radius: 16px;
	--radius-s: 10px;
	--spring: cubic-bezier(0.22, 1.25, 0.36, 1);
	--ease: cubic-bezier(0.25, 0.8, 0.25, 1);
	color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	background: var(--bg);
	color: var(--text);
	font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01";
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(255, 255, 255, 0.035), transparent 60%);
}
button, input { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, 0.22); color: #fff; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.field:focus-visible { outline: none; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
table.t td.wrap { white-space: normal; min-width: 160px; }

/* ------------------------------------------------------------ login */
.login {
	min-height: 100%;
	display: grid;
	place-items: center;
	padding: 24px 16px;
}
.login-card {
	width: min(380px, 100%);
	padding: 32px 28px 28px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	border: 1px solid var(--line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(20px);
	animation: rise 0.6s var(--spring) both;
}
.login-card h1 { margin: 18px 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.login-card form { display: grid; gap: 12px; }
.login-error {
	min-height: 20px;
	color: var(--danger);
	font-size: 13px;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark {
	width: 30px; height: 30px; border-radius: 9px;
	background: var(--metal);
	display: grid; place-items: center;
	box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(255, 255, 255, 0.08);
}
.brand-mark svg { width: 18px; height: 18px; color: #121214; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ------------------------------------------------------------ controls */
.field {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.35);
	outline: none;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.25s var(--ease);
}
.field:focus { border-color: var(--line-strong); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05); }
.field::placeholder { color: var(--muted); }
.field.small { height: 34px; padding: 0 12px; font-size: 13px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 38px; padding: 0 16px;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	font-weight: 550;
	white-space: nowrap;
	transition: transform 0.35s var(--spring), background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary {
	background: var(--metal);
	color: #0c0c0e;
	border-color: transparent;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 20px rgba(255, 255, 255, 0.08);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.25); background: rgba(255, 107, 107, 0.06); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.12); }
.btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 38px; padding: 0; }
.btn.icon.small { width: 30px; }
.btn.wide { width: 100%; height: 44px; }
.btn.loading { pointer-events: none; }
.btn.loading::after {
	content: ""; width: 14px; height: 14px; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent;
	animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* segmented control with a sliding pill */
.seg {
	position: relative;
	display: inline-flex;
	padding: 3px;
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--line);
}
.seg button {
	position: relative; z-index: 1;
	height: 30px; padding: 0 13px;
	border: 0; background: none; cursor: pointer;
	color: var(--text-2); font-weight: 550; font-size: 13px;
	border-radius: 8px;
	transition: color 0.25s;
}
.seg button.on { color: #0c0c0e; }
.seg .pill {
	position: absolute; top: 3px; bottom: 3px; left: 0;
	border-radius: 8px;
	background: var(--metal);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	transition: transform 0.5s var(--spring), width 0.5s var(--spring);
}

/* custom dropdown */
.dd { position: relative; display: inline-block; }
.dd-btn {
	display: inline-flex; align-items: center; gap: 8px;
	height: 34px; padding: 0 10px 0 12px;
	border-radius: var(--radius-s);
	border: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer; font-size: 13px;
	min-width: 150px; justify-content: space-between;
	transition: border-color 0.2s, background 0.2s;
}
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--line-strong); background: rgba(0, 0, 0, 0.5); }
.dd-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform 0.4s var(--spring); }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd-btn .label { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-panel {
	position: absolute; z-index: 50; top: calc(100% + 6px); left: 0;
	min-width: 100%;
	border-radius: 12px;
	background: rgba(24, 24, 28, 0.96);
	border: 1px solid var(--line-strong);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(18px);
	padding: 5px;
	transform-origin: top center;
	opacity: 0; transform: scale(0.96) translateY(-4px);
	pointer-events: none;
	transition: opacity 0.18s var(--ease), transform 0.45s var(--spring), clip-path 0.45s var(--spring);
	clip-path: inset(0 0 100% 0 round 12px);
}
.dd.right .dd-panel { left: auto; right: 0; }
.dd.open .dd-panel { opacity: 1; transform: none; pointer-events: auto; clip-path: inset(0 0 0 0 round 12px); }
.dd-search { padding: 4px 4px 6px; }
.dd-list { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.dd-opt {
	display: flex; align-items: center; gap: 9px;
	width: 100%; padding: 7px 10px;
	border: 0; background: none; border-radius: 8px;
	text-align: left; cursor: pointer; font-size: 13px;
	color: var(--text-2);
}
.dd-opt:hover, .dd-opt.active { background: var(--hover); color: var(--text); }
.dd-opt.sel { color: var(--text); }
.dd-opt.sel::after { content: "✓"; margin-left: auto; color: var(--ice); }
.dd-opt img { width: 42px; height: 32px; object-fit: contain; flex: none; }
.dd-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); background: rgba(0, 0, 0, 0.35); }
.stepper button { width: 34px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: 18px; }
.stepper button:hover { color: var(--text); }
.stepper input { width: 64px; height: 36px; border: 0; background: none; text-align: center; outline: none; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; position: relative; }
.side {
	position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column; gap: 22px;
	padding: 20px 14px;
	border-right: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
	backdrop-filter: blur(20px);
}
.side .brand { padding: 0 8px; }
.nav { position: relative; display: grid; gap: 2px; }
.nav a {
	position: relative; z-index: 1;
	display: flex; align-items: center; gap: 11px;
	height: 38px; padding: 0 12px;
	border-radius: 10px;
	color: var(--text-2); font-weight: 520;
	transition: color 0.25s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.nav .indicator {
	position: absolute; left: 0; right: 0; top: 0; height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: transform 0.55s var(--spring);
}
.badge {
	margin-left: auto;
	min-width: 20px; height: 20px; padding: 0 6px;
	border-radius: 10px;
	display: inline-grid; place-items: center;
	font-size: 11px; font-weight: 700;
	background: var(--ice); color: #0c0c0e;
	animation: pop 0.5s var(--spring);
}
.badge.critical { background: var(--t5); color: #fff; box-shadow: 0 0 0 0 rgba(235, 75, 75, 0.5); animation: pop 0.5s var(--spring), pulse 2s 0.5s infinite; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(235, 75, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(235, 75, 75, 0); } }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.side-foot .btn { justify-content: flex-start; color: var(--text-2); border-color: transparent; background: none; }
.side-foot .btn:hover { color: var(--text); background: var(--hover); }

.main { min-width: 0; padding: 26px 32px 60px; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 24px; letter-spacing: -0.025em; font-weight: 680; }
.top .sub { color: var(--muted); font-size: 13px; }
.top .spacer { flex: 1; }
.view { animation: fade 0.45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------ panels */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cols-2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	min-width: 0;
}
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 14.5px; font-weight: 620; letter-spacing: -0.01em; }
.panel-head .hint { color: var(--muted); font-size: 12.5px; }
.panel-head .spacer { flex: 1; }
.panel-body { padding: 14px 18px 18px; }
.panel-body.flush { padding: 8px 0 6px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { padding: 15px 16px 12px; position: relative; overflow: hidden; }
.tile .k { color: var(--text-2); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.tile .k svg { width: 14px; height: 14px; opacity: 0.7; }
.tile .v { font-size: 27px; font-weight: 680; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .d { color: var(--muted); font-size: 12px; margin-top: 1px; }
.tile .d b { color: var(--text-2); font-weight: 600; }
.tile .spark { margin-top: 8px; height: 30px; display: block; width: 100%; }
.tile.alert-tile .v { color: var(--t5); }

/* ------------------------------------------------------------ charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: rgba(255, 255, 255, 0.055); stroke-width: 1; }
.chart .axis-text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .col-hl { fill: rgba(255, 255, 255, 0.045); opacity: 0; transition: opacity 0.15s; }
.chart .col-hl.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.empty-chart {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	color: var(--muted); font-size: 13px; pointer-events: none;
}

.tip {
	position: fixed; z-index: 200; pointer-events: none;
	min-width: 160px;
	padding: 10px 12px;
	border-radius: 11px;
	background: rgba(20, 20, 24, 0.97);
	border: 1px solid var(--line-strong);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	font-size: 12.5px;
	opacity: 0; transform: translateY(4px) scale(0.98);
	transition: opacity 0.12s, transform 0.3s var(--spring);
}
.tip.on { opacity: 1; transform: none; }
.tip .t-title { font-weight: 620; margin-bottom: 6px; }
.tip .t-row { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.tip .t-row b { margin-left: auto; padding-left: 14px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.dist { display: grid; gap: 14px; }
.dist-row { display: grid; grid-template-columns: 128px 1fr 118px; align-items: center; gap: 12px; }
.dist-track { position: relative; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); }
.dist-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; transition: width 0.9s var(--spring); }
.dist-exp { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ice); box-shadow: 0 0 0 2px var(--surface); }
.dist-val { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dist-val small { display: block; color: var(--muted); font-size: 11.5px; }
.dev-up { color: var(--warn); }
.dev-ok { color: var(--muted); }

.hbars { display: grid; gap: 5px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 12px; padding: 3px 6px; border-radius: 8px; cursor: default; }
.hbar:hover { background: var(--hover); }
.hbar .nm { display: flex; align-items: center; gap: 8px; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar .nm img { width: 38px; height: 22px; object-fit: contain; flex: none; }
.hbar .track { height: 10px; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #8c9099, #eef0f3); transition: width 0.9s var(--spring); min-width: 2px; }
.hbar .val { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ------------------------------------------------------------ lists & tables */
.feed { display: grid; }
.feed-row {
	display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px;
	padding: 8px 18px;
	border-top: 1px solid var(--line);
	transition: background 0.15s;
}
.feed-row:first-child { border-top: 0; }
.feed-row:hover { background: var(--hover); }
.feed-row img.ic { width: 54px; height: 40px; object-fit: contain; }
.feed-row .l1 { font-weight: 560; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .l2 { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .when { color: var(--muted); font-size: 12px; white-space: nowrap; }

.tier-chip {
	display: inline-flex; align-items: center; gap: 6px;
	height: 22px; padding: 0 8px;
	border-radius: 7px;
	font-size: 11.5px; font-weight: 600;
	background: color-mix(in srgb, var(--c) 14%, transparent);
	color: color-mix(in srgb, var(--c) 70%, white);
	border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
	white-space: nowrap;
}
.tier-chip::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--c); }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th {
	text-align: left; font-weight: 550; color: var(--muted); font-size: 12px;
	padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.t th.r, table.t td.r { text-align: right; }
table.t td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background 0.15s; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr:hover { background: var(--hover); }
table.t img.ic { width: 46px; height: 34px; object-fit: contain; vertical-align: middle; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; background: var(--surface-3); flex: none; }
.who .n { font-weight: 580; }
.who .u { color: var(--muted); font-size: 11.5px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .field { max-width: 300px; }
.toolbar .spacer { flex: 1; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
	height: 30px; padding: 0 12px;
	border-radius: 9px; border: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.3); color: var(--text-2);
	cursor: pointer; font-size: 12.5px; font-weight: 550;
	display: inline-flex; align-items: center; gap: 7px;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.35s var(--spring);
}
.chip:active { transform: scale(0.95); }
.chip:hover { color: var(--text); }
.chip.on { background: rgba(255, 255, 255, 0.1); color: var(--text); border-color: var(--line-strong); }
.chip .sw { width: 8px; height: 8px; }
.chip .n { color: var(--muted); font-weight: 500; }

/* knife type cards */
.kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-bottom: 16px; }
.kcard {
	padding: 9px 11px; border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
	cursor: pointer; text-align: left;
	transition: transform 0.45s var(--spring), border-color 0.2s, background 0.2s;
}
.kcard:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.kcard.on { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.kcard img { width: 100%; height: 38px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.kcard .nm { font-weight: 600; font-size: 13px; }
.kcard .st { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* player page */
.phead { display: flex; align-items: center; gap: 18px; padding: 20px; flex-wrap: wrap; }
.phead .avatar { width: 72px; height: 72px; border-radius: 16px; image-rendering: pixelated; background: var(--surface-3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.phead h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.phead .meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.phead .meta b { color: var(--text-2); font-weight: 560; }
.phead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.copy { cursor: pointer; border-bottom: 1px dashed transparent; }
.copy:hover { border-bottom-color: var(--muted); }

.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.icard {
	position: relative;
	padding: 10px 10px 9px;
	border-radius: 13px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 11%, transparent), rgba(255, 255, 255, 0.015) 70%);
	border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
	transition: transform 0.45s var(--spring), box-shadow 0.3s;
}
.icard:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 18%, transparent); }
.icard::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--c); }
.icard img { width: 100%; height: 74px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.icard .nm { font-size: 12.5px; font-weight: 580; line-height: 1.3; margin-top: 4px; min-height: 33px; }
.icard .ct { position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); }
.icard .eq { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--ice); color: #0c0c0e; }
.icard .zero { opacity: 0.4; }
.icard .ia { display: flex; gap: 6px; margin-top: 8px; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.35s var(--spring); }
.icard:hover .ia, .icard:focus-within .ia { opacity: 1; transform: none; }

.tabs-bar { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap; }

.tierbar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; gap: 2px; background: rgba(255, 255, 255, 0.04); }
.tierbar div { height: 100%; transition: flex-grow 0.8s var(--spring); }

.grant-box { display: grid; gap: 14px; }
.grant-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grant-row > label { width: 92px; color: var(--text-2); font-size: 13px; flex: none; }

.issue {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 12px 14px; border-radius: 12px;
	border: 1px solid rgba(235, 75, 75, 0.3);
	background: rgba(235, 75, 75, 0.07);
	font-size: 13px; margin-bottom: 14px;
}
.issue svg { width: 18px; height: 18px; color: var(--t5); flex: none; margin-top: 1px; }

/* alerts */
.alert-row {
	display: grid; grid-template-columns: 34px 54px 1fr auto; gap: 12px; align-items: center;
	padding: 10px 18px; border-top: 1px solid var(--line);
	position: relative;
	transition: background 0.15s;
}
.alert-row:first-child { border-top: 0; }
.alert-row:hover { background: var(--hover); }
.alert-row.new::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ice); }
.alert-row .sev { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.alert-row .sev svg { width: 16px; height: 16px; }
.sev.critical { background: rgba(235, 75, 75, 0.14); color: var(--t5); }
.sev.warning { background: rgba(242, 196, 109, 0.12); color: var(--warn); }
.sev.notice { background: rgba(211, 44, 230, 0.12); color: var(--t4); }
.alert-row img.ic { width: 54px; height: 40px; object-fit: contain; }
.alert-row .l1 { font-weight: 580; font-size: 13.5px; }
.alert-row .l2 { color: var(--muted); font-size: 12.5px; }
.alert-row .l2 a { color: var(--text-2); }
.alert-row .l2 a:hover { color: var(--text); text-decoration: underline; }

.empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; display: block; margin: 0 auto 10px; opacity: 0.6; }

/* skeleton */
.sk { border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* modal & toasts */
.modal-bg {
	position: fixed; inset: 0; z-index: 300;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(6px);
	display: grid; place-items: center; padding: 16px;
	animation: fade-in 0.2s both;
}
@keyframes fade-in { from { opacity: 0; } }
.modal {
	width: min(440px, 100%);
	max-height: calc(100vh - 32px); overflow: auto;
	padding: 22px;
	border-radius: 20px;
	background: #151518;
	border: 1px solid var(--line-strong);
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	animation: rise 0.45s var(--spring) both;
}
.modal.wide { width: min(640px, 100%); }
.modal h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.modal p { margin: 0 0 18px; color: var(--text-2); }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px; border-radius: 13px;
	background: rgba(24, 24, 28, 0.97);
	border: 1px solid var(--line-strong);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	font-size: 13px;
	animation: toast-in 0.5s var(--spring) both;
}
.toast.out { animation: toast-out 0.3s var(--ease) both; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--ok); }
.toast.err svg { color: var(--danger); }
.toast.crit { border-color: rgba(235, 75, 75, 0.45); }
.toast.crit svg { color: var(--t5); }
.toast b { display: block; font-weight: 620; }
.toast span { color: var(--text-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); font-size: 13px; user-select: none; }
.switch i { width: 34px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d8dbe0; transition: transform 0.45s var(--spring); }
.switch.on i { background: rgba(255, 255, 255, 0.85); }
.switch.on i::after { transform: translateX(14px); background: #0c0c0e; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
	.cols-2, .cols-2e { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
	.shell { grid-template-columns: minmax(0, 1fr); }
	.side {
		position: sticky; top: 0; z-index: 100; height: auto;
		flex-direction: row; align-items: center; gap: 12px;
		padding: 10px 16px;
		border-right: 0; border-bottom: 1px solid var(--line);
		background: rgba(8, 8, 10, 0.85);
		overflow-x: auto;
		scrollbar-width: none;
	}
	.side .brand small, .side .brand-text { display: none; }
	.nav { display: flex; gap: 2px; }
	.nav a { height: 34px; padding: 0 10px; white-space: nowrap; }
	.nav a span.lbl { display: none; }
	.nav .indicator { display: none; }
	.nav a.on { background: rgba(255, 255, 255, 0.08); }
	.side-foot { margin: 0 0 0 auto; display: flex; }
	.side-foot .btn span { display: none; }
	.main { padding: 18px 16px 48px; }
	.dist-row { grid-template-columns: 100px 1fr 92px; }
	.hbar { grid-template-columns: 110px 1fr 46px; }
	.phead .actions { margin-left: 0; }
	.alert-row { grid-template-columns: 30px 1fr auto; }
	.alert-row img.ic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
