/* Today: new tab dashboard.
	Styled after Phill's ImageGen pen: dark surfaces, blue accent,
	Barlow for reading, Barlow Condensed for headings, labels and buttons.
	Panels are frosted glass over a hex-grid backdrop lit by soft glows. */

:root {
	--bg: #0A0B0D;
	--surface: #1B1B1B;
	--surface-2: #222222;
	--surface-3: #2A2A2A;
	--glass: rgba(18, 19, 22, 0.42);
	--glass-strong: rgba(16, 17, 20, 0.82);
	--tile: rgba(255, 255, 255, 0.045);
	--tile-hover: rgba(255, 255, 255, 0.07);
	--line: rgba(255, 255, 255, 0.08);
	--line-2: rgba(255, 255, 255, 0.13);
	--text: #EDEDED;
	--muted: #898989;
	--accent: #4DA3FF;
	--accent-hover: #74B8FF;
	--amber: #FFBB27;
	--red: #FF6666;
	--green: #40FD27;
	--radius: 12px;
	--gap: 14px;

	/* 1% of the window; js/fit.js replaces these with scaled values */
	--vw: 1vw;
	--vh: 1vh;

	--f-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
	--f-cond: 'Barlow Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
	color-scheme: dark;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.18);
	border: 3px solid transparent;
	border-radius: 999px;
	background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

html {
	background: var(--bg);
}

body {
	background: transparent;
}

html, body {
	color: var(--text);
	font-family: var(--f-body);
	font-size: 13px;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

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

:is(input, button, a):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.ico {
	width: 1em;
	height: 1em;
	fill: currentColor;
	overflow: visible;
	flex: none;
}

/* ---------- backdrop ---------- */

/* Soft blue light behind the panels, a fine hex grid, and a little grain */
.bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 50% 55% at 100% 100%, rgba(30, 140, 255, 0.24), transparent 65%),
		radial-gradient(ellipse 38% 42% at 56% 46%, rgba(50, 130, 255, 0.07), transparent 70%),
		radial-gradient(ellipse 30% 35% at 30% 95%, rgba(0, 210, 190, 0.08), transparent 70%),
		linear-gradient(180deg, #0C0D10, #08090B);
}

.bg::before,
.bg::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bg::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48.5' viewBox='0 0 28 48.5'%3E%3Cpath d='M14 8.08 28 16.17V32.33L14 40.42 0 32.33V16.17ZM14 0V8.08M14 40.42V48.5' fill='none' stroke='%23fff' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 28px 48.5px;
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 35% 25%, #000 10%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
	mask-image: radial-gradient(ellipse 85% 75% at 35% 25%, #000 10%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
}

.bg::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 180px 180px;
	opacity: 0.05;
}

/* ---------- layout ---------- */

/* Everything always fits the window: Gaming news, News, Fallout 4 mods and
	Releases side by side, notes and the calendar stacked on the right, half each.
	Each column scrolls on its own; the page itself never scrolls.
	js/fit.js scales the whole page down on smaller screens, and sets --vw and
	--vh (1% of the window) in the page's scaled units. */
.app {
	display: grid;
	gap: var(--gap);
	padding: 18px 22px 22px;
	grid-template-columns: repeat(4, minmax(0, 1fr)) clamp(400px, calc(var(--vw) * 28), 640px);
	grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"head head head head head"
		"feeds news mods rel notes"
		"feeds news mods rel cal";
	height: calc(var(--vh) * 100);
}

@media (min-width: 1000px) {
	html,
	body {
		overflow: hidden;
	}
}

.top { grid-area: head; }
.panel-feeds { grid-area: feeds; }
.panel-news { grid-area: news; }
.panel-rel { grid-area: rel; }
.panel-mods { grid-area: mods; }
.panel-notes { grid-area: notes; }
.panel-cal { grid-area: cal; }

/* A narrow window: notes and calendar on top, the lists two by two, and
	the page scrolls */
