.dash-main {
	padding-top: 48px;
	padding-bottom: 80px;
}

.dash-wide {
	max-width: 1200px;
}

.dash-nav {
	display: flex;
	gap: 20px;
	font-size: 14px;
	margin-left: auto;
}

.dash-nav a {
	color: var(--slate);
	text-decoration: none;
}

.dash-nav > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid transparent;
}

.dash-nav > a.is-active {
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
}

.dash-dd {
	position: relative;
}

.dash-dd-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	line-height: inherit;
	color: var(--slate);
	cursor: pointer;
}

.dash-dd-toggle.is-active {
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
}

.dash-dd-menu {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 30;
	min-width: 170px;
	padding: 6px;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 0;
	box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
}

.dash-dd.open .dash-dd-menu {
	display: flex;
}

.dash-dd-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 0;
	border-radius: 0;
	color: var(--slate);
	text-decoration: none;
	white-space: nowrap;
}

.dash-dd-menu a:hover,
.dash-dd-menu a:focus-visible {
	background: rgba(90, 95, 102, 0.1);
	color: var(--ink);
}

.dash-dd-menu a.is-active {
	color: var(--ink);
	font-weight: 600;
}

.dash-account {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: var(--slate);
}

.dash-switch select {
	font: inherit;
	color: var(--ink);
	border: 1px solid var(--rule);
	border-radius: 6px;
	padding: 2px 6px;
	background: var(--paper, #fff);
}

.link-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: none;
	padding: 0;
	color: var(--ink);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.nav-ico {
	width: 14px;
	height: 14px;
	flex: none;
	opacity: 0.75;
}

.footer-inner nav form {
	margin: 0;
}

.dash-main h1 {
	margin: 0 0 24px;
	font-size: 36px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.dash-main h2 {
	margin: 40px 0 16px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.dash-main p {
	color: var(--slate);
}

.dash-main section {
	margin-bottom: 48px;
}

.dash-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 14px;
}

.table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.dash-table th {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--rule);
	color: var(--slate);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}

.dash-table td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

.dash-table code,
.dash-main code {
	font-family: var(--mono);
	font-size: 12px;
	word-break: break-all;
}

.dash-table td code {
	white-space: nowrap;
	word-break: normal;
}

.dash-form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
	margin: 16px 0 24px;
}

.dash-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--slate);
}

.dash-form input,
.dash-form select,
.dash-form textarea {
	padding: 9px 10px;
	border: 1px solid var(--rule);
	border-radius: 3px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.dash-form textarea {
	min-height: 120px;
	width: 100%;
	font-family: var(--mono);
	font-size: 12px;
}

.button-sm {
	padding: 9px 14px;
	border: 0;
	border-radius: 3px;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.button-quiet {
	background: none;
	border: 1px solid var(--rule);
	color: var(--ink);
}

.token-box {
	padding: 16px 18px;
	margin: 0 0 24px;
	border: 1px solid var(--rule);
	border-left: 3px solid var(--delivered);
	border-radius: 3px;
	background: rgba(31, 122, 77, 0.06);
	font-family: var(--mono);
	font-size: 13px;
	word-break: break-all;
}

.record-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--slate);
}

.record-list li {
	padding: 6px 0;
	border-bottom: 1px solid var(--rule);
	word-break: break-all;
}

.status {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 2px;
	font-family: var(--mono);
	font-size: 12px;
	background: rgba(90, 95, 102, 0.12);
}

.status-delivered {
	color: var(--delivered);
	background: rgba(31, 122, 77, 0.1);
}

.status-bounced,
.status-expired,
.status-suspended {
	color: var(--failure);
	background: rgba(180, 69, 47, 0.1);
}

.status-sandboxed {
	color: var(--slate);
	background: rgba(90, 95, 102, 0.1);
}

.status-active {
	color: var(--delivered);
	background: rgba(31, 122, 77, 0.1);
}

.status-pending_dns,
.status-pending_activation {
	color: var(--ink);
	background: rgba(90, 95, 102, 0.1);
}

