:root {
	/* Palette taken directly from the Enghouse logo: deep blue #05539d, light blue #6bb8d4 */
	color-scheme: light;
	--bg: #ffffff;
	--panel: #ffffff;
	--field-bg: #f2f9fc;
	--border: #bcdcea;
	--text: #0d2b4a;
	--muted: #4a8ab8;
	--accent: #05539d;
	--accent-light: #6bb8d4;
	--accent-dark: #033d75;
	--danger: #c0392b;
	--ok: #1f8a4c;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--bg);
	color: var(--text);
}

.site-banner {
	width: 100%;
	background: #ffffff;
	border-bottom: 3px solid #05539d;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 32px;
}

.site-banner .logo img {
	height: 72px;
	display: block;
}

.banner-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-banner .vault-mark {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-banner .vault-mark img {
	height: 56px;
	display: block;
}

.create-link {
	color: var(--accent);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--accent);
	border-radius: 6px;
	padding: 8px 14px;
	white-space: nowrap;
}

.create-link:hover {
	background: var(--accent);
	color: #ffffff;
}

.vault-title {
	font-family: "Anton", Impact, "Arial Narrow", sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 2.1rem;
	line-height: 1;
	color: var(--accent-dark);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.page-body {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.card {
	width: 100%;
	max-width: 520px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 32px;
}

h1 {
	font-size: 1.3rem;
	margin: 0 0 4px;
	color: var(--accent-dark);
}

p.sub {
	color: var(--muted);
	margin: 0 0 24px;
	font-size: 0.9rem;
}

textarea, select, input[type="text"] {
	width: 100%;
	background: var(--field-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	padding: 12px;
	font-size: 0.95rem;
	font-family: inherit;
}

textarea:focus, select:focus, input[type="text"]:focus {
	outline: none;
	border-color: var(--accent-light);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

.char-count {
	margin-top: 6px;
	font-size: 0.8rem;
	color: var(--muted);
	text-align: right;
}

.char-count-low {
	color: var(--danger);
	font-weight: 600;
}

label {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	margin: 16px 0 6px;
}

button {
	margin-top: 24px;
	width: 100%;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: default; }

.result {
	margin-top: 20px;
	padding: 16px;
	background: var(--field-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	word-break: break-all;
	font-size: 0.9rem;
	display: none;
}

.result.visible { display: block; }

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

.secret-box {
	white-space: pre-wrap;
	word-break: break-word;
	background: var(--field-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.95rem;
	margin-top: 16px;
}

.notice {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 16px;
	line-height: 1.5;
}

.error { color: var(--danger); }
.ok-badge { color: var(--ok); font-weight: 600; }

.copy-row {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.copy-row input {
	flex: 1;
}

.copy-row button {
	margin-top: 0;
	width: auto;
	padding: 8px 14px;
}
