/* ============ a22i.pw — Legacy-Layout im Stil von Windows XP (Luna) ============
   Greift nur, wenn <html> die Klasse "theme-xp" hat; der Schalter oben setzt
   sie und merkt sich die Wahl im Browser. Die Farb-Variablen aus style.css
   werden umdefiniert, dadurch passen sich die meisten Bausteine von selbst
   an. Titelleisten, Taskleiste und Startmenü kommen hier dazu.
   Keine Original-Grafiken oder Logos: alles mit CSS nachgebaut. */

/* Taskleiste und Startmenü gibt es nur im Legacy-Layout */
.xp-taskbar,
.xp-startmenu { display: none; }

html.theme-xp {
	--bg: #ece9d8;
	--surface: #ffffff;
	--surface-hover: #e8f0fb;
	--border: #7f9db9;
	--text: #000000;
	--text-dim: #3d3d3d;
	--accent: #0054e3;
	--accent-2: #2e9e2e;
	--glow: rgba(0, 84, 227, 0.25);
	--radius: 0px;

	--xp-face: #ece9d8;
	--xp-select: #316ac5;
	--xp-blue: #0054e3;
	--xp-title: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7);
	--xp-button: linear-gradient(180deg, #ffffff, #ece9d8 86%, #d6d0c5);
	--xp-font: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
	--xp-title-font: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
	--xp-mono: "Lucida Console", "Courier New", monospace;

	scroll-padding-top: 46px;
}

/* ---- Desktop: Himmel und grüne Hügel ---- */
html.theme-xp body {
	font-family: var(--xp-font);
	color: #000;
	background: #3a7bd5;
	padding-bottom: 40px;
}

