:where(.tskpi-shell, .tskpi-login) {
	--tskpi-ink: #142033;
	--tskpi-muted: #65758b;
	--tskpi-line: #dce5ef;
	--tskpi-soft: #f4f7fb;
	--tskpi-panel: #ffffff;
	--tskpi-navy: #0f2c4c;
	--tskpi-blue: #1769aa;
	--tskpi-blue-dark: #0e568d;
	--tskpi-yellow: #f5b728;
	--tskpi-green: #087a5b;
	--tskpi-red: #b42318;
	--tskpi-orange: #98530c;
	--tskpi-purple: #6d48b5;
	--tskpi-teal: #087f8c;
	--tskpi-radius: 18px;
	--tskpi-shadow: 0 15px 50px rgba(15, 44, 76, 0.1);
	box-sizing: border-box;
	color: var(--tskpi-ink);
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
}

:where(.tskpi-shell, .tskpi-login) *,
:where(.tskpi-shell, .tskpi-login) *::before,
:where(.tskpi-shell, .tskpi-login) *::after { box-sizing: inherit; }

:where(.tskpi-shell, .tskpi-login) a:focus-visible,
:where(.tskpi-shell, .tskpi-login) button:focus-visible,
:where(.tskpi-shell, .tskpi-login) input:focus-visible,
:where(.tskpi-shell, .tskpi-login) textarea:focus-visible,
:where(.tskpi-shell, .tskpi-login) summary:focus-visible {
	box-shadow: 0 0 0 4px rgba(23, 105, 170, 0.22);
	outline: 2px solid var(--tskpi-blue);
	outline-offset: 2px;
}

.tskpi-shell {
	background: #f2f5f9;
	border: 1px solid #e1e8f0;
	border-radius: 24px;
	box-shadow: var(--tskpi-shadow);
	margin: 24px auto;
	max-width: 1240px;
	min-height: 80vh;
	overflow: hidden;
	overflow: clip;
}

.tskpi-app-header {
	align-items: center;
	background: var(--tskpi-navy);
	color: #fff;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	padding: 18px clamp(18px, 4vw, 44px);
}

.tskpi-brand,
.tskpi-login-brand {
	align-items: center;
	color: inherit;
	display: flex;
	gap: 11px;
	text-decoration: none;
}

.tskpi-brand > span,
.tskpi-login-brand > span {
	align-items: center;
	background: var(--tskpi-yellow);
	border-radius: 12px;
	color: #2f250a;
	display: inline-flex;
	font-size: 15px;
	font-weight: 850;
	height: 42px;
	justify-content: center;
	letter-spacing: -0.03em;
	width: 42px;
}

