/* FULL DISCLOSURE: one-shotted by Opus 5.5. */

:root {
	--bg: #14161c;
	--panel: #1e222c;
	--line: #2d3342;
	--ink: #eef1f6;
	--muted: #9aa3b5;
	--slop: #9be15d;
	--link: #7cc7ff;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
}

a {
	color: var(--link);
}

[hidden] {
	display: none !important;
}

main {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 16px 80px;
}

header {
	text-align: center;
}

h1 {
	margin: 0 0 6px;
	font-size: clamp(32px, 7vw, 56px);
	line-height: 1.05;
	letter-spacing: -1px;
}

.tagline {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 18px;
}

.workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	padding: 24px;
	background: var(--panel);
	border: 2px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
	.workspace {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px;
	}
}

.dropzone {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	border: 2px dashed var(--line);
	border-radius: 16px;
	background:
		repeating-conic-gradient(#232734 0% 25%, #1b1e27 0% 50%) 50% / 24px 24px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s;
}

.dropzone:hover,
.dropzone.dragging {
	border-color: var(--slop);
}

.dropzone canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.dropzone.empty canvas {
	opacity: 0.6;
}

/* Dims the corners LinkedIn crops off, without hiding them completely. */
.circle-mask {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle closest-side, transparent calc(100% - 1px), rgba(20, 22, 28, 0.75) 100%);
	pointer-events: none;
}

.drop-hint {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
	pointer-events: none;
}

.drop-hint .big {
	font-size: 48px;
}

.drop-hint small {
	color: var(--muted);
	font-weight: 400;
}

.controls > label {
	display: block;
	margin: 0 0 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	color: var(--muted);
}

.controls > label:not(:first-child) {
	margin-top: 22px;
}

.hashtag-input {
	display: flex;
	align-items: center;
	background: #12141a;
	border: 2px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.hashtag-input:focus-within {
	border-color: var(--slop);
}

.hash {
	padding: 0 4px 0 14px;
	color: var(--muted);
	font: 900 24px "Source Sans 3", var(--font);
}

.hashtag-input input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px 12px 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font: 900 24px "Source Sans 3", var(--font);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.fine {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.presets button {
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #262b37;
	color: var(--ink);
	font: 700 12px "Source Sans 3", var(--font);
	letter-spacing: 0.5px;
	cursor: pointer;
}

.presets button:hover {
	border-color: var(--slop);
}

.color-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

input[type="color"] {
	width: 52px;
	height: 40px;
	padding: 2px;
	border: 2px solid var(--line);
	border-radius: 10px;
	background: #12141a;
	cursor: pointer;
}

.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swatches button {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: var(--c);
	cursor: pointer;
}

.swatches button:hover,
.swatches button.active {
	border-color: var(--ink);
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.buttons button,
.buttons .button {
	flex: 1 1 auto;
	padding: 12px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--slop);
	color: #10220a;
	font: 700 16px var(--font);
	cursor: pointer;
}

.buttons .button {
	text-align: center;
	text-decoration: none;
	background: #0a66c2;
	color: #fff;
}

.buttons button.secondary {
	background: #2d3342;
	color: var(--ink);
}

.buttons button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.shill {
	margin: 28px 0 0;
	text-align: center;
	font-size: 14px;
}

.dot {
	margin: 0 6px;
	color: var(--muted);
}

dialog {
	max-width: min(440px, calc(100% - 32px));
	padding: 24px 28px;
	border: 2px solid var(--line);
	border-radius: 16px;
	background: var(--panel);
	color: var(--ink);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	text-align: center;
}

dialog::backdrop {
	background: rgba(10, 11, 15, 0.72);
}

dialog h2 {
	margin: 0 0 8px;
}

dialog p {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}

dialog .buttons {
	margin-top: 20px;
}

#disclosure-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(10, 11, 15, 0.92);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}