@media (max-width: 999px) {
	.app {
		height: auto;
		min-height: calc(var(--vh) * 100);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto 380px 640px 640px;
		grid-template-areas:
			"head head"
			"notes cal"
			"feeds news"
			"mods rel";
	}
}

@media (max-width: 760px) {
	.app {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas: "head" "notes" "cal" "feeds" "news" "mods" "rel";
		padding: 16px 14px 24px;
		gap: 12px;
	}
	.panel-notes { height: 320px; }
	.panel-cal { height: auto; max-height: 500px; }
	.panel-feeds, .panel-news, .panel-rel, .panel-mods { height: 560px; }
}

/* ---------- header ---------- */

/* Date on the left, buttons on the right */
.top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px 24px;
	padding: 0 2px 4px;
}



.today-date {
	display: flex;
	align-items: baseline;
	gap: 0.45em;
	white-space: nowrap;
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: clamp(20px, calc(var(--vw) * 1.8), 26px);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.td-date {
	font-weight: 300;
}

.td-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.top-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.top-actions .keychip {
	margin-right: 6px;
}

.keychip {
	font-size: 11.5px;
	color: var(--muted);
	white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text);
	background: var(--tile);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid var(--line-2);
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.btn .ico {
	font-size: 0.85em;
}

.btn:hover:not(:disabled) {
	border-color: var(--accent);
	transform: translateY(-1px);
}

.btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #121212;
	font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

.btn-small {
	font-size: 12px;
	padding: 6px 14px;
}

/* Icon-only buttons: round, with the icon dead centre */
.btn-icon {
	width: 36px;
	height: 36px;
	padding: 0;
	gap: 0;
	justify-content: center;
	align-items: center;
	line-height: 0;
}

.btn-icon > span {
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-icon .ico {
	display: block;
	font-size: 14px;
}

.btn-tiny {
	font-size: 10.5px;
	padding: 4px 11px;
	gap: 6px;
}

.btn-quiet {
	background: transparent;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	font-size: 11.5px;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
	color: var(--text);
	border-color: var(--line-2);
}

.link-btn {
	font: inherit;
	font-size: 11.5px;
	color: var(--text);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

body.busy #btn-refresh .ico {
	animation: spin 0.9s linear infinite;
}

/* ---------- panels ---------- */

.panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	background-color: var(--glass);
	background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 32%, rgba(255, 255, 255, 0) 60%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	backdrop-filter: blur(22px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--radius);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.panel-head {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	min-height: 58px; /* every column's title on the same line */
	gap: 10px 12px;
	padding: 16px 16px 12px 18px;
}

.panel-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	overflow: hidden;
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.panel-title::before {
	content: "";
	flex: none;
	width: 4px;
	height: 19px;
	border-radius: 3px;
	background: var(--accent);
}

.panel-title a:hover {
	color: var(--accent);
}

.meta-pill,
.chip {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	background: transparent;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	padding: 1px 10px;
	white-space: nowrap;
}

.meta-pill:empty {
	display: none;
}

.panel-tools {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.panel-state {
	display: inline-flex;
	align-items: center;
}

.panel-state:empty {
	display: none;
}

.state-err {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	border-radius: 999px;
	padding: 2px 10px;
}

.spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--accent);
	animation: spin 0.9s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.panel-body {
	flex: 1;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
	transition: scrollbar-color 0.2s;
}

.panel-body:hover {
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.panel-warn {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin: 0 16px 10px 18px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
	background: color-mix(in srgb, var(--accent) 8%, transparent);
	font-size: 11.5px;
}

.empty {
	display: grid;
	place-items: center;
	align-content: center;
	text-align: center;
	gap: 12px;
	margin: 4px 16px 16px 18px;
	padding: 28px;
	min-height: 150px;
	color: var(--muted);
	border: 1px dashed var(--line-2);
	border-radius: var(--radius);
}

.empty a {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.empty p {
	max-width: 32ch;
}

.empty-ico {
	font-size: 19px;
	color: var(--accent);
}

/* The mods column shows "FO4 mods" instead of "Fallout 4 mods" when it's
	too narrow for the full name next to the New / Upd tabs */
.panel-mods {
	container-type: inline-size;
}

.panel-mods .t-short {
	display: none;
}

/* tabs in a panel's title row sit a little tighter */
.panel-tools .tabs button {
	padding: 3px 8px;
	letter-spacing: 0.04em;
}

.panel-tools .tab-count {
	margin-left: 5px;
}

.panel-mods .panel-head {
	gap: 10px;
	padding-right: 12px;
}

@container (max-width: 380px) {
	.panel-mods .t-long {
		display: none;
	}

	.panel-mods .t-short {
		display: inline;
	}
}

/* pill tab groups */
.tabs {
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--tile);
}

.tabs button {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 0;
	background: transparent;
	color: var(--muted);
	padding: 3px 12px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.tabs button:hover {
	color: var(--text);
}

.tabs button[aria-selected="true"] {
	background: var(--accent);
	color: #121212;
	font-weight: 700;
}

.tab-count {
	display: inline-block;
	min-width: 16px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: #121212;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.tab-count[hidden] {
	display: none;
}

.tabs button[aria-selected="true"] .tab-count {
	background: #121212;
	color: var(--accent);
}

/* ---------- your sites ---------- */

.fav {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex: none;
}

.feed-list, .rel-list {
	list-style: none;
	padding: 0 8px 10px;
}

.fi a {
	display: grid;
	gap: 4px;
	padding: 12px 10px 13px;
	border-radius: 10px;
	border-top: 1px solid var(--line);
}

.fi:first-child a {
	border-top-color: transparent;
}

.fi a:hover {
	background: var(--tile-hover);
}

.fi a:hover,
.fi:hover + .fi a {
	border-top-color: transparent;
}

.fi-text {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.fi-src {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	min-width: 0;
}

.fi-age {
	margin-left: auto;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.03em;
}

.fi-title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fi a:visited .fi-title {
	color: var(--muted);
}

.fi-sum {
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* the post's picture, the full width of the column, under the title */
.fi-img {
	display: block;
	margin: 6px 0 4px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tile);
	border: 1px solid var(--line);
}

.fi-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.warn {
	display: block;
	color: var(--accent);
	margin-top: 2px;
	font-size: 11px;
}

/* ---------- notes ---------- */

/* One free-typing area that fills the panel and saves as you type */
.panel-notes .panel-body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0 16px 16px 18px;
}

.notes-text {
	flex: 1;
	min-height: 0;
	width: 100%;
	padding: 12px 14px;
	font-family: var(--f-body);
	font-size: 14px;
	line-height: 1.55;
	color: var(--text);
	background: var(--tile);
	border: 1px solid var(--line);
	border-radius: 10px;
	outline: 0;
	resize: none;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.notes-text:hover {
	border-color: var(--line-2);
}

.notes-text:focus {
	border-color: var(--accent);
	background: var(--tile-hover);
}

.notes-text::placeholder {
	color: var(--muted);
	opacity: 1;
}

/* "Saved", "Saving…", "Not saved: offline" beside the title */
.notes-state {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.notes-state.is-bad {
	color: var(--amber);
}

/* Changed on another device while there were unsaved changes here */
.notes-clash {
	flex-wrap: wrap;
	margin: 0 0 10px;
}

.notes-clash > span {
	flex: 1 1 160px;
}

.notes-clash > div {
	display: flex;
	gap: 6px;
}

/* ---------- calendar ---------- */

.agenda {
	padding: 0 16px 14px 18px;
}

.ag-day + .ag-day {
	margin-top: 14px;
}

.ag-day h3 {
	padding: 4px 0 6px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.ag-today h3 {
	color: var(--text);
}

.ag-day ul {
	list-style: none;
	display: grid;
	gap: 6px;
}

.ev {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	padding: 8px 12px;
	background: var(--tile);
	border: 1px solid var(--line);
	border-left: 4px solid var(--cal);
	border-radius: 10px;
}

.ev-when {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	padding-top: 1px;
}

.ev-what {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.ev-where {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	font-size: 11.5px;
	color: var(--muted);
	margin-top: 1px;
}

.ev-live {
	border-color: color-mix(in srgb, var(--cal) 55%, var(--line));
	background: color-mix(in srgb, var(--cal) 12%, transparent);
}

.ev-tag {
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 2px 9px;
	background: var(--cal);
	color: #121212;
}

.ev-tag-next {
	background: transparent;
	color: var(--muted);
	border: 1px solid var(--line-2);
	font-weight: 600;
}

.ag-free {
	color: var(--muted);
	font-size: 12px;
}

/* ---------- releases ---------- */

/* Like the news: title across the top, the picture the full width of the
	column, then the release name and tags. The picture opens IMDb; the title
	and release name search extto. */
.rel {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 12px 10px 13px;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rel:not(.sk-rel):hover {
	background: var(--tile-hover);
}

/* The picture at its own shape: as wide as the column, but never taller
	than 280px (tall posters come out narrower instead) */
.rel-img {
	position: relative;
	display: block;
	justify-self: start;
	max-width: 100%;
	margin: 4px 0 2px;
}

.rel-img.wide {
	justify-self: stretch;
}

.rel-img-link {
	display: block;
}


.rel-img:hover img {
	border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}

.rel-img img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 280px;
	border-radius: 10px;
	border: 1px solid var(--line);
}

.rel-img img.is-wide {
	width: 100%;
	max-height: none;
}

.rel-img img.is-tall {
	height: 280px;
}

.sk-rel .rel-img {
	justify-self: stretch;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
}

/* a hairline between releases */
.rel + .rel::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 10px;
	right: 10px;
	border-top: 1px solid var(--line);
}

.rel:hover::before,
.rel:hover + .rel::before,
.rel-hit::before,
.rel-hit + .rel::before {
	border-top-color: transparent;
}

.rel-head {
	display: flex;
	color: inherit;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
}

.rel-head .rel-name {
	flex: 1;
	min-width: 0;
}

.rel-head .age {
	flex: none;
}

.rel .rel-text {
	display: block;
	color: inherit;
}

.rel-text:hover .rls,
.rel-head:hover .rel-name {
	color: var(--accent);
}

.rel > .chips {
	margin-top: 2px;
}

/* IMDb, EXT and YTS: one row, sharing the width equally */
.rel > .rel-btns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin-top: 4px;
}

.chips .chip-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--text);
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.chips .chip-btn:hover,
.chips .chip-btn:focus-visible {
	color: #121212;
	background: var(--accent);
	border-color: var(--accent);
}



.poster {
	width: 84px;
	height: 126px;
	border-radius: 8px;
	font-size: 22px;
	background: var(--tile);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	color: var(--muted);
	overflow: hidden;
}

.poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rel-text {
	display: grid;
	gap: 3px;
	min-width: 0;
}

/* the release name is the row's title; long names wrap at the dots */
.rel-name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}

/* the actual release name under the title; long names wrap at the dots */
.rls {
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--muted);
	overflow-wrap: anywhere;
	word-break: break-word;
}



.chips .rls-more {
	color: var(--muted);
	border-style: dashed;
}


.hit-star {
	color: var(--accent);
	margin-right: 7px;
	vertical-align: -1px;
}

.rel-hit {
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
	background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.chips {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.chip {
	font-size: 10.5px;
	padding: 0 8px;
	background: var(--tile);
	border-color: var(--line-2);
}

.chip:first-child {
	color: var(--text);
}

.chips .chip-kind {
	color: var(--accent);
	border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2));
}

.age {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* a post's flair or tag, beside its source */

.flair {
	flex: none;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 10.5px;
	line-height: 1.5;
	padding: 0 8px;
	border-radius: 999px;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ---------- settings drawer ---------- */

.scrim {
	position: fixed;
	inset: 0;
	z-index: 20;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(3px);
}

.drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 21;
	width: min(480px, calc(var(--vw) * 100));
	display: flex;
	flex-direction: column;
	background: var(--glass-strong);
	-webkit-backdrop-filter: blur(28px) saturate(140%);
	backdrop-filter: blur(28px) saturate(140%);
	border-left: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.22s ease, visibility 0s 0.22s;
}

.drawer.open {
	transform: none;
	visibility: visible;
	transition: transform 0.22s ease;
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 18px 16px 24px;
	border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: 23px;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.drawer-body {
	flex: 1;
	overflow: auto;
	padding: 4px 24px 24px;
}

.drawer-body section {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 8px;
}

.drawer-body section:last-child {
	border-bottom: 0;
}

.drawer-body h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.drawer-body h3 .ico {
	color: var(--accent);
	font-size: 14px;
}

.drawer-body h4 {
	margin: 18px 0 10px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text);
}

.section-note {
	margin: -4px 0 14px;
	color: var(--muted);
	font-size: 12px;
}

.drawer-foot {
	padding: 12px 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11.5px;
}

.field {
	display: grid;
	align-content: start;
	gap: 8px;
	margin-bottom: 14px;
	min-width: 0;
}

.field-label {
	display: block;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.field-hint {
	font-size: 11px;
	color: var(--muted);
}

.field-hint a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.field input,
.add-row input,
.inline-name {
	display: block;
	width: 100%;
	min-width: 0;
	height: 42px;
	padding: 0 14px;
	font-family: var(--f-body);
	font-size: 13px;
	color: var(--text);
	background: var(--tile);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	outline: 0;
	transition: border-color 0.15s ease;
}

.field input:hover,
.add-row input:hover,
.inline-name:hover {
	border-color: #474747;
}

.field input:focus,
.add-row input:focus,
.inline-name:focus {
	border-color: var(--accent);
}

input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.seg {
	justify-self: start;
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--tile);
}

.seg label {
	position: relative;
}

.seg input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.seg span {
	display: block;
	padding: 6px 14px;
	border-radius: 999px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.seg input:checked + span {
	background: var(--accent);
	color: #121212;
	font-weight: 700;
}

.seg input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* tick-on/tick-off chips */
.checks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 8px;
}

.checks label {
	position: relative;
}

.checks input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.checks span {
	display: block;
	padding: 5px 12px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.checks input:checked + span {
	background: var(--accent);
	border-color: var(--accent);
	color: #121212;
	font-weight: 700;
}

.checks input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.list-edit {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.list-edit li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) 118px auto;
	gap: 10px;
	align-items: center;
}

.list-edit .inline-name {
	height: 38px;
	padding: 0 12px;
}

.list-url {
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	color: var(--muted);
}

.swatch {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: none;
	cursor: pointer;
}

.swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 999px; }

.add-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.add-row-cal .cal-name-in {
	flex: 0 0 120px;
}

.form-msg {
	margin-top: 10px;
	min-height: 1.2em;
	font-size: 11.5px;
	color: var(--muted);
}

.form-msg:empty {
	margin-top: 0;
	min-height: 0;
}

.form-msg-bad {
	color: var(--red);
}

/* ---------- loading: reveal, skeletons, transitions ---------- */

/* The page appears in one short fade once fonts and saved data are painted.
	A veil fades away rather than the page fading in, so the glass stays blurred
	the whole time. The fallback animation lifts it even if something goes wrong. */
.veil {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--bg);
	pointer-events: none;
	animation: unveil 0s 2s forwards;
}

html.ready .veil {
	opacity: 0;
	visibility: hidden;
	animation: none;
	transition: opacity 0.22s ease, visibility 0s 0.22s;
}

@keyframes unveil {
	to { opacity: 0; visibility: hidden; }
}

/* Skeleton blocks share one light sweep across the whole page */
.sk {
	display: block;
	flex: none;
	border-radius: 5px;
	border-color: transparent !important;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 65%);
	background-size: 200% 100%;
	background-attachment: fixed;
	animation: sk-sweep 1.8s ease-in-out infinite;
}

@keyframes sk-sweep {
	from { background-position: 150% 0; }
	to { background-position: -50% 0; }
}

.sk-wrap {
	pointer-events: none;
}

.sk-fi {
	display: grid;
	gap: 5px;
	padding: 12px 10px 13px;
	border-top: 1px solid var(--line);
}

.fi:first-child .sk-fi {
	border-top-color: transparent;
}

.sk-fi .fi-img {
	width: 100%;
	height: auto;
	margin: 6px 0 4px;
	border-radius: 10px;
}


.sk-rd {
	display: grid;
	gap: 5px;
	padding: 12px 10px 13px;
	border-top: 1px solid var(--line);
}

.rd:first-child .sk-rd {
	border-top-color: transparent;
}

.sk-ev {
	--cal: var(--line-2);
}

.sk-ev .ev-what {
	padding-top: 1px;
}

/* Skeleton to content, and switching tabs: a quick crossfade, no movement */
.panel-body.enter > * {
	animation: enter 0.28s ease both;
}

@keyframes enter {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Rows that weren't there last time fade in with a brief blue wash */
li.arrive {
	animation: arrive 1.4s ease both;
	border-radius: 10px;
}

@keyframes arrive {
	0% { opacity: 0; background-color: color-mix(in srgb, var(--accent) 12%, transparent); }
	25% { opacity: 1; }
	100% { background-color: transparent; }
}

/* Pictures fade in instead of popping */
img.fade-img {
	opacity: 0;
	transition: opacity 0.3s ease;
}

img.fade-img.loaded {
	opacity: 1;
}

/* While a panel refreshes, a thin blue line runs along its top edge */
.panel {
	position: relative;
}

.panel::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent) no-repeat;
	background-size: 40% 100%;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.panel.is-loading::after {
	opacity: 1;
	animation: panel-bar 1.3s ease-in-out infinite;
}

@keyframes panel-bar {
	from { background-position: -67% 0; }
	to { background-position: 167% 0; }
}

@media (max-width: 560px) {
	.grid2 { grid-template-columns: 1fr; }
	.top-actions { width: 100%; justify-content: flex-end; }
	.keychip { display: none; }
	.ev { grid-template-columns: 90px minmax(0, 1fr) auto; }
	.panel-head { padding: 14px 14px 10px 16px; }
}

/* ---------- reader ---------- */

/* Clicking a story opens it here: centred, full height less 30px top and
	bottom, scrolling on its own, with just the title, pictures and text. */
.reader {
	position: fixed;
	inset: 0;
	z-index: 40;
}

.reader[hidden] {
	display: none;
}

.reader-scrim {
	position: absolute;
	inset: 0;
	background: rgba(4, 5, 7, 0.62);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.reader-panel {
	position: absolute;
	top: 30px;
	bottom: 30px;
	left: 50%;
	width: min(820px, calc(var(--vw) * 100 - 60px));
	transform: translate(-50%, 12px);
	opacity: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
	background: #121317;
	border: 1px solid var(--line-2);
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	overflow-y: auto;
	overscroll-behavior: contain;
	outline: none;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.reader.open .reader-scrim {
	opacity: 1;
}

.reader.open .reader-panel {
	opacity: 1;
	transform: translate(-50%, 0);
}

.reader-bar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 12px 24px;
	background: rgba(18, 19, 23, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.reader-src {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
}

.reader-src .fav {
	width: 16px;
	height: 16px;
	border-radius: 3px;
}

.reader-age {
	margin-left: 4px;
}

.reader-open {
	text-decoration: none;
}

.reader-body {
	padding: 28px 44px 56px;
}

.reader-title {
	font-family: var(--f-body);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.22;
	color: var(--text);
	text-wrap: balance;
	margin-bottom: 8px;
}

.reader-by {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 4px;
}

.reader-body figure {
	margin: 22px 0;
}

/* pictures fill the width, but tall ones are capped so they don't take over */
.reader-body img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 560px;
	margin: 0 auto;
	border-radius: 10px;
}

.reader-content {
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.7;
	color: #d6d6d6;
	overflow-wrap: break-word;
}

.reader-content > :first-child {
	margin-top: 18px;
}

.reader-content p,
.reader-content ul,
.reader-content ol,
.reader-content blockquote,
.reader-content pre,
.reader-content table {
	margin: 0 0 1em;
}

.reader-content h2,
.reader-content h3,
.reader-content h4,
.reader-content h5,
.reader-content h6 {
	font-family: var(--f-body);
	font-weight: 700;
	line-height: 1.3;
	color: var(--text);
	margin: 1.5em 0 0.5em;
}

.reader-content h2 { font-size: 22px; }
.reader-content h3 { font-size: 19px; }
.reader-content h4,
.reader-content h5,
.reader-content h6 { font-size: 17px; }

.reader-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: rgba(77, 163, 255, 0.4);
	text-underline-offset: 2px;
}

.reader-content a:hover {
	text-decoration-color: var(--accent);
}

.reader-content ul,
.reader-content ol {
	padding-left: 1.4em;
}

.reader-content li {
	margin: 0.3em 0;
}

.reader-content blockquote {
	border-left: 3px solid var(--accent);
	padding: 2px 0 2px 16px;
	color: #c2c2c2;
}

.reader-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	color: var(--muted);
}

.reader-content pre {
	white-space: pre-wrap;
	background: var(--tile);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
}

.reader-content hr {
	border: 0;
	border-top: 1px solid var(--line-2);
	margin: 1.6em 0;
}

.reader-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.reader-content td,
.reader-content th {
	border: 1px solid var(--line);
	padding: 6px 8px;
	text-align: left;
}

/* what changed in an update to a mod you track */
.reader-changes {
	margin: 18px 0 24px;
	padding: 14px 18px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--accent) 9%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.reader-changes h3 {
	margin: 0 0 6px;
	font-size: 17px;
}

.reader-changes ul {
	margin: 0;
}

/* a video shows as its picture with a play button, linking to it */
.reader-video {
	position: relative;
	display: block;
	margin: 22px 0;
}

.reader-video::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") center / 30px no-repeat;
}

