:root {
	color-scheme: dark;
	--chrome: #202124;
	--bar: #35363a;
	--tab: #292a2d;
	--field: #202124;
	--page: #111214;
	--ink: #e8eaed;
	--muted: #9aa0a6;
	--accent: #8ab4f8;
	--good: #81c995;
	--bad: #f28b82;
}
/* Dimensional navigation chrome without adding landing-page clutter. */
.tab-strip {
	background: linear-gradient(
		105deg,
		#191b22 0%,
		#242235 48%,
		#1c2730 100%
	) !important;
	box-shadow: inset 0 -1px rgba(255, 255, 255, 0.04);
}
.toolbar {
	background: linear-gradient(180deg, #383a40, #303136) !important;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}
.tab {
	border: 1px solid rgba(255, 255, 255, 0.035) !important;
	border-bottom: 0 !important;
	background: linear-gradient(180deg, #292a30, #24252a) !important;
}
.tab.active {
	background: linear-gradient(155deg, #41434a, #34363b) !important;
	box-shadow:
		inset 0 2px var(--accent),
		0 -5px 18px rgba(0, 0, 0, 0.12);
}
.address-bar {
	background: linear-gradient(180deg, #202228, #17191e) !important;
	box-shadow:
		inset 0 1px 2px rgba(0, 0, 0, 0.5),
		0 1px rgba(255, 255, 255, 0.04);
}
.address-bar:focus-within {
	background: #16191f !important;
	box-shadow:
		0 0 0 1px var(--accent),
		0 0 18px rgba(138, 180, 248, 0.12) !important;
}
.nav-controls button,
.tool-button,
.new-tab,
.strip-action {
	transition:
		background 0.16s,
		color 0.16s,
		transform 0.16s;
}
.nav-controls button:active,
.tool-button:active,
.new-tab:active,
.strip-action:active {
	transform: scale(0.9);
}
.site-logo {
	width: 31px;
	height: 31px;
	align-self: center;
	object-fit: contain;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}
* {
	box-sizing: border-box;
}
html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--page);
	font-family:
		Inter,
		ui-sans-serif,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
}
.browser {
	position: relative;
	width: 100%;
	height: 100%;
	visibility: hidden;
	display: grid;
	grid-template-rows: 43px 54px 3px 1fr;
	background: var(--page);
}
.browser.workspace-open,
.browser:target {
	visibility: visible;
}
.browser:target + .entry-gate {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
button,
input {
	font: inherit;
}
.tab-strip {
	min-width: 0;
	display: flex;
	align-items: end;
	gap: 7px;
	padding: 0 10px;
	background: var(--chrome);
}
.window-controls {
	height: 43px;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 8px 0 3px;
}
.window-controls i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #5f6368;
}
.window-controls i:first-child {
	background: #ff5f57;
}
.window-controls i:nth-child(2) {
	background: #febc2e;
}
.window-controls i:last-child {
	background: #28c840;
}
.tabs {
	min-width: 0;
	max-width: calc(100% - 155px);
	height: 100%;
	display: flex;
	align-items: end;
	gap: 3px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
	display: none;
}
.tab {
	width: 220px;
	min-width: 90px;
	max-width: 220px;
	height: 35px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px 0 11px;
	border: 0;
	border-radius: 9px 9px 0 0;
	background: #26272a;
	color: var(--muted);
	cursor: pointer;
}
.tab.active {
	background: var(--bar);
	color: var(--ink);
}
.tab-icon {
	width: 13px;
	height: 13px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	color: var(--accent);
	font-size: 10px;
}
.tab.loading .tab-icon {
	border: 2px solid #61656b;
	border-top-color: var(--accent);
	border-radius: 50%;
	font-size: 0;
	animation: spin 0.8s linear infinite;
}
.tab-title {
	min-width: 0;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
	font-size: 11px;
}
.tab-close {
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 16px;
	cursor: pointer;
}
.tab-close:hover {
	background: rgba(255, 255, 255, 0.12);
}
.new-tab,
.strip-action {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.new-tab {
	width: 30px;
	height: 30px;
	margin-bottom: 3px;
	border-radius: 50%;
	font-size: 21px;
}
.strip-action {
	width: 32px;
	height: 32px;
	margin: 0 0 2px auto;
	border-radius: 7px;
	font-size: 17px;
}
.new-tab:hover,
.strip-action:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--ink);
}
.toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	background: var(--bar);
	border-bottom: 1px solid #28292c;
}
.nav-controls {
	display: flex;
	gap: 2px;
}
.nav-controls button,
.tool-button {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 18px;
	cursor: pointer;
}
.nav-controls button:hover,
.tool-button:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--ink);
}
.address-bar {
	height: 39px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	padding: 0 8px 0 14px;
	border: 1px solid transparent;
	border-radius: 20px;
	background: var(--field);
}
.address-bar:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}
.site-state {
	color: var(--good);
	font-size: 10px;
}
.site-state.loading {
	color: var(--accent);
}
.site-state.error {
	color: var(--bad);
}
.address-bar input[type="text"] {
	min-width: 0;
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font:
		13px ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
}
.address-bar input::placeholder {
	color: #7b7f85;
}
.address-bar button {
	width: 29px;
	height: 29px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 16px;
	cursor: pointer;
}
.address-bar button:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--ink);
}
.progress {
	z-index: 3;
	overflow: hidden;
	background: #1d1e20;
}
.progress i {
	display: block;
	width: 0;
	height: 3px;
	background: var(--accent);
	opacity: 0;
	transition:
		width 0.25s,
		opacity 0.2s;
}
.browser.loading .progress i {
	width: 75%;
	opacity: 1;
	animation: progress 1.3s ease-in-out infinite;
}
.viewport {
	position: relative;
	min-width: 0;
	min-height: 0;
	background: #08070b url("/woodcreek-background.png") center/cover no-repeat;
}
.browser-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
	border: 0;
	background: transparent;
}
.browser-frame.active {
	display: block;
}
.error {
	position: absolute;
	z-index: 5;
	inset: 100px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--page);
	color: var(--ink);
}
.error[hidden] {
	display: none;
}
.error strong {
	font-size: 22px;
}
.error span,
.error code {
	max-width: min(600px, 80vw);
	margin-top: 10px;
	color: var(--muted);
	font-size: 12px;
	text-align: center;
}
.error button {
	margin-top: 22px;
	padding: 9px 18px;
	border: 0;
	border-radius: 18px;
	background: var(--accent);
	color: #101216;
	font-weight: 700;
	cursor: pointer;
}
.toast {
	position: fixed;
	z-index: 10;
	right: 18px;
	bottom: 18px;
	transform: translateY(20px);
	opacity: 0;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #292a2d;
	color: var(--ink);
	font-size: 11px;
	transition: 0.2s;
}
.toast.show {
	transform: none;
	opacity: 1;
}
.entry-gate {
	position: fixed;
	z-index: 1000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background:
		linear-gradient(rgba(6, 8, 13, 0.82), rgba(6, 8, 13, 0.94)),
		url("/woodcreek-background.png") center/cover no-repeat;
	transition:
		opacity 0.32s ease,
		visibility 0.32s ease;
}
.entry-gate.leaving {
	opacity: 0;
	visibility: hidden;
}
.entry-card {
	width: min(460px, 100%);
	padding: 38px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 24px;
	background: rgba(22, 24, 31, 0.94);
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
	color: var(--ink);
	text-align: center;
	backdrop-filter: blur(16px);
}
.entry-card img {
	width: 76px;
	height: 76px;
	object-fit: contain;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
.entry-kicker {
	margin: 18px 0 8px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.entry-card h1 {
	margin: 0;
	font-size: clamp(24px, 5vw, 34px);
	line-height: 1.15;
}
.entry-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 30px;
}
.entry-actions a {
	display: grid;
	place-items: center;
	min-height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 13px;
	background: #2b2e36;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 0.16s ease,
		background 0.16s ease,
		border-color 0.16s ease;
}
.entry-actions a:first-child {
	border-color: transparent;
	background: var(--accent);
	color: #11151b;
}
.entry-actions a:hover,
.entry-actions a:focus-visible {
	transform: translateY(-2px);
	border-color: var(--accent);
	outline: none;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes progress {
	50% {
		width: 93%;
	}
}
@media (max-width: 680px) {
	.entry-card {
		padding: 30px 22px;
	}
	.entry-actions {
		grid-template-columns: 1fr;
	}
	.browser {
		grid-template-rows: 39px 51px 3px 1fr;
	}
	.tab-strip {
		padding-inline: 6px;
	}
	.window-controls,
	.strip-action {
		display: none;
	}
	.tabs {
		max-width: calc(100% - 42px);
		flex: 1;
	}
	.tab {
		height: 32px;
		width: 170px;
	}
	.toolbar {
		gap: 3px;
		padding-inline: 5px;
	}
	.nav-controls button,
	.tool-button {
		width: 32px;
		height: 32px;
	}
	.nav-controls button:nth-child(2),
	#copy-link,
	#home {
		display: none;
	}
	.address-bar {
		height: 37px;
		padding-left: 10px;
	}
	.address-bar input[type="text"] {
		font-size: 12px;
	}
	.error {
		inset: 93px 0 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
	}
}
