/* Itri Licences: night blue and star gold. */
:root {
	--n: #23204d;
	--n2: #16143a;
	--g: #f5b301;
	--bg: #f7f7fb;
	--line: #e7e6f0;
	--line2: #d6d5e4;
	--muted: #6b6985;
	--text: #1c1b2e;
	--soft: #e8e7f7;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
}

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

h1 {
	margin: 0 0 4px;
	font-size: 23px;
}

h2 {
	margin: 18px 0 10px;
	font-size: 16px;
}

.card > h2:first-child,
.card > form > h2:first-of-type {
	margin-top: 0;
}

.lead {
	margin: 0 0 16px;
	color: var(--muted);
}

.hint,
.empty {
	color: var(--muted);
	font-size: 12.5px;
}

.center {
	text-align: center;
}

.sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.mono,
code {
	font-family: Consolas, Monaco, monospace;
}

/* Star */
.star {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--n);
}

.star svg {
	width: 20px;
	height: 20px;
	fill: var(--g);
}

/* Sign-in pages */
.auth {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px 16px;
}

.auth-card {
	width: 100%;
	max-width: 400px;
	padding: 28px 26px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(20, 20, 60, 0.1);
}

.brand-auth {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-weight: 800;
	font-size: 18px;
}

.brand-auth small {
	display: block;
	color: var(--muted);
	font-weight: 500;
	font-size: 12px;
}

.auth h1 {
	font-size: 20px;
}

.auth-lang {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.steps {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
}

.steps i {
	flex: 1;
	height: 5px;
	border-radius: 9px;
	background: #e1e0ec;
}

.steps i.on {
	background: var(--n);
}

.err,
.warn,
.flash {
	margin: 0 0 12px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
}

.err,
.flash.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.warn {
	background: #fffbeb;
	color: #92400e;
}

.flash.is-ok {
	background: #ecfdf3;
	color: #15803d;
}

.qr {
	display: grid;
	place-items: center;
	width: 196px;
	height: 196px;
	margin: 6px auto 8px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
}

.qr img {
	width: 180px;
	height: 180px;
	image-rendering: pixelated;
}

.secret {
	margin: 4px 0 12px;
	padding: 8px;
	border: 1px dashed #c9c7dc;
	border-radius: 8px;
	background: #fff;
	font: 700 13px Consolas, Monaco, monospace;
	text-align: center;
	letter-spacing: 1px;
	word-break: break-all;
}

input.code {
	height: 54px;
	font: 800 26px Consolas, Monaco, monospace;
	text-align: center;
	letter-spacing: 10px;
}

.rec {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 8px 0;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	font: 700 13.5px/1.9 Consolas, Monaco, monospace;
	white-space: pre-wrap;
}

.link {
	display: block;
	margin-top: 12px;
	font-weight: 700;
	font-size: 13px;
	text-align: center;
}

/* Forms */
.form label {
	display: block;
	margin-bottom: 10px;
}

.form label > span,
.label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
	width: 100%;
	min-height: 40px;
	padding: 7px 11px;
	border: 1px solid var(--line2);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	font: inherit;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--n);
	outline: 3px solid var(--soft);
}

input:disabled {
	background: #f1f0f6;
	color: var(--muted);
}

label.check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
}

.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.seg {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.seg label {
	position: relative;
	flex: 1;
	margin: 0;
}

.seg input {
	position: absolute;
	opacity: 0;
}

.seg span {
	display: block;
	padding: 8px;
	border: 1px solid var(--line2);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}

.seg input:checked + span {
	background: var(--n);
	border-color: var(--n);
	color: #fff;
}

.seg input:focus-visible + span {
	outline: 2px solid var(--g);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line2);
	border-radius: 10px;
	background: #fff;
	color: var(--text);
	font: inherit;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.btn.is-pri {
	background: var(--n);
	border-color: var(--n);
	color: #fff;
}

.btn.is-pri:hover {
	background: var(--n2);
}

.btn.is-sm {
	min-height: 28px;
	padding: 0 10px;
	font-size: 12px;
}

.btn.is-red {
	border-color: #fecaca;
	color: #b91c1c;
}

.btn.is-block {
	width: 100%;
	margin-top: 8px;
}

form.inline {
	display: inline;
	margin: 0;
}

.row-btns,
.acts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.acts {
	justify-content: flex-end;
}

.acts.left {
	justify-content: flex-start;
	margin-bottom: 14px;
}

/* App shell */
.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 10px 22px;
	background: var(--n);
	color: #fff;
}

.top .star {
	background: var(--g);
}

.top .star svg {
	fill: var(--n);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff !important;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none;
}

.nav {
	display: flex;
	gap: 4px;
	margin-inline-start: 10px;
}

.nav a {
	padding: 7px 13px;
	border-radius: 10px;
	color: #c9c7ea;
	font-weight: 600;
	text-decoration: none;
}

.nav a.is-on {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.sp {
	flex: 1;
}

.lang {
	display: flex;
	gap: 3px;
}

.lang a {
	padding: 3px 9px;
	border: 1px solid var(--line2);
	border-radius: 7px;
	color: var(--muted);
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
}

.lang a.is-on {
	background: var(--n);
	border-color: var(--n);
	color: #fff;
}

.top .lang a {
	border-color: #4a4785;
	color: #c9c7ea;
}

.top .lang a.is-on {
	background: var(--g);
	border-color: var(--g);
	color: var(--n);
}

.me {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #c9c7ea !important;
	font-size: 13px;
	text-decoration: none;
}

.me i {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--g);
	color: var(--n);
	font-style: normal;
	font-weight: 800;
}