.tskpi-brand > div,
.tskpi-login-brand > div,
.tskpi-user > div {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.tskpi-brand strong,
.tskpi-login-brand strong { color: inherit; font-size: 15px; }
.tskpi-brand small,
.tskpi-login-brand small { color: #bed0e0; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

.tskpi-user {
	align-items: center;
	display: flex;
	gap: 14px;
	text-align: right;
}

.tskpi-user strong { color: #fff; font-size: 13px; }
.tskpi-user small { color: #b9ccdc; font-size: 11px; }
.tskpi-user > a {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 7px 11px;
	text-decoration: none;
}
.tskpi-user > a:hover { background: #fff; color: var(--tskpi-navy); }

.tskpi-tabs {
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-bottom: 1px solid var(--tskpi-line);
	display: flex;
	gap: 4px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 8px clamp(14px, 4vw, 40px);
	position: sticky;
	touch-action: pan-x pan-y;
	top: 0;
	z-index: 20;
}

.tskpi-tabs a {
	border-radius: 8px;
	color: #43546a;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 11px;
	text-decoration: none;
	white-space: nowrap;
}

.tskpi-tabs a:hover,
.tskpi-tabs a.is-active { background: #eaf2f9; color: var(--tskpi-blue-dark); }

.tskpi-shell main { display: grid; gap: 18px; min-width: 0; padding: clamp(16px, 4vw, 42px); }
.tskpi-shell main > * { min-width: 0; }

.tskpi-hero {
	align-items: center;
	background: linear-gradient(130deg, var(--tskpi-navy), #1b5a84);
	border-radius: var(--tskpi-radius);
	color: #fff;
	display: flex;
	gap: 25px;
	justify-content: space-between;
	min-height: 245px;
	overflow: hidden;
	padding: clamp(24px, 5vw, 50px);
	position: relative;
}

.tskpi-hero::after {
	background: var(--tskpi-yellow);
	border-radius: 50%;
	content: "";
	height: 280px;
	opacity: 0.12;
	position: absolute;
	right: -85px;
	top: -125px;
	width: 280px;
}

.tskpi-hero > div:first-child { max-width: 690px; position: relative; z-index: 1; }
.tskpi-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); letter-spacing: -0.055em; line-height: 1.02; margin: 14px 0 12px; }
.tskpi-hero p { color: #d4e2ef; font-size: 14px; margin: 0; }
.tskpi-hero form { align-items: center; display: flex; gap: 7px; margin-top: 7px; }

.tskpi-eyebrow {
	color: var(--tskpi-blue);
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.35;
	text-transform: uppercase;
}

.tskpi-hero .tskpi-eyebrow { color: #f9d77d; }

.tskpi-hero input,
.tskpi-hero button,
.tskpi-task input,
.tskpi-task textarea,
.tskpi-task button {
	border: 1px solid #cad6e4;
	border-radius: 9px;
	font: inherit;
	min-height: 40px;
	padding: 8px 11px;
}

.tskpi-hero input { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.38); color: #fff; color-scheme: dark; }
.tskpi-hero button,
.tskpi-task button { background: var(--tskpi-blue); border-color: var(--tskpi-blue); color: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.tskpi-hero button { background: #fff; border-color: #fff; color: var(--tskpi-navy); }

.tskpi-score-ring {
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	height: 164px;
	justify-content: center;
	position: relative;
	width: 164px;
	z-index: 1;
}

.tskpi-score-ring::before {
	border: 5px solid var(--tskpi-yellow);
	border-left-color: rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	content: "";
	inset: 9px;
	position: absolute;
	transform: rotate(35deg);
}

.tskpi-score-ring span,
.tskpi-score-ring small { color: #d7e5ef; font-size: 10px; line-height: 1.25; max-width: 128px; position: relative; text-align: center; text-transform: uppercase; }
.tskpi-score-ring strong { color: #fff; font-size: 43px; letter-spacing: -0.06em; line-height: 1.05; position: relative; }

.tskpi-stat-grid,
.tskpi-reward-grid {
	display: grid;
	gap: 13px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tskpi-stat-grid article,
.tskpi-reward-grid article {
	background: #fff;
	border: 1px solid var(--tskpi-line);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	min-height: 128px;
	padding: 18px;
}

.tskpi-stat-grid span,
.tskpi-reward-grid span,
.tskpi-fund-public span { color: var(--tskpi-muted); font-size: 11px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.tskpi-stat-grid strong,
.tskpi-reward-grid strong { color: var(--tskpi-navy); font-size: clamp(19px, 2.1vw, 27px); letter-spacing: -0.04em; line-height: 1.2; margin: 9px 0 5px; overflow-wrap: anywhere; }
.tskpi-stat-grid small,
.tskpi-reward-grid small { color: var(--tskpi-muted); font-size: 11px; line-height: 1.45; margin-top: auto; }
.tskpi-reward-grid article.total { background: var(--tskpi-navy); border-color: var(--tskpi-navy); }
.tskpi-reward-grid article.total span,
.tskpi-reward-grid article.total small { color: #c6d9e8; }
.tskpi-reward-grid article.total strong { color: #fff; }

.tskpi-section {
	background: #fff;
	border: 1px solid var(--tskpi-line);
	border-radius: var(--tskpi-radius);
	box-shadow: 0 8px 28px rgba(15, 44, 76, 0.05);
	padding: clamp(18px, 3vw, 28px);
	scroll-margin-top: 70px;
}

.tskpi-section-head {
	align-items: flex-start;
	border-bottom: 1px solid #e9eef4;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-bottom: 15px;
}

.tskpi-section-head h2 { color: var(--tskpi-navy); font-size: clamp(20px, 3vw, 27px); letter-spacing: -0.035em; line-height: 1.2; margin: 4px 0 0; }

.tskpi-chip {
	background: #edf4fa;
	border: 1px solid #d4e2ed;
	border-radius: 999px;
	color: #31516f;
	display: inline-flex;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.2;
	padding: 6px 10px;
	white-space: nowrap;
}
.tskpi-chip.good { background: #e6f6f0; border-color: #b6e3d3; color: #066349; }
.tskpi-chip.muted { background: #f1f4f7; border-color: #dde3ea; color: #607086; }

.tskpi-task-list { display: grid; gap: 12px; }
.tskpi-task { border: 1px solid var(--tskpi-line); border-radius: 13px; overflow: hidden; }
.tskpi-task > header { align-items: flex-start; background: #f7f9fc; display: flex; gap: 15px; justify-content: space-between; padding: 15px 17px; }
.tskpi-task > header div { display: flex; flex-direction: column; gap: 3px; }
.tskpi-task > header span { color: var(--tskpi-blue); font-size: 10px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.tskpi-task > header h3 { color: var(--tskpi-navy); font-size: 16px; line-height: 1.3; margin: 0; }
.tskpi-task > header > strong { background: var(--tskpi-navy); border-radius: 999px; color: #fff; flex: 0 0 auto; font-size: 12px; padding: 6px 9px; }

.tskpi-task-progress { background: #e6ecf3; height: 6px; overflow: hidden; }
.tskpi-task-progress i { background: linear-gradient(90deg, var(--tskpi-blue), #28a581); display: block; height: 100%; }
.tskpi-task-metrics { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.tskpi-task-metrics > span { color: var(--tskpi-muted); display: flex; flex-direction: column; font-size: 10px; gap: 3px; padding: 13px 16px; text-transform: uppercase; }
.tskpi-task-metrics b { color: var(--tskpi-ink); font-size: 13px; text-transform: none; }
.tskpi-task > p { color: var(--tskpi-muted); font-size: 12px; margin: 0; padding: 0 17px 15px; }
.tskpi-auto-note { color: var(--tskpi-muted); display: block; font-size: 11px; padding: 0 17px 15px; }

.tskpi-task details { border-top: 1px solid var(--tskpi-line); }
.tskpi-task summary { color: var(--tskpi-blue-dark); cursor: pointer; font-size: 12px; font-weight: 750; padding: 12px 17px; }
.tskpi-task details[open] summary { background: #f4f8fb; }
.tskpi-task details form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px 17px 18px; }
.tskpi-task details label { display: flex; flex-direction: column; gap: 5px; }
.tskpi-task details label > span { color: #405168; font-size: 11px; font-weight: 700; }
.tskpi-task details .wide { grid-column: 1 / -1; }
.tskpi-task details button { justify-self: start; }

.tskpi-commission-list { border: 1px solid var(--tskpi-line); border-radius: 12px; margin-top: 16px; overflow: hidden; }
.tskpi-commission-list > div { align-items: center; display: grid; gap: 10px; grid-template-columns: auto 1fr auto; padding: 12px 15px; }
.tskpi-commission-list > div + div { border-top: 1px solid var(--tskpi-line); }
.tskpi-commission-list p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tskpi-commission-list strong { color: var(--tskpi-ink); font-size: 13px; }
.tskpi-commission-list small { color: var(--tskpi-muted); font-size: 11px; }
.tskpi-commission-list b { color: var(--tskpi-navy); font-size: 13px; }
.tskpi-dot { background: #cbd5df; border-radius: 50%; height: 9px; width: 9px; }
.tskpi-dot.good { background: var(--tskpi-green); box-shadow: 0 0 0 4px rgba(8, 122, 91, 0.11); }

.tskpi-responsive-table { -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.tskpi-responsive-table table { border-collapse: collapse; font-size: 12px; min-width: 780px; width: 100%; }
.tskpi-responsive-table th { background: #eef3f8; color: #43546a; font-size: 10px; letter-spacing: 0.05em; padding: 11px 12px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tskpi-responsive-table td { border-top: 1px solid var(--tskpi-line); padding: 12px; vertical-align: middle; }
.tskpi-responsive-table tbody tr:hover { background: #f7faff; }
.tskpi-responsive-table td > strong,
.tskpi-responsive-table td > small { display: block; }
.tskpi-responsive-table td > small { color: var(--tskpi-muted); font-size: 10px; margin-top: 2px; }

.tskpi-registration-form { background: #f7fafc; border: 1px solid var(--tskpi-line); border-radius: 14px; margin: 16px 0; overflow: hidden; }
.tskpi-registration-form > summary { color: var(--tskpi-navy); cursor: pointer; font-size: 13px; font-weight: 800; padding: 15px 17px; }
.tskpi-registration-form[open] > summary { background: #eaf2f9; }
.tskpi-registration-form .tskpi-form-grid { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
.tskpi-registration-form label { color: #405168; display: flex; flex-direction: column; font-size: 11px; font-weight: 750; gap: 6px; }
.tskpi-registration-form input,
.tskpi-registration-form select,
.tskpi-registration-form textarea { background: #fff; border: 1px solid #cad6e4; border-radius: 9px; color: var(--tskpi-ink); font: inherit; min-height: 42px; padding: 9px 11px; width: 100%; }
.tskpi-registration-form textarea { min-height: 76px; resize: vertical; }
.tskpi-registration-form .wide { grid-column: 1 / -1; }
.tskpi-registration-form .tskpi-actions { display: flex; justify-content: flex-end; }
.tskpi-registration-form button { background: var(--tskpi-blue); border: 0; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; min-height: 42px; padding: 9px 16px; }
.tskpi-chip.pending { background: #fff8e5; border-color: #ead28b; color: #7a5106; }
.tskpi-chip.approved { background: #eaf8f3; border-color: #b8e3d4; color: #086047; }
.tskpi-chip.rejected { background: #fff1ef; border-color: #edc5bf; color: #93251d; }

.tskpi-ranking { list-style: none; margin: 0; padding: 0; }
.tskpi-ranking li { align-items: center; border-bottom: 1px solid var(--tskpi-line); display: grid; gap: 12px; grid-template-columns: 36px 1fr auto; padding: 12px 4px; }
.tskpi-ranking li:last-child { border-bottom: 0; }
.tskpi-ranking li > span { align-items: center; background: #e8eef5; border-radius: 50%; color: var(--tskpi-navy); display: flex; font-size: 12px; font-weight: 800; height: 30px; justify-content: center; width: 30px; }
.tskpi-ranking li:nth-child(1) > span { background: #ffefb9; color: #785009; }
.tskpi-ranking li:nth-child(2) > span { background: #e7edf4; color: #46586c; }
.tskpi-ranking li:nth-child(3) > span { background: #f4dfd1; color: #7a4226; }
.tskpi-ranking li.is-viewer { background: #eff7fc; border-radius: 10px; margin: 3px 0; padding-inline: 10px; }
.tskpi-ranking p { display: flex; flex-direction: column; margin: 0; }
.tskpi-ranking strong { color: var(--tskpi-ink); font-size: 13px; }
.tskpi-ranking small { color: var(--tskpi-muted); font-size: 11px; }
.tskpi-ranking b { align-items: flex-end; color: var(--tskpi-navy); display: flex; flex-direction: column; font-size: 13px; }

.tskpi-fund-public {
	background: linear-gradient(130deg, #102f4d, #174f78);
	border-radius: var(--tskpi-radius);
	color: #fff;
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: hidden;
}
.tskpi-fund-public > div { background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; padding: 24px; }
.tskpi-fund-public span,
.tskpi-fund-public small { color: #bed1e0; }
.tskpi-fund-public strong { color: #fff; font-size: clamp(25px, 4vw, 38px); letter-spacing: -0.05em; margin: 8px 0; }
.tskpi-fund-public b { color: #fff; font-size: 21px; margin: 8px 0; }
.tskpi-fund-public small { font-size: 11px; }

.tskpi-state,
.tskpi-front-notice,
.tskpi-login-status {
	background: #edf5fb;
	border: 1px solid #cde0ee;
	border-radius: 11px;
	color: #2b536f;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	gap: 3px;
	padding: 13px 15px;
}
.tskpi-state.warning,
.tskpi-login-status.warning { background: #fff7e2; border-color: #ecd692; color: #75500c; }
.tskpi-state.error,
.tskpi-front-notice.error,
.tskpi-login-status.error { background: #fff1ef; border-color: #ecc4be; color: #8b231b; }
.tskpi-front-notice.success,
.tskpi-login-status.success { background: #e8f7f1; border-color: #b9e3d4; color: #086047; }
.tskpi-login-status.loading { background: #edf5fb; border-color: #c4dceb; color: #244f6d; }

.tskpi-app-footer { color: var(--tskpi-muted); font-size: 10px; letter-spacing: 0.05em; padding: 0 25px 24px; text-align: center; text-transform: uppercase; }

.tskpi-login {
	background: #f2f5f9;
	border: 1px solid #e1e8f0;
	border-radius: 24px;
	box-shadow: var(--tskpi-shadow);
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
	margin: 24px auto;
	max-width: 1080px;
	min-height: 650px;
	overflow: hidden;
}

.tskpi-login-panel { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 7vw, 75px); }
.tskpi-login-brand { color: var(--tskpi-navy); margin-bottom: 55px; }
.tskpi-login-brand small { color: var(--tskpi-muted); }
.tskpi-login-panel h1 { color: var(--tskpi-navy); font-size: clamp(35px, 5.5vw, 60px); letter-spacing: -0.06em; line-height: 0.98; margin: 14px 0 20px; }
.tskpi-login-panel > p { color: var(--tskpi-muted); font-size: 14px; line-height: 1.65; margin: 0 0 28px; max-width: 610px; }
#tskpi-google-button { min-height: 44px; }
.tskpi-login-status { margin-top: 12px; max-width: 430px; }
.tskpi-login-status:empty { display: none; }
.tskpi-employee-login { display: grid; gap: 13px; max-width: 430px; }
.tskpi-employee-login label { display: grid; gap: 6px; }
.tskpi-employee-login label span { color: var(--tskpi-ink); font-size: 11px; font-weight: 800; }
.tskpi-employee-login input { background: #f8fafc; border: 1px solid #cbd6e1; border-radius: 10px; box-sizing: border-box; font: inherit; min-height: 48px; padding: 10px 13px; width: 100%; }
.tskpi-employee-login input:focus { border-color: var(--tskpi-blue); box-shadow: 0 0 0 3px rgba(39,117,168,.13); outline: 0; }
.tskpi-employee-login button { background: linear-gradient(135deg, var(--tskpi-blue), var(--tskpi-teal)); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-weight: 800; min-height: 48px; padding: 11px 18px; }
.tskpi-employee-login button:disabled { cursor: wait; opacity: .65; }
.tskpi-login-note { color: var(--tskpi-muted); font-size: 10px; margin-top: 28px; }
.tskpi-login-panel > .tskpi-login-flow { background: #edf5fb; border: 1px solid #cde0ee; border-radius: 9px; color: #2b536f; font-size: 12px; font-weight: 750; margin-bottom: 16px; max-width: 430px; padding: 10px 12px; }
.tskpi-login-retry { align-self: flex-start; background: #fff; border: 1px solid var(--tskpi-blue); border-radius: 10px; color: var(--tskpi-blue-dark); cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; margin-top: 12px; min-height: 44px; min-width: 44px; padding: 10px 16px; }
.tskpi-login-retry:hover { background: #edf5fb; }
.tskpi-login-retry:disabled { cursor: wait; opacity: 0.65; }
.tskpi-login-retry[hidden], #tskpi-google-button[hidden] { display: none !important; }
.tskpi-login-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; max-width: 520px; }
.tskpi-login-action { align-items: center; background: #fff; border: 1px solid #bfd0de; border-radius: 10px; color: var(--tskpi-blue-dark); display: inline-flex; font-size: 13px; font-weight: 800; justify-content: center; min-height: 48px; padding: 11px 18px; text-decoration: none; }
.tskpi-login-action:hover { background: #edf5fb; color: var(--tskpi-blue-dark); }
.tskpi-login-action.is-primary { background: linear-gradient(135deg, var(--tskpi-blue), var(--tskpi-teal)); border-color: transparent; color: #fff; }
.tskpi-login-action.is-primary:hover { color: #fff; filter: brightness(.96); }
.tskpi-login-recovery .tskpi-login-panel > .tskpi-state { margin: 0; max-width: 520px; }
.tskpi-login-recovery .tskpi-login-panel h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.03; max-width: 680px; }
.tskpi-login-recovery .tskpi-login-note { max-width: 520px; }

.tskpi-login > aside {
	background: linear-gradient(150deg, var(--tskpi-navy), #174f78);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 45px;
	position: relative;
}
.tskpi-login > aside::after { background: var(--tskpi-yellow); border-radius: 50%; content: ""; height: 260px; opacity: 0.11; position: absolute; right: -110px; top: -120px; width: 260px; }
.tskpi-login > aside > div { align-items: flex-start; border-bottom: 1px solid rgba(255, 255, 255, 0.15); display: grid; gap: 13px; grid-template-columns: 38px 1fr; padding: 22px 0; position: relative; z-index: 1; }
.tskpi-login > aside > div:last-child { border-bottom: 0; }
.tskpi-login > aside > div > span { align-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; color: #f9d778; display: flex; font-size: 11px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.tskpi-login > aside p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.tskpi-login > aside strong { color: #fff; font-size: 14px; }
.tskpi-login > aside small { color: #bed0e0; font-size: 11px; line-height: 1.45; }

@media (max-width: 920px) {
	.tskpi-stat-grid,
	.tskpi-reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tskpi-login { grid-template-columns: 1fr; }
	.tskpi-login > aside { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); padding: 20px 30px; }
	.tskpi-login > aside > div { border-bottom: 0; padding: 12px; }
}

@media (max-width: 680px) {
	.tskpi-shell,
	.tskpi-login { border-left: 0; border-radius: 0; border-right: 0; margin: 0; max-width: 100%; width: 100%; }
	.tskpi-shell { min-height: 100dvh; }
	.tskpi-app-header { align-items: flex-start; padding: 14px 16px; }
	.tskpi-user > div { display: none; }
	.tskpi-user { gap: 0; }
	.tskpi-tabs { padding-left: 10px; padding-right: 10px; scrollbar-width: none; }
	.tskpi-tabs::-webkit-scrollbar { display: none; }
	.tskpi-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
	.tskpi-shell main { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
	.tskpi-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 26px 22px; }
	.tskpi-score-ring { align-self: center; height: 148px; width: 148px; }
	.tskpi-score-ring span,
	.tskpi-score-ring small { font-size: 9px; max-width: 112px; }
	.tskpi-stat-grid,
	.tskpi-reward-grid { grid-template-columns: 1fr; }
	.tskpi-stat-grid article,
	.tskpi-reward-grid article { min-height: 108px; }
	.tskpi-section { padding: 17px 14px; }
	.tskpi-section-head { align-items: flex-start; flex-direction: column; }
	.tskpi-task-metrics { grid-template-columns: repeat(2, 1fr); }
	.tskpi-task details form { grid-template-columns: 1fr; }
	.tskpi-task details .wide { grid-column: auto; }
	.tskpi-commission-list > div { align-items: flex-start; }
	.tskpi-commission-list b { grid-column: 2; }
	.tskpi-ranking li { grid-template-columns: 34px 1fr; }
	.tskpi-ranking li > b { grid-column: 2; }
	.tskpi-ranking b { align-items: flex-start; }
	.tskpi-fund-public { grid-template-columns: 1fr; }
	.tskpi-login { min-height: 100vh; min-height: 100dvh; }
	.tskpi-login-panel { justify-content: flex-start; padding: 35px 22px; }
	.tskpi-login-brand { margin-bottom: 45px; }
	.tskpi-login-recovery .tskpi-login-brand { margin-bottom: 32px; }
	.tskpi-login-recovery .tskpi-login-panel h1 { font-size: 32px; }
	.tskpi-login-actions { flex-direction: column; width: 100%; }
	.tskpi-login-action { width: 100%; }
	.tskpi-login > aside { display: none; }
	:where(.tskpi-shell, .tskpi-login) input,
	:where(.tskpi-shell, .tskpi-login) select,
	:where(.tskpi-shell, .tskpi-login) textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	:where(.tskpi-shell, .tskpi-login) *,
	:where(.tskpi-shell, .tskpi-login) *::before,
	:where(.tskpi-shell, .tskpi-login) *::after { scroll-behavior: auto !important; transition: none !important; }
}

.tskpi-task-status { align-self: flex-start; background: #eef3f8; border: 1px solid #d4dee8; border-radius: 999px; color: #52657b; font-size: 10px; font-weight: 750; margin-top: 4px; padding: 4px 8px; }
.tskpi-task-status.submitted { background: #fff6df; border-color: #f0d58c; color: #825006; }
.tskpi-task-status.returned { background: #fff0ee; border-color: #efc0ba; color: #991f16; }
.tskpi-task-status.approved { background: #e7f7f1; border-color: #b8e4d5; color: #066349; }
.tskpi-task-metrics { grid-template-columns: repeat(3, 1fr); }
.tskpi-review-note { background: #fff8e8; border-left: 3px solid #e1ac27; margin: 0 17px 14px !important; padding: 10px 12px !important; }
.tskpi-evidence-link { color: var(--tskpi-blue-dark); display: inline-flex; font-size: 11px; font-weight: 750; margin: 0 17px 14px; }
.tskpi-task select { border: 1px solid #cad6e4; border-radius: 9px; font: inherit; min-height: 40px; padding: 8px 11px; }
.tskpi-field-summary { border-top: 1px solid var(--tskpi-line); display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 17px; }
.tskpi-field-summary span { background: #f1f5f8; border-radius: 8px; color: var(--tskpi-muted); font-size: 11px; padding: 7px 9px; }
.tskpi-field-summary b { color: var(--tskpi-navy); }
.tskpi-field-list { border-top: 1px solid var(--tskpi-line); }
.tskpi-field-list > div { align-items: flex-start; display: grid; gap: 10px; grid-template-columns: auto 1fr auto; padding: 12px 17px; }
.tskpi-field-list > div + div { border-top: 1px solid var(--tskpi-line); }
.tskpi-field-list p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.tskpi-field-list p small { color: var(--tskpi-muted); font-size: 11px; line-height: 1.4; }
.tskpi-field-list a { color: var(--tskpi-blue-dark); font-size: 11px; font-weight: 750; }
.tskpi-field-entry { border-top: 1px solid var(--tskpi-line); }
.tskpi-field-list .tskpi-field-revise { border: 1px solid #f0c98d; border-radius: 8px; grid-column: 1 / -1; margin-top: 6px; }

@media (max-width: 680px) {
	.tskpi-task-metrics { grid-template-columns: repeat(2, 1fr); }
	.tskpi-field-list > div { grid-template-columns: 1fr; }
}

/* RC8: live visual dashboard and competency guidance. */
.tskpi-live-state {
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #dceaf4;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	gap: 7px;
	margin-left: auto;
	min-height: 32px;
	padding: 6px 10px;
}
.tskpi-live-state i { background: #62d5a9; border-radius: 50%; box-shadow: 0 0 0 4px rgba(98, 213, 169, 0.12); height: 7px; width: 7px; }
.tskpi-live-state.is-syncing i { animation: tskpi-pulse 1s infinite alternate; background: #f5cf6c; }
.tskpi-live-state.has-update i { background: #f5b728; }
.tskpi-live-state.is-error i { background: #ff8b80; }
@keyframes tskpi-pulse { to { opacity: 0.35; } }

.tskpi-live-banner {
	align-items: center;
	background: #fff8df;
	border: 1px solid #ebcf7a;
	border-radius: 12px;
	color: #68470a;
	display: flex;
	font-size: 12px;
	gap: 16px;
	justify-content: space-between;
	padding: 12px 14px;
	position: sticky;
	top: 59px;
	z-index: 19;
}
.tskpi-live-banner span { display: flex; flex-direction: column; }
.tskpi-live-banner button { background: #6f4a00; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-weight: 750; min-height: 44px; padding: 9px 14px; white-space: nowrap; }
.tskpi-hero-help { color: #f9d77d; display: inline-flex; font-size: 12px; font-weight: 750; margin-top: 13px; text-underline-offset: 3px; }

.tskpi-score-ring::before,
.tskpi-donut::before {
	background: conic-gradient(var(--tskpi-yellow) calc(var(--tskpi-score, var(--tskpi-donut, 0)) * 1%), rgba(255, 255, 255, 0.15) 0);
	border: 0;
	border-radius: 50%;
	content: "";
	inset: 7px;
	mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 0);
	position: absolute;
	transform: none;
}
.tskpi-score-ring > * { z-index: 1; }

.tskpi-kpi-visual { display: grid; gap: 22px; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.5fr); margin-bottom: 23px; }
.tskpi-kpi-summary { align-items: center; background: linear-gradient(145deg, #102f4d, #174f78); border-radius: 15px; color: #fff; display: grid; gap: 18px; grid-template-columns: 132px 1fr; padding: 20px; }
.tskpi-donut { align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); border-radius: 50%; display: flex; flex-direction: column; height: 132px; justify-content: center; position: relative; width: 132px; }
.tskpi-donut::before { --tskpi-score: var(--tskpi-donut); }
.tskpi-donut span, .tskpi-donut small { color: #c9dae8; font-size: 9px; position: relative; text-transform: uppercase; z-index: 1; }
.tskpi-donut strong { color: #fff; font-size: 34px; letter-spacing: -.05em; line-height: 1; position: relative; z-index: 1; }
.tskpi-approval-counts { display: grid; gap: 7px; }
.tskpi-approval-counts > span { align-items: center; color: #e8f1f7; display: flex; font-size: 11px; gap: 7px; }
.tskpi-approval-counts > span::before { background: #aebdca; border-radius: 50%; content: ""; height: 7px; width: 7px; }
.tskpi-approval-counts > span.approved::before { background: #62d5a9; }
.tskpi-approval-counts > span.submitted::before { background: #f5cf6c; }
.tskpi-approval-counts > span.returned::before { background: #ff8b80; }
.tskpi-approval-counts > small { border-top: 1px solid rgba(255,255,255,.15); color: #bfd0df; font-size: 10px; line-height: 1.45; margin-top: 4px; padding-top: 9px; }

.tskpi-kpi-bars { display: grid; gap: 11px; }
.tskpi-kpi-bar-row { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(135px, .9fr) minmax(150px, 1.5fr) 32px; }
.tskpi-kpi-bar-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.tskpi-kpi-bar-row strong { color: var(--tskpi-ink); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tskpi-kpi-bar-row small { color: var(--tskpi-muted); font-size: 9px; }
.tskpi-kpi-bar-row > b { color: var(--tskpi-navy); font-size: 11px; text-align: right; }
.tskpi-dual-track { background: #e8edf3; border-radius: 999px; height: 13px; overflow: hidden; position: relative; }
.tskpi-dual-track i { border-radius: inherit; display: block; height: 100%; left: 0; position: absolute; top: 0; }
.tskpi-dual-track .provisional { background: repeating-linear-gradient(135deg, #efc257, #efc257 5px, #f8dd9b 5px, #f8dd9b 10px); opacity: .72; }
.tskpi-dual-track .official { background: linear-gradient(90deg, var(--tskpi-blue), var(--tskpi-green)); height: 7px; top: 3px; }
.tskpi-chart-legend { color: var(--tskpi-muted); display: flex; flex-wrap: wrap; font-size: 9px; gap: 14px; justify-content: flex-end; }
.tskpi-chart-legend span { align-items: center; display: flex; gap: 5px; }
.tskpi-chart-legend i { border-radius: 2px; height: 6px; width: 20px; }
.tskpi-chart-legend i.official { background: linear-gradient(90deg, var(--tskpi-blue), var(--tskpi-green)); }
.tskpi-chart-legend i.provisional { background: repeating-linear-gradient(135deg, #efc257, #efc257 4px, #f8dd9b 4px, #f8dd9b 8px); }

.tskpi-task { border-left-width: 4px; }
.tskpi-task.is-approved { border-left-color: var(--tskpi-green); }
.tskpi-task.is-submitted { border-left-color: var(--tskpi-yellow); }
.tskpi-task.is-returned { border-left-color: var(--tskpi-red); }
.tskpi-task.is-in_progress { border-left-color: var(--tskpi-blue); }
.tskpi-task-state { font-size: 11px; font-weight: 700; padding: 9px 17px; }
.tskpi-task-state.approved { background: #eaf8f3; color: #086047; }
.tskpi-task-state.submitted { background: #fff8e5; color: #7a5106; }
.tskpi-task-state.returned { background: #fff1ef; color: #93251d; }
.tskpi-task-state.in_progress, .tskpi-task-state.not_started { background: #f0f5f9; color: #53667c; }

/* RC8.6.5 — special tasks stay outside the weighted KPI. */
.tskpi-special-section { scroll-margin-top: 76px; }
.tskpi-special-section .tskpi-section-head p { color: var(--tskpi-muted); font-size: 11px; margin: 5px 0 0; }
.tskpi-special-progress,
.tskpi-special-summary { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.tskpi-special-progress span,
.tskpi-special-summary article { background: #f5f8fb; border: 1px solid var(--tskpi-line); border-radius: 12px; display: flex; flex-direction: column; padding: 13px 15px; }
.tskpi-special-progress b,
.tskpi-special-summary strong { color: var(--tskpi-navy); font-size: 20px; }
.tskpi-special-progress span,
.tskpi-special-summary span { color: var(--tskpi-muted); font-size: 10px; }
.tskpi-special-list,
.tskpi-special-admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tskpi-special-task,
.tskpi-special-admin-card { background: #fff; border: 1px solid var(--tskpi-line); border-left: 5px solid var(--tskpi-blue); border-radius: 14px; box-shadow: 0 8px 26px rgba(15, 44, 76, .05); padding: 17px; }
.tskpi-special-task.is-submitted,
.tskpi-special-admin-card.is-submitted { border-left-color: var(--tskpi-yellow); }
.tskpi-special-task.is-returned,
.tskpi-special-admin-card.is-returned,
.tskpi-special-task.is-rejected,
.tskpi-special-admin-card.is-rejected { border-left-color: var(--tskpi-red); }
.tskpi-special-task.is-approved,
.tskpi-special-admin-card.is-approved { border-left-color: var(--tskpi-green); }
.tskpi-special-task > header,
.tskpi-special-admin-card > header { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; }
.tskpi-special-task h3,
.tskpi-special-admin-card h3 { color: var(--tskpi-ink); font-size: 16px; line-height: 1.3; margin: 5px 0; }
.tskpi-special-task > header > strong,
.tskpi-special-admin-card > header > strong { background: #edf8f4; border-radius: 999px; color: var(--tskpi-green); font-size: 12px; padding: 7px 10px; white-space: nowrap; }
.tskpi-special-meta { align-items: center; color: var(--tskpi-muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 8px; margin: 9px 0; }
.tskpi-special-task details,
.tskpi-special-admin-card details { border-top: 1px solid var(--tskpi-line); margin-top: 11px; padding-top: 10px; }
.tskpi-special-task summary,
.tskpi-special-admin-card summary { color: var(--tskpi-blue-dark); cursor: pointer; font-size: 11px; font-weight: 800; }
.tskpi-special-task details p,
.tskpi-special-admin-card details p { color: var(--tskpi-muted); font-size: 11px; line-height: 1.55; }
.tskpi-special-feedback { background: #fff8e5; border-radius: 9px; padding: 10px; }
.tskpi-special-submit,
.tskpi-special-review { border-top: 1px solid var(--tskpi-line); display: grid; gap: 10px; margin-top: 13px; padding-top: 13px; }
.tskpi-special-submit label,
.tskpi-special-review label { color: var(--tskpi-ink); display: grid; font-size: 11px; font-weight: 750; gap: 5px; }
.tskpi-special-submit :where(input, textarea),
.tskpi-special-review textarea { border: 1px solid #cbd8e5; border-radius: 10px; font: inherit; min-height: 44px; padding: 10px 11px; width: 100%; }
.tskpi-special-submit button { background: linear-gradient(135deg, var(--tskpi-blue), var(--tskpi-teal)); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-weight: 800; min-height: 44px; padding: 10px 14px; }
.tskpi-special-review > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tskpi-special-review .tskpi-danger { border-color: #d7a19d; color: var(--tskpi-red); }
.tskpi-special-cancel { margin-top: 12px; }
.tskpi-special-cancel > summary { color: var(--tskpi-red); }

.tskpi-competency-chart { display: grid; gap: 13px; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); }
.tskpi-competency-chart article { border: 1px solid var(--tskpi-line); border-left: 5px solid var(--tskpi-blue); border-radius: 13px; grid-column: 1; padding: 15px 17px; }
.tskpi-competency-chart article.personal_sales { border-left-color: var(--tskpi-purple); }
.tskpi-competency-chart article.attendance { border-left-color: var(--tskpi-yellow); }
.tskpi-competency-chart article.field_sessions { border-left-color: var(--tskpi-teal); }
.tskpi-competency-chart article header, .tskpi-competency-chart article footer { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; }
.tskpi-competency-chart article header div { display: flex; flex-direction: column; }
.tskpi-competency-chart article span { color: var(--tskpi-ink); font-size: 13px; font-weight: 800; }
.tskpi-competency-chart article small { color: var(--tskpi-muted); font-size: 10px; line-height: 1.4; }
.tskpi-competency-chart article strong { color: var(--tskpi-navy); font-size: 17px; white-space: nowrap; }
.tskpi-competency-chart article footer b { color: var(--tskpi-blue-dark); font-size: 11px; white-space: nowrap; }
.tskpi-component-track { background: #e9eef4; border-radius: 999px; height: 9px; margin: 11px 0; overflow: hidden; }
.tskpi-component-track i { background: var(--tskpi-blue); border-radius: inherit; display: block; height: 100%; }
.tskpi-competency-chart article.personal_sales .tskpi-component-track i { background: var(--tskpi-purple); }
.tskpi-competency-chart article.attendance .tskpi-component-track i { background: var(--tskpi-yellow); }
.tskpi-competency-chart article.field_sessions .tskpi-component-track i { background: var(--tskpi-teal); }
.tskpi-competency-total { align-items: center; background: linear-gradient(150deg, #102f4d, #164e75); border-radius: 15px; color: #fff; display: flex; flex-direction: column; grid-column: 2; grid-row: 1 / span 3; justify-content: center; padding: 27px; text-align: center; }
.tskpi-competency-total span { color: #c5d7e5; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tskpi-competency-total strong { color: #fff; font-size: clamp(48px, 7vw, 76px); letter-spacing: -.07em; line-height: 1; margin: 13px 0; }
.tskpi-competency-total small { color: #c5d7e5; font-size: 10px; line-height: 1.55; }
.tskpi-competency-total b { background: rgba(255,255,255,.1); border-radius: 999px; color: #f7d679; font-size: 11px; margin-top: 18px; padding: 7px 10px; }

.tskpi-annual-chart { align-items: end; background: #f5f8fb; border: 1px solid var(--tskpi-line); border-radius: 14px; display: grid; gap: 20px; grid-template-columns: minmax(160px,.55fr) minmax(300px,1.45fr) auto; margin: 24px 0; padding: 20px; }
.tskpi-annual-chart h3 { color: var(--tskpi-navy); font-size: 18px; margin: 4px 0; }
.tskpi-annual-chart p { color: var(--tskpi-muted); font-size: 10px; margin: 0; }
.tskpi-annual-chart > strong { color: var(--tskpi-navy); font-size: 24px; white-space: nowrap; }
.tskpi-annual-chart > strong small { color: var(--tskpi-muted); font-size: 10px; }
.tskpi-annual-columns { align-items: end; display: flex; gap: clamp(5px, 1vw, 12px); height: 128px; justify-content: center; }
.tskpi-annual-columns > div { align-items: center; display: flex; flex: 1; flex-direction: column; height: 100%; justify-content: end; max-width: 34px; }
.tskpi-annual-columns b { color: var(--tskpi-muted); font-size: 8px; font-weight: 700; }
.tskpi-annual-columns span { align-items: end; background: #e5ebf1; border-radius: 5px 5px 2px 2px; display: flex; flex: 1; margin: 3px 0; overflow: hidden; width: 100%; }
.tskpi-annual-columns i { background: linear-gradient(180deg, var(--tskpi-blue), var(--tskpi-teal)); display: block; min-height: 2px; width: 100%; }
.tskpi-annual-columns small { color: var(--tskpi-muted); font-size: 8px; }
.tskpi-ranking-year { margin-top: 26px; }

.tskpi-guide { overflow: hidden; }
.tskpi-mindmap { align-items: stretch; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px auto 28px; max-width: 940px; position: relative; }
.tskpi-mindmap::before { border-top: 2px dashed #bdcad7; content: ""; left: 16%; position: absolute; right: 16%; top: 145px; }
.tskpi-mindmap-center { align-items: center; background: linear-gradient(145deg, #102f4d, #174f78); border-radius: 15px; color: #fff; display: flex; flex-direction: column; grid-column: 1 / -1; justify-self: center; max-width: 360px; padding: 20px 30px; position: relative; text-align: center; width: 100%; z-index: 1; }
.tskpi-mindmap-center::after { border-left: 2px dashed #bdcad7; content: ""; height: 22px; left: 50%; position: absolute; top: 100%; }
.tskpi-mindmap-center span, .tskpi-mindmap-center small { color: #bfd1df; font-size: 10px; }
.tskpi-mindmap-center strong { color: #fff; font-size: 20px; }
.tskpi-mindmap-branch { background: #f1f7fc; border: 1px solid #cfdfed; border-top: 5px solid var(--tskpi-blue); border-radius: 13px; display: flex; flex-direction: column; padding: 17px; position: relative; text-align: center; z-index: 1; }
.tskpi-mindmap-branch::before { border-left: 2px dashed #bdcad7; bottom: 100%; content: ""; height: 17px; left: 50%; position: absolute; }
.tskpi-mindmap-branch.sales { background: #f7f2fc; border-color: #dccded; border-top-color: var(--tskpi-purple); }
.tskpi-mindmap-branch.field { background: #edf8f8; border-color: #c3e2e5; border-top-color: var(--tskpi-teal); }
.tskpi-mindmap-branch b { color: var(--tskpi-ink); font-size: 13px; }
.tskpi-mindmap-branch strong { color: var(--tskpi-navy); font-size: 22px; margin: 5px 0; }
.tskpi-mindmap-branch small { color: var(--tskpi-muted); font-size: 10px; }

.tskpi-approval-flow { align-items: stretch; display: flex; gap: 8px; margin: 10px 0 28px; overflow-x: auto; padding: 4px 0 10px; }
.tskpi-approval-flow > div { background: #f6f8fb; border: 1px solid var(--tskpi-line); border-radius: 12px; display: flex; flex: 1 0 150px; flex-direction: column; min-width: 0; padding: 14px; }
.tskpi-approval-flow > div.provisional { background: #fff8e4; border-color: #ead28b; }
.tskpi-approval-flow > div.approval { background: #f5f0fb; border-color: #d9c7ec; }
.tskpi-approval-flow > div.official { background: #eaf8f3; border-color: #b8e3d4; }
.tskpi-approval-flow > i { align-self: center; color: #8a9aad; font-style: normal; }
.tskpi-approval-flow span { align-items: center; background: var(--tskpi-navy); border-radius: 50%; color: #fff; display: flex; font-size: 10px; font-weight: 800; height: 24px; justify-content: center; margin-bottom: 9px; width: 24px; }
.tskpi-approval-flow strong { color: var(--tskpi-ink); font-size: 11px; }
.tskpi-approval-flow small { color: var(--tskpi-muted); font-size: 9px; line-height: 1.45; margin-top: 4px; }
.tskpi-definitions { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tskpi-definitions article { border: 1px solid var(--tskpi-line); border-radius: 12px; padding: 15px; }
.tskpi-definitions h3 { color: var(--tskpi-navy); font-size: 13px; margin: 0 0 6px; }
.tskpi-definitions p { color: var(--tskpi-muted); font-size: 10px; line-height: 1.55; margin: 0; }

@media (max-width: 980px) {
	.tskpi-kpi-visual { grid-template-columns: 1fr; }
	.tskpi-annual-chart { grid-template-columns: minmax(160px,.55fr) minmax(300px,1.45fr); }
	.tskpi-annual-chart > strong { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.tskpi-live-state { margin-left: 0; order: 3; }
	.tskpi-competency-chart { grid-template-columns: 1fr; }
	.tskpi-competency-total { grid-column: 1; grid-row: auto; }
	.tskpi-annual-chart { align-items: stretch; grid-template-columns: 1fr; overflow-x: auto; }
	.tskpi-annual-columns { min-width: 430px; }
	.tskpi-annual-chart > strong { grid-column: auto; }
	.tskpi-definitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tskpi-special-list, .tskpi-special-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.tskpi-app-header { flex-wrap: wrap; }
	.tskpi-live-state { width: max-content; }
	.tskpi-live-banner { align-items: stretch; flex-direction: column; top: 58px; }
	.tskpi-kpi-summary { grid-template-columns: 1fr; justify-items: center; }
	.tskpi-approval-counts { width: 100%; }
	.tskpi-kpi-bar-row { align-items: end; grid-template-columns: 1fr 34px; }
	.tskpi-kpi-bar-row .tskpi-dual-track { grid-column: 1 / -1; grid-row: 2; }
	.tskpi-kpi-bar-row > b { grid-column: 2; grid-row: 1; }
	.tskpi-competency-chart article footer { align-items: flex-start; flex-direction: column; gap: 5px; }
	.tskpi-mindmap { grid-template-columns: 1fr; }
	.tskpi-mindmap::before, .tskpi-mindmap-center::after, .tskpi-mindmap-branch::before { display: none; }
	.tskpi-mindmap-center { grid-column: 1; }
	.tskpi-approval-flow { flex-direction: column; overflow-x: visible; }
	.tskpi-approval-flow > div { flex: 0 0 auto; }
	.tskpi-approval-flow > i { transform: rotate(90deg); }
	.tskpi-definitions { grid-template-columns: 1fr; }
	.tskpi-registration-form .tskpi-form-grid { grid-template-columns: 1fr; }
	.tskpi-registration-form .wide { grid-column: auto; }
	.tskpi-special-progress, .tskpi-special-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tskpi-special-task > header, .tskpi-special-admin-card > header { flex-direction: column; }
}
.tskpi-admin-login {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(23, 107, 82, .35);
  border-radius: 12px;
  color: #176b52;
  font-weight: 700;
  text-decoration: none;
}

.tskpi-admin-login:hover,
.tskpi-admin-login:focus-visible {
  background: #e9f5ef;
  outline: 3px solid rgba(23, 107, 82, .18);
  outline-offset: 2px;
}
