/* The organisation page. The variables and the typeface are the app's own, from app/src/atlas.css. */
@font-face {
	font-family: Geist;
	src: url(geist.woff2) format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
:root {
	--ink: #1b2c2d;
	--muted: #5d6d6c;
	--quiet: #7c8a86;
	--line: #d9dfd8;
	--bg: #f6f7f2;
	--paper: #fff;
	--dark: #172c30;
	--green: #17423a;
	--yellow: #fffc4f;
	--amber: #b8721a;
	--amber-bg: #fff3dc;
	--mono: ui-monospace, SFMono-Regular, Consolas, monospace;
	/* The four levels. Seen is the green, lighter; unknown is an outline only. */
	--understood: var(--green);
	--seen: #9dbcb0;
	--unknown: #b4beb8;
	--confusing: var(--amber);
	font:
		14px / 1.5 Geist,
		Inter,
		-apple-system,
		"Segoe UI",
		sans-serif;
	color: var(--ink);
	background: var(--bg);
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
}
button,
input,
select {
	font: inherit;
	color: inherit;
}
h2,
h3,
p {
	margin: 0;
}
[hidden] {
	display: none !important;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
	outline: 3px solid #807e27;
	outline-offset: 2px;
}

/* Top bar */
.top {
	height: 56px;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 0 18px 0 0;
	background: var(--dark);
	color: #c9d6d3;
}
.brand {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
}
.brand svg {
	width: 26px;
}
#organisation {
	color: #fff;
	font-weight: 600;
}
#tabs {
	display: flex;
	gap: 4px;
	flex: 1;
}
#tabs button {
	height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: #b7c7c5;
	cursor: pointer;
}
#tabs button[aria-current="page"] {
	background: #213a3d;
	color: #fff;
}
#who {
	font-size: 12.5px;
}
#signout {
	height: 30px;
	padding: 0 10px;
	border: 1px solid #36504f;
	border-radius: 8px;
	background: #213a3d;
	color: #dfe8e6;
	font-size: 12.5px;
	cursor: pointer;
}

main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 26px 24px 60px;
}
.view {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.card {
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
}
.card h2 {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--muted);
	margin-bottom: 12px;
}
.quiet {
	color: var(--quiet);
	font-size: 12.5px;
}
.mono {
	font-family: var(--mono);
	font-size: 12px;
}
.row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.spacer {
	flex: 1;
}

/* Buttons and fields */
.primary,
.plain {
	height: 32px;
	padding: 0 14px;
	border-radius: 7px;
	font-size: 13px;
	cursor: pointer;
}
.primary {
	border: 0;
	background: var(--green);
	color: #fff;
}
.plain {
	border: 1px solid var(--line);
	background: var(--paper);
}
.plain:hover {
	border-color: var(--quiet);
}
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 7px;
	background: var(--paper);
	font-size: 13px;
}
input:focus,
select:focus {
	outline: 2px solid #7c9d88;
	border-color: transparent;
}

/* Sign-in */
.signin {
	display: grid;
	place-items: center;
	min-height: calc(100vh - 120px);
}
.signin-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(320px, 88vw);
	padding: 28px 24px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	box-shadow: 0 24px 60px #152e2418;
}
.signin-mark {
	width: 44px;
	height: 44px;
	padding: 8px;
	border-radius: 10px;
	background: var(--dark);
	align-self: center;
}
.signin-card h1 {
	margin: 4px 0 8px;
	font-size: 19px;
	letter-spacing: -0.03em;
	text-align: center;
}
.signin-card .primary {
	height: 34px;
	margin-top: 4px;
}
/* The invitation and local billing pages, served by the server itself */
a.primary {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.signin-card p {
	text-align: center;
}
.signin-card form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.signin-card form.row {
	flex-direction: row;
	align-items: flex-end;
}
.test-badge {
	align-self: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--amber-bg);
	color: var(--amber);
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.seats-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
}
.seats-field input {
	width: 90px;
}
.actions {
	display: flex;
	gap: 6px;
}
.link {
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
}
.error {
	min-height: 18px;
	font-size: 12px;
	color: var(--amber);
	text-align: center;
}