html.theme-xp body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 130% 58% at 28% 110%, #4c9a1c 0%, #59a925 32%, #67b830 47%, rgba(103, 184, 48, 0) 50%),
		radial-gradient(ellipse 105% 46% at 96% 114%, #3d8916 0%, #4c9b20 40%, rgba(76, 155, 32, 0) 43%),
		radial-gradient(ellipse 34% 9% at 24% 24%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 26% 7% at 68% 16%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 20% 6% at 86% 36%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, #2156c8 0%, #3a7edc 26%, #6ba7ec 48%, #a9cdf3 62%, #d6e8f8 72%);
}

html.theme-xp .bg,
html.theme-xp .cursor-dot,
html.theme-xp .cursor-ring,
html.theme-xp .scroll-hint,
html.theme-xp .marquee { display: none !important; }

/* Normaler Mauszeiger statt des eigenen Cursors */
@media (hover: hover) and (pointer: fine) {
	html.theme-xp body,
	html.theme-xp input,
	html.theme-xp textarea,
	html.theme-xp .app-modal,
	html.theme-xp .app-modal * { cursor: auto !important; }
	html.theme-xp a,
	html.theme-xp button,
	html.theme-xp label,
	html.theme-xp summary,
	html.theme-xp .app-modal a,
	html.theme-xp .app-modal button { cursor: pointer !important; }
}

html.theme-xp h1,
html.theme-xp h2,
html.theme-xp h3 { letter-spacing: 0; }

html.theme-xp .mono { font-family: var(--xp-mono); }

html.theme-xp ::selection { background: var(--xp-select); color: #fff; }

/* ---- Wiederverwendbare XP-Teile ---- */

/* Titelleiste mit den drei Fenster-Knöpfen */
html.theme-xp .section-title::after,
html.theme-xp .profile-card::after,
html.theme-xp [data-xp-title]::after,
html.theme-xp .wmc-titlebar::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 5px;
	width: 71px;
	height: 21px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='21' viewBox='0 0 71 21'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2379acff'/%3E%3Cstop offset='.45' stop-color='%232a73f5'/%3E%3Cstop offset='1' stop-color='%231847c0'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2a58c'/%3E%3Cstop offset='.45' stop-color='%23e1532f'/%3E%3Cstop offset='1' stop-color='%23b5341a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='.5' y='.5' width='20' height='20' rx='3' fill='url%28%23b%29' stroke='%23fff'/%3E%3Crect x='5' y='13' width='7' height='3' fill='%23fff'/%3E%3Crect x='25.5' y='.5' width='20' height='20' rx='3' fill='url%28%23b%29' stroke='%23fff'/%3E%3Crect x='30' y='5' width='11' height='11' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Crect x='30' y='5' width='11' height='2.6' fill='%23fff'/%3E%3Crect x='50.5' y='.5' width='20' height='20' rx='3' fill='url%28%23r%29' stroke='%23fff'/%3E%3Cpath d='M55.8 5.8l9.4 9.4M65.2 5.8l-9.4 9.4' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
	pointer-events: none;
}

/* ---- Obere Leiste: Titelleiste mit Schalter ---- */
html.theme-xp .nav {
	height: 34px;
	padding: 0 8px 0 10px;
	background: var(--xp-title);
	border-bottom: 1px solid #003092;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

html.theme-xp .nav.scrolled { border-bottom-color: #003092; }

html.theme-xp .nav-logo {
	display: inline-flex;
	align-items: center;
	font: bold 14px var(--xp-title-font);
	color: #fff;
	letter-spacing: 0;
	text-shadow: 1px 1px #0f1089;
}

html.theme-xp .nav-logo::before {
	content: "";
	margin-right: 7px;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	background: url("/images/favicon-32.png?v=2") center / cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

html.theme-xp .nav-logo .accent { color: #fff; }

html.theme-xp .nav-links,
html.theme-xp .nav-toggle { display: none !important; }

/* ---- Profil als Fenster ---- */
html.theme-xp .hero {
	min-height: auto;
	padding: 64px 14px 18px;
}

html.theme-xp .card.profile-card {
	position: relative;
	width: min(440px, 100%);
	padding: 46px 26px 24px;
	background: var(--xp-face);
	border: 3px solid var(--xp-blue);
	border-top: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.45);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	animation: none;
}

html.theme-xp .profile-card::before {
	content: "a22i";
	position: absolute;
	top: 0;
	left: -3px;
	right: -3px;
	height: 30px;
	padding: 0 82px 0 10px;
	display: flex;
	align-items: center;
	font: bold 13px var(--xp-title-font);
	color: #fff;
	text-align: left;
	text-shadow: 1px 1px #0f1089;
	background: var(--xp-title);
	border-radius: 7px 7px 0 0;
}

html.theme-xp .avatar-ring {
	padding: 3px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--border), 2px 2px 4px rgba(0, 0, 0, 0.25);
	animation: none;
}

html.theme-xp .avatar {
	border: 0;
	border-radius: 2px;
	background: #d6dff7;
}

html.theme-xp .status-dot { animation: none; border-color: var(--xp-face); }

html.theme-xp .profile-name {
	font-family: var(--xp-title-font);
	background: none;
	-webkit-text-fill-color: currentColor;
	color: #0a246a;
}

html.theme-xp .profile-tag { color: #000; }
html.theme-xp .caret { color: #000; }

/* Knöpfe im XP-Look */
html.theme-xp .social-btn,
html.theme-xp .app-dl-btn,
html.theme-xp .app-hash-copy,
html.theme-xp .chat-send,
html.theme-xp .theme-switch .ts-knob {
	color: #000;
	background: var(--xp-button);
	border: 1px solid #003c74;
	border-radius: 3px;
	box-shadow: none;
	text-shadow: none;
	transition: none;
}

html.theme-xp .social-btn { width: 40px; height: 40px; }
html.theme-xp .social-btn svg { width: 19px; height: 19px; }

html.theme-xp .social-btn:hover,
html.theme-xp .app-dl-btn:hover,
html.theme-xp .app-hash-copy:hover,
html.theme-xp .chat-send:hover {
	color: #000;
	background: var(--xp-button);
	border-color: #003c74;
	transform: none;
	box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

html.theme-xp .social-btn:active,
html.theme-xp .app-dl-btn:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1); }

html.theme-xp .social-btn.copied { color: #1c7a1c; border-color: #003c74; }

/* XP-Sprechblase */
html.theme-xp .social-tip,
html.theme-xp .dl-note {
	color: #000;
	background: #ffffe1;
	border: 1px solid #000;
	border-radius: 6px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

html.theme-xp .badge {
	color: #000;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 3px;
	font-family: var(--xp-font);
}

/* ---- Sektionen als Fenster ---- */
html.theme-xp .section {
	max-width: 1000px;
	margin: 22px auto;
	padding: 0 0 18px;
	background: var(--xp-face);
	border: 3px solid var(--xp-blue);
	border-top: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.4);
}

html.theme-xp .section > :not(.section-title) {
	margin-left: 16px;
	margin-right: 16px;
}

html.theme-xp .section-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	margin: 0 -3px 14px;
	padding: 0 82px 0 10px;
	font: bold 13px var(--xp-title-font);
	color: #fff;
	text-shadow: 1px 1px #0f1089;
	background: var(--xp-title);
	border-radius: 7px 7px 0 0;
}

html.theme-xp .section-title .accent { color: #fff; opacity: 0.85; font-size: 1em; margin-right: 2px; }

html.theme-xp .section-sub { color: var(--text-dim); margin-top: 0; margin-bottom: 14px; }

/* ---- Karten: Explorer-Kacheln ---- */
html.theme-xp .card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 0;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

html.theme-xp .grid { gap: 10px; }

html.theme-xp .tool-card {
	padding: 14px 14px 12px;
	transition: none;
}

html.theme-xp .tool-card::before { display: none; }

html.theme-xp .tool-card:hover {
	transform: none;
	background: #e8f0fb;
	border-color: var(--xp-select);
	box-shadow: none;
}

html.theme-xp .tool-card.is-soon { opacity: 0.55; filter: grayscale(1); }
html.theme-xp .tool-card.is-soon:hover { background: #fff; border-color: var(--border); }

html.theme-xp .tool-card h3 { font: bold 13px/1.35 var(--xp-font); color: #000; }
html.theme-xp .tool-card p { font-size: 12px; line-height: 1.5; color: var(--text-dim); }

html.theme-xp .tool-icon,
html.theme-xp .skill-icon,
html.theme-xp .app-icon {
	color: var(--xp-blue);
	background: linear-gradient(180deg, #fdfdfd, #dce7f9);
	border: 1px solid var(--border);
	border-radius: 4px;
}

html.theme-xp .tool-icon { width: 40px; height: 40px; margin-bottom: 10px; }
html.theme-xp .tool-icon svg { width: 20px; height: 20px; }

html.theme-xp .tool-link {
	font-family: var(--xp-font);
	color: #0033cc;
	text-decoration: underline;
}

/* ---- Skills: grüner XP-Fortschrittsbalken ---- */
html.theme-xp .skill-card { padding: 14px; }
html.theme-xp .skill-card h3 { font: bold 13px var(--xp-font); color: #000; }
html.theme-xp .skill-name { color: #000; font-family: var(--xp-font); }

html.theme-xp .skill-bar {
	height: 14px;
	padding: 1px;
	background: #fff;
	border: 1px solid #686868;
	border-radius: 3px;
}

html.theme-xp .skill-fill {
	border-radius: 0;
	box-shadow: none;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 8px, #fff 8px 10px),
		linear-gradient(180deg, #acedad, #7be47d 15%, #4cda50 30%, #2ed330 45%, #42d845 60%, #76e275 75%, #8fe791);
}

/* ---- Downloads: Explorer-Liste ---- */
html.theme-xp .dl-group-title {
	padding-bottom: 4px;
	font: bold 13px var(--xp-title-font);
	color: #0a246a;
	border-bottom: 1px solid #b3c5e6;
}

html.theme-xp .dl-group-title .mono { color: var(--text-dim); font-weight: normal; }

html.theme-xp .dl-list { gap: 4px; }

html.theme-xp .dl-item {
	padding: 9px 12px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 0;
	transition: none;
}

html.theme-xp a.dl-item:hover {
	color: #fff;
	background: var(--xp-select);
	border-color: var(--xp-select);
	box-shadow: none;
	transform: none;
}

html.theme-xp a.dl-item:hover .mono,
html.theme-xp a.dl-item:hover .dl-action { color: #fff; }

html.theme-xp .dl-name { font: bold 13px var(--xp-font); }
html.theme-xp .dl-action { color: #0033cc; font-family: var(--xp-font); font-size: 12.5px; }

html.theme-xp .dl-note { padding: 10px 12px; }
html.theme-xp .dl-note strong { color: #000; }
html.theme-xp .dl-note code { color: #000; background: #fff; border-color: var(--border); }

html.theme-xp .tool-badge {
	color: #000;
	background: #ffd84d;
	border-color: #b38f00;
	border-radius: 3px;
	font-family: var(--xp-font);
}

html.theme-xp .dl-name .dl-badge {
	color: #fff;
	background: #2e9e2e;
	border-color: #1c7a1c;
	border-radius: 3px;
}

/* ---- Über mich, Fuß ---- */
html.theme-xp .about-card { padding: 18px 18px 16px; }
html.theme-xp .about-card p { color: #000; font-size: 13.5px; line-height: 1.65; }
html.theme-xp .about-card strong { color: #0a246a; }

html.theme-xp .footer {
	color: #fff;
	border-top: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* ---- Firmware-Popup als XP-Dialog ---- */
html.theme-xp .app-modal-overlay {
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

html.theme-xp .app-modal-card {
	padding-top: 30px;
	background: var(--xp-face);
	border: 3px solid var(--xp-blue);
	border-top: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: 3px 4px 16px rgba(0, 0, 0, 0.5);
}

html.theme-xp .app-modal-card::before {
	content: "Download";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 30px;
	padding: 0 40px 0 10px;
	display: flex;
	align-items: center;
	font: bold 13px var(--xp-title-font);
	color: #fff;
	text-shadow: 1px 1px #0f1089;
	background: var(--xp-title);
	z-index: 2;
}

/* Rotes X wie in der XP-Titelleiste */
html.theme-xp .app-modal-close,
html.theme-xp .chat-close {
	top: 4px;
	right: 5px;
	width: 21px;
	height: 21px;
	color: #fff;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2a58c'/%3E%3Cstop offset='.45' stop-color='%23e1532f'/%3E%3Cstop offset='1' stop-color='%23b5341a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='.5' y='.5' width='20' height='20' rx='3' fill='url%28%23r%29' stroke='%23fff'/%3E%3Cpath d='M5.8 5.8l9.4 9.4M15.2 5.8l-9.4 9.4' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 21px 21px no-repeat;
	border: 0;
	border-radius: 3px;
	box-shadow: none;
}

html.theme-xp .app-modal-close svg,
html.theme-xp .chat-close svg { display: none; }

html.theme-xp .app-modal-close:hover,
html.theme-xp .chat-close:hover {
	color: #fff;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2a58c'/%3E%3Cstop offset='.45' stop-color='%23e1532f'/%3E%3Cstop offset='1' stop-color='%23b5341a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='.5' y='.5' width='20' height='20' rx='3' fill='url%28%23r%29' stroke='%23fff'/%3E%3Cpath d='M5.8 5.8l9.4 9.4M15.2 5.8l-9.4 9.4' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 21px 21px no-repeat;
	filter: brightness(1.12);
}

html.theme-xp .app-title { font-family: var(--xp-title-font); color: #000; }
html.theme-xp .app-sub { color: var(--text-dim); }
html.theme-xp .app-section-title { color: #0a246a; font-family: var(--xp-title-font); letter-spacing: 0; }
html.theme-xp .app-desc,
html.theme-xp .app-steps { color: #000; }
html.theme-xp .app-desc code,
html.theme-xp .app-steps code,
html.theme-xp .app-hash-hint code { color: #000; background: #fff; border: 1px solid var(--border); }

html.theme-xp .app-meta-pill {
	color: #000;
	background: #fff;
	border-color: var(--border);
	border-radius: 3px;
	font-family: var(--xp-font);
}

html.theme-xp .app-meta-pill--accent { color: #fff; background: #2e9e2e; border-color: #1c7a1c; }

html.theme-xp .app-warn {
	color: #000;
	background: #ffffe1;
	border: 1px solid #000;
	border-radius: 6px;
}

html.theme-xp .app-warn strong { color: #000; }
html.theme-xp .app-warn > svg { color: #c08a00; }

html.theme-xp .app-hash { background: #fff; border-color: var(--border); border-radius: 0; }
html.theme-xp .app-hash-label { color: #0a246a; }
html.theme-xp .app-hash-value { color: #000; }
html.theme-xp .app-hash-copy.copied { color: #1c7a1c; }
html.theme-xp .app-hash-hint a { color: #0033cc; text-decoration: underline; }

html.theme-xp .app-modal-footer { background: var(--xp-face); border-top: 1px solid #fff; box-shadow: 0 -1px #aca899; }
html.theme-xp .app-foot-note { color: var(--text-dim); }

html.theme-xp .app-dl-btn {
	padding: 7px 18px;
	font: 13px var(--xp-font);
	box-shadow: inset 0 0 0 1px #6c8fe4;
}

html.theme-xp .app-dl-btn svg { width: 15px; height: 15px; }

/* ---- Live-Chat als XP-Fenster ---- */
/* Statt Chat-Icon: Karl Klammer */
html.theme-xp .chat-fab {
	right: 14px;
	bottom: 36px;
	width: 92px;
	height: 123px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

html.theme-xp .chat-fab svg,
html.theme-xp .chat-fab-dot { display: none; }

html.theme-xp .chat-fab-clippy {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.45));
	transform-origin: 50% 90%;
	animation: clippy-idle 4.5s ease-in-out infinite;
	pointer-events: none;
}

html.theme-xp .chat-fab:hover .chat-fab-clippy { animation: clippy-wiggle 0.6s ease-in-out; }
html.theme-xp .chat-fab:active .chat-fab-clippy { transform: scale(0.94); animation: none; }
html.theme-xp .chat-fab.active .chat-fab-clippy { animation: none; transform: rotate(-6deg); }

@keyframes clippy-idle {
	0%, 70%, 100% { transform: translateY(0) rotate(0); }
	76% { transform: translateY(-6px) rotate(-4deg); }
	82% { transform: translateY(0) rotate(3deg); }
	88% { transform: translateY(-2px) rotate(-1deg); }
}

@keyframes clippy-wiggle {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(-9deg); }
	60% { transform: rotate(7deg); }
}

@media (prefers-reduced-motion: reduce) {
	html.theme-xp .chat-fab-clippy,
	html.theme-xp .chat-fab:hover .chat-fab-clippy { animation: none; }
}

/* Die gelbe Sprechblase: "Sieht so aus, als ..." */
html.theme-xp .clippy-tip {
	position: fixed;
	right: 22px;
	bottom: 166px;
	z-index: 901;
	display: block;
	width: 240px;
	padding: 10px 12px 12px;
	color: #000;
	background: #ffffe1;
	border: 1px solid #000;
	border-radius: 8px;
	box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
	font: 12px/1.45 var(--xp-font);
	animation: clippy-tip-in 0.25s ease-out;
}

html.theme-xp .clippy-tip[hidden] { display: none; }

html.theme-xp .clippy-tip::after,
html.theme-xp .clippy-tip::before {
	content: "";
	position: absolute;
	right: 48px;
	border-style: solid;
}

html.theme-xp .clippy-tip::before { bottom: -15px; border-width: 15px 0 0 15px; border-color: #000 transparent transparent; }
html.theme-xp .clippy-tip::after { bottom: -13px; right: 49px; border-width: 13px 0 0 13px; border-color: #ffffe1 transparent transparent; }

html.theme-xp .clippy-tip p { margin: 0 0 9px; }

html.theme-xp .clippy-tip-actions { display: flex; flex-direction: column; gap: 5px; }

html.theme-xp .clippy-tip-actions button {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 2px 4px;
	color: #000;
	background: none;
	border: 1px solid transparent;
	font: 12px var(--xp-font);
	text-align: left;
	cursor: pointer;
}

html.theme-xp .clippy-tip-actions button::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #8fd0ff, #1d6fd1 70%);
	border: 1px solid #0b3d91;
}

html.theme-xp .clippy-tip-actions button:hover { border-color: #000; background: #fff8c4; }

@keyframes clippy-tip-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

html.theme-xp .chat-panel {
	bottom: 166px;
	height: min(520px, calc(100vh - 212px));
	background: var(--xp-face);
	border: 3px solid var(--xp-blue);
	border-top: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: 3px 4px 16px rgba(0, 0, 0, 0.5);
}

html.theme-xp .chat-header {
	position: relative;
	padding: 4px 34px 4px 8px;
	min-height: 30px;
	background: var(--xp-title);
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
	margin: 0 -3px;
}

html.theme-xp .chat-close { position: absolute; }
html.theme-xp .chat-title { color: #fff; font: bold 13px var(--xp-title-font); text-shadow: 1px 1px #0f1089; }
html.theme-xp .chat-status { color: #d9f2d9; }
html.theme-xp .chat-avatar { background: #fff url("../../images/clippy.svg?v=2") center / auto 92% no-repeat; border: 1px solid #003c74; border-radius: 3px; }
html.theme-xp .chat-avatar svg { display: none; }

html.theme-xp .chat-log {
	margin: 6px;
	background: #fff;
	border: 1px solid var(--border);
}

html.theme-xp .chat-bubble { border-radius: 4px; font-family: var(--xp-font); font-size: 12.5px; }
html.theme-xp .chat-msg-bot .chat-bubble { color: #000; background: #fff; border: 1px solid #c9c9c9; }
html.theme-xp .chat-msg-user .chat-bubble { color: #000; background: #dce9fb; border: 1px solid #9ab7e4; }

html.theme-xp .chat-input-row { background: var(--xp-face); border-top: 0; }
html.theme-xp .chat-input-row textarea {
	color: #000;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 0;
	font-family: var(--xp-font);
}

/* ---- Schalter oben im XP-Look ---- */
html.theme-xp .theme-switch { color: #fff; background: rgba(0, 0, 0, 0.12); border-color: rgba(255, 255, 255, 0.35); font-family: var(--xp-font); }
html.theme-xp .theme-switch .ts-label { color: rgba(255, 255, 255, 0.75); text-shadow: 1px 1px #0f1089; }
html.theme-xp .theme-switch[aria-checked="true"] .ts-legacy { color: #fff; }
html.theme-xp .theme-switch .ts-track { background: #fff; border: 1px solid #003c74; border-radius: 3px; }
html.theme-xp .theme-switch .ts-knob { border-radius: 2px; }

/* ---- Taskleiste ---- */
html.theme-xp .xp-taskbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 950;
	height: 34px;
	display: flex;
	align-items: stretch;
	font: 12px var(--xp-font);
	background: linear-gradient(180deg, #1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
}

html.theme-xp .xp-start {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 100%;
	padding: 0 22px 0 10px;
	font: italic bold 17px "Trebuchet MS", Tahoma, sans-serif;
	color: #fff;
	text-shadow: 1px 1px 1px #1a3a1a;
	background: linear-gradient(180deg, #3c873c 0%, #5eb954 8%, #4fae43 30%, #3c9c32 70%, #2f7f28 100%);
	border: 0;
	border-radius: 0 12px 12px 0;
	box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.35), inset -2px -2px 3px rgba(0, 0, 0, 0.25), 2px 0 4px rgba(0, 0, 0, 0.35);
}

html.theme-xp .xp-start:hover,
html.theme-xp .xp-start.active { filter: brightness(1.1); }

html.theme-xp .xp-start img {
	width: 22px;
	height: 22px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

html.theme-xp .xp-tasks {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 0 6px;
	min-width: 0;
	overflow: hidden;
}

html.theme-xp .xp-task {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 12px 0 8px;
	min-width: 0;
	max-width: 150px;
	flex: 0 1 130px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: #3c81f3;
	border-radius: 3px;
	box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 1px 1px 1px rgba(255, 255, 255, 0.2);
}

html.theme-xp .xp-task svg { flex-shrink: 0; width: 15px; height: 15px; }
html.theme-xp .xp-task img { flex-shrink: 0; width: 15px; height: 15px; border-radius: 2px; }
html.theme-xp .xp-task:hover { background: #5394f7; }
html.theme-xp .xp-task.active { background: #1e52b7; box-shadow: inset 0 0 1px 1px rgba(0, 0, 0, 0.35); }

html.theme-xp .xp-tray {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	color: #fff;
	background: linear-gradient(180deg, #0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9 100%);
	border-left: 1px solid #092e99;
	box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.35);
}

html.theme-xp .xp-tray svg { width: 15px; height: 15px; }

/* ---- Startmenü ---- */
html.theme-xp .xp-startmenu:not([hidden]) {
	position: fixed;
	left: 0;
	bottom: 34px;
	z-index: 960;
	display: flex;
	flex-direction: column;
	width: min(400px, 100vw);
	font: 12px var(--xp-font);
	background: #fff;
	border: 1px solid #0b3a9e;
	border-radius: 8px 8px 0 0;
	overflow: hidden;
	box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.5);
}

html.theme-xp .xp-sm-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	font: bold 15px var(--xp-title-font);
	color: #fff;
	text-shadow: 1px 1px #0f1089;
	background: linear-gradient(180deg, #1868ce, #0e60cb 12%, #1164cf 32%, #1b6cd3 47%, #2476dc 60%, #3482e3 77%, #428ee9 90%, #4791eb);
}

html.theme-xp .xp-sm-head img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 3px;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

html.theme-xp .xp-sm-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 2px solid #f39c39;
}

html.theme-xp .xp-sm-col { display: flex; flex-direction: column; padding: 6px 0; }
html.theme-xp .xp-sm-right { background: #d3e5fa; border-left: 1px solid #95bdee; }

html.theme-xp .xp-sm-label {
	padding: 4px 10px 2px;
	font-size: 11px;
	font-weight: bold;
	color: #5a5a5a;
}

html.theme-xp .xp-sm-right .xp-sm-label { color: #0a246a; }

html.theme-xp .xp-sm-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	color: #000;
	text-decoration: none;
}

html.theme-xp .xp-sm-right .xp-sm-item { color: #0a246a; font-weight: bold; }
html.theme-xp .xp-sm-item svg { flex-shrink: 0; width: 18px; height: 18px; }
html.theme-xp .xp-sm-item:hover,
html.theme-xp .xp-sm-item:focus-visible { color: #fff; background: var(--xp-select); outline: none; }

html.theme-xp .xp-sm-sep {
	height: 1px;
	margin: 4px 8px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0), #b9b9b9, rgba(0, 0, 0, 0));
}

html.theme-xp .xp-sm-foot {
	display: flex;
	justify-content: flex-end;
	padding: 6px 8px;
	background: linear-gradient(180deg, #4282d6, #3b85e0 3%, #418ae3 17%, #3786e4 26%, #2e7ee1 39%, #2374df 49%, #196edb 62%, #1468d6 75%, #0d61d0 88%);
}

html.theme-xp .xp-sm-foot button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	font: 12px var(--xp-font);
	color: #fff;
	background: none;
	border: 0;
	border-radius: 3px;
}

html.theme-xp .xp-sm-foot button:hover { background: rgba(255, 255, 255, 0.15); }
html.theme-xp .xp-sm-foot svg { width: 20px; height: 20px; }

/* ================= Tool-Seiten =================
   Hauptfenster tragen ihren Titel in data-xp-title; Taskleiste und
   Startmenü baut assets/js/fx.js ein. */

html.theme-xp .back-link {
	top: 10px;
	left: 10px;
	padding: 4px 12px;
	font: 12px var(--xp-font);
	color: #000;
	background: var(--xp-button);
	border: 1px solid #003c74;
	border-radius: 3px;
	transition: none;
}

html.theme-xp .back-link:hover {
	color: #000;
	transform: none;
	box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

/* Fenster */
html.theme-xp .card[data-xp-title],
html.theme-xp [data-xp-title] {
	position: relative;
	padding-top: 52px;
	background: var(--xp-face);
	border: 3px solid var(--xp-blue);
	border-top: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.45);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

html.theme-xp [data-xp-title]::before {
	content: attr(data-xp-title);
	position: absolute;
	top: 0;
	left: -3px;
	right: -3px;
	height: 30px;
	padding: 0 82px 0 10px;
	display: flex;
	align-items: center;
	font: bold 13px var(--xp-title-font);
	color: #fff;
	text-shadow: 1px 1px #0f1089;
	background: var(--xp-title);
	border-radius: 7px 7px 0 0;
}

/* Icons in Kopfzeilen */
html.theme-xp .ka-icon,
html.theme-xp .lock-icon,
html.theme-xp .mc-icon,
html.theme-xp .vta-icon,
html.theme-xp .vta-file-icon,
html.theme-xp .vta-plat {
	color: var(--xp-blue);
	background: linear-gradient(180deg, #fdfdfd, #dce7f9);
	border: 1px solid var(--border);
	border-radius: 4px;
	box-shadow: none;
}

html.theme-xp .ka-title,
html.theme-xp .lock-title,
html.theme-xp .mc-title,
html.theme-xp .vta-title { font-family: var(--xp-title-font); color: #000; letter-spacing: 0; }

/* Eingabefelder */
html.theme-xp input[type="text"],
html.theme-xp input[type="password"],
html.theme-xp input[type="number"],
html.theme-xp input[type="url"],
html.theme-xp input[type="search"],
html.theme-xp select,
html.theme-xp textarea {
	color: #000;
	background-color: #fff;
	border: 1px solid var(--border);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--xp-font);
}

html.theme-xp input:focus,
html.theme-xp select:focus,
html.theme-xp textarea:focus {
	outline: none;
	border-color: var(--xp-select);
	box-shadow: none;
}

html.theme-xp option { color: #000; background: #fff; }

html.theme-xp .ka-output,
html.theme-xp .lock-output,
html.theme-xp .vta-changelog { font-family: var(--xp-mono); }

html.theme-xp .field-hint code { color: #000; background: #fff; border: 1px solid var(--border); }

/* Knöpfe */
html.theme-xp .ka-btn,
html.theme-xp .ka-copy,
html.theme-xp .ka-key-toggle,
html.theme-xp .lock-btn,
html.theme-xp .lock-copy,
html.theme-xp .mc-refresh,
html.theme-xp .vta-chip,
html.theme-xp .vta-file-btn,
html.theme-xp .nf-btn {
	color: #000;
	background: var(--xp-button);
	border: 1px solid #003c74;
	border-radius: 3px;
	box-shadow: none;
	text-shadow: none;
	transition: none;
	font-family: var(--xp-font);
}

html.theme-xp .ka-btn:hover,
html.theme-xp .ka-copy:hover,
html.theme-xp .ka-key-toggle:hover,
html.theme-xp .lock-btn:hover,
html.theme-xp .lock-copy:hover,
html.theme-xp .mc-refresh:hover,
html.theme-xp .vta-chip:hover,
html.theme-xp .vta-file-btn:hover,
html.theme-xp .nf-btn:hover {
	color: #000;
	background: var(--xp-button);
	border-color: #003c74;
	transform: none;
	box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

/* Standard-Knopf mit blauem Innenrand */
html.theme-xp .ka-btn-primary,
html.theme-xp .nf-btn.primary { box-shadow: inset 0 0 0 1px #6c8fe4; }

html.theme-xp .ka-copy.copied,
html.theme-xp .lock-copy.copied { color: #1c7a1c; border-color: #003c74; }

/* Gruppen und Ausgaben: weiße Flächen statt dunkler Glas-Kästen */
html.theme-xp .ka-settings,
html.theme-xp .ka-result,
html.theme-xp .ka-price,
html.theme-xp .lock-result,
html.theme-xp .lock-decoded-item,
html.theme-xp .mc-tile,
html.theme-xp .vta-state,
html.theme-xp .vta-beta,
html.theme-xp .vta-file {
	background: #fff;
	border-color: var(--border);
	border-radius: 0;
}

html.theme-xp .ka-price-value {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: #0a246a;
}

html.theme-xp .ka-error,
html.theme-xp .lock-error,
html.theme-xp .vta-state.is-error { color: #c00000; }

/* Schloss-Tool: Register-Reiter wie in XP-Dialogen */
html.theme-xp .lock-tabs {
	gap: 2px;
	padding: 0 0 0 4px;
	background: none;
	border: 0;
	border-bottom: 1px solid #919b9c;
	border-radius: 0;
}

html.theme-xp .lock-tab {
	flex: 0 0 auto;
	margin-bottom: -1px;
	padding: 6px 16px;
	font: 12px var(--xp-font);
	color: #000;
	background: linear-gradient(180deg, #fff, #ecebe5);
	border: 1px solid #919b9c;
	border-bottom: 0;
	border-radius: 3px 3px 0 0;
	box-shadow: none;
}

html.theme-xp .lock-tab.active {
	padding-top: 4px;
	color: #000;
	background: #fcfcfe;
	border-top: 3px solid #e68b2c;
}

/* Minecraft-Server: die Abschnittsnamen stehen jetzt in der Titelleiste */
html.theme-xp .mc-section-label { display: none; }
html.theme-xp .mc-card + .mc-card { margin-top: 18px; }

/* VESC Tool Archiv */
html.theme-xp main.vta-wrap[data-xp-title] {
	margin: 54px auto 24px;
	padding: 52px 22px 20px;
}

html.theme-xp .vta-filter { background: none; border: 0; padding: 0; gap: 4px; }
html.theme-xp .vta-chip.active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1); box-shadow: none; }

html.theme-xp .vta-item {
	padding: 10px 14px;
	color: #000;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 0;
	transition: none;
	animation: none;
}

html.theme-xp .vta-item:hover {
	color: #fff;
	background: var(--xp-select);
	border-color: var(--xp-select);
	box-shadow: none;
	transform: none;
}

html.theme-xp .vta-item:hover .vta-item-meta,
html.theme-xp .vta-item:hover .vta-more { color: #fff; }

html.theme-xp .vta-item-title { font: bold 13px var(--xp-font); }
html.theme-xp .vta-more { color: #0033cc; font-family: var(--xp-font); }
html.theme-xp .vta-badge { color: #fff; background: #2e9e2e; border-color: #1c7a1c; border-radius: 3px; }
html.theme-xp .vta-badge--beta { color: #000; background: #ffe680; border-color: #c09000; }
html.theme-xp .vta-plat.is-yours { border-color: var(--xp-select); background: #dce9fb; }
html.theme-xp .vta-beta-head:hover { color: #0a246a; }
html.theme-xp .vta-changelog,
html.theme-xp .vta-source { color: #000; }
html.theme-xp .vta-changelog { background: #fff; border-color: var(--border); border-radius: 0; }
html.theme-xp .vta-source a,
html.theme-xp .vta-license a { color: #0033cc; text-decoration: underline; }
html.theme-xp .vta-file.is-yours { background: #e8f0fb; border-color: var(--xp-select); }

/* WebMC-Launcher: eigene Titelleiste wird zur XP-Titelleiste */
html.theme-xp .wmc-launcher {
	background: var(--xp-face);
	border: 3px solid var(--xp-blue);
	border-top: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.45);
}

html.theme-xp .wmc-titlebar {
	position: relative;
	height: 30px;
	margin: 0 -3px;
	padding: 0 82px 0 8px;
	background: var(--xp-title);
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
}

html.theme-xp .wmc-titlebar-dots { display: none; }
html.theme-xp .wmc-titlebar-name { color: #fff; font: bold 13px var(--xp-title-font); text-shadow: 1px 1px #0f1089; }
html.theme-xp .wmc-titlebar-name .dim { color: rgba(255, 255, 255, 0.8); font-weight: normal; }
html.theme-xp .wmc-logo { width: 20px; height: 20px; color: #fff; background: none; border: 0; }

html.theme-xp .wmc-body { background: #fff; }
html.theme-xp .wmc-body::before { display: none; }
html.theme-xp .wmc-hero-version {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: #0a246a;
	font-family: var(--xp-title-font);
}

html.theme-xp .wmc-hero-badge,
html.theme-xp .wmc-tag { color: #000; background: #fff; border: 1px solid var(--border); border-radius: 3px; }

html.theme-xp .wmc-bar { background: var(--xp-face); border-top: 1px solid #fff; box-shadow: 0 -1px #aca899; }

html.theme-xp .wmc-select-btn,
html.theme-xp .wmc-option { color: #000; background: #fff; border: 1px solid var(--border); border-radius: 0; }
html.theme-xp .wmc-select-btn:hover,
html.theme-xp .wmc-select.open .wmc-select-btn,
html.theme-xp .wmc-option:hover { background: #fff; border-color: var(--xp-select); }

html.theme-xp .wmc-select-list { background: #fff; border: 1px solid #000; border-radius: 0; box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35); }
html.theme-xp .wmc-select-item { border-left: 0; border-radius: 0; }
html.theme-xp .wmc-select-item:hover,
html.theme-xp .wmc-select-item.selected { background: var(--xp-select); }
html.theme-xp .wmc-select-item:hover .wmc-item-version,
html.theme-xp .wmc-select-item:hover .wmc-item-sub,
html.theme-xp .wmc-select-item.selected .wmc-item-version,
html.theme-xp .wmc-select-item.selected .wmc-item-sub { color: #fff; }

/* XP-Kontrollkästchen mit grünem Haken */
html.theme-xp .wmc-option-box { background: #fff; border: 1px solid #1c5180; border-radius: 0; color: transparent; }
html.theme-xp .wmc-option input:checked + .wmc-option-box { color: #21a121; background: #fff; border-color: #1c5180; box-shadow: none; }
html.theme-xp .wmc-option.is-locked { opacity: 0.6; }

html.theme-xp .wmc-play-btn { border-radius: 3px; }
html.theme-xp .wmc-note { color: #fff; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); }

/* 404-Seite: Inhalt als Fehler-Fenster */
html.theme-xp .nf-box[data-xp-title] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	width: min(520px, 100%);
	padding: 52px 24px 24px;
}

html.theme-xp .nf-title { color: #000; font-family: var(--xp-title-font); }
html.theme-xp .nf-path { color: #000; background: #fff; border-color: var(--border); border-radius: 0; }
html.theme-xp .nf-btn.primary { color: #000; background: var(--xp-button); border-color: #003c74; }

/* Aktuelle Seite im Startmenü */
html.theme-xp .xp-sm-item[aria-current="page"] { font-weight: bold; }

/* ESP32 Flasher */
html.theme-xp .fl-icon {
	color: var(--xp-blue);
	background: linear-gradient(180deg, #fdfdfd, #dce7f9);
	border: 1px solid var(--border);
	border-radius: 4px;
}

html.theme-xp .fl-title { font-family: var(--xp-title-font); color: #000; letter-spacing: 0; }
html.theme-xp .fl-num { color: #fff; background: var(--xp-blue); border-color: #003c74; }

html.theme-xp .fl-chips { gap: 4px; padding: 0; background: none; border: 0; border-radius: 0; }

html.theme-xp .fl-chip,
html.theme-xp .fl-btn {
	color: #000;
	background: var(--xp-button);
	border: 1px solid #003c74;
	border-radius: 3px;
	box-shadow: none;
	font-family: var(--xp-font);
	transition: none;
}

html.theme-xp .fl-chip.active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1); box-shadow: none; }
html.theme-xp .fl-btn { padding: 9px; font-size: 13px; font-weight: 400; box-shadow: inset 0 0 0 1px #6c8fe4; }

html.theme-xp .fl-btn:hover:not(:disabled) {
	transform: none;
	box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

html.theme-xp .fl-btn:disabled { color: #aca899; opacity: 1; box-shadow: none; border-color: #c9c7ba; }

html.theme-xp .fl-fw-box { background: #fff; border-color: var(--border); border-radius: 0; }
html.theme-xp .fl-fw:hover .fl-fw-box { border-color: var(--xp-select); }
html.theme-xp .fl-fw input:checked + .fl-fw-box { color: #fff; background: var(--xp-select); border-color: #0a246a; }
html.theme-xp .fl-fw input:checked + .fl-fw-box .fl-fw-desc { color: #e6eefc; }

html.theme-xp .fl-select { font-family: var(--xp-font); font-size: 13px; padding: 5px 8px; }

html.theme-xp .fl-wiring,
html.theme-xp .fl-file,
html.theme-xp .fl-log,
html.theme-xp .fl-cmd {
	color: #000;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 0;
}

html.theme-xp .fl-log,
html.theme-xp .fl-cmd,
html.theme-xp .fl-sum,
html.theme-xp .fl-wiring table { font-family: var(--xp-mono); }

html.theme-xp .fl-file-head a { color: #0000ee; }

html.theme-xp .fl-unsupported {
	color: #000;
	background: #ffffe1;
	border: 1px solid #000;
	border-radius: 6px;
}

/* Fortschrittsbalken mit den grünen Blöcken */
html.theme-xp .fl-progress {
	height: 16px;
	padding: 2px;
	background: #fff;
	border: 1px solid #686868;
	border-radius: 3px;
}

html.theme-xp .fl-progress-fill,
html.theme-xp .fl-status.is-done .fl-progress-fill {
	border-radius: 0;
	background: repeating-linear-gradient(90deg, #2fb52f 0 8px, transparent 8px 10px),
		linear-gradient(180deg, transparent, transparent);
	background-clip: content-box;
}

html.theme-xp .fl-status.is-error .fl-progress-fill { background: repeating-linear-gradient(90deg, #d42a2a 0 8px, transparent 8px 10px); }
html.theme-xp .fl-status.is-error .fl-status-text { color: #c00000; }
html.theme-xp .fl-status.is-done .fl-status-text { color: #1c7a1c; }

html.theme-xp .fl-more summary { color: #000; }

/* ---- Handy ---- */
@media (max-width: 760px) {
	html.theme-xp .xp-tasks { display: none; }
}

@media (max-width: 600px) {
	html.theme-xp .section { margin: 14px 8px; }
	html.theme-xp .section > :not(.section-title) { margin-left: 10px; margin-right: 10px; }
	html.theme-xp .hero { padding: 56px 8px 10px; }
	html.theme-xp .profile-card { padding: 44px 16px 20px; }
	html.theme-xp .chat-fab { right: 6px; bottom: 36px; width: 66px; height: 88px; }
	html.theme-xp .chat-panel { bottom: 130px; height: min(480px, calc(100svh - 190px)); }
	html.theme-xp .clippy-tip { right: 12px; bottom: 132px; width: min(240px, calc(100vw - 24px)); }
	html.theme-xp .clippy-tip::before { right: 34px; }
	html.theme-xp .clippy-tip::after { right: 35px; }
}
