:root {
	color: #191816;
	background: #f4efe6;
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
}

button,
input {
	font: inherit;
}

.admin-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: radial-gradient(
		circle at top left,
		#f7f5f2,
		#f2f0ed 40%,
		#ece8e2 100%
	);
}

.client-hero {
	background: #1f1e1b;
	padding: 0.7rem clamp(2.5rem, 4vw, 5rem);
	box-shadow:
		0 18px 36px rgb(0 0 0 / 22%),
		0 4px 10px rgb(0 0 0 / 16%);
}

.client-brand {
	display: flex;
	align-items: center;
	justify-content: center;
}

.client-signature {
	height: clamp(48px, 8.8vw, 96px);
	filter: brightness(0) invert(1);
}

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

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0;
	border-bottom: 1px solid #ded8cc;
}

.topbar-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.eyebrow {
	margin: 0 0 8px;
	color: #766f63;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1;
	letter-spacing: 0;
}

button,
.open-link {
	border: 0;
	border-radius: 8px;
	background: #191816;
	color: #fffaf1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	text-decoration: none;
	font-weight: 700;
	transition:
		transform 0.16s ease,
		box-shadow 0.16s ease,
		background 0.16s ease;
}

.secondary-button {
	background: #e7ded0;
	color: #191816;
}

button:hover,
.open-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgb(25 24 22 / 18%);
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.62;
	transform: none;
	box-shadow: none;
}

.summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0;
}

.summary > div,
.tools,
.login-panel,
.status,
.album {
	background: #fffdfa;
	border: 1px solid #e6dfd3;
	border-radius: 8px;
	box-shadow: 0 16px 32px rgb(25 24 22 / 8%);
}

.login-panel {
	margin: 24px 0;
	padding: 18px;
}

.login-panel[hidden] {
	display: none;
}

.login-panel form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
}

.login-panel label {
	display: grid;
	gap: 8px;
	color: #766f63;
	font-weight: 700;
}

.login-panel input {
	width: 100%;
	border: 1px solid #d6cfc2;
	border-radius: 8px;
	background: #f9f5ed;
	color: #191816;
	min-height: 42px;
	padding: 0 12px;
}

.summary > div {
	padding: 18px 20px;
}

.label {
	display: block;
	color: #766f63;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.summary strong {
	display: block;
	margin-top: 8px;
	font-size: 1.3rem;
}

.tools {
	margin-bottom: 16px;
	padding: 16px;
}

.tools label {
	display: grid;
	gap: 8px;
	color: #766f63;
	font-weight: 700;
}

.tools input {
	width: 100%;
	border: 1px solid #d6cfc2;
	border-radius: 8px;
	background: #f9f5ed;
	color: #191816;
	min-height: 42px;
	padding: 0 12px;
}

.status {
	margin: 16px 0;
	padding: 18px 20px;
	color: #5d574d;
	font-weight: 700;
}

.status[data-tone="error"] {
	border-color: #f0b9b0;
	color: #9a2719;
}

.status[hidden] {
	display: none;
}

.album-list {
	display: grid;
	gap: 12px;
}

.album {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 18px;
}

.album h2 {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.25;
}

.album p {
	margin: 6px 0 0;
	color: #6b6358;
	overflow-wrap: anywhere;
}

.album-meta {
	font-size: 0.86rem;
}

.album-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.copy-button {
	background: #e7ded0;
	color: #191816;
}

.delete-button {
	background: #9a2719;
	color: #fffaf1;
}

.delete-button:hover {
	box-shadow: 0 10px 24px rgb(154 39 25 / 22%);
}

.footer {
	margin-top: auto;
	padding: 1.5rem clamp(1rem, 4vw, 5rem) 0.5rem;
	position: relative;
}

.footer-line {
	height: 2px;
	width: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgb(31 30 27 / 20%),
		transparent
	);
	margin-bottom: 1.5rem;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	color: #1f1e1b;
}

.footer-icons {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.footer-icons a {
	border: none;
	background: #0d0c0b;
	color: #f7f5f2;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease;
}

.footer-icons img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
}

.footer-icons a:hover {
	background: #1f1e1b;
	color: #f7f5f2;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgb(20 17 15 / 20%);
}

.footer-icons a.tight img {
	width: 30px;
	height: 30px;
}

@media (max-width: 680px) {
	.shell {
		width: min(100% - 24px, 1120px);
		padding-top: 16px;
	}

	.client-hero {
		padding: 0.6rem 1rem;
	}

	.topbar,
	.album {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.topbar {
		display: grid;
	}

	.topbar-actions,
	.login-panel form {
		grid-template-columns: 1fr;
	}

	.summary {
		grid-template-columns: 1fr;
	}

	.album-actions {
		justify-content: stretch;
	}

	.album-actions > * {
		flex: 1;
	}
}