.reader-linked {
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--line-2);
}

.reader-from {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.reader-fail {
	margin-top: 18px;
	color: var(--muted);
}

.reader-fail a {
	color: var(--accent);
}

.reader-loading {
	margin-top: 24px;
}

.reader-loading span {
	display: block;
	height: 14px;
	margin: 14px 0;
	border-radius: 6px;
	background: var(--tile-hover);
	animation: reader-pulse 1.2s ease-in-out infinite;
}

.reader-loading span:first-child {
	height: 280px;
	border-radius: 10px;
	margin-bottom: 26px;
}

.reader-loading span:nth-child(3n) { width: 82%; }
.reader-loading span:nth-child(4n) { width: 64%; }

@keyframes reader-pulse {
	50% { opacity: 0.45; }
}

@media (max-width: 760px) {
	.reader-body { padding: 22px 20px 40px; }
	.reader-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition: none !important;
	}
	.sk {
		animation: none;
	}
}

/* ---------- mark all read ---------- */

/* Read rows sink back, pictures and all; hovering brings one up again */
.fi > a,
.rel > * {
	transition: opacity 0.35s ease, filter 0.35s ease, background-color 0.15s ease;
}

li.is-read > * {
	opacity: 0.38;
	filter: saturate(0.25);
}

li.is-read > a:hover,
li.is-read > a:focus-visible,
li.rel.is-read:hover > *,
li.rel.is-read:focus-within > * {
	opacity: 0.85;
	filter: none;
}

