* {
	box-sizing: border-box;
}

:root {
	color-scheme: light;
	--bg: #f7f8fa;
	--panel: #ffffff;
	--panel-muted: #f1f3f6;
	--text: #161a22;
	--muted: #687080;
	--line: #dce1e8;
	--brand: #f26522;
	--brand-dark: #b83a10;
	--success: #147a42;
	--danger: #b42318;
	--focus: #2457c5;
	--shadow: none;
}

html {
	min-height: 100%;
	background: var(--bg);
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
	background: var(--bg);
}

a {
	color: inherit;
}

button,
input {
	font: inherit;
}

.app-shell {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0;
}

.simple-shell {
	width: min(480px, calc(100% - 28px));
	padding: 22px 0;
}

.simple-auth {
	display: grid;
	gap: 14px;
}

.plain-intro {
	padding: 8px 2px 2px;
}

.plain-intro h1 {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.12;
	font-weight: 750;
	letter-spacing: 0;
}

.plain-intro p {
	margin: 0;
	color: var(--muted);
}

.eyebrow {
	margin: 0 0 8px !important;
	color: var(--brand-dark) !important;
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 34px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand-static {
	justify-content: center;
	margin-bottom: 26px;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	color: #fff;
	background: var(--brand);
	font-weight: 800;
}

.brand-icon,
.app-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 8px 18px rgba(20, 31, 47, 0.12);
	flex: 0 0 auto;
}

.brand-icon {
	width: 46px;
	height: 46px;
	border-radius: 11px;
}

.brand-copy strong,
.user-block strong {
	display: block;
	font-size: 14px;
	line-height: 1.2;
}

.brand-copy span,
.user-block span {
	display: block;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.3;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(330px, 440px);
	gap: 38px;
	align-items: center;
	min-height: calc(100vh - 150px);
}

.auth-column {
	display: grid;
	gap: 16px;
}

.hero-copy h1,
.page-title {
	margin: 0 0 14px;
	font-size: clamp(34px, 6vw, 64px);
	line-height: 1;
	font-weight: 760;
	letter-spacing: 0;
}

.hero-copy p,
.page-subtitle {
	max-width: 620px;
	margin: 0;
	color: var(--muted);
	font-size: 17px;
}

.hero-icon {
	width: 104px;
	height: 104px;
	margin: 0 0 22px;
	border-radius: 24px;
	object-fit: cover;
	box-shadow: 0 20px 48px rgba(20, 31, 47, 0.16);
}

.trust-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.faq-panel {
	padding: 20px;
}

.simple-faq {
	padding: 18px;
}

.faq-list {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.faq-list li {
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-muted);
}

.faq-list strong {
	color: var(--text);
	font-size: 14px;
}

.faq-list span {
	color: var(--muted);
	font-size: 13px;
}

.trust-list li,
.status-pill,
.meta-pill {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--muted);
	padding: 10px 12px;
	font-size: 13px;
}

.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.login-panel {
	padding: 28px;
}

.simple-login {
	padding: 22px;
}

.panel-title {
	margin: 0 0 4px;
	font-size: 23px;
	line-height: 1.2;
}

.panel-text {
	margin: 0 0 24px;
	color: var(--muted);
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	margin-bottom: 7px;
	font-weight: 650;
	font-size: 13px;
}

.field input {
	width: 100%;
	height: 48px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--text);
	outline: none;
}

.field input:focus {
	border-color: var(--focus);
	box-shadow: 0 0 0 3px rgba(36, 87, 197, 0.14);
}

.captcha-row {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 12px;
	align-items: end;
}

.captcha-box {
	display: grid;
	gap: 7px;
}

.captcha-image {
	width: 100%;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-muted);
	object-fit: contain;
}

.compact-field {
	margin-bottom: 0;
}

.compact-field input {
	height: 42px;
}

.actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.simple-actions {
	align-items: center;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.button:hover {
	border-color: #bcc5d1;
}

.button-primary {
	border-color: var(--brand);
	background: var(--brand);
	color: #fff;
}

.button-danger {
	border-color: #f1c1bc;
	color: var(--danger);
}

.link-button {
	border: 0;
	background: transparent;
	color: var(--focus);
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
}

.alert {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #f3c9c3;
	background: #fff4f2;
	color: var(--danger);
}

.layout {
	display: grid;
	gap: 24px;
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.app-card {
	padding: 22px;
}

.app-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.app-card h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
}

.app-card p {
	margin: 4px 0 0;
	color: var(--muted);
}

.app-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}

.checksum {
	margin: 14px 0 0;
	padding: 12px;
	border-radius: 8px;
	background: var(--panel-muted);
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 12px;
	word-break: break-all;
}

.app-card .install-note {
	margin: 14px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.message-panel {
	width: min(720px, calc(100% - 32px));
	margin: 10vh auto;
	padding: 34px;
	text-align: center;
}

.unavailable-shell {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px 0;
}

.unavailable-panel {
	margin: 0;
}

.message-panel h1 {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.1;
}

.message-panel p {
	margin: 0 0 22px;
	color: var(--muted);
}

.footer {
	margin-top: 30px;
	color: var(--muted);
	font-size: 12px;
}

.hidden {
	display: none !important;
}

@media (max-width: 820px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-top: 20px;
	}

	.trust-list {
		grid-template-columns: 1fr;
	}

	.section-head,
	.topbar,
	.actions {
		align-items: stretch;
		flex-direction: column;
	}

	.captcha-row {
		grid-template-columns: 1fr;
	}

	.button {
		width: 100%;
	}
}