.out button {
	padding: 5px 10px;
	border: 1px solid #4a4785;
	border-radius: 8px;
	background: none;
	color: #c9c7ea;
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
}

.body {
	max-width: 1400px;
	margin: 0 auto;
	padding: 22px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.stat,
.card {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.stat {
	padding: 14px;
}

.stat b {
	display: block;
	font-size: 24px;
	line-height: 1.2;
}

.stat span {
	color: var(--muted);
	font-size: 12.5px;
}

.stat.is-warn b {
	color: #b45309;
}

.stat.is-bad b {
	color: #b91c1c;
}

.grid {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	margin-top: 14px;
}

.grid.two-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
	padding: 18px;
}

.settings {
	max-width: 760px;
	margin-top: 14px;
}

.made,
.invited {
	margin-top: 14px;
	padding: 12px;
	border: 2px dashed var(--g);
	border-radius: 12px;
	background: #fffbeb;
}

.invited {
	border-color: #86efac;
	background: #f0fdf4;
}

.key {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 8px 0;
	padding: 8px 10px;
	border: 1px solid #f5d27a;
	border-radius: 8px;
	background: #fff;
}

.key code {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	word-break: break-all;
}

.invite-link {
	display: block;
	margin: 6px 0;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	font-size: 12px;
	word-break: break-all;
}

.langs {
	display: flex;
	gap: 4px;
	margin: 8px 0 6px;
}

.langs button {
	padding: 4px 10px;
	border: 1px solid var(--line2);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
}

.langs button.is-on {
	background: var(--n);
	border-color: var(--n);
	color: #fff;
}

.msg {
	margin: 0 0 8px;
	padding: 8px 10px;
	border: 1px solid #f1e4b8;
	border-radius: 8px;
	background: #fff;
	font: 12.5px/1.5 -apple-system, "Segoe UI", Tahoma, sans-serif;
	white-space: pre-wrap;
}

.tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.tools input[type="search"] {
	width: 230px;
	margin-inline-start: auto;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pill {
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: #4a4870 !important;
	font-weight: 600;
	font-size: 12.5px;
	text-decoration: none;
}

.pill.is-on {
	background: var(--text);
	border-color: var(--text);
	color: #fff !important;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.table th {
	padding: 8px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
	text-align: start;
	text-transform: uppercase;
}

.table td {
	padding: 10px 8px;
	border-bottom: 1px solid #f1f0f6;
	vertical-align: middle;
}

.table td small {
	display: block;
	color: var(--muted);
	font-size: 11.5px;
}

.plan {
	font-weight: 700;
}

.plan.is-life {
	color: #a16207;
}

.b {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}

.b.is-ok { background: #dcfce7; color: #15803d; }
.b.is-wait { background: #e0e7ff; color: #3730a3; }
.b.is-soon { background: #fef3c7; color: #b45309; }
.b.is-exp { background: #fee2e2; color: #b91c1c; }
.b.is-rev { background: #e5e7eb; color: #374151; }
.b.is-adm { background: var(--n); color: #fff; }
.b.is-stf { background: #e0e7ff; color: #3730a3; }

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.facts > div {
	padding: 10px;
	border-radius: 10px;
	background: var(--bg);
}

.facts span {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.history {
	margin: 0;
	padding: 0;
	list-style: none;
}

.history li {
	padding: 7px 0;
	border-bottom: 1px solid #f1f0f6;
	font-size: 13px;
}

.history small {
	display: block;
	color: var(--muted);
	font-size: 11.5px;
}

.state {
	padding: 8px 12px;
	border-radius: 10px;
	font-weight: 600;
}

.state.is-ok { background: #ecfdf3; color: #15803d; }
.state.is-bad { background: #fef2f2; color: #b91c1c; }

@media (max-width: 1100px) {
	.grid,
	.grid.two-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.table thead {
		display: none;
	}

	.table tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 10px;
		padding: 10px 0;
		border-bottom: 1px solid var(--line);
	}

	.table td {
		padding: 2px 0;
		border: 0;
	}

	.acts {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 782px) {
	.top {
		padding: 10px 14px;
		gap: 8px;
	}

	.nav {
		order: 5;
		width: 100%;
		margin: 0;
		overflow-x: auto;
	}

	.me span {
		display: none;
	}

	.body {
		padding: 14px;
	}

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

	.tools input[type="search"] {
		width: 100%;
	}

	.facts,
	.two {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The licence server's own updates (1.1.0). */
.badge-update {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--g);
	color: var(--n) !important;
	font-weight: 800;
	font-size: 12px;
	text-decoration: none;
}

.state.is-warn {
	background: #fffbeb;
	color: #92400e;
}

.update-box .notes {
	max-height: 220px;
	overflow: auto;
	margin: 8px 0 12px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	font: 12.5px/1.5 -apple-system, "Segoe UI", Tahoma, sans-serif;
	white-space: pre-wrap;
}

#server {
	margin-top: 16px;
}