/* Anything newer than the last Mark all read gets a small blue dot */
li.is-new .fi-title::before,
li.is-new .rel-name::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 7px 1px 0;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
	vertical-align: middle;
}

/* ---------- load more ---------- */

.more-row {
	display: flex;
	padding: 4px 18px 18px;
}

.more-row .btn {
	flex: 1;
	justify-content: center;
}

/* ---------- tracked authors ---------- */

/* Mods by authors you track on Nexus stand out with a blue edge */
.fi-tracked > a {
	background: color-mix(in srgb, var(--accent) 8%, transparent);
	box-shadow: inset 3px 0 0 var(--accent);
}

.fi-tracked > a:hover {
	background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.fi-tracked .fi-author {
	color: var(--accent);
}

.flair-tracked {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* ---------- Twitch live notice ---------- */

.live-stack {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 15;
	display: grid;
	gap: 8px;
	width: min(320px, calc(var(--vw) * 100 - 32px));
	pointer-events: none;
}

.live-toast {
	position: relative;
	display: flex;
	align-items: center;
	pointer-events: auto;
	border-radius: 14px;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2));
	background: var(--glass-strong);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	backdrop-filter: blur(22px) saturate(150%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	animation: live-in 0.35s ease both;
}

@keyframes live-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.live-link {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 6px 10px 12px;
	color: inherit;
}

.live-av {
	position: relative;
	flex: none;
	width: 38px;
	height: 38px;
}

.live-av img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid var(--red);
}

