/* Goy Mixer NoJS surface, on the shared GoyMail OldGui (gruvbox) theme so
   it matches the mail, GoyKeys, and GoyGPT pages: teal page, scrolling
   domain strip on top, centered tan card with a floating title and a hard
   offset shadow, dark footer with red links, Unifont. */

@font-face {
	font-family: 'Unifont';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/unifont.woff2') format('woff2');
}

* { box-sizing: border-box; }

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #458588;
}

body {
	min-height: 100vh;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 16px;
	line-height: normal;
	color: rgb(40, 40, 40);
	-webkit-font-smoothing: none;
	text-rendering: optimizeSpeed;
}

::selection { background-color: #cc241d; color: #fbf1c7; }

a { color: rgb(40, 40, 40); }

.gm-root {
	min-height: 100vh;
	display: grid;
	grid-template-rows: min-content 1fr min-content;
	width: 100%;
	background-color: #458588;
}

/* ---- Top row: scrolling domain marquee (navigation is NOT here) ---- */
.gm-oldgui-toprow {
	width: 100%;
	height: 28px;
	max-height: 28px;
	background-color: #282828;
	color: #e1e1e1;
	font-size: 16px;
	line-height: 28px;
	overflow: hidden;
	position: relative;
}

@keyframes gm-marquee-rtl { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.gm-oldgui-toprow-track {
	display: inline-flex;
	white-space: nowrap;
	animation: gm-marquee-rtl 40s linear infinite;
}

.gm-oldgui-toprow:hover .gm-oldgui-toprow-track { animation-play-state: paused; }
.gm-oldgui-toprow-set { display: inline-flex; }

.gm-oldgui-toprow-domain {
	padding: 0 12px;
	line-height: 28px;
	color: #d5c4a1;
	text-decoration: none;
	white-space: nowrap;
}

.gm-oldgui-toprow-domain:hover { background-color: #3c3836; color: #fbf1c7; text-decoration: none; }
.gm-oldgui-toprow-domain--current { background-color: #cc241d; color: #a89984; }
.gm-oldgui-toprow-domain--current:hover { background-color: #cc241d; color: #fbf1c7; }

@media (prefers-reduced-motion: reduce) {
	.gm-oldgui-toprow-track { animation: none; }
	.gm-track-now .gm-track-mark { animation: none; }
}

/* ---- Main + card ---- */
.gm-main {
	display: flex;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 2.5rem 0.5rem;
}

/* auto margins center the layout without the overflow clipping that
   align-items: center causes once a form grows past the viewport. */
.gm-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 17rem;
	align-items: start;
	gap: 1.25rem;
	margin: auto;
	width: min(1140px, 100%);
}

.gm-oldgui-frame {
	position: relative;
	width: 100%;
	background-color: #a89984;
	box-shadow: 11px 14px 0 #282828;
}

.gm-side { display: grid; gap: 1.25rem; min-width: 0; }
.gm-side-frame { box-shadow: 7px 9px 0 #282828; }
.gm-side-frame .gm-oldgui-body { margin: 15px 6px 10px; padding: 12px 9px; }
.gm-side-meta { margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: #3c3836; }
.gm-side-meta:last-child { margin-bottom: 0; }

.gm-rates { margin: 0 0 8px; font-size: 14px; }
.gm-rates th, .gm-rates td { padding: 3px 4px; border-bottom: 1px solid #97877a; }
.gm-rates tbody tr:last-child th, .gm-rates tbody tr:last-child td { border-bottom: none; }
.gm-rates th[scope='row'] { background: transparent; color: #282828; font-weight: 700; white-space: nowrap; }
.gm-rate-px { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gm-rate-ch { text-align: right; white-space: nowrap; font-size: 13px; color: #3c3836; }
.gm-rate-ch--up { color: #076678; font-weight: 700; }
.gm-rate-ch--down { color: #9d0006; font-weight: 700; }

.gm-prefs { display: grid; gap: 2px; }
.gm-prefs label { font-size: 13px; font-weight: 700; margin-top: 4px; }
.gm-prefs select {
	font: inherit;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 14px;
	width: 100%;
	background-color: #282828;
	color: #ebdbb2;
	border: none;
	box-shadow: inset 4px 4px 0 #000;
	padding: 4px 8px;
	margin: 2px 0;
}
.gm-prefs button { width: 100%; margin: 8px 0 0; }

.gm-oldgui-title {
	position: absolute;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #a89984;
	color: #cc241d;
	border-left: 1px solid #282828;
	border-right: 1px solid #282828;
	padding: 2px 10px;
	z-index: 2;
	font-size: 16px;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
}

.gm-oldgui-body {
	border: 1px solid #282828;
	margin: 15px 7px;
	padding: 15px 10px;
	overflow-wrap: break-word;
	color: rgb(40, 40, 40);
}

/* Nickname in the card title, hint on hover or keyboard focus. */
.brand { position: relative; display: inline-block; cursor: help; }
.brand:focus { outline: 1px dotted #282828; }
.brand-tip {
	display: none;
	position: absolute;
	left: 50%;
	top: calc(100% + 0.4rem);
	transform: translateX(-50%);
	z-index: 5;
	width: max-content;
	max-width: min(30rem, 86vw);
	white-space: normal;
	text-align: left;
	background: #ebdbb2;
	color: #282828;
	border: 1px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
	padding: 6px 9px;
	font-size: 14px;
	font-weight: normal;
}
.brand:hover .brand-tip, .brand:focus .brand-tip, .brand:focus-within .brand-tip { display: block; }

@media (max-width: 40rem) {
	.brand-tip {
		position: static;
		display: block;
		transform: none;
		margin: 0.35rem 0 0;
		max-width: none;
		width: auto;
		box-shadow: none;
	}
}

/* ---- In-card menu: text links, red hover ---- */
.gm-oldgui-menubar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 0 0 10px;
}

.gm-oldgui-menubar a {
	color: #282828;
	background: transparent;
	text-decoration: none;
	padding: 1px 8px;
	white-space: nowrap;
}

.gm-oldgui-menubar a:hover,
.gm-oldgui-menubar a[aria-current='page'],
.gm-oldgui-menubar a.gm-oldgui-menu-sel { background-color: #cc241d; color: #a89984; }

/* ---- Footer ---- */
.gm-oldgui-foot {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 1px 8px;
	background-color: #282828;
	color: #e1e1e1;
	min-height: 24px;
	font-size: 16px;
	line-height: 1.2;
}

.gm-oldgui-foot a { color: #cc241d; text-decoration: none; }
.gm-oldgui-foot a:hover { text-decoration: underline; }
.gm-oldgui-foot-left { flex: 1 1 auto; min-width: 0; }
.gm-oldgui-foot-right { flex: 0 0 auto; display: inline-flex; align-items: center; }
.gm-oldgui-foot-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	line-height: 0;
	margin: 0 1px;
	padding: 0 1px;
	text-decoration: none;
}
.gm-oldgui-foot-icon:hover { text-decoration: none; opacity: 0.88; }
.gm-oldgui-foot-tg-svg { display: block; width: 13px; height: 13px; fill: currentColor; }
.gm-oldgui-foot-icon:hover .gm-oldgui-foot-tg-svg { fill: #fabd2f; }
.gm-oldgui-foot-net,
.gm-oldgui-foot-net-status {
	display: inline;
	vertical-align: baseline;
	margin: 0 2px;
	padding: 0;
	line-height: inherit;
	font-weight: 700;
	text-decoration: none;
}
.gm-oldgui-foot-net-status { color: #98971a; }
.gm-oldgui-foot a.gm-oldgui-foot-net { color: #cc241d; }
.gm-oldgui-foot a.gm-oldgui-foot-net:hover { color: #fabd2f; text-decoration: underline; }

/* ---- Content ---- */
h1, h2, h3 {
	margin: 0 0 0.5rem;
	font-size: 16px;
	font-weight: 700;
	color: rgb(40, 40, 40);
}

p { margin: 0 0 8px; }
hr { border: none; border-top: 1px solid #282828; opacity: 0.45; margin: 8px 0; }
ul, ol { margin: 0 0 8px; padding-left: 1.35rem; }
li { margin: 0.2rem 0; }
.honesty li { margin: 0.4rem 0; }

/* Verify strip, same bulletin chrome as the mail pages. */
.gm-oldgui-in {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 2px solid #282828;
	background: #ebdbb2;
	box-shadow: inset 0 1px 0 #fbf1c7, 2px 2px 0 #1d2021;
}

.gm-oldgui-in-mark {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	padding: 4px 8px;
	margin-top: 1px;
	background: #282828;
	color: #fbf1c7;
	border: 1px solid #1d2021;
}

.gm-oldgui-in-body { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; }
.gm-oldgui-in-body p { margin: 0 0 6px; }
.gm-oldgui-in-body p:last-child { margin-bottom: 0; }

.gm-net-list {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 10px;
	margin: 0;
	font-size: 14px;
}
.gm-net-list dt { font-weight: 700; }
.gm-net-list dd { margin: 0; min-width: 0; }

/* Flash messages */
.flash {
	margin: 0 0 12px;
	padding: 8px 10px;
	border: 2px solid #282828;
	background: #ebdbb2;
	box-shadow: inset 0 1px 0 #fbf1c7, 2px 2px 0 #1d2021;
}

.flash.err { color: #9d0006; border-color: #cc241d; font-weight: 700; }
.flash.ok { color: #3c3836; border-left: 6px solid #98971a; }

.warn {
	margin: 8px 0;
	padding: 8px 10px;
	border-left: 4px solid #cc241d;
	background: #f2e5bc;
	color: #3c3836;
	line-height: 1.4;
}

/* Lede and calls to action */
.gm-lede { font-size: 17px; line-height: 1.45; margin: 0 0 6px; }
.gm-lede-sub { margin: 0 0 12px; color: #3c3836; line-height: 1.45; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.gm-actions .btn { margin: 0; }
.gm-stepline {
	margin: 0 0 12px;
	padding: 4px 8px;
	background: #d5c4a1;
	border-left: 4px solid #cc241d;
	font-size: 14px;
}

.gm-steps { margin: 0 0 14px; padding-left: 1.6rem; }
.gm-steps li { margin: 0 0 6px; line-height: 1.45; }

.gm-summary {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 4px 14px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #282828;
	background: #ebdbb2;
	box-shadow: inset 0 1px 0 #fbf1c7;
}
.gm-summary dt { font-size: 13px; font-weight: 700; color: #504945; }
.gm-summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Forms: dark inset inputs on the tan card, as on the mail pages. */
form.stack { display: flex; flex-direction: column; gap: 0.15rem; }
form.stack label { display: block; margin: 0.5rem 0 0.1rem; font-weight: 700; }
.gm-form { max-width: 34rem; }
.gm-form-wide { max-width: 42rem; }

.gm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gm-pair-col { min-width: 0; }
.gm-pair-col label { margin-top: 0.5rem; }

.gm-choice { margin: 12px 0; }
.gm-choice legend { font-weight: 700; }
.gm-radio {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 4px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
}
.gm-radio input { flex: 0 0 auto; width: auto; margin: 3px 0 0; box-shadow: none; padding: 0; }
.gm-choice .hint { margin: 6px 0 0; }

.hint { font-size: 13px; line-height: 1.4; color: #3c3836; margin: 2px 0 8px; }
.hint a { color: #9d0006; }

form.stack input, form.stack select, form.stack textarea {
	font: inherit;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 16px;
	width: 100%;
	min-height: 38px;
	background-color: #282828;
	color: #c4c4c4;
	border: none;
	outline: none;
	box-shadow: inset 5px 5px 0 #000;
	padding: 8px 12px;
	margin: 4px 0 6px;
}

form.stack select { cursor: pointer; }

form.stack input:focus, form.stack select:focus, form.stack textarea:focus { color: #fbf1c7; }

button, .btn {
	font: inherit;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
	display: inline-block;
	min-height: 40px;
	padding: 8px 16px;
	color: #fbf1c7;
	background: #cc241d;
	border: 2px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	margin: 0.4rem 0.3rem 0 0;
}

button:hover, .btn:hover { background: #9d0006; color: #fbf1c7; }
button:active, .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1d2021; }

.btn-plain, button.btn-plain {
	background: #282828;
	color: #ebdbb2;
}
.btn-plain:hover, button.btn-plain:hover { background: #3c3836; color: #fbf1c7; }

.btn-danger, button.btn-danger {
	background: #fbf1c7;
	color: #9d0006;
	border-color: #9d0006;
	box-shadow: 3px 3px 0 #9d0006;
}
.btn-danger:hover, button.btn-danger:hover {
	background: #9d0006;
	color: #fbf1c7;
	border-color: #282828;
	box-shadow: 3px 3px 0 #1d2021;
}

/* Submits size to their label instead of stretching as a column flex item. */
form.stack button, form.stack .btn { align-self: flex-start; }

fieldset { border: 1px solid #282828; margin: 8px 0 12px; padding: 10px; min-width: 0; }
legend { padding: 0 4px; font-weight: 700; }

.gm-hop-label { font-weight: 700; margin: 12px 0 4px; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.gm-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	min-height: 34px;
	border: 2px solid #282828;
	background: #ebdbb2;
	color: #282828;
	text-decoration: none;
	box-shadow: 2px 2px 0 #1d2021;
}
.gm-chip:hover { background: #fbf1c7; color: #282828; }
.gm-chip-on, .gm-chip-on:hover { background: #cc241d; color: #fbf1c7; }

.gm-hop {
	background: #ebdbb2;
	border: 2px solid #282828;
	box-shadow: inset 0 1px 0 #fbf1c7, 3px 3px 0 #1d2021;
	padding: 12px;
}
.gm-hop legend {
	background: #d5c4a1;
	padding: 2px 8px;
	border: 1px solid #282828;
}
.gm-hop-empty {
	margin: 8px 0 12px;
	padding: 8px 10px;
	background: #d5c4a1;
	border-left: 4px solid #282828;
	line-height: 1.4;
}

.gm-status {
	display: inline-block;
	padding: 2px 8px;
	background: #d5c4a1;
	border: 1px solid #282828;
	font-weight: 700;
}
.gm-status-swapping, .gm-status-mixing, .gm-status-paying { background: #cc241d; color: #fbf1c7; }
.gm-status-completed { background: #689d6a; color: #1d2021; }
.gm-status-frozen, .gm-status-stuck { background: #d79921; color: #1d2021; }

.gm-track-wrap { margin: 0 0 16px; }
.gm-track { list-style: none; margin: 0 0 8px; padding: 0; }
.gm-track-step {
	display: grid;
	grid-template-columns: 1.35rem minmax(0, 1fr);
	gap: 10px;
	position: relative;
	padding: 0 0 14px;
}
.gm-track-step:last-child { padding-bottom: 0; }
.gm-track-step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 0.52rem;
	top: 1.2rem;
	bottom: 0;
	width: 2px;
	background: #282828;
}
.gm-track-mark {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid #282828;
	background: #d5c4a1;
	box-shadow: 2px 2px 0 #1d2021;
	margin-top: 2px;
}
.gm-track-done .gm-track-mark { background: #689d6a; }
.gm-track-now .gm-track-mark {
	background: #cc241d;
	animation: gm-pulse 1.6s ease-out infinite;
}
.gm-track-frozen .gm-track-mark,
.gm-track-stuck .gm-track-mark { background: #d79921; }
.gm-track-title { margin: 0; font-weight: 700; line-height: 1.3; }
.gm-track-sub { margin: 2px 0 0; font-size: 13px; color: #3c3836; line-height: 1.35; }
.gm-track-live {
	display: inline-block;
	margin-left: 4px;
	padding: 0 6px;
	background: #cc241d;
	color: #fbf1c7;
	font-size: 12px;
	font-weight: 700;
	vertical-align: middle;
}
.gm-track-live-bad { background: #d79921; color: #1d2021; }

@keyframes gm-pulse {
	0%, 100% { box-shadow: 2px 2px 0 #1d2021, 0 0 0 0 rgba(204, 36, 29, 0.55); }
	50% { box-shadow: 2px 2px 0 #1d2021, 0 0 0 6px rgba(204, 36, 29, 0); }
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 0.75rem 0;
	font-size: 14px;
	line-height: 1.25;
}

td, th {
	text-align: left;
	padding: 4px 7px;
	border-bottom: 1px solid #bdae93;
	vertical-align: top;
}

th { color: #1d2021; background: #d5c4a1; border-bottom-color: #282828; font-weight: 700; }
tbody tr:hover td { background: rgba(204, 36, 29, 0.08); }

/* Monospace payloads: addresses, fingerprints, PGP blocks. */
.mono { font-family: 'Unifont', ui-monospace, monospace; word-break: break-all; }
code { background: rgba(40, 40, 40, 0.1); padding: 0 4px; }

pre {
	margin: 8px 0;
	padding: 10px 12px;
	border: 1px solid #282828;
	background: #282828;
	color: #ebdbb2;
	box-shadow: inset 5px 5px 0 #000;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	font-family: 'Unifont', ui-monospace, monospace;
	font-size: 13px;
	line-height: 1.45;
}

pre.mono { color: #ebdbb2; }

img.qr {
	display: block;
	image-rendering: pixelated;
	background: #fff;
	padding: 6px;
	border: 1px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
}

.captcha-box { margin: 0.75rem 0; }
.captcha-box label { display: block; margin: 8px 0 0; font-weight: 700; }
.captcha-box input {
	font: inherit;
	font-family: 'Unifont', ui-monospace, monospace;
	width: 100%;
	background-color: #282828;
	color: #c4c4c4;
	border: none;
	outline: none;
	box-shadow: inset 5px 5px 0 #000;
	padding: 4px 12px;
	margin: 4px 0;
}
.captcha-box input:focus { color: #fbf1c7; }

img.captcha {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	background: #fff;
	border: 1px solid #282828;
	box-shadow: 3px 3px 0 #1d2021;
}

@media (min-width: 721px) and (max-width: 1024px) {
	.gm-oldgui-foot { padding: 5px 8px; line-height: 1.35; align-items: flex-start; }
	.gm-oldgui-foot-left,
	.gm-oldgui-foot-right { flex: 1 1 100%; text-align: center; justify-content: center; }
	.gm-oldgui-foot-right { display: flex; }
}

@media (max-width: 980px) {
	.gm-cols { grid-template-columns: minmax(0, 1fr); }
	.gm-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: start; }
}

@media (max-width: 720px) {
	.gm-main { padding: 1.25rem 0.35rem; }
	.gm-cols { gap: 1rem; }
	.gm-oldgui-frame { box-shadow: 6px 7px 0 #282828; }
	.gm-pair { grid-template-columns: 1fr; }
	.gm-oldgui-menubar a { padding: 6px 10px; min-height: 40px; display: inline-flex; align-items: center; }
	.gm-oldgui-foot { padding: 6px 8px; line-height: 1.35; align-items: flex-start; }
	.gm-oldgui-foot-left,
	.gm-oldgui-foot-right { flex: 1 1 100%; text-align: center; justify-content: center; }
	.gm-oldgui-foot-right { display: flex; }
	.gm-oldgui-in { flex-direction: column; gap: 6px; }
	.gm-net-list { grid-template-columns: 1fr; }
	.gm-net-list dt { margin-top: 4px; }
}

@media (max-width: 480px) {
	.gm-oldgui-body { margin: 10px 3px; padding: 12px 6px; }
}
