@import "./theme.css";

/* Mock provider pages */
:root {
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	color: var(--txt-primary);
	background: var(--bg-canvas);
	font-synthesis: none;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 40px 20px;
}
main {
	width: 100%;
	max-width: 460px;
	min-width: 0;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	font-size: 16px;
	font-weight: 700;
	color: var(--txt-secondary);
	text-decoration: none;
}
.brand-name {
	color: var(--bg-accent-primary);
	font-size: larger;
}
.brand-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bg-accent-primary);
	margin-top: 3px;
}
.mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var(--txt-primary);
	font-size: 11px;
	letter-spacing: 0.03em;
}
.brand-logo {
	width: 32px;
	height: 32px;
}
.card {
	border: 1px solid var(--border-subtle);
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 12px 35px color-mix(in srgb, var(--txt-primary) 3%, transparent);
}
h1 {
	font-size: 27px;
	letter-spacing: -0.035em;
	margin: 0 0 12px;
}
h2 {
	font-size: 16px;
	margin: 0 0 16px;
}
p {
	font-size: 14px;
	line-height: 1.65;
	color: var(--txt-secondary);
	margin: 0 0 22px;
}
a {
	color: var(--bg-accent-primary);
	text-underline-offset: 3px;
}
label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 18px 0 7px;
}
input:not([type="hidden"]) {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	padding: 12px;
	font: inherit;
	font-size: 15px;
	background: var(--bg-layer-1);
	color: inherit;
}
input:focus {
	outline: 3px solid
		color-mix(in srgb, var(--bg-accent-primary) 13%, transparent);
	border-color: var(--bg-accent-primary);
}
button,
.button {
	display: block;
	width: 100%;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 12px 16px;
	background: var(--bg-accent-primary);
	color: var(--bg-canvas);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	margin-top: 18px;
}
button:hover,
.button:hover {
	background: var(--bg-accent-primary-hover);
}
button:focus-visible,
a:focus-visible {
	outline: 3px solid var(--ring);
	outline-offset: 3px;
}
.secondary {
	background: var(--bg-surface-1);
	color: var(--txt-secondary);
	border-color: var(--border-subtle);
}
.secondary:hover {
	background: var(--border-subtle);
}
.divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 25px 0;
	color: var(--txt-tertiary);
	font-size: 12px;
}
.divider:before,
.divider:after {
	content: "";
	height: 1px;
	flex: 1;
	background: var(--border-subtle);
}
.notice {
	padding: 14px 16px;
	border: 1px solid var(--ring);
	border-radius: 10px;
	background: var(--bg-surface-1);
	margin: 20px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--bg-accent-primary);
}
.notice p {
	margin: 0;
	color: inherit;
}
.notice a {
	display: block;
	margin-top: 7px;
	overflow-wrap: anywhere;
}
.error {
	color: var(--danger-500);
	background: var(--bg-surface-1);
	border-color: var(--border-strong);
}
.footer {
	text-align: center;
	margin: 24px 0 0;
	font-size: 13px;
}
.credential,
code#password {
	display: block;
	background: var(--bg-surface-1);
	border: 1px solid var(--border-subtle);
	border-radius: 8px;
	padding: 12px;
	font:
		13px ui-monospace,
		monospace;
	overflow-wrap: anywhere;
	color: var(--txt-secondary);
	margin: 7px 0 18px;
}
.credential-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--txt-secondary);
}
.actions {
	display: flex;
	gap: 10px;
}
.actions > * {
	flex: 1;
}
.destination {
	font-weight: 600;
	color: var(--txt-secondary);
	overflow-wrap: anywhere;
}
.account-shell {
	max-width: 1400px;
}
.account-grid {
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	column-gap: 48px;
	row-gap: 0;
	align-items: start;
}
.account-details {
	min-width: 0;
}
.test-addresses {
	grid-column: 1 / -1;
	padding-top: 32px;
	border-top: 1px solid var(--border-subtle);
	min-width: 0;
}
.subtitle {
	font-size: 21px;
	letter-spacing: -0.02em;
}
.test-addresses code {
	font:
		12px ui-monospace,
		monospace;
	color: var(--txt-secondary);
}
.table-scroll {
	overflow-x: auto;
	margin: 0 0 18px;
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
}
.test-addresses table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.55;
	color: var(--txt-secondary);
}
.test-addresses th {
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: var(--txt-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--bg-surface-1);
	padding: 10px 14px;
	border-bottom: 1px solid var(--border-subtle);
}
.test-addresses td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--bg-surface-2);
	vertical-align: top;
}
.test-addresses tr:last-child td {
	border-bottom: 0;
}
.test-addresses td:first-child {
	white-space: nowrap;
}
.permissions {
	font-size: 14px;
	line-height: 1.6;
	color: var(--txt-secondary);
	padding-left: 20px;
	margin: 0 0 8px;
}
.email-tips {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border-subtle);
}
.email-tips p:last-child {
	margin-bottom: 0;
}
.integrations {
	min-width: 0;
	border-left: 1px solid var(--border-subtle);
	padding-left: 32px;
}
.integrations > p:first-of-type {
	margin-top: 0;
}
.integrations details {
	padding: 16px;
	background: var(--bg-surface-1);
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
}
.integrations details {
	margin: 18px 0;
}
.integrations summary {
	cursor: pointer;
	font-weight: 600;
}
.code-label {
	font-size: 13px;
	font-weight: 600;
	margin: 18px 0 7px;
}
.code-block {
	margin: 0;
	/* 18 lines, then it scrolls. */
	max-height: calc(18 * 1.6em + 24px);
	padding: 12px;
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	background: var(--bg-surface-1);
	color: var(--txt-secondary);
	font:
		12px / 1.6 ui-monospace,
		monospace;
	overflow: auto;
}
.code-block:focus {
	outline: 3px solid
		color-mix(in srgb, var(--bg-accent-primary) 13%, transparent);
}
/* Shiki's GitHub Light and Dark colors, as the marketing site uses. */
:root {
	--code-keyword: #d73a49;
	--code-string: #032f62;
	--code-constant: #005cc5;
	--code-function: #6f42c1;
	--code-comment: #6a737d;
	--code-parameter: #e36209;
}
[data-theme="dark"] {
	--code-keyword: #f97583;
	--code-string: #9ecbff;
	--code-constant: #79b8ff;
	--code-function: #b392f0;
	--code-parameter: #ffab70;
}
@media (prefers-color-scheme: dark) {
	:root {
		--code-keyword: #f97583;
		--code-string: #9ecbff;
		--code-constant: #79b8ff;
		--code-function: #b392f0;
		--code-parameter: #ffab70;
	}
}
.tok-keyword {
	color: var(--code-keyword);
}
.tok-string {
	color: var(--code-string);
}
.tok-constant {
	color: var(--code-constant);
}
.tok-function {
	color: var(--code-function);
}
.tok-comment {
	color: var(--code-comment);
}
.tok-parameter {
	color: var(--code-parameter);
}
.integrations p {
	margin-top: 18px;
}
.segmented {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 14px 0;
}
.segmented-label {
	width: 96px;
	font-size: 12px;
	font-weight: 600;
	color: var(--txt-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.segmented button {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 7px 14px;
	border-radius: 999px;
	background: transparent;
	color: var(--txt-secondary);
	border: 1px solid var(--border-strong);
	font-size: 13px;
	box-shadow: none;
}
.segmented button:hover {
	background: var(--bg-surface-2);
}
.segmented button[aria-pressed="true"] {
	background: var(--bg-accent-primary);
	border-color: var(--bg-accent-primary);
	color: var(--bg-canvas);
}
.integration-panel {
	margin-top: 20px;
	padding: 16px;
	background: var(--bg-surface-1);
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
}
.integration-panel label:first-child {
	margin-top: 0;
}
.integration-panel > p {
	margin: 18px 0 0;
}
@media (max-width: 850px) {
	.account-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.integrations {
		border-left: 0;
		border-top: 1px solid var(--border-subtle);
		padding-left: 0;
		padding-top: 24px;
	}
}
@media (max-width: 480px) {
	body {
		padding: 24px 16px;
	}
	.card {
		padding: 24px;
	}
}