.live-dot {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--red);
	border: 2px solid var(--surface);
	animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
	0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 60%, transparent); }
	50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 0%, transparent); }
}

.live-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.live-text strong {
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
}

.live-text span {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.live-link:hover strong {
	color: var(--accent);
}

.live-x {
	flex: none;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.live-x:hover {
	color: var(--text);
	background: var(--tile-hover);
}

/* ---------- settings: other devices ---------- */

.field > .btn {
	justify-self: start;
}

.field textarea {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 70px;
	padding: 10px 14px;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--text);
	background: var(--tile);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	outline: 0;
	resize: vertical;
	transition: border-color 0.15s ease;
}

.field textarea:hover {
	border-color: #474747;
}

.field textarea:focus {
	border-color: var(--accent);
}

textarea::placeholder {
	color: var(--muted);
	opacity: 1;
}

/* ---------- web version (js/web.js) ---------- */

/* Settings that only mean something in the Brave extension */
html.web [data-ext-only] {
	display: none !important;
}

/* Asks for the dashboard key, once per device */
.key-gate {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 24px 16px;
	background: rgba(10, 11, 13, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.key-card {
	display: grid;
	gap: 14px;
	width: min(400px, 100%);
	padding: 26px 24px 22px;
	background: var(--glass-strong);
	-webkit-backdrop-filter: blur(28px) saturate(140%);
	backdrop-filter: blur(28px) saturate(140%);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.key-card h2 {
	font-family: var(--f-cond);
	font-weight: 700;
	font-size: 23px;
	line-height: 1.1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text);
}

.key-card p {
	font-size: 13px;
	color: var(--muted);
}

.key-card input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 16px; /* 16px stops phones zooming in on the box */
	letter-spacing: 0.06em;
	color: var(--text);
	background: var(--tile);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	outline: 0;
}

.key-card input:focus {
	border-color: var(--accent);
}

.key-card .btn {
	justify-content: center;
	padding: 12px 18px;
}

.key-card .form-msg {
	margin-top: -4px;
}