/* Coverage */
.legend {
	display: flex;
	gap: 16px;
	font-size: 12.5px;
	color: var(--muted);
}
.legend span {
	display: flex;
	align-items: center;
	gap: 6px;
}
.cell {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex: none;
}
.cell.understood {
	background: var(--understood);
}
.cell.seen {
	background: var(--seen);
}
.cell.unknown {
	border: 1.5px solid var(--unknown);
}
.cell.confusing {
	background: var(--confusing);
}
.totals {
	display: flex;
	gap: 28px;
}
.figure strong {
	display: block;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.figure span {
	font-size: 12px;
	color: var(--quiet);
}
.figure.confusing strong {
	color: var(--amber);
}
.group h3 {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 10px;
}
.group h3 .quiet {
	font-weight: 400;
}
/* A thin bar of the group's levels, in proportion, beside its name. */
.mix {
	display: flex;
	width: 160px;
	height: 6px;
	border-radius: 3px;
	overflow: hidden;
	background: #eef1ec;
	align-self: center;
}
.mix i.understood {
	background: var(--understood);
}
.mix i.seen {
	background: var(--seen);
}
.mix i.confusing {
	background: var(--confusing);
}
.grid {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.grid .cell {
	width: 16px;
	height: 16px;
	padding: 0;
	cursor: pointer;
}
.grid .cell:not(.unknown) {
	border: 0;
}
.grid .cell.unknown {
	background: none;
}
.grid .cell[aria-pressed="true"] {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
}
.coverage-body {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 22px;
	align-items: start;
}
.groups {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.detail {
	position: sticky;
	top: 16px;
	min-height: 120px;
}
.detail .name {
	font-weight: 600;
	margin-bottom: 4px;
	word-break: break-word;
}
.detail dl {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	margin: 12px 0 0;
	font-size: 13px;
}
.detail dt {
	color: var(--muted);
}
.detail dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.level {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--muted);
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
th {
	text-align: left;
	font-weight: 500;
	color: var(--quiet);
	font-size: 12px;
	padding: 0 10px 8px 0;
}
td {
	padding: 7px 10px 7px 0;
	border-top: 1px solid #edf0eb;
	vertical-align: top;
}
.nowrap {
	white-space: nowrap;
}
td.n,
th.n {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
td .plain {
	height: 26px;
	padding: 0 10px;
	font-size: 12px;
}

/* Shown once: an invitation link or a device token. */
.once {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	border-radius: 9px;
	background: var(--amber-bg);
}
.once code {
	font-family: var(--mono);
	font-size: 12px;
	word-break: break-all;
}

/* Settings switches */
.switch {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
}
.switch + .switch {
	border-top: 1px solid #edf0eb;
}
.switch input {
	width: 36px;
	height: 20px;
	appearance: none;
	border-radius: 10px;
	background: var(--line);
	position: relative;
	cursor: pointer;
	flex: none;
	margin: 0;
}
.switch input::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: left 0.15s;
}
.switch input:checked {
	background: var(--green);
}
.switch input:checked::after {
	left: 18px;
}
.switch strong {
	display: block;
	font-weight: 600;
}

/* Subscription */
.seats {
	display: flex;
	gap: 3px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.seats i {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	border: 1.5px solid var(--unknown);
}
.seats i.used {
	background: var(--green);
	border-color: var(--green);
}
.seats i.invited {
	background: var(--seen);
	border-color: var(--seen);
}
.seats + .row {
	margin-top: 18px;
}

@media (max-width: 760px) {
	.coverage-body {
		grid-template-columns: 1fr;
	}
	#who {
		display: none;
	}
}
