/* win10ml — Windows 10 desktop HUD stylesheet.
   Self-contained: every rule is scoped to a `.w10-*` class.
   No global element selectors — safe to drop into any page or app.
   Accent color theming via `--w10-accent` (default #0078d7). */

.w10-taskbar,
.w10-win,
.w10-menu {
	--w10-accent: #0078d7;
}

/* ================= Taskbar ================= */
.w10-taskbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40px;
	z-index: 99995;
	display: flex;
	align-items: stretch;
	background: #101010;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-family: "Segoe UI", system-ui, sans-serif;
}

.w10-taskbar .w10-app {
	position: relative;
	min-width: 52px;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 4px;
}

.w10-taskbar .w10-app:hover {
	background: rgba(255, 255, 255, 0.1);
}

.w10-taskbar .w10-app-icon {
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.w10-taskbar .w10-app-icon svg {
	display: block;
}

/* Wide pinned app: icon + title, like Windows 10 */
.w10-taskbar .w10-app-wide {
	width: auto;
	max-width: 220px;
	padding: 0 12px 2px 10px;
	gap: 8px;
	font-size: 12px;
}

.w10-taskbar .w10-app-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	user-select: none;
	-webkit-user-select: none;
}

/* Closed app: small square icon only (label only while open), like Win10 */
.w10-taskbar .w10-app-wide:not(.w10-open) {
	padding: 0;
	gap: 0;
}

.w10-taskbar .w10-app-wide:not(.w10-open) .w10-app-label {
	display: none;
}

/* Accent underline while the app is running (full button width, like Win10) */
.w10-taskbar .w10-app::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--w10-accent, #0078d7);
	opacity: 0;
	transition: opacity 0.12s ease;
	pointer-events: none;
}

.w10-taskbar .w10-app.w10-running::after {
	opacity: 1;
}

.w10-taskbar .w10-app.w10-open {
	background: rgba(255, 255, 255, 0.12);
}

.w10-taskbar .w10-spacer {
	flex: 1;
}

.w10-taskbar .w10-status {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	max-width: 380px;
	min-width: 0;
	flex-shrink: 1;
	user-select: none;
	-webkit-user-select: none;
}