.dash-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 24px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.dash-stats li {
	padding: 16px 0;
	border-top: 1px solid var(--rule);
}

.dash-stats .label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
	margin-bottom: 6px;
}

.dash-stats .value {
	font-family: var(--mono);
	font-size: 24px;
}

@media (max-width: 820px) {
	.header-inner {
		flex-wrap: wrap;
		height: auto;
		padding-top: 16px;
		padding-bottom: 16px;
		gap: 12px;
	}

	.dash-nav {
		order: 3;
		width: 100%;
		flex-wrap: wrap;
		gap: 14px;
		margin-left: 0;
	}

	.dash-dd-toggle {
		display: none;
	}

	.dash-dd-menu {
		display: flex;
		position: static;
		flex-direction: row;
		gap: 14px;
		min-width: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.dash-account {
		margin-left: auto;
		max-width: 60%;
	}

	.dash-account span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

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

@media (max-width: 480px) {
	.dash-account span {
		display: none;
	}
}

/* Form system */

.page-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.page-head h1 {
	margin: 0 0 8px;
}

.page-lede {
	max-width: 560px;
	margin: 0;
	color: var(--slate);
	font-size: 15px;
	line-height: 1.5;
}

.form-panel {
	max-width: 640px;
	margin: 0 0 40px;
	padding: 24px;
	border: 1px solid var(--rule);
	border-radius: 4px;
	background: rgba(250, 249, 246, 0.65);
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.field > span {
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: 3px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.field textarea {
	min-height: 120px;
	font-family: var(--mono);
	font-size: 12px;
	line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
	border-color: var(--ink);
}

.field .hint {
	color: var(--slate);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.field-full {
	grid-column: 1 / -1;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.banner {
	margin: 0 0 24px;
	padding: 12px 14px;
	border-left: 3px solid var(--slate);
	border-radius: 3px;
	font-size: 14px;
}

.banner-error {
	border-color: var(--failure);
	background: rgba(180, 69, 47, 0.08);
}

.banner-ok {
	border-color: var(--delivered);
	background: rgba(31, 122, 77, 0.07);
}

.domain-card {
	max-width: 900px;
	padding: 28px 0;
	border-top: 1px solid var(--rule);
}

.domain-card h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}

.check {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--slate);
}

.check-pass {
	color: var(--delivered);
}

.check-fail {
	color: var(--failure);
}

.check-warning {
	color: var(--slate);
}

.field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	padding: 0;
	flex: 0 0 auto;
}

.check-line {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-size: 14px;
}

.dash-table td form {
	display: inline-block;
	margin-right: 6px;
}

.ops-flow {
	max-width: 900px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.ops-flow li {
	position: relative;
	padding: 0 0 18px 36px;
	color: var(--slate);
	font-size: 14px;
}

.ops-flow li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 22px;
	height: 22px;
	border: 1px solid var(--rule);
	border-radius: 50%;
	color: var(--ink);
	font-family: var(--mono);
	font-size: 11px;
	line-height: 22px;
	text-align: center;
}

dialog.modal {
	width: min(640px, calc(100vw - 32px));
	max-height: 88vh;
	padding: 0;
	border: 1px solid var(--rule);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 24px 64px rgba(17, 17, 17, 0.18);
}

dialog.modal::backdrop {
	background: rgba(17, 17, 17, 0.45);
}

.modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 24px 0;
}

.modal-head h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.modal-close {
	border: 0;
	background: none;
	padding: 0;
	color: var(--slate);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.modal-lede {
	margin: 8px 24px 0;
	color: var(--slate);
	font-size: 14px;
	line-height: 1.5;
}

.modal-body {
	padding: 20px 24px 24px;
	overflow-y: auto;
	max-height: 68vh;
}

.modal .form-panel {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.page-head-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-shrink: 0;
}

@media (max-width: 720px) {
	dialog.modal {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border: 0;
		border-radius: 0;
	}

	.modal-body {
		max-height: none;
	}
}

@media (max-width: 720px) {
	.form-panel {
		padding: 18px;
	}

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

	.page-head {
		flex-direction: column;
		gap: 8px;
	}
}
