/* =========================
   FONTS
   ========================= */

@font-face {
	font-family: "Emilys Candy";
	src: url("/fonts/EmilysCandy-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Unkempt";
	src: url("/fonts/Unkempt-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* =========================
   BASE
   ========================= */

:root {
	/* base */
	--background: #fff4f8;
	--surface: #ffffff;
	--surface-light: #fff8fb;
	--header: #3d1f2d;
	--text: #9b7285;
	--gradient-1: #ffd6e7;
	--gradient-2: var(--background);
	--gradient-3: #fff9fb;
	/* pink */
	--pink: #f05b9d;
	--pink-medium: #f875ad;
	--pink-light: #ff8fbd;
	--border: rgba(117, 48, 79, 0.12);
	--accent: #ffe1ed;
	/* green */
	--green: #42c98a;
	--green-medium: #61d9a0;
	--green-light: #83e8b7;
	--border-green: rgba(33, 112, 73, 0.12);
	/* red */
	--red: #f05b68;
	--red-medium: #f87580;
	--red-light: #ff8f98;
	--border-red: rgba(117, 48, 54, 0.12);
}

	:root[data-dark-mode="true"] {
		/* base */
		--background: #171118;
		--surface: #211820;
		--surface-light: #2c202a;
		--header: #f6e8ef;
		--text: #bfa5b3;
		--gradient-1: #382332;
		--gradient-3: #1c151d;
		/* pink */
		--pink: #c46b94;
		--pink-medium: #d084a7;
		--pink-light: #dca0ba;
		--border: rgba(196, 107, 148, 0.12);
		--accent: #30202a;
		/* green */
		--green: #36966c;
		--green-medium: #4daa80;
		--green-light: #70bc99;
		--border-green: rgba(77, 170, 128, 0.14);
		/* red */
		--red: #b95b68;
		--red-medium: #ca737e;
		--red-light: #d68e97;
		--border-red: rgba(185, 91, 104, 0.14);
	}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

input,
button,
select,
textarea {
	font: inherit;
}

input,
button,
select,
textarea {
	color: inherit;
}

/* =========================
   MAIN
   ========================= */

html {
	background: var(--background);
	min-height: 100%;
}

body {
	width: 100%;
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	inset: 0;
	padding: 40px 20px;
	background: radial-gradient( circle at 50% -10%, var(--gradient-1) 0%, var(--gradient-2) 42%, var(--gradient-3) 100% );
	color: var(--header);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
	overscroll-behavior-y: none;
}

.fw-main {
	position: relative;
	width: 100%;
	padding-top: 16px;
	max-width: 650px;
	margin: 0 auto;
}

.fw-main-header {
	text-align: center;
	margin-top: 24px;
	margin-bottom: 28px;
}

	.fw-main-header h1 {
		margin: 24px 0 0;
	}

.fw-eyebrow {
	color: var(--pink);
	text-align: center;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

/* =========================
   HELPERS
   ========================= */

.fw-border-top {
	border-top: 1px solid var(--border);
}

.fw-border-bottom {
	border-bottom: 1px solid var(--border);
}

.fw-margin-top {
	margin-top: -8px;
}

.fw-margin-bottom {
	margin-bottom: 16px;
}

.fw-text-align-center {
	text-align: center;
}

.hidden {
	display: none !important;
}

[hidden] {
	display: none;
}

/* =========================
   ANIMATIONS
   ========================= */

/* MODALS */
@keyframes modalEnter {
	from {
		opacity: 0;
		transform: scale(0.96);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1 { /* Large Header */
	margin: 0;
	font-size: clamp(2.6rem, 11vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	text-align: center;
}

h2 { /* Medium Header */
	margin: 0 0 8px;
	font-size: 1.3rem;
}

h3 { /* Small header */
	margin: 0;
	font-size: 1.15rem;
}

h4 { /* Tiny header */
	margin: 0;
	font-size: 0.85rem;
}

h5 { /* Input header */
	font-size: 0.85rem;
	font-weight: 600;
}

p {
	margin: 0;
	color: var(--text);
	font-size: 0.85rem;
}

.fw-description {
	margin: 12px 0 0;
	color: var(--text);
	line-height: 1.6;
}

.fw-description-mode {
	margin: 0 0 24px;
	color: var(--text);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* =========================
   MODALS
   ========================= */

/* Info */
.fw-overlay-info {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(61, 31, 45, 0.25);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.fw-modal-info {
	width: min(100%, 360px);
	max-height: 85vh;
	overflow-y: auto;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: 0 20px 60px rgba(61, 31, 45, 0.2);
	animation: modalEnter 0.2s ease-out;
	box-shadow: 0.25em 0.25em var(--accent);
}

	.fw-modal-info h2 {
		margin: 0 0 24px;
		text-align: center;
	}

	.fw-modal-info p {
		margin: 0 0 14px;
		color: var(--text);
		line-height: 1.5;
	}

.fw-info-section {
	margin-top: 24px;
	text-align: left;
}

	.fw-info-section:first-of-type {
		margin-top: 0;
	}

.fw-setting-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 0;
	cursor: pointer;
}

	.fw-setting-row span {
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	.fw-setting-row strong {
		font-size: 0.9rem;
		font-weight: 600;
	}

	.fw-setting-row small {
		color: var(--text);
		font-size: 0.72rem;
		line-height: 1.3;
	}

	.fw-setting-row input {
		appearance: none;
		-webkit-appearance: none;
		position: relative;
		width: 42px;
		height: 24px;
		flex-shrink: 0;
		margin: 0;
		border-radius: 20px;
		background: #e4cbd6;
		cursor: pointer;
		transition: background 0.2s ease;
	}

		.fw-setting-row input::after {
			content: "";
			position: absolute;
			top: 3px;
			left: 3px;
			width: 18px;
			height: 18px;
			border-radius: 50%;
			background: white;
			transition: transform 0.2s ease;
		}

		.fw-setting-row input:checked {
			background: var(--pink);
		}

			.fw-setting-row input:checked::after {
				transform: translateX(18px);
			}

.fw-about-section {
	padding-top: 4px;
}

	.fw-about-section p {
		margin: 0;
	}

.fw-version {
	margin-top: 3px;
	color: var(--text);
	font-size: 0.72rem;
}

/* Confirm */
.fw-overlay-confirm {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(61, 31, 45, 0.25);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.fw-modal-confirm {
	width: min(100%, 340px);
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface);
	text-align: center;
	box-shadow: 0 20px 60px rgba(61, 31, 45, 0.2);
	animation: modalEnter 0.2s ease-out;
	box-shadow: 0.25em 0.25em var(--accent);
}

/* Color picker */
.fw-overlay-color {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(61, 31, 45, 0.25);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.fw-modal-color {
	width: min(100%, 360px);
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: 0 20px 60px rgba(61, 31, 45, 0.2);
	animation: modalEnter 0.2s ease-out;
	box-shadow: 0.25em 0.25em var(--accent);
}

	.fw-modal-color h2 {
		margin: 0 0 20px;
		text-align: center;
	}

.fw-color-area {
	position: relative;
	width: 100%;
	aspect-ratio: 1.55 / 1;
	border-radius: 16px;
	background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), hsl(335, 100%, 50%);
	box-shadow: inset 0 0 0 1px rgba(61, 31, 45, 0.08);
	cursor: crosshair;
	touch-action: none;
}

.fw-color-area-handle,
.fw-hue-handle {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 3px solid white;
	border-radius: 50%;
	box-shadow: 0 1px 5px rgba(61, 31, 45, 0.45);
	pointer-events: none;
}

.fw-color-area-handle {
	transform: translate(-50%, -50%);
}

.fw-hue-slider {
	position: relative;
	height: 22px;
	margin-top: 18px;
	border-radius: 100px;
	background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
	cursor: pointer;
	touch-action: none;
}

.fw-hue-handle {
	top: 50%;
	transform: translate(-50%, -50%);
}

.fw-color-preview-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.fw-color-preview {
	width: 30px;
	height: 30px;
	border: 3px solid white;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--border);
}

.fw-color-hex {
	width: 92px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-light);
	color: var(--header);
	outline: none;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

	.fw-color-hex:focus {
		border-color: var(--pink);
	}

.fw-color-picker-message {
	min-height: 18px;
	margin: 10px 0 0;
	color: #ef6680;
	text-align: center;
	font-size: 0.78rem;
	font-weight: 600;
}

.fw-color-picker-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 12px;
}

	.fw-color-picker-buttons .secondary {
		margin: 0;
	}

.fw-restore-colors {
	display: block;
	margin: 18px auto 0;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* =========================
   PANELS
   ========================= */

.fw-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	margin: 20px 0;
	padding: 38px 28px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 26px;
	background: var(--surface);
	box-shadow: 0.25em 0.25em var(--accent);
}

.fw-panel-small {
	position: relative;
	display: flex;
	padding: 14px 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 26px;
	background: var(--surface);
	box-shadow: 0.25em 0.25em var(--accent);
}

.fw-panel-mode {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: var(--surface);
	box-shadow: 0.25em 0.25em var(--accent);
}

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


.fw-screen {
	display: none;
	height: auto;
	min-height: calc(100dvh - 96px);
	flex-direction: column;
	justify-content: center;
	animation: screenIn 0.25s ease;
}

	.fw-screen.active {
		display: flex;
	}

/* =========================
   BUTTONS
   ========================= */

.fw-button-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 20px;
}

/* Basic */
.fw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Primary */
.fw-button-primary {
	position: relative;
	min-height: 52px;
	font-weight: 600;
	color: var(--header);
	font-size: 1.5rem;
	font-family: "Unkempt", serif;
	background: var(--pink);
	border: 2px solid var(--border);
	border-radius: 0.75em;
	box-shadow: 0 0.3em 0 var(--pink-light);
	transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

	.fw-button-primary:hover {
		background: var(--pink-medium);
	}

	.fw-button-primary:active {
		transform: translate(0, 0.3em);
		box-shadow: 0 0 0 var(--pink-light);
	}

/* Secondary */
.fw-button-secondary {
	position: relative;
	min-height: 52px;
	font-weight: 600;
	color: var(--header);
	font-size: 1.5rem;
	font-family: "Unkempt", serif;
	background: var(--accent);
	border: 2px solid var(--border);
	border-radius: 0.75em;
	box-shadow: 0 0.3em 0 var(--pink-light);
	transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

	.fw-button-secondary:hover {
		background: var(--gradient-1);
	}

	.fw-button-secondary:active {
		transform: translate(0, 0.3em);
		box-shadow: 0 0 0 var(--pink-light);
	}

/* Text */
.fw-button-text {
	padding: 8px;
	border: none;
	background: transparent;
	color: var(--pink);
	font-size: 0.85rem;
	font-weight: 600;
}

	.fw-button-text:hover {
		text-decoration: underline;
	}

/* Tab */
.fw-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.fw-button-tab {
	padding: 11px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 600;
	transition: 0.2s ease;
}

	.fw-button-tab:hover {
		border-color: var(--pink-light);
		color: var(--pink);
	}

	.fw-button-tab.active {
		border-color: var(--pink);
		background: var(--pink);
		color: white;
	}

/* Info & language */
.fw-info-button {
	position: absolute;
	top: 0;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	font-size: 1.5rem;
	cursor: pointer;
}

.fw-info-button {
	left: 0;
}

/* =========================
   CHECKS
   ========================= */

/* Checkbox */
.fw-checkbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	color: var(--header);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

	.fw-checkbox-row input {
		width: 18px;
		height: 18px;
		accent-color: var(--pink);
	}

/* =========================
   INPUTS
   ========================= */

/* Input row */
.fw-input-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

	.fw-input-row label {
		display: flex;
		flex-direction: column;
		gap: 9px;
		color: var(--header);
		font-size: 0.85rem;
		font-weight: 600;
	}

/* Field */
.fw-input-field {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	color: var(--header);
	font-size: 0.85rem;
	font-weight: 600;
}

.fw-input-text,
.fw-input-number,
.fw-input-select,
.fw-text-area {
	width: 100%;
	min-width: 0;
	padding: 14px 15px;
	border: 1px solid var(--border);
	border-radius: 12px;
	outline: none;
	background: var(--surface-light);
	color: var(--header);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

	.fw-input-text:focus,
	.fw-input-number:focus,
	.fw-input-select:focus,
	.fw-text-area:focus {
		border-color: var(--pink);
		box-shadow: 0 0 0 3px var(--accent);
	}

/* Text area */
.fw-text-area {
	resize: vertical;
	line-height: 1.6;
}

	.fw-text-area:focus {
		border-color: var(--pink);
		box-shadow: 0 0 0 3px var(--accent);
	}

/* Text */
.fw-text {
	width: 100%;
	padding: 17px 18px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	color: var(--header);
	outline: none;
	transition: border-color 0.2s, background 0.2s;
}

	.fw-text::placeholder {
		color: #666674;
	}

	.fw-text:focus {
		border-color: var(--pink);
		background: var(--surface-light);
	}

/* Slider */
.fw-check-slider,
.fw-slider {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 0;
	text-align: left;
	cursor: pointer;
}

	.fw-check-slider span,
	.fw-slider span {
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	.fw-check-slider strong,
	.fw-slider strong {
		font-size: 0.9rem;
		font-weight: 600;
	}

	.fw-check-slider small,
	.fw-slider small {
		color: var(--text);
		font-size: 0.72rem;
		line-height: 1.3;
	}

	.fw-check-slider input,
	.fw-slider input {
		appearance: none;
		-webkit-appearance: none;
		position: relative;
		width: 42px;
		height: 24px;
		flex-shrink: 0;
		margin: 0;
		border-radius: 20px;
		background: #e4cbd6;
		cursor: pointer;
		transition: background 0.2s ease;
	}

		.fw-check-slider input::after,
		.fw-slider input::after {
			content: "";
			position: absolute;
			top: 3px;
			left: 3px;
			width: 18px;
			height: 18px;
			border-radius: 50%;
			background: white;
			transition: transform 0.2s ease;
		}

		.fw-check-slider input:checked {
			background: var(--pink);
		}

			.fw-check-slider input:checked::after {
				transform: translateX(18px);
			}

.fw-slider {
	width: 100%;
	cursor: default;
}

	.fw-slider input {
		flex: 1;
		min-width: 0;
	}

#lengthSliderValue {
	width: 2ch;
	flex-shrink: 0;
	text-align: right;
}

/* Color input */
.fw-color-select {
	display: grid;
	grid-template-columns: repeat(10, 36px);
	justify-content: center;
	column-gap: 16px;
	row-gap: 12px;
	margin-top: 4px;
	margin-bottom: 4px;
}

.fw-color-option {
	cursor: pointer;
}

	.fw-color-option input {
		display: none;
	}

	.fw-color-option span {
		display: block;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		transition: transform 0.15s ease, box-shadow 0.15s ease;
	}

	/* PINK */
	.fw-color-option.pink {
		color: #f05b9d;
	}

		.fw-color-option.pink span {
			background: #f05b9d;
			border: 3px solid var(--border);
		}

	/* GREEN */
	.fw-color-option.green {
		color: #63c99b;
	}

		.fw-color-option.green span {
			background: #63c99b;
			border: 3px solid var(--border);
		}

	/* PURPLE */
	.fw-color-option.purple {
		color: #b76de2;
	}

		.fw-color-option.purple span {
			background: #b76de2;
			border: 3px solid var(--border);
		}

	/* RED */
	.fw-color-option.red {
		color: #ef6680;
	}

		.fw-color-option.red span {
			background: #ef6680;
			border: 3px solid var(--border);
		}

	/* BLUE */
	.fw-color-option.blue {
		color: #6f9cff;
	}

		.fw-color-option.blue span {
			background: #6f9cff;
			border: 3px solid var(--border);
		}

	/* ORANGE */
	.fw-color-option.orange {
		color: #f6a85f;
	}

		.fw-color-option.orange span {
			background: #f6a85f;
			border: 3px solid var(--border);
		}

	.fw-color-option input:checked + span {
		transform: scale(1.12);
		box-shadow: 0 0 0 3px white, 0 0 0 5px currentColor;
	}

	.fw-color-option:has(input:disabled) {
		opacity: 0.2;
		cursor: default;
	}

		.fw-color-option:has(input:disabled) span {
			cursor: default;
		}

.fw-add-color {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px dashed #d9a9bd;
	border-radius: 50%;
	background: var(--surface);
	color: var(--pink);
	cursor: pointer;
}

	.fw-add-color span {
		display: block;
		transform: translateY(3px);
		font-size: 1.45rem;
		font-weight: 500;
		line-height: 1;
	}

.fw-custom-color-option span {
	background: var(--custom-color);
	border: 3px solid var(--border);
}

/* =========================
   RESULT
   ========================= */

.fw-result-card {
	margin-top: 20px;
	padding: 30px 24px;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: var(--surface);
	text-align: center;
	box-shadow: 0.25em 0.25em var(--accent);
}

.fw-result-label {
	margin: 0 0 16px;
	color: var(--text);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.fw-result-value {
	overflow-wrap: anywhere;
	color: var(--pink);
	font-size: clamp(2rem, 7vw, 3.5rem);
	font-weight: 800;
	line-height: 1.25;
	font-family: "Emilys Candy", serif;
}

.fw-result-details {
	margin: 12px 0 0;
	color: var(--text);
	font-size: 0.9rem;
}

	.fw-result-details:empty {
		display: none;
	}

.fw-error-message {
	margin: 16px 0 0;
	color: #d43c63;
	font-size: 0.9rem;
	text-align: center;
}

	.fw-error-message[hidden] {
		display: none;
	}

/* =========================
   HISTORY
   ========================= */

.fw-history-section {
	margin-top: 32px;
}

.fw-history-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.fw-history-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fw-history-empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed var(--border);
	border-radius: 14px;
	color: var(--text);
	text-align: center;
	font-size: 0.9rem;
}

.fw-history-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 18px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: 0.25em 0.25em var(--accent);
}

.fw-history-mode {
	flex-shrink: 0;
	color: var(--text);
	font-size: 0.8rem;
	font-weight: 600;
}

.fw-history-value {
	min-width: 0;
	color: var(--header);
	font-size: 0.9rem;
	font-weight: 700;
	text-align: right;
	overflow-wrap: anywhere;
}

.fw-history-delete {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

	.fw-history-delete:hover {
		background: var(--accent);
		color: var(--pink);
	}

	.fw-history-delete:focus-visible {
		outline: 2px solid var(--pink);
		outline-offset: 2px;
	}

	.fw-history-delete span {
		display: block;
		transform: translateY(-2px);
		font-size: 1.45rem;
		font-weight: 500;
		line-height: 1;
	}

/* =========================
   ACCOUNT
   ========================= */

#accountArea {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

	#accountArea span {
		font-weight: 600;
	}

	#accountArea a,
	#accountArea button {
		padding: 8px 14px;
		border: 1px solid var(--border);
		border-radius: 10px;
		background: linear-gradient( 135deg, var(--gradient-1), var(--gradient-3) );
		color: var(--header);
		font: inherit;
		text-decoration: none;
		cursor: pointer;
	}

		#accountArea button:hover {
			background: var(--accent);
		}

		#accountArea button:disabled {
			opacity: 0.6;
			cursor: wait;
		}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 480px) {
	body {
		padding: 28px 14px;
	}

	.main {
		padding: 20px 0;
	}

	h1 {
		font-size: 2.4rem;
	}

	.fw-panel-mode {
		padding: 22px 18px;
	}

	.fw-button-row {
		grid-template-columns: 1fr;
	}

	.fw-button-tab {
		flex: 1 1 auto;
		padding: 11px 12px;
	}

	.fw-input-row {
		gap: 10px;
	}
}

@media (max-width: 380px) {
	.main {
		width: 94%;
	}
}