/* ==========================================================================
   Xennial — base, desktop, windows, chrome
   "Beautifully maintained obsolete software."
   ========================================================================== */

:root {
	--desk-a: #143b3a;
	--desk-b: #1c3347;
	--desk-c: #382f52;
	--face: #d8d3c7;
	--face-hi: #f4f0e6;
	--face-lo: #b6b0a3;
	--face-deep: #918b7e;
	--paper: #f5f1e7;
	--paper-2: #eae5d8;
	--ink: #22201c;
	--ink-soft: #3a3630;
	--muted: #5f5a51;
	--teal: #216f69;
	--teal-deep: #144a47;
	--teal-soft: #dbe8e3;
	--violet: #5f4d80;
	--violet-deep: #3e3159;
	--rust: #a94f2f;
	--rust-soft: #f3dfd3;
	--gold: #bd922c;
	--gold-soft: #f8efd4;
	--green: #2f7d4a;
	--line: #b9b2a3;
	--line-dark: #7c766a;
	--px: "Silkscreen", "Courier New", monospace;
	--sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: "Lora", "Iowan Old Style", Georgia, serif;
	--mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--bevel: inset 1px 1px 0 #fffdf5, inset -1px -1px 0 #9c9587;
	--bevel-in: inset 1px 1px 0 #9c9587, inset -1px -1px 0 #fffdf5;
	--shadow-window: 0 24px 55px rgba(6, 12, 16, 0.45), 0 4px 12px rgba(6, 12, 16, 0.25);
}

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

[hidden] {
	display: none !important;
}

html {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100%;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	background: #112e2d;
}

body.xennial-desktop-page {
	height: 100svh;
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

a {
	color: var(--teal);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--teal-deep);
}

p {
	margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 600;
	line-height: 1.2;
}

::selection {
	background: #c9a227;
	color: #1c1a16;
}

