[hidden] { display: none !important; }
:root {
	--bg: #f6f7f9;
	--surface: #ffffff;
	--text: #1d2330;
	--muted: #667085;
	--line: #dde1e7;
	--accent: #1565c0;
	--accent-text: #ffffff;
	--ok-bg: #e7f5ec;
	--ok-text: #1e6b3a;
	--error-bg: #fdecec;
	--error-text: #a32020;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12151b;
		--surface: #1b2029;
		--text: #e6e9ef;
		--muted: #98a2b3;
		--line: #2e3542;
		--accent: #5ea1f0;
		--accent-text: #0b1220;
		--ok-bg: #16301f;
		--ok-text: #8fd6a8;
		--error-bg: #3a1a1a;
		--error-text: #f2a3a3;
	}
}
* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 26px; margin: 0 0 16px; }
h2 { font-size: 19px; margin: 32px 0 12px; }
.muted { color: var(--muted); }
.flash { padding: 10px 14px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-text); }
.flash.error { background: var(--error-bg); color: var(--error-text); }
.flash.staffedit { background: var(--error-bg); color: var(--text); border-left: 4px solid var(--error-text); }
.form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 440px;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
}
.form.makebox { margin-bottom: 18px; }
.form p { margin: 0; }   /* Spacing comes from the form's gap; flex items' margins don't collapse, so a <p>'s would add to it */
.form.makebox .button { align-self: flex-start; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.form label.check, .choice label { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 16px; }
.form .row { display: flex; gap: 12px; }
.form .row label { flex: 1; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.choice legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 4px; width: 100%; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=datetime-local], select {
	font: inherit;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 8px 10px;
	width: 100%;
}
select { width: auto; }
button {
	font: inherit;
	font-weight: 600;
	align-self: flex-start;
	padding: 9px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--accent);
	color: var(--accent-text);
	cursor: pointer;
}
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.link { background: none; color: var(--accent); padding: 0; font-weight: normal; text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.list th, .list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-weight: 600; }
.list tr.off td { color: var(--muted); }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.cards span { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
	.list { display: block; overflow-x: auto; }
	.form .row { flex-direction: column; }
}
.images { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.images li, .review { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.images img, .review img { display: block; width: 100%; max-width: 660px; height: auto; border: 1px solid var(--line); background: repeating-conic-gradient(#8882 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.images .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; font-size: 14px; }
.status { font-weight: 600; }
.status.pending { color: var(--muted); }
.status.approved { color: var(--ok-text); }
.status.rejected { color: var(--error-text); }
.note { width: 100%; }
.review { margin-bottom: 14px; }
.review p { margin: 10px 0; font-size: 14px; }
.decide { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.decide label { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
input[type=file] { font: inherit; color: var(--text); }
.form.wide { max-width: 760px; }
.picks img { display: block; width: 100%; max-width: 360px; height: auto; border: 1px solid var(--line); }
.picks input[type=number] { width: 72px; }
.picks td { vertical-align: middle; }
.preview { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.preview img { width: 100%; max-width: 660px; height: auto; border: 1px solid var(--line); }
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip figure { margin: 0; flex: 1 1 300px; max-width: 660px; }
.strip figcaption { font-size: 13px; }
a.button { display: inline-block; font-weight: 600; padding: 9px 18px; border-radius: 6px; background: var(--accent); color: var(--accent-text); text-decoration: none; }
.avimage { border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.avimage p { margin: 6px 0; }
.upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 12px; }
.upload label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.small { font-size: 13px; }
h2.tight { margin: 0 0 4px; }
.form hr { border: 0; border-top: 2px solid var(--line); margin: 8px 0; width: 100%; }
.player { max-width: 760px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.player img { width: 100%; height: auto; border: 1px solid var(--line); background: repeating-conic-gradient(#8882 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.player p { margin: 0; }
.timeline { position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.timeline .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.timeline .marker { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); }
.sequence { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.sequence li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.sequence .body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.sequence li.dragging { opacity: 0.6; border-style: dashed; }
.sequence img { width: 220px; max-width: 100%; height: auto; border: 1px solid var(--line); }
.sequence .what { flex: 1 1 80px; font-size: 13px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.sequence .secs { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.sequence .secs .label { color: var(--muted); margin-right: 2px; }
.form .sequence .step { width: 34px; height: 34px; padding: 0; font-size: 20px; line-height: 1; background: var(--surface); color: var(--accent); border: 1px solid var(--line); align-self: center; }
.sequence .secs input { width: 44px; text-align: center; padding: 6px 4px; }
.sequence .handle { background: none; color: var(--muted); font-size: 20px; padding: 4px 6px; cursor: grab; touch-action: none; align-self: center; }
.sequence .handle:active { cursor: grabbing; }
.sequence .remove { background: none; color: #d32f2f; font-size: 18px; padding: 4px 8px; align-self: center; }
.library { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.library li { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.library img { width: 100%; height: auto; border: 1px solid var(--line); }
.library button { padding: 5px 14px; }
@media (max-width: 640px) {
	.sequence img { width: 100%; }
}
.clock { display: flex; align-items: center; gap: 12px; }
.clock .time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5em; }
.clock .timeline { flex: 1; }
.previewbox { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; width: 100%; border: 2px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 14px; }
.avpicks { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.choice label.avpick { display: grid; grid-template-columns: auto minmax(0, 260px) 1fr; align-items: center; gap: 10px; font-size: 14px; }
.avpick img { width: 100%; height: auto; border: 1px solid var(--line); }
.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.states label { flex-direction: row !important; align-items: center; gap: 6px; color: var(--text) !important; font-size: 14px !important; }
.countypick { position: relative; }
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px #0003; max-height: 300px; overflow-y: auto; }
.suggest li { padding: 6px 12px; cursor: pointer; font-size: 14px; }
.suggest li:hover, .suggest li:focus { background: var(--bg); outline: none; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; }
.chipx { background: none; color: var(--muted); padding: 0 6px; font-size: 13px; font-weight: normal; }
.price { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; flex: 1; }
.price b { font-size: 20px; }
@media (max-width: 640px) {
	.choice label.avpick { grid-template-columns: auto 1fr; }
	.avpick span { grid-column: 2; }
}
.reviewsection { margin: 24px 0 32px; padding-top: 4px; border-top: 3px solid var(--accent); }
.reviewsection > h2 { margin-top: 14px; }
.review .player { margin-bottom: 4px; }
.balance { font-size: 20px; margin: 0 0 6px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { padding: 6px 14px; }
.list .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list td.credit { color: var(--ok-text); }
.runbox { padding: 14px 16px; margin-bottom: 16px; background: var(--ok-bg); border-radius: 8px; max-width: 760px; }
.runbox p { margin: 0 0 10px; }
.refund { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.refund input[type=text] { width: 90px; padding: 4px 6px; }
.refund input[name=note] { width: 140px; }
.refund button { padding: 4px 10px; }
/* The image creator (make.php) */
.templates { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.templates a { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.templates a:hover { border-color: var(--accent); }
.templates img { display: block; width: 100%; max-width: 760px; height: auto; border: 1px solid var(--line); }
.makepreview { position: sticky; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px 0; background: var(--surface); }
.makepreview img { width: 100%; height: auto; border: 1px solid var(--line); }
.makepreview .row { align-items: center; justify-content: space-between; }
.makepreview button { padding: 6px 14px; }
.textfield, .assetfield { display: flex; flex-direction: column; gap: 6px; }
.form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; resize: vertical; }
.form .colors { flex-wrap: wrap; align-items: flex-end; }
.form .colors label { flex: 0 1 auto; }
input[type=color] { width: 64px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.assetthumb { max-height: 64px; max-width: 220px; align-self: flex-start; border: 1px solid var(--line); background: repeating-conic-gradient(#8882 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.err { color: var(--error-text); font-size: 13px; }
.err:empty { display: none; }
.review .assetthumb { display: inline-block; width: auto; max-width: 220px; max-height: 64px; }
/* Campaign reports (CampaignReport) */
.headline { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.headline p { margin: 0; }
.headline .numbers { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.headline .big { font-size: 22px; }
.headline.compact { gap: 4px; min-width: 180px; margin: 0; }
.budget { position: relative; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; max-width: 560px; }
.headline.compact .budget { height: 6px; }
.budget .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.phase { font-weight: 600; }
.phase.ok { color: var(--ok-text); }
.phase.wait { color: var(--muted); }
.phase.off { color: var(--muted); }
.reportdetails { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.daychart { margin: 0; flex: 1 1 320px; max-width: 560px; }
.daychart figcaption, .topcounties p { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.daychart svg { display: block; width: 100%; height: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.daychart rect { fill: var(--accent); }
.daychart .axis { display: flex; justify-content: space-between; }
.topcounties { flex: 0 1 300px; }
.topcounties .num { text-align: right; }
/* Coverage tags (lib/coverage.php) */
.cov { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; }
.cov.low { background: var(--error-bg); color: var(--error-text); }
.cov.medium { background: var(--line); color: var(--text); }
.cov.high { background: var(--ok-bg); color: var(--ok-text); }
.reach { margin: 0; font-size: 14px; }
/* The home page and the guided flow (lib/guide.php) */
a.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.guideline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.guideline span { font-weight: 600; color: var(--text); }
.guidenext { background: var(--surface); border: 2px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.guidenext p { margin: 0 0 10px; }
.guidenext .guidetext { margin: 0 0 10px; }
.guidenext .guidetext > :last-child { margin-bottom: 0; }
.guidenext .buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.welcome .how, .howlater .how { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; counter-increment: step; }
.steps li::before { content: counter(step); font-weight: 700; color: var(--muted); width: 18px; }
.steps .mark { width: 18px; color: var(--ok-text); font-weight: 700; }
.steps li.done { color: var(--muted); }
.steps li.next { border-color: var(--accent); font-weight: 600; }
.campaigncards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.campaigncards li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.howlater { margin-top: 24px; }
.howlater summary { cursor: pointer; color: var(--accent); }
/* (?) tips (AdView::tip(), js/tip.js) */
.labeltext { display: block; }
.labeltext .tip { margin-left: 4px; }
button.tip { display: inline-flex; align-items: center; justify-content: center; align-self: center; flex: none; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1; vertical-align: middle; cursor: help; }
button.tip:hover, button.tip[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
/* A bigger target for a finger, without a bigger circle */
@media (pointer: coarse) { button.tip { position: relative; } button.tip::after { content: ""; position: absolute; inset: -10px; } }
.tipbox { position: fixed; z-index: 100; max-width: min(340px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: normal; line-height: 1.45; white-space: pre-line; box-shadow: 0 4px 16px #0004; }
/* A box within a form, such as the ad page's upload */
.subbox { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.subbox h3 { margin: 0; font-size: 16px; }
/* The leave-page question (av.php) */
dialog.leave { max-width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 20px; }
dialog.leave::backdrop { background: #0006; }
dialog.leave p { margin: 0 0 16px; }
dialog.leave .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* The image maker in the ad page's pop-up (av.php, make.php?embed=1) */
dialog.maker { width: min(900px, calc(100vw - 32px)); height: calc(100vh - 48px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); overflow: hidden; }
dialog.maker[open] { display: flex; flex-direction: column; }
dialog.maker::backdrop { background: #0006; }
.makerbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.makerbar button { padding: 6px 14px; }
dialog.maker iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
@media (max-width: 640px) {
	dialog.maker { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
}
body.bare main { padding-top: 16px; }
body.bare h1 { font-size: 22px; }
/* The campaign page: ads playing (avplayer.js), and what can't be changed once it has started */
.avplay { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.avplay img { width: 100%; height: auto; border: 1px solid var(--line); }
.avplay .clock { gap: 8px; }
.avplay .clock .time { font-size: 11px; min-width: 0; }
.avplay .timeline { height: 4px; }
.avlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.avlist li { display: grid; grid-template-columns: minmax(0, 360px) 1fr; align-items: center; gap: 10px; font-size: 14px; }
@media (max-width: 640px) { .avlist li { grid-template-columns: 1fr; } }
.locked { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; padding: 16px; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.locked h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.locked p { margin: 0; }
.locked .avplay img { opacity: 0.85; }
/* A campaign's buttons (CampaignReport::actionButtons()): on its page under the report, and in the list's last column */
.campaignactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.campaignactions form { display: inline-flex; align-items: center; gap: 6px; }
.campaignactions button:not(.tip), .campaignactions a.button { padding: 6px 14px; font-size: 14px; white-space: nowrap; }
.list .campaignactions { margin: 0; flex-direction: column; align-items: flex-start; }
button.danger { color: var(--error-text); border-color: var(--error-text); }
/* Ad serving explained (admin/serving.php) */
.explain { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.explain .flash, .explaintable .flash { display: inline; padding: 1px 6px; }
.explaintable td { font-size: 13px; }
.rawjson { margin-top: 24px; }
.rawjson textarea { width: 100%; font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
@media (max-width: 760px) { .explaintable, .explaintable tbody, .explaintable tr { display: block; } .explaintable thead { display: none; } .explaintable td { display: inline-block; vertical-align: top; } }

/* admin/campaigns.php: Edit and Ads on each row, and its ads opened below it */
.rowactions { white-space: nowrap; }
.rowactions .button, .rowactions button { padding: 4px 10px; font-size: 13px; }
.list tr.avrow > td { background: var(--bg); padding: 12px; }

/* admin/transactions.php */
.money .num { white-space: nowrap; }
.list tfoot td { font-weight: 600; border-top: 2px solid var(--line); }
.moneysummary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.moneysummary div { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.moneysummary b { display: block; font-size: 20px; }
.moneysummary span { color: var(--muted); font-size: 13px; }
.rangeform { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0 12px; }
.rangeform label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }

/* welcome.php: the public front page */
.hero { text-align: center; padding: 16px 0 8px; }
.hero img { display: block; width: min(300px, 80%); height: auto; margin: 0 auto 8px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); margin: 8px 0; }
.hero .lead { font-size: clamp(18px, 3.6vw, 21px); line-height: 1.5; max-width: 620px; margin: 0 auto 18px; color: var(--muted); }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.hero .signin { font-size: 16px; }
a.button.big { font-size: 18px; padding: 14px 28px; border-radius: 8px; }
.welcomehead { font-size: clamp(22px, 4.5vw, 28px); margin: 36px 0 14px; text-align: center; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: 16px 18px; }
.perks h3 { font-size: 19px; margin: 0 0 6px; }
.perks p { font-size: 17px; line-height: 1.55; margin: 0; }
.howto { list-style: none; padding: 0; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; counter-reset: howto; }
.howto li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 18px; line-height: 1.5; counter-increment: howto; }
.howto li::before { content: counter(howto); font-weight: 700; color: var(--muted); }
.hero.closing { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 16px; margin-top: 36px; }
.hero.closing h2 { font-size: clamp(24px, 5vw, 30px); margin: 0 0 8px; }
.privacy { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px; padding: 20px 22px; margin: 28px auto 0; max-width: 760px; }
.privacy h2 { font-size: clamp(21px, 4.4vw, 26px); margin: 0 0 10px; }
.privacy p { font-size: 18px; line-height: 1.55; margin: 0 0 10px; }
.privacy p:last-child { margin-bottom: 0; color: var(--muted); }

/* signup.php: agreeing to the terms (text and link wrap together beside the box) */
.form label.agree { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--text); font-size: 15px; line-height: 1.45; }
.form label.agree input { margin-top: 3px; flex: none; }
.legalnote { text-align: center; margin: 24px 0 0; font-size: 14px; }

/* Test accounts (admin): their campaigns show only in dev builds of the apps */
.testtag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: var(--error-bg); color: var(--error-text); vertical-align: middle; }
.form.testaccount { margin: 4px 0 16px; }

/* The house account (AdSetting::isHouse()): marked in the header, bright in both themes */
.housebadge { display: inline-block; margin-right: auto; margin-left: 12px; padding: 4px 12px; border-radius: 999px; background: #ff8a00; color: #1a1000; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 2px #ffd29a; }
.houseinfo { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid #ff8a00; border-radius: 8px; padding: 14px 18px; margin: 0 0 18px; }
.houseinfo p { margin: 0 0 8px; }
.houseinfo p:last-child { margin-bottom: 0; }
.top:has(.housebadge) { flex-wrap: wrap; }

/* The console's address, to save (AdView::saveAddress()): the home page's box and the account page's section */
.savebox { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 8px; padding: 14px 44px 14px 18px; margin: 0 0 18px; }
.savebox p { margin: 0 0 8px; }
.savebox p:last-child { margin-bottom: 0; }
.savebox .saveurl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.savebox code { font-size: 16px; padding: 4px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; word-break: break-all; }
.savebox-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 18px; padding: 4px 8px; cursor: pointer; }