.w10-taskbar .w10-status > span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w10-taskbar .w10-status-icon {
	flex-shrink: 0;
	color: var(--w10-accent, #0078d7);
	font-size: 12px;
}

.w10-taskbar .w10-clock {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0 12px;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	user-select: none;
	-webkit-user-select: none;
}

/* ================= Window ================= */
.w10-win {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	width: 520px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 60px);
	display: flex;
	flex-direction: column;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 1px solid var(--w10-accent, #0078d7);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.4),
		0 12px 48px rgba(0, 0, 0, 0.55);
}

.w10-win.w10-win-max {
	top: 8px !important;
	left: 8px !important;
	transform: none !important;
	width: calc(100vw - 16px) !important;
	height: calc(100vh - 56px) !important;
	max-width: none;
	max-height: none;
}

.w10-win .w10-titlebar {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	height: 32px;
	flex-shrink: 0;
	background: #fff;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	cursor: default;
}

.w10-win .w10-title-left {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 10px;
	flex: 1;
	min-width: 0;
}

.w10-win .w10-avatar {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.w10-win .w10-title-text {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.w10-win .w10-credit {
	font-size: 11px;
	color: #605e5c;
	font-weight: 400;
}

.w10-win .w10-caption {
	display: flex;
	align-items: stretch;
}

.w10-win .w10-capbtn {
	width: 46px;
	border: none;
	background: transparent;
	color: #000;
	font-size: 10px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.w10-win .w10-capbtn svg {
	display: block;
}

.w10-win .w10-capbtn:hover {
	background: #e5e5e5;
}

.w10-win .w10-capbtn:active {
	background: #cacacd;
}

.w10-win .w10-capbtn.w10-capbtn-close:hover {
	background: #e81123;
	color: #fff;
}

.w10-win .w10-capbtn.w10-capbtn-close:active {
	background: #f1707a;
	color: #fff;
}

.w10-win .w10-content {
	display: flex;
	flex: 1;
	min-height: 0;
	border-top: 1px solid #e6e6e6;
}

.w10-win .w10-nav {
	width: 160px;
	flex-shrink: 0;
	background: #f3f3f3;
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-right: 1px solid #e6e6e6;
}

.w10-win .w10-navitem {
	display: flex;
	align-items: center;
	gap: 10px;
	border: none;
	background: transparent;
	border-left: 3px solid transparent;
	color: #000;
	font-family: inherit;
	font-size: 12px;
	text-align: left;
	padding: 9px 12px 9px 9px;
	cursor: pointer;
}

.w10-win .w10-navitem:hover {
	background: #e9e9e9;
}

.w10-win .w10-navitem-active {
	background: #e6e6e6;
	border-left-color: var(--w10-accent, #0078d7);
}

.w10-win .w10-navglyph {
	width: 18px;
	text-align: center;
	font-size: 13px;
	color: var(--w10-accent, #0078d7);
}

/* Inline SVG glyphs (e.g. GLOBE_ICON): centered in the glyph slot */
.w10-win .w10-navglyph svg {
	display: block;
	margin: 0 auto;
}

.w10-win .w10-body {
	flex: 1;
	min-width: 0;
	overflow-y: auto;
	padding: 20px 24px;
	background: #fff;
}

.w10-win .w10-resize {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 16px;
	height: 16px;
	cursor: nwse-resize;
	touch-action: none;
	background: linear-gradient(135deg, transparent 50%, #767676 50%);
}

.w10-win.w10-win-max .w10-resize {
	display: none;
}

/* ================= Controls ================= */
.w10-win .w10-grouptitle {
	font-size: 14px;
	font-weight: 600;
	margin: 18px 0 8px;
}

.w10-win .w10-grouptitle:first-child {
	margin-top: 0;
}

.w10-win .w10-setting {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.w10-win .w10-setting-col {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.w10-win .w10-setting-texts {
	flex: 1;
	min-width: 0;
}

.w10-win .w10-setting-title {
	font-size: 13px;
}

.w10-win .w10-desc {
	font-size: 12px;
	color: #605e5c;
	margin-top: 2px;
	line-height: 1.45;
}

.w10-win .w10-checkbox {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	box-sizing: border-box;
	background: #fff;
	border: 2px solid #333;
	border-radius: 0;
	cursor: pointer;
	padding: 0;
}

.w10-win .w10-checkbox:hover {
	border-color: #000;
}

.w10-win .w10-checkbox.w10-checked {
	background: var(--w10-accent, #0078d7);
	border-color: var(--w10-accent, #0078d7);
}

.w10-win .w10-checkbox.w10-checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 1px;
	width: 6px;
	height: 11px;
	box-sizing: border-box;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.w10-win .w10-btn {
	min-width: 88px;
	padding: 5px 20px;
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: #e1e1e1;
	border: 1px solid #adadad;
	border-radius: 0;
	cursor: pointer;
}

.w10-win .w10-btn:hover {
	border-color: var(--w10-accent, #0078d7);
	background: #e5f1fb;
}

.w10-win .w10-btn:active {
	background: #cce4f7;
}

.w10-win .w10-btn-small {
	min-width: 0;
	padding: 3px 12px;
}

.w10-win .w10-textbox,
.w10-win .w10-combo {
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 1px solid #767676;
	border-radius: 0;
	padding: 0 8px;
	height: 30px;
	width: 100%;
	box-sizing: border-box;
}

.w10-win .w10-textbox:hover,
.w10-win .w10-combo:hover {
	border-color: #333;
}

.w10-win .w10-textbox:focus,
.w10-win .w10-combo:focus {
	outline: none;
	border: 2px solid var(--w10-accent, #0078d7);
	padding: 0 7px;
}

.w10-win .w10-textbox.w10-textarea {
	height: auto;
	min-height: 120px;
	padding: 6px 8px;
	font-family: Consolas, "Courier New", monospace;
	font-size: 12px;
	line-height: 1.5;
	resize: vertical;
	white-space: pre;
}

.w10-win .w10-textbox.w10-textarea:focus {
	padding: 5px 7px;
}

.w10-win .w10-toolbar {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.w10-win .w10-hero {
	text-align: center;
	padding: 28px 0 12px;
}

.w10-win .w10-hero-num {
	font-size: 52px;
	font-weight: 300;
	color: var(--w10-accent, #0078d7);
	line-height: 1;
}

.w10-win .w10-hero-label {
	font-size: 13px;
	color: #605e5c;
	margin-top: 4px;
}

/* ================= Context menu ================= */
.w10-menu {
	position: fixed;
	z-index: 99998;
	min-width: 250px;
	max-width: calc(100vw - 32px);
	background: #fff;
	color: #000;
	border: 1px solid #767676;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	padding: 4px;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.w10-menu .w10-menu-item {
	display: block;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 1px solid transparent;
	color: #000;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
}

.w10-menu .w10-menu-item:hover {
	background: #e5f1fb;
	border-color: #cce8ff;
}

.w10-menu .w10-menu-sub {
	display: block;
	font-size: 11px;
	color: #605e5c;
	margin-top: 2px;
}

.w10-menu .w10-menu-item.w10-disabled {
	opacity: 0.8;
	cursor: default;
}

.w10-menu .w10-menu-item.w10-disabled:hover {
	background: transparent;
	border-color: transparent;
}

.w10-menu .w10-sep {
	height: 1px;
	background: #e1e1e1;
	margin: 4px 2px;
}

/* ================= Markdown ================= */
.w10-md {
	font-size: 12px;
	line-height: 1.55;
	color: inherit;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.w10-md-p {
	margin: 6px 0;
}

.w10-md-p:first-child {
	margin-top: 0;
}

.w10-md-title {
	font-weight: 600;
	margin: 12px 0 4px;
	line-height: 1.3;
}

h1.w10-md-title {
	font-size: 15px;
}

h2.w10-md-title {
	font-size: 13px;
}

h3.w10-md-title {
	font-size: 12px;
}

.w10-md-list {
	margin: 6px 0;
	padding-left: 20px;
}

.w10-md-list li {
	margin: 2px 0;
}

.w10-md-code {
	font-family: Consolas, "Courier New", monospace;
	font-size: 11px;
	padding: 1px 5px;
	background: #f3f3f3;
	border: 1px solid #e1e1e1;
}

.w10-md-link {
	color: var(--w10-accent, #0078d7);
	text-decoration: none;
}

.w10-md-link:hover {
	text-decoration: underline;
}

hr.w10-md-hr {
	border: none;
	border-top: 1px solid #e1e1e1;
	margin: 12px 0;
}

/* ================= Dark theme ================= */
.w10-win.w10-dark {
	color: #fff;
	background: #202020;
	border-color: var(--w10-accent, #0078d7);
}

.w10-win.w10-dark .w10-titlebar {
	background: #111;
}

.w10-win.w10-dark .w10-credit {
	color: #a19f9d;
}

.w10-win.w10-dark .w10-capbtn {
	color: #fff;
}

.w10-win.w10-dark .w10-capbtn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.w10-win.w10-dark .w10-capbtn:active {
	background: rgba(255, 255, 255, 0.18);
}

.w10-win.w10-dark .w10-capbtn.w10-capbtn-close:hover {
	background: #e81123;
	color: #fff;
}

.w10-win.w10-dark .w10-content {
	border-top-color: #2c2c2c;
}

.w10-win.w10-dark .w10-nav {
	background: #191919;
	border-right-color: #2c2c2c;
}

.w10-win.w10-dark .w10-navitem {
	color: #fff;
}

.w10-win.w10-dark .w10-navitem:hover {
	background: #2d2d2d;
}

.w10-win.w10-dark .w10-navitem-active {
	background: #2d2d2d;
	border-left-color: var(--w10-accent, #0078d7);
}

.w10-win.w10-dark .w10-body {
	background: #202020;
}

.w10-win.w10-dark .w10-setting {
	border-bottom-color: #2c2c2c;
}

.w10-win.w10-dark .w10-desc,
.w10-win.w10-dark .w10-hero-label {
	color: #a19f9d;
}

.w10-win.w10-dark .w10-checkbox {
	background: transparent;
	border-color: #fff;
}

.w10-win.w10-dark .w10-checkbox.w10-checked {
	background: var(--w10-accent, #0078d7);
	border-color: var(--w10-accent, #0078d7);
}

.w10-win.w10-dark .w10-btn {
	color: #fff;
	background: #333;
	border-color: #8a8a8a;
}

.w10-win.w10-dark .w10-btn:hover {
	border-color: var(--w10-accent, #0078d7);
	background: #3a3a3a;
}

.w10-win.w10-dark .w10-textbox,
.w10-win.w10-dark .w10-combo {
	color: #fff;
	background: #2b2b2b;
	border-color: #8a8a8a;
}

.w10-win.w10-dark .w10-textbox:hover,
.w10-win.w10-dark .w10-combo:hover {
	border-color: #fff;
}

.w10-win.w10-dark .w10-combo option {
	background: #2b2b2b;
	color: #fff;
}

.w10-win.w10-dark .w10-resize {
	background: linear-gradient(135deg, transparent 50%, #8a8a8a 50%);
}

.w10-menu.w10-dark {
	background: #2b2b2b;
	color: #fff;
	border-color: #444;
}

.w10-menu.w10-dark .w10-menu-item {
	color: #fff;
}

.w10-menu.w10-dark .w10-menu-item:hover {
	background: #3a3a3a;
	border-color: #555;
}

.w10-menu.w10-dark .w10-menu-sub {
	color: #a19f9d;
}

.w10-menu.w10-dark .w10-sep {
	background: #444;
}

.w10-dark .w10-md-code {
	background: #191919;
	border-color: #333;
}

.w10-dark hr.w10-md-hr {
	border-top-color: #333;
}

/* ================= Toggle switch (official Win10 Settings switch) ================= */
.w10-win .w10-switch {
	position: relative;
	width: 44px;
	height: 20px;
	flex-shrink: 0;
	box-sizing: border-box;
	background: transparent;
	border: 2px solid #333;
	border-radius: 999px;
	cursor: pointer;
	padding: 0;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.w10-win .w10-switch:hover {
	border-color: #000;
}

.w10-win .w10-switch-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #333;
	transition: left 0.12s ease, background 0.12s ease;
}

.w10-win .w10-switch.w10-on {
	background: var(--w10-accent, #0078d7);
	border-color: var(--w10-accent, #0078d7);
}

.w10-win .w10-switch.w10-on .w10-switch-knob {
	left: 25px;
	background: #fff;
}

.w10-win.w10-dark .w10-switch {
	border-color: #fff;
}

.w10-win.w10-dark .w10-switch:hover {
	border-color: #fff;
}

.w10-win.w10-dark .w10-switch-knob {
	background: #fff;
}

.w10-win.w10-dark .w10-switch.w10-on {
	background: var(--w10-accent, #0078d7);
	border-color: var(--w10-accent, #0078d7);
}

/* ================= Radio buttons ================= */
.w10-win .w10-radios {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.w10-win .w10-radio {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border: none;
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: left;
	padding: 8px 4px;
	cursor: pointer;
}

.w10-win .w10-radio-dot {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	box-sizing: border-box;
	border: 2px solid #333;
	border-radius: 999px;
	background: transparent;
	margin-top: 1px;
}

.w10-win .w10-radio:hover .w10-radio-dot {
	border-color: #000;
}

.w10-win .w10-radio.w10-on .w10-radio-dot {
	border-color: var(--w10-accent, #0078d7);
}

.w10-win .w10-radio.w10-on .w10-radio-dot::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 4px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--w10-accent, #0078d7);
}

.w10-win .w10-radio-texts {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.w10-win.w10-dark .w10-radio {
	color: #fff;
}

.w10-win.w10-dark .w10-radio-dot {
	border-color: #fff;
}

.w10-win.w10-dark .w10-radio:hover .w10-radio-dot {
	border-color: #fff;
}

/* ================= Progress bar ================= */
.w10-win .w10-progress {
	height: 4px;
	background: #edebe9;
	overflow: hidden;
}

.w10-win .w10-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--w10-accent, #0078d7);
	transition: width 0.15s ease-out;
}

.w10-win .w10-progress.w10-indeterminate .w10-progress-fill {
	width: 40% !important;
	animation: w10-progress-slide 1.4s ease-in-out infinite;
}

@keyframes w10-progress-slide {
	0% {
		margin-left: -40%;
	}
	100% {
		margin-left: 100%;
	}
}

.w10-win.w10-dark .w10-progress {
	background: #3a3a3a;
}

/* ================= Slider ================= */
.w10-win .w10-slider-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.w10-win .w10-slider-val {
	font-size: 12px;
	color: #605e5c;
	font-variant-numeric: tabular-nums;
}

.w10-win.w10-dark .w10-slider-val {
	color: #a19f9d;
}

.w10-win input[type="range"].w10-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 22px;
	background: transparent;
	cursor: pointer;
	--w10-fill: 50%;
}

.w10-win input[type="range"].w10-slider::-webkit-slider-runnable-track {
	height: 2px;
	background: linear-gradient(to right, var(--w10-accent, #0078d7) var(--w10-fill), #767676 var(--w10-fill));
}

.w10-win input[type="range"].w10-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 8px;
	height: 22px;
	margin-top: -10px;
	background: var(--w10-accent, #0078d7);
	border: none;
	border-radius: 999px;
}

.w10-win input[type="range"].w10-slider::-moz-range-track {
	height: 2px;
	background: #767676;
}

.w10-win input[type="range"].w10-slider::-moz-range-progress {
	height: 2px;
	background: var(--w10-accent, #0078d7);
}

.w10-win input[type="range"].w10-slider::-moz-range-thumb {
	width: 8px;
	height: 22px;
	background: var(--w10-accent, #0078d7);
	border: none;
	border-radius: 999px;
}

/* ================= ListView rows + divider ================= */
.w10-win .w10-listitem {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	border: none;
	border-left: 3px solid transparent;
	background: transparent;
	color: inherit;
	font-family: inherit;
	text-align: left;
	padding: 9px 10px;
	cursor: pointer;
}

.w10-win .w10-listitem:hover {
	background: #f3f3f3;
}

.w10-win .w10-listitem.w10-selected {
	background: #e5f1fb;
	border-left-color: var(--w10-accent, #0078d7);
}

.w10-win .w10-listitem-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--w10-accent, #0078d7);
}

.w10-win .w10-listitem-texts {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.w10-win .w10-listitem-title {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.w10-win.w10-dark .w10-listitem:hover {
	background: #2d2d2d;
}

.w10-win.w10-dark .w10-listitem.w10-selected {
	background: rgba(0, 120, 215, 0.25);
}

.w10-win .w10-divider {
	height: 1px;
	background: #e1e1e1;
	margin: 10px 0;
}

.w10-win.w10-dark .w10-divider {
	background: #2c2c2c;
}

/* ================= Calendar ================= */
.w10-cal {
	font-family: "Segoe UI", system-ui, sans-serif;
	color: #000;
	background: #fff;
	border: 1px solid #767676;
	padding: 12px 14px 10px;
	width: 300px;
	box-sizing: border-box;
}

.w10-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.w10-cal-title {
	font-size: 13px;
	font-weight: 600;
}

.w10-cal-nav {
	display: flex;
	gap: 2px;
}

.w10-cal-navbtn {
	width: 28px;
	height: 24px;
	border: none;
	background: transparent;
	color: #000;
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
}

.w10-cal-navbtn:hover {
	background: #e5e5e5;
}

.w10-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
}

.w10-cal-dow {
	text-align: center;
	font-size: 11px;
	color: #605e5c;
	padding: 4px 0;
}

.w10-cal-day {
	border: 1px solid transparent;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	color: #000;
	text-align: center;
	padding: 5px 0;
	cursor: pointer;
}

.w10-cal-day:hover {
	background: #e5f1fb;
	border-color: #cce8ff;
}

.w10-cal-day.w10-cal-other {
	color: #a19f9d;
}

.w10-cal-day.w10-cal-today {
	background: var(--w10-accent, #0078d7);
	border-color: var(--w10-accent, #0078d7);
	color: #fff;
}

.w10-cal-day.w10-cal-selected {
	border-color: var(--w10-accent, #0078d7);
}

.w10-cal-day.w10-cal-today.w10-cal-selected {
	box-shadow: inset 0 0 0 2px #fff;
}

.w10-cal-foot {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e1e1e1;
	font-size: 12px;
	color: #605e5c;
}

.w10-cal.w10-dark {
	color: #fff;
	background: #2b2b2b;
	border-color: #444;
}

.w10-cal.w10-dark .w10-cal-navbtn {
	color: #fff;
}

.w10-cal.w10-dark .w10-cal-navbtn:hover {
	background: #3a3a3a;
}

.w10-cal.w10-dark .w10-cal-dow,
.w10-cal.w10-dark .w10-cal-foot {
	color: #a19f9d;
}

.w10-cal.w10-dark .w10-cal-day {
	color: #fff;
}

.w10-cal.w10-dark .w10-cal-day:hover {
	background: #3a3a3a;
	border-color: #555;
}

.w10-cal.w10-dark .w10-cal-day.w10-cal-other {
	color: #656565;
}

.w10-cal.w10-dark .w10-cal-foot {
	border-top-color: #444;
}

/* ================= Start menu (app list + tiles + footer) ================= */
.w10-startmenu {
	position: fixed;
	left: 8px;
	bottom: 48px;
	z-index: 99996;
	width: 400px;
	max-width: calc(100vw - 16px);
	height: 540px;
	max-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	background: #f2f2f2;
	color: #000;
	border: 1px solid #767676;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
	font-family: "Segoe UI", system-ui, sans-serif;
	animation: w10-sm-in 0.12s ease-out;
}

@keyframes w10-sm-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.w10-startmenu .w10-sm-search {
	padding: 8px;
	flex-shrink: 0;
}

.w10-startmenu .w10-sm-search .w10-textbox {
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 1px solid #767676;
	border-radius: 0;
	padding: 0 8px;
	height: 30px;
	width: 100%;
	box-sizing: border-box;
}

.w10-startmenu .w10-sm-search .w10-textbox:focus {
	outline: none;
	border: 2px solid var(--w10-accent, #0078d7);
	padding: 0 7px;
}

.w10-startmenu .w10-sm-body {
	display: flex;
	flex: 1;
	min-height: 0;
}

.w10-startmenu .w10-sm-list {
	width: 190px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #e1e1e1;
	min-height: 0;
}

.w10-startmenu .w10-sm-apps {
	flex: 1;
	overflow-y: auto;
	padding: 4px;
	min-height: 0;
}

.w10-startmenu .w10-sm-app {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	background: transparent;
	border: 1px solid transparent;
	color: #000;
	padding: 8px 10px;
	font-family: inherit;
	font-size: 12px;
	text-align: left;
	cursor: pointer;
}

.w10-startmenu .w10-sm-app:hover {
	background: #e5e5e5;
}

.w10-startmenu .w10-sm-appicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--w10-accent, #0078d7);
}

.w10-startmenu .w10-sm-appicon svg {
	display: block;
}

.w10-startmenu .w10-sm-applabel {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.w10-startmenu .w10-sm-foot {
	display: flex;
	border-top: 1px solid #e1e1e1;
	padding: 2px;
	flex-shrink: 0;
}

.w10-startmenu .w10-sm-footbtn {
	flex: 1;
	background: transparent;
	border: 1px solid transparent;
	color: #000;
	padding: 6px 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 12px;
}

.w10-startmenu .w10-sm-footbtn:hover {
	background: #e5e5e5;
}

.w10-startmenu .w10-sm-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.w10-startmenu .w10-sm-footicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.w10-startmenu .w10-sm-footicon svg {
	display: block;
}

.w10-startmenu .w10-sm-tiles {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-content: flex-start;
	padding: 10px;
	overflow-y: auto;
	min-width: 0;
}

.w10-startmenu .w10-sm-tile {
	width: 104px;
	height: 104px;
	box-sizing: border-box;
	background: var(--w10-accent, #0078d7);
	color: #fff;
	border: 1px solid transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	position: relative;
	padding: 0 0 18px;
}

.w10-startmenu .w10-sm-tile:hover {
	filter: brightness(1.12);
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: -2px;
}

.w10-startmenu .w10-sm-tileicon {
	display: inline-flex;
	line-height: 0;
}

.w10-startmenu .w10-sm-tileicon svg {
	width: 30px;
	height: 30px;
}

.w10-startmenu .w10-sm-tilelabel {
	position: absolute;
	left: 8px;
	bottom: 6px;
	right: 8px;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.w10-startmenu.w10-dark {
	background: #1f1f1f;
	color: #fff;
	border-color: #333;
}

.w10-startmenu.w10-dark .w10-sm-search .w10-textbox {
	color: #fff;
	background: #2b2b2b;
	border-color: #8a8a8a;
}

.w10-startmenu.w10-dark .w10-sm-list {
	border-right-color: #333;
}

.w10-startmenu.w10-dark .w10-sm-app {
	color: #fff;
}

.w10-startmenu.w10-dark .w10-sm-app:hover {
	background: #2d2d2d;
}

.w10-startmenu.w10-dark .w10-sm-foot {
	border-top-color: #333;
}

.w10-startmenu.w10-dark .w10-sm-footbtn {
	color: #fff;
}

.w10-startmenu.w10-dark .w10-sm-footbtn:hover {
	background: #2d2d2d;
}

/* ================= MessageBox ================= */
.w10-msgbox-overlay {
	position: fixed;
	inset: 0;
	background: transparent;
}

.w10-win.w10-dialog .w10-body.w10-msgbox-body {
	padding: 16px 16px 14px;
	overflow-y: visible;
}

.w10-msgbox-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.w10-msgbox-icon {
	flex-shrink: 0;
	line-height: 0;
}

.w10-msgbox-text {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	line-height: 1.55;
	white-space: pre-line;
	padding-top: 6px;
}

.w10-msgbox-btns {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 18px;
}

.w10-win .w10-msgbox-btn {
	min-width: 88px;
}

.w10-win .w10-msgbox-btn:focus {
	outline: none;
	border: 2px solid var(--w10-accent, #0078d7);
	padding: 4px 19px;
}

/* ================= Batch 2 widgets: expander / pivot / infobar / avatar / badge / search / number / tiles / commandbar / tree / table / rating / breadcrumb / flyout / segmented / colors / empty / spinner / link / tooltip ================= */
.w10-win .w10-expander { border: 1px solid #e1e1e1; margin: 8px 0; }
.w10-win .w10-expander-head { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; color: inherit; font-family: inherit; text-align: left; padding: 10px 12px; cursor: pointer; }
.w10-win .w10-expander-head:hover { background: #f3f3f3; }
.w10-win .w10-expander-chev { display: inline-flex; color: #605e5c; }
.w10-win .w10-expander-chev svg { display: block; }
.w10-win .w10-expander-icon { display: inline-flex; color: var(--w10-accent, #0078d7); }
.w10-win .w10-expander-texts { display: flex; flex-direction: column; gap: 1px; }
.w10-win .w10-expander-body { padding: 4px 12px 12px 34px; border-top: 1px solid #f0f0f0; }
.w10-win .w10-pivot-head { display: flex; gap: 18px; border-bottom: 1px solid #e1e1e1; margin-bottom: 10px; }
.w10-win .w10-pivot-tab { border: none; background: transparent; color: #767676; font-family: inherit; font-size: 15px; font-weight: 300; padding: 6px 2px 8px; cursor: pointer; }
.w10-win .w10-pivot-tab:hover { color: #000; }
.w10-win .w10-pivot-tab.w10-active { color: #000; font-weight: 600; box-shadow: inset 0 -2px 0 var(--w10-accent, #0078d7); }
.w10-win .w10-infobar { display: flex; align-items: flex-start; gap: 10px; border-left: 3px solid var(--w10-accent, #0078d7); background: #f3f3f3; padding: 10px 12px; margin: 8px 0; }
.w10-win .w10-infobar-icon { font-size: 14px; line-height: 1.4; }
.w10-win .w10-infobar-texts { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.w10-win .w10-infobar-title { font-size: 13px; font-weight: 600; }
.w10-win .w10-infobar-msg { font-size: 12px; color: #605e5c; }
.w10-win .w10-infobar-close { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 11px; padding: 2px 6px; }
.w10-win .w10-infobar-close:hover { background: #e1e1e1; }
.w10-win .w10-infobar-success { border-left-color: #107c10; }
.w10-win .w10-infobar-warning { border-left-color: #ca5010; background: #fdf6f0; }
.w10-win .w10-infobar-error { border-left-color: #e81123; background: #fdf0f1; }
.w10-win .w10-avatar2 { border-radius: 999px; background: var(--w10-accent, #0078d7); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; overflow: hidden; flex-shrink: 0; }
.w10-win .w10-avatar2 img { width: 100%; height: 100%; object-fit: cover; }
.w10-win .w10-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; border-radius: 999px; background: var(--w10-accent, #0078d7); color: #fff; }
.w10-win .w10-badge-neutral { background: #605e5c; }
.w10-win .w10-badge-alert { background: #e81123; }
.w10-win .w10-searchbox { display: flex; align-items: center; gap: 6px; border: 1px solid #767676; background: #fff; height: 30px; padding: 0 4px 0 8px; box-sizing: border-box; }
.w10-win .w10-searchbox:focus-within { border: 2px solid var(--w10-accent, #0078d7); padding: 0 3px 0 7px; }
.w10-win .w10-searchbox-icon { display: inline-flex; color: #605e5c; }
.w10-win .w10-searchbox-icon svg { display: block; }
.w10-win .w10-searchbox-input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 12px; background: transparent; color: inherit; min-width: 0; }
.w10-win .w10-searchbox-clear { border: none; background: transparent; cursor: pointer; color: inherit; padding: 2px 6px; }
.w10-win .w10-searchbox-clear:hover { background: #e5e5e5; }
.w10-win .w10-number { display: flex; align-items: stretch; max-width: 220px; }
.w10-win .w10-number-input { text-align: right; }
.w10-win .w10-number-btn { width: 32px; border: 1px solid #767676; background: #f3f3f3; cursor: pointer; font-size: 14px; }
.w10-win .w10-number-btn:hover { background: #e5e5e5; }
.w10-win .w10-passwrap { display: flex; gap: 0; }
.w10-win .w10-passwrap .w10-textbox { flex: 1; }
.w10-win .w10-passbtn { width: 34px; border: 1px solid #767676; border-left: none; background: #f3f3f3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #605e5c; }
.w10-win .w10-passbtn:hover { background: #e5e5e5; }
.w10-win .w10-tile { --w10-tile: var(--w10-accent, #0078d7); position: relative; border: 1px solid transparent; background: var(--w10-tile); color: #fff; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: inherit; padding: 0 0 18px; box-sizing: border-box; }
.w10-win .w10-tile:hover { filter: brightness(1.12); outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }
.w10-win .w10-tile-small { width: 64px; height: 64px; }
.w10-win .w10-tile-medium { width: 104px; height: 104px; }
.w10-win .w10-tile-wide { width: 216px; height: 104px; }
.w10-win .w10-tile-large { width: 216px; height: 216px; }
.w10-win .w10-tile-icon { line-height: 0; }
.w10-win .w10-tile-icon svg { width: 30px; height: 30px; }
.w10-win .w10-tile-label { position: absolute; left: 8px; bottom: 6px; right: 8px; font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w10-win .w10-tile.w10-selected { outline: 2px solid #fff; outline-offset: -4px; }
.w10-win .w10-commandbar { display: flex; gap: 2px; border-bottom: 1px solid #e1e1e1; padding-bottom: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.w10-win .w10-command { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; color: inherit; font-family: inherit; font-size: 12px; padding: 6px 10px; cursor: pointer; }
.w10-win .w10-command:hover:not(:disabled) { background: #e5f1fb; border-color: #cce8ff; }
.w10-win .w10-command:disabled { opacity: .45; cursor: default; }
.w10-win .w10-command-icon { display: inline-flex; color: var(--w10-accent, #0078d7); }
.w10-win .w10-command-icon svg { display: block; }
.w10-win .w10-tree-row { display: flex; align-items: center; }
.w10-win .w10-tree-toggle { width: 24px; height: 24px; border: none; background: transparent; color: #605e5c; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.w10-win .w10-tree-toggle svg { width: 14px; height: 14px; }
.w10-win .w10-tree-spacer { visibility: hidden; }
.w10-win .w10-tree-label { flex: 1; display: flex; align-items: center; gap: 8px; border: none; background: transparent; color: inherit; font-family: inherit; font-size: 12px; text-align: left; padding: 6px 8px; cursor: pointer; margin-left: calc(var(--w10-depth, 0) * 16px); }
.w10-win .w10-tree-label:hover { background: #f3f3f3; }
.w10-win .w10-tree-label.w10-selected { background: #e5f1fb; box-shadow: inset 2px 0 0 var(--w10-accent, #0078d7); }
.w10-win .w10-tree-icon { display: inline-flex; color: var(--w10-accent, #0078d7); }
.w10-win .w10-tree-kids { display: flex; flex-direction: column; }
.w10-win .w10-tablewrap { overflow-x: auto; margin: 8px 0; border: 1px solid #e1e1e1; }
.w10-win .w10-table { display: flex; flex-direction: column; min-width: 100%; }
.w10-win .w10-trow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(90px, 1fr); border: none; background: transparent; color: inherit; font-family: inherit; font-size: 12px; text-align: left; padding: 0; }
.w10-win button.w10-trow { cursor: pointer; }
.w10-win button.w10-trow:hover { background: #f3f3f3; }
.w10-win .w10-trow.w10-selected { background: #e5f1fb; box-shadow: inset 2px 0 0 var(--w10-accent, #0078d7); }
.w10-win .w10-tcell { padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #f0f0f0; }
.w10-win .w10-thead { background: #f9f9f9; }
.w10-win .w10-thead-cell { font-weight: 600; color: #605e5c; }
.w10-win .w10-rating { display: flex; gap: 2px; }
.w10-win .w10-star { border: none; background: transparent; color: #767676; font-size: 20px; cursor: pointer; padding: 0 2px; }
.w10-win .w10-star.w10-on { color: var(--w10-accent, #0078d7); }
.w10-win .w10-star:disabled { cursor: default; }
.w10-win .w10-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.w10-win .w10-crumb-sep { color: #767676; }
.w10-win .w10-crumb-link { border: none; background: transparent; color: var(--w10-accent, #0078d7); font-family: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.w10-win .w10-crumb-link:hover { text-decoration: underline; }
.w10-win .w10-crumb-current { color: #605e5c; font-size: 12px; }
.w10-flyout { position: fixed; z-index: 99997; min-width: 220px; max-width: 320px; background: #fff; color: #000; border: 1px solid #767676; box-shadow: 0 4px 16px rgba(0,0,0,.4); padding: 10px 12px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 12px; }
.w10-flyout.w10-dark { background: #2b2b2b; color: #fff; border-color: #444; }
.w10-win .w10-segmented { display: inline-flex; border: 1px solid #767676; }
.w10-win .w10-seg { border: none; border-right: 1px solid #767676; background: transparent; color: inherit; font-family: inherit; font-size: 12px; padding: 7px 14px; cursor: pointer; }
.w10-win .w10-seg:last-child { border-right: none; }
.w10-win .w10-seg:hover { background: #f3f3f3; }
.w10-win .w10-seg.w10-on { background: var(--w10-accent, #0078d7); color: #fff; }
.w10-win .w10-colorgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.w10-win .w10-swatch { width: 32px; height: 32px; border: 1px solid #767676; cursor: pointer; padding: 0; }
.w10-win .w10-swatch.w10-on { outline: 2px solid var(--w10-accent, #0078d7); outline-offset: 2px; }
.w10-win .w10-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px 16px; }
.w10-win .w10-empty-icon { color: var(--w10-accent, #0078d7); }
.w10-win .w10-empty-icon svg { width: 40px; height: 40px; }
.w10-win .w10-empty-title { font-size: 14px; font-weight: 600; }
.w10-win .w10-spinner-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.w10-win .w10-spinner { border: 3px solid #e1e1e1; border-top-color: var(--w10-accent, #0078d7); border-radius: 999px; animation: w10-spin 0.9s linear infinite; }
@keyframes w10-spin { to { transform: rotate(360deg); } }
.w10-win .w10-link { border: none; background: transparent; color: var(--w10-accent, #0078d7); font-family: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.w10-win .w10-link:hover { text-decoration: underline; }
.w10-win .w10-icon { display: inline-flex; align-items: center; justify-content: center; }
.w10-win .w10-icon svg { display: block; }
.w10-tip { position: relative; }
.w10-tip:hover::after { content: attr(data-w10-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: #202020; color: #fff; font-size: 11px; font-family: "Segoe UI", system-ui, sans-serif; padding: 4px 8px; white-space: nowrap; z-index: 99999; pointer-events: none; border: 1px solid #444; }

/* Dark theme for batch 2 */
.w10-win.w10-dark .w10-expander { border-color: #333; }
.w10-win.w10-dark .w10-expander-head:hover { background: #2d2d2d; }
.w10-win.w10-dark .w10-expander-body { border-top-color: #333; }
.w10-win.w10-dark .w10-pivot-tab { color: #a19f9d; }
.w10-win.w10-dark .w10-pivot-tab:hover, .w10-win.w10-dark .w10-pivot-tab.w10-active { color: #fff; }
.w10-win.w10-dark .w10-infobar { background: #2d2d2d; }
.w10-win.w10-dark .w10-infobar-msg { color: #a19f9d; }
.w10-win.w10-dark .w10-infobar-warning { background: #33261a; }
.w10-win.w10-dark .w10-infobar-error { background: #3a1f22; }
.w10-win.w10-dark .w10-infobar-close:hover { background: #3a3a3a; }
.w10-win.w10-dark .w10-searchbox { background: #2b2b2b; border-color: #8a8a8a; }
.w10-win.w10-dark .w10-searchbox-clear:hover { background: #3a3a3a; }
.w10-win.w10-dark .w10-number-btn, .w10-win.w10-dark .w10-passbtn { background: #333; border-color: #8a8a8a; color: #fff; }
.w10-win.w10-dark .w10-commandbar { border-bottom-color: #333; }
.w10-win.w10-dark .w10-command:hover:not(:disabled) { background: #3a3a3a; border-color: #555; }
.w10-win.w10-dark .w10-tree-label:hover { background: #2d2d2d; }
.w10-win.w10-dark .w10-tree-label.w10-selected { background: rgba(0,120,215,.25); }
.w10-win.w10-dark button.w10-trow:hover { background: #2d2d2d; }
.w10-win.w10-dark .w10-trow.w10-selected { background: rgba(0,120,215,.25); }
.w10-win.w10-dark .w10-tcell { border-bottom-color: #333; }
.w10-win.w10-dark .w10-thead { background: #191919; }
.w10-win.w10-dark .w10-seg:hover { background: #2d2d2d; }
.w10-win.w10-dark .w10-crumb-current { color: #a19f9d; }
.w10-win.w10-dark .w10-spinner { border-color: #444; border-top-color: var(--w10-accent, #0078d7); }

/* ================= Wallpaper =================
   Fixed layer behind windows/icons/taskbar, pointer-transparent. */
.w10-wallpaper {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: #06121f;
	background-position: center;
	background-repeat: no-repeat;
}

/* ================= Desktop icons =================
   Shortcut grid above the wallpaper, below windows. The layer itself is
   pointer-transparent so window dragging and context menus keep working
   around the icons. */
.w10-dicons {
	position: fixed;
	top: 12px;
	left: 12px;
	bottom: 52px;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 4px;
	pointer-events: none;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.w10-dicon {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 88px;
	padding: 8px 4px 6px;
	background: transparent;
	border: 1px solid transparent;
	color: #fff;
	font-family: inherit;
	cursor: pointer;
}

.w10-dicon:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
}

.w10-dicon:focus-visible {
	outline: 1px dotted #fff;
	outline-offset: -1px;
}

.w10-dicon.w10-selected {
	background: rgba(0, 120, 215, 0.45);
	border-color: rgba(255, 255, 255, 0.6);
	outline: 1px dotted rgba(255, 255, 255, 0.8);
}

.w10-dicon-glyph {
	display: inline-flex;
	line-height: 0;
	color: #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.w10-dicon-glyph svg {
	width: 32px;
	height: 32px;
	display: block;
}

.w10-dicon-label {
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ================= Notepad =================
   Full-bleed editor: add `w10-body-flush` to the window body, then mount
   a `.w10-notepad` root inside. */
.w10-win .w10-body-flush {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.w10-win .w10-notepad {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.w10-win .w10-notepad-bar {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	padding: 8px 12px;
	border-bottom: 1px solid #e1e1e1;
	flex-shrink: 0;
}

.w10-win .w10-notepad-area {
	flex: 1;
	min-height: 200px;
	border: none;
	outline: none;
	resize: none;
	font-family: Consolas, "Courier New", monospace;
	font-size: 13px;
	line-height: 1.5;
	padding: 10px 12px;
	background: #fff;
	color: #000;
}

.w10-win .w10-notepad-status {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	padding: 4px 12px;
	border-top: 1px solid #e1e1e1;
	font-size: 11px;
	color: #605e5c;
	flex-shrink: 0;
	user-select: none;
	-webkit-user-select: none;
}

.w10-win.w10-dark .w10-notepad-bar { border-bottom-color: #2c2c2c; }
.w10-win.w10-dark .w10-notepad-area { background: #1b1b1b; color: #fff; }
.w10-win.w10-dark .w10-notepad-status { border-top-color: #2c2c2c; color: #a19f9d; }

/* ================= Paint =================
   Classic MS Paint workbench: tabbed ribbon, canvas stage, status bar.
   Mount a `.w10-paint` root inside a `w10-body-flush` window body. */
.w10-win .w10-paint {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	min-width: 0;
}

.w10-win .w10-paint-tabs {
	display: flex;
	gap: 2px;
	align-items: flex-end;
	background: #f5f5f5;
	border-bottom: 1px solid #d4d4d4;
	padding: 4px 8px 0;
	flex-shrink: 0;
	user-select: none;
	-webkit-user-select: none;
}

.w10-win .w10-ptab {
	border: 1px solid transparent;
	border-bottom: none;
	background: transparent;
	color: #000;
	font-family: inherit;
	font-size: 12px;
	padding: 4px 16px;
	cursor: pointer;
	flex-shrink: 0;
}

.w10-win .w10-ptab:hover { background: #e5f1fb; }
.w10-win .w10-ptab.w10-on {
	background: #fff;
	border-color: #d4d4d4;
	color: var(--w10-accent, #0078d7);
	font-weight: 600;
}
.w10-win .w10-ptab-file.w10-on { color: #000; }

.w10-win .w10-paint-ribbon {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: #fff;
	border-bottom: 1px solid #d4d4d4;
	padding: 6px 4px;
	overflow-x: auto;
	overflow-y: hidden;
	flex-shrink: 0;
	min-height: 86px;
	scrollbar-width: thin;
}

.w10-win .w10-pgroup {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	padding: 0 10px;
	border-right: 1px solid #e1e1e1;
}
.w10-win .w10-pgroup:first-child { padding-left: 6px; }
.w10-win .w10-pgroup:last-child { border-right: none; }
.w10-win .w10-pgroup-body {
	display: flex;
	gap: 3px;
	align-items: flex-start;
	flex: 1;
}
.w10-win .w10-pgroup-label {
	font-size: 11px;
	color: #605e5c;
	text-align: center;
	margin-top: 5px;
	white-space: nowrap;
}
.w10-win .w10-pgroup-col { display: flex; flex-direction: column; gap: 2px; }

.w10-win .w10-ptool {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	gap: 2px;
	min-width: 46px;
	max-width: 64px;
	padding: 4px 5px;
	background: transparent;
	border: 1px solid transparent;
	color: inherit;
	font-family: inherit;
	font-size: 10px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}
.w10-win .w10-ptool:hover { background: #e5f1fb; border-color: #cce8ff; }
.w10-win .w10-ptool.w10-on { background: #cce8ff; border-color: #99d1ff; }
.w10-win .w10-ptool:disabled { opacity: 0.4; cursor: default; }
.w10-win .w10-ptool:hover:disabled { background: transparent; border-color: transparent; }
.w10-win .w10-ptool svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.w10-win .w10-ptool-glyph { font-size: 16px; line-height: 20px; font-weight: 700; }

.w10-win .w10-ppalette {
	display: grid;
	grid-template-columns: repeat(10, 19px);
	gap: 2px;
	align-content: start;
}
.w10-win .w10-pswatch {
	width: 19px;
	height: 19px;
	padding: 0;
	border: 1px solid #767676;
	cursor: pointer;
}
.w10-win .w10-pswatch:hover { outline: 2px solid var(--w10-accent, #0078d7); outline-offset: -1px; }
.w10-win .w10-pwells { display: flex; gap: 6px; align-items: center; }
.w10-win .w10-pwell-stack { position: relative; width: 48px; height: 40px; flex-shrink: 0; }
.w10-win .w10-pwell {
	position: absolute;
	width: 30px;
	height: 30px;
	border: 1px solid #555;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}
.w10-win .w10-pwell-1 { left: 0; top: 0; z-index: 1; }
.w10-win .w10-pwell-2 { right: 0; bottom: 0; }

.w10-win .w10-paint-stage {
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: #e8e8e8;
	padding: 16px;
}
.w10-win .w10-pcanvas {
	position: relative;
	width: max-content;
	background: #fff;
	box-shadow: 0 0 0 1px #999, 0 2px 8px rgba(0, 0, 0, 0.25);
	cursor: crosshair;
	touch-action: none;
}
.w10-win .w10-pcanvas canvas { display: block; }
.w10-win .w10-pcanvas-ov { position: absolute; inset: 0; }
.w10-win .w10-presize {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 11px;
	height: 11px;
	background: #fff;
	border: 1px solid #555;
	cursor: nwse-resize;
	touch-action: none;
}
.w10-win .w10-ptext {
	position: absolute;
	border: 1px dashed #333;
	outline: none;
	resize: none;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.9);
	color: #000;
	padding: 0;
}
.w10-win .w10-paint-status {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 3px 12px;
	border-top: 1px solid #d4d4d4;
	background: #f5f5f5;
	font-size: 11px;
	color: #333;
	flex-shrink: 0;
	user-select: none;
	-webkit-user-select: none;
	overflow: hidden;
	white-space: nowrap;
}
.w10-win .w10-paint-status .w10-push { margin-left: auto; }

/* Quick-access undo/redo in the tab bar. */
.w10-win .w10-pqat {
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	padding: 3px 8px;
	cursor: pointer;
	flex-shrink: 0;
	align-self: center;
}
.w10-win .w10-pqat:hover:not(:disabled) { background: #e5f1fb; border-color: #cce8ff; }
.w10-win .w10-pqat:disabled { opacity: 0.35; cursor: default; }

.w10-win.w10-dark .w10-paint-tabs { background: #191919; border-bottom-color: #333; }
.w10-win.w10-dark .w10-ptab { color: #fff; }
.w10-win.w10-dark .w10-ptab:hover { background: #2d2d2d; }
.w10-win.w10-dark .w10-ptab.w10-on { background: #202020; border-color: #333; }
.w10-win.w10-dark .w10-paint-ribbon { background: #202020; border-bottom-color: #333; }
.w10-win.w10-dark .w10-pgroup { border-right-color: #333; }
.w10-win.w10-dark .w10-pgroup-label { color: #a19f9d; }
.w10-win.w10-dark .w10-ptool:hover { background: #2d2d2d; border-color: #555; }
.w10-win.w10-dark .w10-ptool.w10-on { background: rgba(0, 120, 215, 0.35); border-color: var(--w10-accent, #0078d7); }
.w10-win.w10-dark .w10-paint-status { background: #191919; border-top-color: #333; color: #ccc; }

/* ================= Chat =================
   Simple chat workbench: status pill, message list, composer row.
   Mount a `.w10-chat` root inside a `w10-body-flush` window body. */
.w10-win .w10-chat {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	min-width: 0;
}

.w10-win .w10-chat-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-bottom: 1px solid #e1e1e1;
	font-size: 12px;
	flex-shrink: 0;
	flex-wrap: wrap;
}

.w10-win .w10-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #767676;
	flex-shrink: 0;
}
.w10-win .w10-dot.w10-on { background: #107c10; }
.w10-win .w10-dot.w10-busy { background: var(--w10-accent, #0078d7); }

.w10-win .w10-chat-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	overflow-y: auto;
}

.w10-win .w10-chat-log {
	flex: 1;
	min-height: 120px;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #f9f9f9;
}

.w10-win .w10-chat-empty {
	margin: auto;
	font-size: 12px;
	color: #605e5c;
	text-align: center;
}

.w10-win .w10-chat-row {
	display: flex;
	flex-direction: column;
	gap: 1px;
	max-width: 85%;
}

.w10-win .w10-chat-row.w10-mine { align-self: flex-end; align-items: flex-end; }
.w10-win .w10-chat-row:not(.w10-mine) { align-self: flex-start; align-items: flex-start; }

.w10-win .w10-chat-meta {
	font-size: 10px;
	color: #605e5c;
	display: flex;
	gap: 6px;
}

.w10-win .w10-chat-bubble {
	font-size: 12px;
	line-height: 1.45;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #e1e1e1;
	word-break: break-word;
	white-space: pre-wrap;
}

.w10-win .w10-chat-row.w10-mine .w10-chat-bubble {
	background: #e5f1fb;
	border-color: #cce8ff;
}

.w10-win .w10-chat-row.w10-sys { align-self: center; }
.w10-win .w10-chat-row.w10-sys .w10-chat-bubble {
	background: transparent;
	border: none;
	color: #605e5c;
	font-size: 11px;
	font-style: italic;
}

.w10-win .w10-chat-typing {
	font-size: 11px;
	color: #605e5c;
	font-style: italic;
	padding: 2px 12px;
	min-height: 18px;
	flex-shrink: 0;
}

.w10-win .w10-chat-compose {
	display: flex;
	gap: 8px;
	padding: 8px 12px;
	border-top: 1px solid #e1e1e1;
	flex-shrink: 0;
}

.w10-win .w10-chat-compose .w10-textbox { flex: 1; min-width: 0; }

.w10-win.w10-dark .w10-chat-status { border-bottom-color: #2c2c2c; }
.w10-win.w10-dark .w10-chat-log { background: #191919; }
.w10-win.w10-dark .w10-chat-empty { color: #a19f9d; }
.w10-win.w10-dark .w10-chat-meta { color: #a19f9d; }
.w10-win.w10-dark .w10-chat-bubble { background: #2d2d2d; border-color: #444; }
.w10-win.w10-dark .w10-chat-row.w10-mine .w10-chat-bubble { background: rgba(0, 120, 215, 0.3); border-color: var(--w10-accent, #0078d7); }
.w10-win.w10-dark .w10-chat-row.w10-sys .w10-chat-bubble { background: transparent; border: none; color: #a19f9d; }
.w10-win.w10-dark .w10-chat-compose { border-top-color: #2c2c2c; }

/* ================= Marquee (rubber-band) selection =================
   The little blue rectangle drawn on empty-desktop drag. Above the
   desktop icons (9000), below windows (10000), never interactive. */
.w10-marquee {
	position: fixed;
	z-index: 9001;
	pointer-events: none;
	border: 1px solid var(--w10-accent, #0078d7);
	background: rgba(0, 120, 215, 0.18);
	background: color-mix(in srgb, var(--w10-accent, #0078d7) 16%, transparent);
}

/* No text selection while a marquee drag is in progress. */
body.w10-marquee-on,
body.w10-marquee-on * {
	user-select: none !important;
	-webkit-user-select: none !important;
}

/* ================= Spreadsheet (excel.exe) =================
   Mount a `.w10-sheet` root inside a `w10-body-flush` window body. */
.w10-win .w10-sheet {
	display: flex;
	flex-direction: column;
	height: 100%;
	font-family: "Segoe UI", system-ui, sans-serif;
}

.w10-win .w10-sheet-bar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	border-bottom: 1px solid #e1e1e1;
	flex-shrink: 0;
	flex-wrap: wrap;
}

.w10-win .w10-sheet-tool {
	min-width: 30px;
	padding: 3px 8px;
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
}

.w10-win .w10-sheet-tool:hover {
	background: #e5f1fb;
	border-color: #cce8ff;
}

.w10-win .w10-sheet-tool.w10-on {
	background: #cce4f7;
	border-color: var(--w10-accent, #0078d7);
}

.w10-win .w10-sheet-sep {
	width: 1px;
	height: 20px;
	background: #e1e1e1;
	margin: 0 4px;
	flex-shrink: 0;
}

.w10-win .w10-sheet-formula {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-bottom: 1px solid #e1e1e1;
	flex-shrink: 0;
}

.w10-win .w10-sheet-name {
	width: 64px;
	flex-shrink: 0;
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 1px solid #767676;
	padding: 3px 6px;
}

.w10-win .w10-sheet-fx {
	font-style: italic;
	font-family: Georgia, serif;
	color: #605e5c;
	flex-shrink: 0;
	user-select: none;
	-webkit-user-select: none;
}

.w10-win .w10-sheet-fxinput {
	flex: 1;
	min-width: 0;
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 1px solid #767676;
	padding: 3px 6px;
}

.w10-win .w10-sheet-name:focus,
.w10-win .w10-sheet-fxinput:focus {
	outline: none;
	border: 2px solid var(--w10-accent, #0078d7);
	padding: 2px 5px;
}

.w10-win .w10-sheet-gridwrap {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: #fff;
}

.w10-win .w10-sheet-gridwrap:focus {
	outline: none;
}

.w10-win table.w10-sheet-table {
	border-spacing: 0;
	table-layout: fixed;
	width: max-content;
	font-size: 12px;
}

.w10-win .w10-sheet-corner,
.w10-win .w10-sheet-colhead,
.w10-win .w10-sheet-rowhead {
	background: #f3f3f3;
	color: #444;
	font-size: 11px;
	font-weight: 400;
	text-align: center;
	border-right: 1px solid #c8c8c8;
	border-bottom: 1px solid #c8c8c8;
	padding: 3px 0;
	user-select: none;
	-webkit-user-select: none;
}

.w10-win .w10-sheet-corner {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 4;
	min-width: 44px;
}

.w10-win .w10-sheet-colhead {
	position: sticky;
	top: 0;
	z-index: 3;
	overflow: visible;
}

.w10-win .w10-sheet-rowhead {
	position: sticky;
	left: 0;
	z-index: 2;
}

.w10-win .w10-sheet-colhead,
.w10-win .w10-sheet-rowhead {
	cursor: default;
}

.w10-win th.w10-sheet-hl {
	background: #d6e9f8;
	color: #000;
	font-weight: 600;
}

.w10-win .w10-sheet-resize {
	position: absolute;
	top: 0;
	right: -3px;
	width: 6px;
	height: 100%;
	cursor: col-resize;
	z-index: 5;
}

.w10-win .w10-sheet-cell {
	border-right: 1px solid #d4d4d4;
	border-bottom: 1px solid #d4d4d4;
	padding: 0 6px;
	height: 24px;
	line-height: 23px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #000;
	background: #fff;
	cursor: cell;
}

.w10-win .w10-sheet-cellnum {
	text-align: right;
}

.w10-win .w10-sheet-range {
	background: rgba(0, 120, 215, 0.12);
	background: color-mix(in srgb, var(--w10-accent, #0078d7) 12%, transparent);
}

.w10-win .w10-sheet-active {
	outline: 2px solid var(--w10-accent, #0078d7);
	outline-offset: -2px;
}

.w10-win .w10-sheet-bold {
	font-weight: 700;
}

.w10-win .w10-sheet-italic {
	font-style: italic;
}

.w10-win .w10-sheet-edit {
	position: absolute;
	z-index: 6;
	font-family: inherit;
	font-size: 12px;
	color: #000;
	background: #fff;
	border: 2px solid var(--w10-accent, #0078d7);
	padding: 0 4px;
	margin: 0;
	outline: none;
	box-sizing: border-box;
}

.w10-win .w10-sheet-status {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 10px;
	border-top: 1px solid #e1e1e1;
	font-size: 11px;
	color: #605e5c;
	flex-shrink: 0;
	white-space: nowrap;
	overflow: hidden;
}

.w10-win.w10-dark .w10-sheet-bar,
.w10-win.w10-dark .w10-sheet-formula {
	border-bottom-color: #2c2c2c;
}

.w10-win.w10-dark .w10-sheet-tool {
	color: #fff;
}

.w10-win.w10-dark .w10-sheet-tool:hover {
	background: #3a3a3a;
	border-color: #555;
}

.w10-win.w10-dark .w10-sheet-sep {
	background: #333;
}

.w10-win.w10-dark .w10-sheet-name,
.w10-win.w10-dark .w10-sheet-fxinput,
.w10-win.w10-dark .w10-sheet-edit {
	color: #fff;
	background: #2b2b2b;
	border-color: #8a8a8a;
}

.w10-win.w10-dark .w10-sheet-fx {
	color: #a19f9d;
}

.w10-win.w10-dark .w10-sheet-gridwrap {
	background: #1b1b1b;
}

.w10-win.w10-dark .w10-sheet-corner,
.w10-win.w10-dark .w10-sheet-colhead,
.w10-win.w10-dark .w10-sheet-rowhead {
	background: #2d2d2d;
	color: #ccc;
	border-right-color: #444;
	border-bottom-color: #444;
}

.w10-win.w10-dark th.w10-sheet-hl {
	background: #3a3a3a;
	color: #fff;
}

.w10-win.w10-dark .w10-sheet-cell {
	color: #fff;
	background: #1b1b1b;
	border-right-color: #333;
	border-bottom-color: #333;
}

.w10-win.w10-dark .w10-sheet-status {
	border-top-color: #2c2c2c;
	color: #a19f9d;
}
