/* EUS — End User Simulator · operator shell (internal tool). */

body.tool-app {
	color-scheme: dark;

	/* Main column width (fluid up to cap — wider “container-fluid” feel) */
	--tool-content-max: 1680px;
	--tool-gutter: clamp(10px, 1.75vw, 24px);

	/* Theme tokens (pages inherit) */
	--surface: rgba(26, 20, 48, 0.78);
	--surface-deep: rgba(12, 8, 28, 0.92);
	--border: rgba(94, 234, 212, 0.14);
	--border-strong: rgba(167, 139, 250, 0.22);
	--text: #ebe9f4;
	--muted: #8b90a8;
	--accent: #2dd4bf;
	--accent-dim: #0d9488;
	--danger: #fb7185;
	--danger-bg: rgba(251, 113, 133, 0.12);

	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;

	/* Deep violet-black + mesh + technical grid (not flat gray) */
	background-color: #05030d;
	background-image:
		radial-gradient(ellipse 130% 90% at 0% -10%, rgba(45, 212, 191, 0.14), transparent 52%),
		radial-gradient(ellipse 100% 70% at 100% 0%, rgba(167, 139, 250, 0.11), transparent 48%),
		radial-gradient(ellipse 80% 55% at 80% 100%, rgba(251, 146, 60, 0.07), transparent 45%),
		linear-gradient(168deg, rgba(8, 6, 22, 0.4) 0%, transparent 42%, rgba(18, 8, 32, 0.35) 100%),
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 35px,
			rgba(255, 255, 255, 0.022) 35px,
			rgba(255, 255, 255, 0.022) 36px
		),
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 35px,
			rgba(255, 255, 255, 0.018) 35px,
			rgba(255, 255, 255, 0.018) 36px
		);
	background-attachment: fixed;
}

.app-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: linear-gradient(180deg, rgba(8, 5, 20, 0.92) 0%, rgba(6, 4, 16, 0.78) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 1px 0 rgba(167, 139, 250, 0.06);
}

.app-header-inner {
	max-width: var(--tool-content-max);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--tool-gutter);
	min-height: 42px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 10px;
}

.app-brand {
	font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
	font-weight: 700;
	text-decoration: none;
	padding: 6px 0;
	line-height: 1.15;
	color: #c4b5fd;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.app-brand:hover {
	color: #e9d5ff;
}

.app-brand:hover .app-brand-full {
	color: #a5b4fc;
}

.app-brand-eus {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-shadow: 0 0 24px rgba(45, 212, 191, 0.25);
}

.app-brand-full {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #6b7a9e;
	text-transform: none;
}

.app-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	padding: 4px 0;
}

.app-nav a {
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 5px;
	line-height: 1.2;
	border: 1px solid transparent;
	font-family: inherit;
	transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.app-nav a:hover {
	color: var(--text);
	background: rgba(45, 212, 191, 0.08);
	border-color: rgba(45, 212, 191, 0.12);
}

.app-nav a:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 2px;
}

.app-nav a.is-active {
	color: #f0fdfa;
	background: rgba(45, 212, 191, 0.14);
	border-color: rgba(45, 212, 191, 0.35);
	box-shadow: 0 0 20px rgba(45, 212, 191, 0.12);
	font-weight: 600;
}

/* Home */
.tool-home-main {
	max-width: min(960px, var(--tool-content-max));
	width: 100%;
	margin: 0 auto;
	padding: 8px var(--tool-gutter) 20px;
}

.tool-home-title {
	margin: 0 0 6px;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #f5f3ff;
	font-family: ui-monospace, monospace;
	text-shadow: 0 0 28px rgba(167, 139, 250, 0.2);
}

.tool-panel {
	background: var(--surface);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	padding: 8px 10px 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tool-panel h2 {
	margin: 0 0 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #7c8aa6;
}

.tool-linklist {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--border);
}

.tool-linklist li {
	border-bottom: 1px solid var(--border);
}

.tool-linklist li:last-child {
	border-bottom: none;
}

.tool-linklist a {
	display: block;
	padding: 6px 4px;
	color: #9aa3bc;
	text-decoration: none;
	font-size: 13px;
}

.tool-linklist a:hover {
	color: var(--text);
	background: rgba(45, 212, 191, 0.05);
}

.tool-linklist strong {
	color: #e2e8f0;
	font-weight: 600;
	margin-right: 6px;
	font-family: ui-monospace, monospace;
	font-size: 12px;
}