:focus-visible {
	outline: 2px solid #ffd27a;
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 10000;
	padding: 10px 14px;
	background: var(--face-hi);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.pxi {
	display: block;
	width: 100%;
	height: 100%;
}

/* --------------------------------------------------------------------------
   Small shared pieces
   -------------------------------------------------------------------------- */

.eyebrow {
	margin: 0 0 8px;
	color: var(--teal);
	font-family: var(--px);
	font-size: 9px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3fae63;
	box-shadow: 0 0 0 2px rgba(63, 174, 99, 0.18), 0 0 9px rgba(63, 174, 99, 0.8);
	animation: dotPulse 2.8s ease-in-out infinite;
	flex: 0 0 auto;
}

.status-dot--amber {
	background: #e0a13c;
	box-shadow: 0 0 0 2px rgba(224, 161, 60, 0.18), 0 0 9px rgba(224, 161, 60, 0.7);
}

@keyframes dotPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.linkish {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--teal);
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.linkish:hover {
	color: var(--teal-deep);
	text-decoration-thickness: 2px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid var(--line-dark);
	border-radius: 2px;
	background: linear-gradient(180deg, #f6f2e8, #d8d2c5);
	box-shadow: var(--bevel);
	color: #2b2822;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.045em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.btn:hover {
	background: linear-gradient(180deg, #fdfaf3, #e2dccd);
	color: var(--ink);
}

.btn:active {
	box-shadow: var(--bevel-in);
	transform: translateY(1px);
}

.btn--primary {
	border-color: #123c39;
	background: linear-gradient(180deg, #2d847d, #1b5b56);
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.32), inset -1px -1px 0 rgba(0, 0, 0, 0.28), 0 2px 0 #0d2c2a;
	color: #f8f4e9;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.btn--primary:hover {
	background: linear-gradient(180deg, #369890, #206b65);
	color: #fffdf6;
}

.btn--danger {
	border-color: #6d2a16;
	background: linear-gradient(180deg, #bd5b37, #8f3c22);
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.28), inset -1px -1px 0 rgba(0, 0, 0, 0.3), 0 2px 0 #59200f;
	color: #fff7ed;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.btn--danger:hover {
	background: linear-gradient(180deg, #cd6a44, #a0472a);
	color: #fff;
}

.btn--big {
	min-height: 44px;
	padding: 11px 16px;
	font-size: 11.5px;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
}

.text-input,
.text-area {
	width: 100%;
	border: 1px solid var(--line-dark);
	border-radius: 1px;
	background: #fffdf6;
	box-shadow: var(--bevel-in);
	color: var(--ink);
	font-size: 13px;
	line-height: 1.5;
	padding: 9px 10px;
}

.text-input:focus,
.text-area:focus {
	outline: 2px solid #ffd27a;
	outline-offset: 1px;
}

.text-area {
	min-height: 84px;
	resize: vertical;
	font-family: var(--serif);
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   The desktop
   -------------------------------------------------------------------------- */

.desktop {
	position: relative;
	height: 100svh;
	min-height: 480px;
	overflow: hidden;
	padding: 0;
	background:
		radial-gradient(900px 620px at 78% 12%, rgba(120, 91, 158, 0.42), transparent 64%),
		radial-gradient(820px 560px at 12% 88%, rgba(30, 111, 104, 0.38), transparent 62%),
		linear-gradient(168deg, var(--desk-a) 0%, var(--desk-b) 48%, var(--desk-c) 100%);
	isolation: isolate;
}

.desktop::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: radial-gradient(ellipse at 55% 45%, #000 20%, transparent 78%);
	pointer-events: none;
	z-index: 0;
}

.desktop::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, transparent 48%, rgba(4, 12, 16, 0.5) 100%);
	opacity: 0.7;
	pointer-events: none;
	z-index: 1;
}

.desktop__grain {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.desk-stamp {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	color: rgba(240, 238, 226, 0.8);
	text-align: right;
	pointer-events: none;
}

.desk-stamp__logo {
	font-family: var(--px);
	font-size: 14px;
	letter-spacing: 0.01em;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.desk-stamp__line {
	font-family: var(--serif);
	font-size: 12px;
	font-style: italic;
	color: rgba(240, 238, 226, 0.7);
}

.desktop-icons {
	position: absolute;
	top: 22px;
	left: 16px;
	z-index: 3;
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(7, auto);
	gap: 2px;
	margin: 0;
	padding: 0;
}

.desk-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 86px;
	padding: 8px 4px 7px;
	border: 1px dashed transparent;
	border-radius: 2px;
	background: transparent;
	color: #f3f0e6;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.desk-icon:hover,
.desk-icon:focus-visible {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.1);
}

.desk-icon:active {
	background: rgba(255, 255, 255, 0.17);
}

.desk-icon__img {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.desk-icon__label {
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.window-layer {
	position: absolute;
	inset: 0 0 0 0;
	z-index: 5;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Window chrome
   -------------------------------------------------------------------------- */

.window {
	--bar-a: #77659b;
	--bar-b: #4b3e69;
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	display: flex;
	flex-direction: column;
	width: min(720px, calc(100vw - 200px));
	max-height: calc(100svh - 140px);
	border: 1px solid #4c473e;
	border-radius: 3px;
	background: var(--face);
	box-shadow: var(--shadow-window);
	color: var(--ink);
	pointer-events: auto;
	overflow: hidden;
}

.window.is-positioned {
	translate: none;
}

.window.is-active {
	box-shadow: 0 30px 70px rgba(3, 8, 12, 0.55), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
}

.window--violet { --bar-a: #7a679f; --bar-b: #4a3d68; }
.window--teal { --bar-a: #3f7f78; --bar-b: #22534f; }
.window--rust { --bar-a: #b4613c; --bar-b: #7c3c24; }
.window--slate { --bar-a: #767f86; --bar-b: #474f56; }
.window--gold { --bar-a: #a98433; --bar-b: #6f541d; }
.window--blue { --bar-a: #4a6f91; --bar-b: #2c4560; }
.window--wide { width: min(980px, calc(100vw - 170px)); }

.window__bar {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 5px 0 7px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px),
		linear-gradient(180deg, var(--bar-a), var(--bar-b));
	border-bottom: 1px solid rgba(0, 0, 0, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
	cursor: grab;
	user-select: none;
	touch-action: none;
}

.window.is-dragging .window__bar {
	cursor: grabbing;
}

.window__appicon {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}

.window__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: #fbf8ee;
	font-family: var(--px);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.015em;
	line-height: 1;
	text-overflow: ellipsis;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.38);
	white-space: nowrap;
}

.window__buttons {
	display: flex;
	flex: 0 0 auto;
	gap: 3px;
	align-items: center;
}

.winbtn {
	display: grid;
	place-items: center;
	width: 22px;
	height: 20px;
	padding: 0;
	border: 1px solid #5f5a50;
	border-radius: 1px;
	background: linear-gradient(180deg, #f2eee4, #d2ccbf);
	box-shadow: var(--bevel);
	color: #2e2b25;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.winbtn:hover {
	background: linear-gradient(180deg, #fdfaf3, #ddd7ca);
}

.winbtn:active {
	box-shadow: var(--bevel-in);
}

.winbtn--close:hover {
	background: linear-gradient(180deg, #d06a48, #a04024);
	color: #fff8ef;
}

.window__menu {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0;
	height: 24px;
	padding: 0 7px;
	border-bottom: 1px solid #a8a192;
	background: #e6e0d2;
	box-shadow: inset 0 1px 0 #fffdf6;
	color: #454038;
	font-size: 10.5px;
	white-space: nowrap;
	overflow: hidden;
}

.window__menu > span:not(.window__menu-note) {
	padding: 1px 7px;
}

.window__menu > span:not(.window__menu-note):hover {
	background: var(--teal);
	color: #fff;
}

.window__menu-note {
	margin-left: auto;
	overflow: hidden;
	color: #7a7367;
	font-family: var(--serif);
	font-size: 10.5px;
	font-style: italic;
	text-overflow: ellipsis;
}

.window__body {
	flex: 1 1 auto;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 20px 22px 22px;
	background:
		radial-gradient(circle at 12% 8%, rgba(189, 146, 44, 0.07), transparent 38%),
		radial-gradient(rgba(69, 58, 37, 0.05) 1px, transparent 1px) 0 0 / 4px 4px,
		var(--paper);
	scrollbar-color: #a49d8f #e6e0d2;
	scrollbar-width: thin;
}

.window__body--flush {
	padding: 0;
	background: var(--paper);
}

.window__status {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 25px;
	padding: 0 9px;
	border-top: 1px solid #a8a192;
	background: #d5cfc2;
	box-shadow: inset 0 1px 0 #fffdf6;
	color: #5a554b;
	font-size: 10.5px;
	white-space: nowrap;
}

.window__status > span {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Welcome
   -------------------------------------------------------------------------- */

.welcome {
	max-width: 620px;
	margin: 0 auto;
	padding: 2px 0 4px;
}

.welcome__eyebrow {
	margin: 0 0 14px;
	color: #6a6459;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.welcome__title {
	margin: 0 0 4px;
	color: #201d18;
	font-family: var(--px);
	font-size: clamp(36px, 5.2vw, 54px);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 0.95;
	text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.55);
}

.welcome__dot {
	color: var(--teal);
}

.welcome__tag {
	margin: 6px 0 0;
	color: #3c372f;
	font-family: var(--serif);
	font-size: clamp(19px, 2.4vw, 24px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
}

.welcome__lede {
	margin: 12px 0 0;
	color: #5f5a51;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.welcome__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	width: fit-content;
	margin: 18px 0 0;
	padding: 6px 11px;
	border: 1px solid rgba(33, 111, 105, 0.28);
	border-radius: 999px;
	background: #e6eee8;
	color: #30534e;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

.welcome__sep {
	color: #91a49f;
}

.welcome__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 22px;
}

.welcome__buttons .btn {
	flex: 1 1 auto;
}

.notice {
	margin-top: 24px;
	padding: 13px 15px 14px;
	border: 1px solid #c7a54a;
	background:
		repeating-linear-gradient(135deg, rgba(189, 146, 44, 0.07) 0 7px, transparent 7px 14px),
		var(--gold-soft);
	box-shadow: inset 1px 1px 0 #fffdf5, 3px 3px 0 rgba(126, 101, 47, 0.12);
}

.notice__head {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 7px;
	color: #7e5b13;
	font-family: var(--px);
	font-size: 9px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.notice__light {
	width: 7px;
	height: 7px;
	background: #c07a24;
	box-shadow: 0 0 6px rgba(192, 122, 36, 0.8);
	animation: dotPulse 1.6s steps(2, end) infinite;
}

.notice__main {
	margin: 0;
	color: #463413;
	font-family: var(--serif);
	font-size: 17.5px;
	font-weight: 500;
	line-height: 1.45;
}

.notice__fine {
	margin: 4px 0 0;
	color: #76633a;
	font-size: 11.5px;
}

.welcome__foot {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px dashed #b9b2a3;
}

.welcome__fine {
	margin: 0 0 4px;
	color: #7b7468;
	font-family: var(--serif);
	font-size: 11.5px;
	font-style: italic;
}

.welcome__links {
	margin: 0;
	color: #8a8377;
	font-size: 11.5px;
}

.welcome__links .linkish {
	font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Taskbar
   -------------------------------------------------------------------------- */

.taskbar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 50px;
	padding: 5px 7px;
	border-top: 1px solid #fffdf6;
	background: linear-gradient(180deg, #e9e4d7 0%, #d3ccbe 55%, #c3bcad 100%);
	box-shadow: 0 -1px 0 #7c766a, 0 -8px 24px rgba(5, 12, 14, 0.28), inset 0 1px 0 #fffdf6;
}

.start-btn {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	height: 38px;
	padding: 0 13px 0 10px;
	border: 1px solid #4c473e;
	border-radius: 2px;
	background: linear-gradient(180deg, #f6f2e8, #d4cec0);
	box-shadow: var(--bevel), 0 1px 0 rgba(0, 0, 0, 0.2);
	color: #24211c;
	font-family: var(--px);
	font-size: 10.5px;
	line-height: 1;
}

.start-btn:hover {
	background: linear-gradient(180deg, #fdfaf3, #dfd8ca);
}

.start-btn[aria-expanded="true"] {
	box-shadow: var(--bevel-in);
	background: linear-gradient(180deg, #d6d0c2, #e9e4d7);
}

.start-btn__mark {
	color: var(--teal);
	font-size: 15px;
	line-height: 1;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.taskbar__windows {
	display: flex;
	flex: 1 1 auto;
	gap: 5px;
	align-items: center;
	min-width: 0;
	overflow: hidden;
}

.task-btn {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	gap: 6px;
	max-width: 185px;
	min-width: 90px;
	height: 36px;
	padding: 0 9px;
	border: 1px solid #8d8679;
	border-radius: 2px;
	background: linear-gradient(180deg, #eee9de, #d4cec1);
	box-shadow: inset 1px 1px 0 #fffdf6, inset -1px -1px 0 #b0a99b;
	color: #3b372f;
	font-size: 11px;
	font-weight: 500;
	text-align: left;
	overflow: hidden;
}

.task-btn:hover {
	background: linear-gradient(180deg, #f8f5ec, #ddd7ca);
}

.task-btn.is-active {
	background: linear-gradient(180deg, #cfc8ba, #e3ddd0);
	box-shadow: inset 1px 1px 0 #989183, inset -1px -1px 0 #fffdf6;
	font-weight: 600;
}

.task-btn.is-min {
	opacity: 0.7;
	font-style: italic;
}

.task-btn__icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.task-btn__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tray {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	height: 36px;
	padding: 0 2px 0 8px;
	border-left: 1px solid #a9a294;
	box-shadow: -1px 0 0 #fffdf6;
}

.tray__status {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 7px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: none;
	color: #4f4a41;
	font-size: 10.5px;
}

.tray__status:hover {
	border-color: #a9a294;
	background: rgba(255, 255, 255, 0.35);
}

.tray__sound {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 2px;
	background: none;
	color: #4f4a41;
}

.tray__sound:hover {
	border-color: #a9a294;
	background: rgba(255, 255, 255, 0.35);
}

.tray__sound-icon {
	width: 15px;
	height: 15px;
}

.tray__sound[aria-pressed="false"] .tray__sound-icon--on,
.tray__sound[aria-pressed="true"] .tray__sound-icon--off {
	display: none;
}

.tray__clock {
	height: 28px;
	padding: 0 9px;
	border: 1px solid #a9a294;
	border-radius: 2px;
	background: linear-gradient(180deg, #ece7db, #d6d0c2);
	box-shadow: inset 1px 1px 0 #fffdf6, inset -1px -1px 0 #b1aa9c;
	color: #3f3b33;
	font-family: var(--serif);
	font-size: 11px;
	font-style: italic;
	white-space: nowrap;
}

.tray__clock:hover {
	background: linear-gradient(180deg, #f8f5ec, #dfd9cc);
}

.clock-pop {
	position: fixed;
	right: 8px;
	bottom: 58px;
	z-index: 2200;
	width: 238px;
	padding: 13px 15px 12px;
	border: 1px solid #4c473e;
	border-radius: 2px;
	background: var(--paper);
	box-shadow: var(--shadow-window), var(--bevel);
}

.clock-pop__time {
	margin: 0;
	font-family: var(--px);
	font-size: 26px;
	line-height: 1;
	color: var(--teal-deep);
}

.clock-pop__date {
	margin: 6px 0 10px;
	color: var(--muted);
	font-family: var(--serif);
	font-size: 12px;
	font-style: italic;
}

.clock-pop__line {
	margin: 0 0 3px;
	font-weight: 600;
	font-size: 12px;
}

.clock-pop__fine {
	margin: 0;
	color: var(--muted);
	font-size: 10.5px;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Start menu
   -------------------------------------------------------------------------- */

.start-menu {
	position: fixed;
	left: 7px;
	bottom: 56px;
	z-index: 2300;
	width: min(520px, calc(100vw - 14px));
	border: 1px solid #423d35;
	border-radius: 3px;
	background: var(--face);
	box-shadow: var(--shadow-window), var(--bevel);
	overflow: hidden;
}

.start-menu__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px),
		linear-gradient(180deg, #706091, #44385f);
	color: #f7f4e9;
}

.start-menu__logo {
	font-family: var(--px);
	font-size: 15px;
	line-height: 1;
}

.start-menu__logo span {
	color: #e8c84a;
}

.start-menu__user {
	font-family: var(--serif);
	font-size: 10.5px;
	font-style: italic;
	color: rgba(247, 244, 233, 0.7);
}

.start-menu__grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	padding: 8px;
	gap: 8px;
	background:
		radial-gradient(rgba(69, 58, 37, 0.05) 1px, transparent 1px) 0 0 / 4px 4px,
		var(--paper);
}

.start-menu__col {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.start-menu__col--util {
	border-left: 1px solid #c2bbad;
	padding-left: 8px;
}

.start-item {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 7px 8px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: none;
	color: var(--ink);
	text-align: left;
}

.start-item:hover,
.start-item:focus-visible {
	border-color: rgba(33, 111, 105, 0.35);
	background: rgba(33, 111, 105, 0.09);
}

.start-item__icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
}

.start-item strong {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
}

.start-item small {
	display: block;
	color: #7d7568;
	font-size: 10px;
	line-height: 1.3;
}

.start-item--small .start-item__icon {
	width: 20px;
	height: 20px;
}

.start-item--small {
	padding: 6px 8px;
}

.start-item--danger strong {
	color: var(--rust);
}

.start-menu__rule {
	width: 100%;
	margin: 5px 0;
	border: 0;
	border-top: 1px solid #c2bbad;
	border-bottom: 1px solid #fffdf6;
}

.start-menu__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 12px;
	border-top: 1px solid #a8a192;
	background: #d5cfc2;
	box-shadow: inset 0 1px 0 #fffdf6;
	color: #6a6358;
	font-family: var(--serif);
	font-size: 10.5px;
	font-style: italic;
}

.start-menu__version {
	font-family: var(--px);
	font-size: 8px;
	font-style: normal;
	color: #8b8376;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toasts {
	position: fixed;
	right: 14px;
	bottom: 62px;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(350px, calc(100vw - 28px));
	pointer-events: none;
}

.toast {
	border: 1px solid #4c473e;
	border-radius: 2px;
	background: var(--face);
	box-shadow: var(--shadow-window), var(--bevel);
	pointer-events: auto;
	animation: toastIn 0.28s ease-out both;
	overflow: hidden;
}

.toast.is-out {
	animation: toastOut 0.22s ease-in both;
}

@keyframes toastIn {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes toastOut {
	to { opacity: 0; transform: translateY(6px); }
}

.toast__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 26px;
	padding: 0 5px 0 9px;
	background: linear-gradient(180deg, #6d5d8e, #443860);
	color: #f8f5eb;
}

.toast__title {
	flex: 1 1 auto;
	font-family: var(--px);
	font-size: 8px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.toast__close {
	display: grid;
	place-items: center;
	width: 20px;
	height: 18px;
	padding: 0;
	border: 1px solid #5f5a50;
	background: linear-gradient(#f2eee4, #d2ccbf);
	box-shadow: var(--bevel);
	color: #2e2b25;
	font-size: 12px;
	line-height: 1;
}

.toast__body {
	padding: 11px 12px 12px;
	background: var(--paper);
}

.toast__body p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

.toast__action {
	margin-top: 9px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--teal);
	font-size: 11px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */

.modal-layer,
.restore-layer {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(6, 18, 18, 0.58);
	backdrop-filter: blur(2px);
}

.dialog {
	position: relative;
	top: auto;
	left: auto;
	translate: none;
	width: min(460px, calc(100vw - 28px));
	max-height: calc(100svh - 40px);
}

.dialog .window__body {
	padding: 18px 20px 20px;
}

.dialog__text {
	font-size: 13.5px;
	line-height: 1.6;
}

.dialog__text p:last-child {
	margin-bottom: 0;
}

.dialog__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px dashed #b9b2a3;
}

.dialog__fine {
	margin: 10px 0 0;
	color: #7b7468;
	font-family: var(--serif);
	font-size: 11px;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Boot sequence
   -------------------------------------------------------------------------- */

.boot {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, #173d3c 0%, #0a1f20 70%);
	color: #e9e4d5;
	transition: opacity 0.4s ease;
}

.boot.is-done {
	opacity: 0;
	pointer-events: none;
}

.boot__inner {
	width: min(440px, calc(100vw - 48px));
	text-align: center;
}

.boot__logo {
	margin-bottom: 14px;
	color: #f2eddd;
	font-family: var(--px);
	font-size: clamp(30px, 6vw, 46px);
	line-height: 1;
	letter-spacing: -0.01em;
	text-shadow: 0 0 22px rgba(70, 160, 150, 0.35), 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.boot__logo span {
	color: #e8c84a;
}

.boot__status {
	margin: 0 0 16px;
	color: #bfd6d0;
	font-family: var(--serif);
	font-size: 13px;
	font-style: italic;
}

.boot__track {
	height: 16px;
	border: 1px solid #57736f;
	background: rgba(0, 0, 0, 0.35);
	box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.55), inset -1px -1px 0 rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.boot__bar {
	display: block;
	width: 0;
	height: 100%;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 9px),
		linear-gradient(180deg, #4a9a92, #266a64);
	transition: width 0.4s linear;
}

.boot__hint {
	margin: 14px 0 0;
	color: #7f9995;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Restore session
   -------------------------------------------------------------------------- */

.restore-layer {
	z-index: 4100;
}

.restore {
	width: min(520px, calc(100vw - 28px));
	max-height: calc(100svh - 36px);
	overflow: auto;
	border: 1px solid #423d35;
	border-radius: 3px;
	background: var(--face);
	box-shadow: var(--shadow-window), var(--bevel);
}

.restore__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 32px;
	padding: 0 5px 0 10px;
	background: linear-gradient(180deg, #706091, #44385f);
	color: #f7f4e9;
	font-family: var(--px);
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.restore__bar span {
	flex: 1 1 auto;
}

.restore__body {
	padding: 20px 22px 20px;
	background:
		radial-gradient(rgba(69, 58, 37, 0.05) 1px, transparent 1px) 0 0 / 4px 4px,
		var(--paper);
}

.restore h2 {
	margin: 0 0 12px;
	font-family: var(--px);
	font-size: 18px;
	line-height: 1.35;
}

.restore__sub {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.restore__tabs {
	margin: 0 0 14px;
	padding: 9px 12px;
	list-style: none;
	border: 1px solid var(--line);
	background: #fffdf6;
	box-shadow: var(--bevel-in);
	font-family: var(--serif);
	font-size: 14px;
	line-height: 1.75;
}

.restore__tabs span {
	color: var(--teal);
	font-size: 10px;
	margin-right: 4px;
}

.restore__fine {
	margin: 0;
	color: #7b7468;
	font-family: var(--serif);
	font-size: 11px;
	font-style: italic;
	line-height: 1.5;
}

.restore__action {
	margin: 16px 0;
	padding: 14px 16px;
	border-left: 3px solid var(--teal);
	background: #e8efe9;
	color: #2c4a45;
	font-family: var(--serif);
	font-size: 18px;
	font-style: italic;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Cookie notice
   -------------------------------------------------------------------------- */

.cookie {
	position: fixed;
	left: 14px;
	bottom: 62px;
	z-index: 1800;
	width: min(370px, calc(100vw - 28px));
	border: 1px solid #4c473e;
	border-radius: 2px;
	background: var(--face);
	box-shadow: var(--shadow-window), var(--bevel);
	animation: toastIn 0.3s ease-out both;
}

.cookie__bar {
	display: flex;
	align-items: center;
	height: 26px;
	padding: 0 4px 0 9px;
	background: linear-gradient(180deg, #a98433, #6f541d);
	color: #fbf6e6;
	font-family: var(--px);
	font-size: 8px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.cookie__bar span {
	flex: 1 1 auto;
}

.cookie__close {
	display: grid;
	place-items: center;
	width: 20px;
	height: 18px;
	padding: 0;
	border: 1px solid #5f5a50;
	background: linear-gradient(#f2eee4, #d2ccbf);
	box-shadow: var(--bevel);
	color: #2e2b25;
	font-size: 12px;
	line-height: 1;
}

.cookie__body {
	padding: 12px 13px 13px;
	background: var(--paper);
}

.cookie__line {
	margin: 0 0 4px;
	font-family: var(--serif);
	font-size: 16px;
	font-style: italic;
	line-height: 1.4;
}

.cookie__fine {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.5;
}

.cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.cookie__actions .btn {
	min-height: 31px;
	padding: 6px 10px;
	font-size: 9.5px;
}

/* --------------------------------------------------------------------------
   Log off / screensaver / noscript
   -------------------------------------------------------------------------- */

.logoff {
	position: fixed;
	inset: 0;
	z-index: 8000;
	display: grid;
	place-items: center;
	padding: 24px;
	background:
		radial-gradient(ellipse at center, #143a39 0%, #061414 75%);
	color: #e9e4d5;
	text-align: center;
}

.logoff__inner {
	max-width: 520px;
}

.logoff__small {
	margin: 0 0 14px;
	color: #8faaa5;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.logoff h2 {
	margin: 0 0 12px;
	font-family: var(--px);
	font-size: clamp(19px, 3.6vw, 30px);
	line-height: 1.4;
}

.logoff p {
	color: #a9bfba;
	font-family: var(--serif);
	font-size: 14px;
	line-height: 1.65;
}

.logoff .btn {
	margin-top: 14px;
}

.screensaver {
	position: fixed;
	inset: 0;
	z-index: 7000;
	overflow: hidden;
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, #123432 0%, #050e10 80%);
	color: #d9efe9;
	cursor: none;
}

.screensaver__stage {
	position: absolute;
	inset: 0;
}

.screensaver__word {
	position: absolute;
	top: 30%;
	left: 20%;
	display: inline-block;
	font-family: var(--px);
	font-size: clamp(34px, 7vw, 72px);
	line-height: 1;
	color: #dff0e9;
	text-shadow: 0 0 30px rgba(90, 200, 185, 0.4), 3px 3px 0 rgba(0, 0, 0, 0.4);
	will-change: transform;
}

.screensaver__line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22%;
	margin: 0;
	text-align: center;
	color: #8fb3ad;
	font-family: var(--serif);
	font-size: 14px;
	font-style: italic;
}

.screensaver__hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10%;
	margin: 0;
	text-align: center;
	color: #5f807b;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.noscript {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 9500;
	padding: 12px 16px;
	border: 1px solid #c7a54a;
	background: var(--gold-soft);
	box-shadow: var(--shadow-window);
	font-size: 13px;
}

.noscript p {
	margin: 0;
}
