/**
 * Searqo Core: dashboard, account, and contact screens.
 *
 * Loaded only on the signed-in dashboard and the account pages. It builds on
 * the tool stylesheet, which is registered as its dependency.
 */

/* -------------------------------------------------------------------------
 * 1. Dashboard layout
 * ---------------------------------------------------------------------- */

.sq-dash {
	display: grid;
	gap: var(--sq-space-6, 1.5rem);
	align-items: start;
}

@media (min-width: 62em) {
	.sq-dash {
		grid-template-columns: 15rem minmax(0, 1fr);
	}

	.sq-dash__nav {
		position: sticky;
		top: calc(var(--sq-header-height, 68px) + 1rem);
	}
}

.sq-dash__nav {
	padding: var(--sq-space-4, 1rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-radius: var(--sq-radius-lg, 14px);
	background-color: var(--sq-surface, #fff);
}

.sq-dash__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 var(--sq-space-3, 0.75rem);
	color: var(--sq-navy, #0b1220);
	font-size: 1rem;
	font-weight: 700;
}

.sq-dash__brand img {
	display: block;
	border-radius: 6px;
}

.sq-dash__greeting {
	margin: 0 0 var(--sq-space-3, 0.75rem);
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-sm, 0.8125rem);
}

/*
 * Below the sidebar breakpoint the section list is a panel opened by a button,
 * rather than a horizontally scrolling strip beside the content. The button is
 * hidden — and the list always shown — from 62em upwards.
 */
.sq-dash__nav-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sq-space-3, 0.75rem);
	width: 100%;
	min-height: var(--sq-tap, 44px);
	padding: var(--sq-space-2, 0.5rem) var(--sq-space-3, 0.75rem);
	border: 1px solid var(--sq-border-strong, #cbd5e1);
	border-radius: var(--sq-radius-sm, 6px);
	background-color: var(--sq-surface, #fff);
	color: var(--sq-text, #111827);
	font-family: inherit;
	font-size: var(--sq-text-sm, 0.8125rem);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.sq-dash__nav-toggle-current {
	color: var(--sq-text-muted, #5b6474);
	font-weight: 500;
}

.sq-dash__nav-toggle[aria-expanded="true"] {
	border-color: var(--sq-blue, #2563eb);
}

.sq-dash__nav-list {
	display: block;
	margin: var(--sq-space-2, 0.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.sq-dash__nav-list[hidden] {
	display: none;
}

.sq-dash__nav-list li {
	margin: 0;
}

@media (min-width: 62em) {
	.sq-dash__nav-toggle {
		display: none;
	}

	.sq-dash__nav-list {
		margin-top: 0;
	}

	/* The panel state is a small-screen concern only. */
	.sq-dash__nav-list[hidden] {
		display: block;
	}
}

.sq-dash__nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sq-space-2, 0.5rem);
	min-height: var(--sq-tap, 44px);
	padding: var(--sq-space-2, 0.5rem) var(--sq-space-3, 0.75rem);
	border-radius: var(--sq-radius-sm, 6px);
	color: var(--sq-text, #111827);
	font-size: var(--sq-text-sm, 0.8125rem);
	font-weight: 600;
	text-decoration: none;
}

.sq-dash__nav-label {
	min-width: 0;
	overflow-wrap: break-word;
}

/* A badge never dictates the width of the row or pushes the label out. */
.sq-dash__nav-link .sq-badge {
	flex: none;
	max-width: 45%;
	white-space: nowrap;
}

.sq-dash__nav-link:hover {
	background-color: var(--sq-bg-alt, #eef2f9);
}

/*
 * Three states that have to stay distinguishable from one another:
 *
 *   hover   — a plain grey wash, no border
 *   current — light blue with a blue rule on the leading edge, marked with
 *             aria-current so it is not signalled by colour alone
 *   focus   — an offset ring, only for keyboard users
 *
 * The ring is bound to :focus-visible and explicitly removed for :focus, so a
 * mouse click leaves nothing behind that could be mistaken for selection.
 */
.sq-dash__nav-link.is-current {
	background-color: var(--sq-blue-soft, #eff4ff);
	box-shadow: inset 3px 0 0 var(--sq-blue, #2563eb);
	color: var(--sq-blue-active, #1e40af);
}

.sq-dash__nav-link:focus {
	outline: none;
}

.sq-dash__nav-link:focus-visible {
	outline: 2px solid var(--sq-blue, #2563eb);
	outline-offset: 2px;
}

/* A section that is not built yet is named, not offered. */
.sq-dash__nav-link--soon {
	color: var(--sq-text-muted, #5b6474);
	cursor: default;
}

.sq-dash__nav-link--soon:hover {
	background-color: transparent;
}

.sq-dash__nav-toggle-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.sq-dash__nav-chevron {
	flex: none;
	transition: transform 150ms ease;
}

.sq-dash__nav-toggle[aria-expanded="true"] .sq-dash__nav-chevron {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.sq-dash__nav-chevron {
		transition: none;
	}
}

.sq-dash__nav-footer {
	margin: var(--sq-space-4, 1rem) 0 0;
	padding-top: var(--sq-space-3, 0.75rem);
	border-top: 1px solid var(--sq-border, #e3e8f0);
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-dash__main {
	min-width: 0;
}

/*
 * Dashboard metric cards: one column on phones, two once there is room for a
 * pair, and four only on a wide desktop where the sidebar still leaves each
 * card a sensible width. Scoped to the dashboard so the tool pages keep their
 * own metric grid.
 */
.sq-dash .sq-metrics {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 34em) {
	.sq-dash .sq-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 80em) {
	.sq-dash .sq-metrics {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Numbers should not widen a card past its share of the row. */
.sq-dash .sq-metric {
	min-width: 0;
}

/*
 * A card showing a state instead of a number keeps the height of one that shows
 * a number, so a row of cards still lines up.
 */
.sq-metric__value--state {
	display: flex;
	align-items: center;
	min-height: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
	font-size: 1rem;
}

.sq-dash .sq-metric__value {
	overflow-wrap: break-word;
}

/*
 * Repeated from the theme so the dashboard empty states stay compact under a
 * theme that does not ship the Searqo components.
 */
.sq-empty--compact {
	align-items: flex-start;
	padding: var(--sq-space-5, 1.25rem);
	text-align: left;
}

.sq-empty__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sq-space-2, 0.5rem) var(--sq-space-4, 1rem);
	margin: var(--sq-space-1, 0.25rem) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-empty__links li {
	margin: 0;
}

/*
 * Empty-state actions sit side by side when there is room and stack below it,
 * keeping both buttons at the 44px touch height either way.
 */
.sq-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sq-space-2, 0.5rem);
	margin-top: var(--sq-space-2, 0.5rem);
}

.sq-empty__actions > * {
	min-height: var(--sq-tap, 44px);
}

@media (max-width: 30em) {
	.sq-empty__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.sq-empty__actions > * {
		justify-content: center;
		text-align: center;
	}
}

/* -------------------------------------------------------------------------
 * Saved report cards
 * ---------------------------------------------------------------------- */

.sq-report-list {
	display: grid;
	gap: var(--sq-space-3, 0.75rem);
	margin: 0 0 var(--sq-space-5, 1.25rem);
	padding: 0;
	list-style: none;
}

.sq-report-card {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sq-space-3, 0.75rem);
	margin: 0;
	padding: var(--sq-space-4, 1rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-radius: var(--sq-radius, 10px);
	background-color: var(--sq-surface, #fff);
}

.sq-report-card__body {
	min-width: 0;
	flex: 1 1 16rem;
}

.sq-report-card__title {
	margin: 0 0 var(--sq-space-2, 0.5rem);
	font-size: var(--sq-text-base, 0.9375rem);
	line-height: 1.35;
}

.sq-report-card__title a {
	color: var(--sq-navy, #0b1220);
	text-decoration: none;
}

.sq-report-card__title a:hover {
	color: var(--sq-blue-hover, #1d4ed8);
	text-decoration: underline;
}

/*
 * Label and value pairs in a two-column grid on wider screens, stacking on
 * narrow ones. `anywhere` is needed because a sitemap URL has no spaces to
 * break at and would otherwise push the card sideways.
 */
.sq-report-card__meta,
.sq-report__facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.1rem var(--sq-space-3, 0.75rem);
	margin: 0;
	font-size: var(--sq-text-sm, 0.8125rem);
}

@media (min-width: 28em) {
	.sq-report-card__meta,
	.sq-report__facts {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

.sq-report-card__meta dt,
.sq-report__facts dt {
	margin: 0;
	color: var(--sq-text-muted, #5b6474);
	font-weight: 600;
}

.sq-report-card__meta dd,
.sq-report__facts dd {
	margin: 0 0 0.25rem;
	min-width: 0;
	color: var(--sq-text, #111827);
}

.sq-report-card__subject,
.sq-report__subject {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.sq-report-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sq-space-2, 0.5rem);
	flex: 0 1 auto;
}

.sq-report-card__delete {
	margin: 0;
}

/* Compact buttons, but still a comfortable target on a touch screen. */
.sq-report-card__actions .sq-btn {
	min-height: var(--sq-tap, 44px);
}

@media (max-width: 30em) {
	.sq-report-card__actions {
		width: 100%;
	}

	.sq-report-card__actions .sq-btn,
	.sq-report-card__delete {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/*
 * Destructive but secondary: readable, not shouting, and clearly different
 * from the primary View report action next to it.
 */
.sq-btn--quiet-danger {
	border-color: var(--sq-border-strong, #cbd5e1);
	background-color: transparent;
	color: var(--sq-error-strong, #b91c1c);
	box-shadow: none;
}

.sq-btn--quiet-danger:hover {
	border-color: var(--sq-error-strong, #b91c1c);
	background-color: var(--sq-error-soft, #fdecec);
	color: var(--sq-error-strong, #b91c1c);
}

/* -------------------------------------------------------------------------
 * Saved report detail
 * ---------------------------------------------------------------------- */

.sq-report__back {
	margin: 0 0 var(--sq-space-4, 1rem);
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-report__heading {
	margin: var(--sq-space-5, 1.25rem) 0 var(--sq-space-2, 0.5rem);
	font-size: var(--sq-text-base, 0.9375rem);
}

.sq-report__results {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.1rem var(--sq-space-4, 1rem);
	margin: 0;
	font-size: var(--sq-text-sm, 0.8125rem);
}

@media (min-width: 34em) {
	.sq-report__results {
		grid-template-columns: 12rem minmax(0, 1fr);
	}
}

.sq-report__results dt {
	margin: 0;
	color: var(--sq-text-muted, #5b6474);
	font-weight: 600;
}

.sq-report__results dd {
	margin: 0 0 0.4rem;
	min-width: 0;
	overflow-wrap: anywhere;
}

/*
 * Overall state. The tint is a supporting cue only: the badge spells the state
 * out in words, and the leading rule gives it a second non-colour signal.
 */
.sq-report__status {
	display: grid;
	gap: 0.35rem;
	margin: 0 0 var(--sq-space-5, 1.25rem);
	padding: var(--sq-space-3, 0.75rem) var(--sq-space-4, 1rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-left-width: 3px;
	border-radius: var(--sq-radius-sm, 6px);
	background-color: var(--sq-bg-alt, #f6f8fc);
}

.sq-report__status--success {
	border-left-color: var(--sq-success-strong, #0f7a37);
}

.sq-report__status--warning {
	border-left-color: var(--sq-warning-strong, #b45309);
}

.sq-report__status--error {
	border-left-color: var(--sq-error-strong, #b91c1c);
}

.sq-report__status--neutral {
	border-left-color: var(--sq-border-strong, #cbd5e1);
}

.sq-report__status-label,
.sq-report__status-text {
	margin: 0;
}

.sq-report__status-text {
	color: var(--sq-text, #111827);
	font-size: var(--sq-text-sm, 0.8125rem);
}

/* Supporting text under a value, for a label that needs explaining. */
.sq-report__note {
	display: block;
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-xs, 0.75rem);
}

.sq-report__count {
	margin-left: 0.4rem;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background-color: var(--sq-bg-alt, #eef2f9);
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-xs, 0.75rem);
	font-weight: 600;
}

/*
 * The Sitemap column takes whatever room is left and breaks long addresses;
 * Status and URLs stay as narrow as their content. Because the address wraps,
 * the table fits a desktop column and the wrapper never scrolls there.
 */
.sq-report__table {
	overflow-x: auto;
}

.sq-table--report {
	width: 100%;
	table-layout: auto;
}

.sq-table--report th[scope="row"] {
	width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	font-weight: 500;
}

.sq-table--report td {
	white-space: nowrap;
	vertical-align: top;
}

/*
 * Below 40em there is not enough width for three columns without squeezing the
 * address into a narrow ribbon, so each row becomes a stacked block: the address
 * on a full-width line, then its status and count with their column names in
 * front of them. The explicit roles in the markup keep the table semantics that
 * display: block would otherwise remove, so nothing is lost by doing this.
 */
@media (max-width: 40em) {
	.sq-table--report,
	.sq-table--report tbody,
	.sq-table--report tr,
	.sq-table--report th,
	.sq-table--report td {
		display: block;
	}

	.sq-table--report thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.sq-table--report tr {
		padding: var(--sq-space-3, 0.75rem) 0;
		border-bottom: 1px solid var(--sq-border, #e3e8f0);
	}

	.sq-table--report tr:last-child {
		border-bottom: 0;
	}

	.sq-table--report th,
	.sq-table--report td {
		padding-top: 0;
		padding-bottom: 0;
		border-bottom: 0;
		white-space: normal;
	}

	.sq-table--report th[scope="row"] {
		width: auto;
		margin-bottom: 0.35rem;
	}

	.sq-table--report td {
		display: flex;
		flex-wrap: wrap;
		gap: 0.4rem;
		margin-top: 0.25rem;
	}

	/* The column name travels with the value once the header row is hidden. */
	.sq-table--report td::before {
		content: attr(data-label);
		color: var(--sq-text-muted, #5b6474);
		font-size: var(--sq-text-xs, 0.75rem);
		font-weight: 600;
	}

	.sq-table--report td.sq-table__num {
		text-align: left;
	}
}

/*
 * Scoped to the report table on purpose. A bare .sq-table__num loses to
 * `.sq-table th, .sq-table td { text-align: left }`, which is more specific.
 */
.sq-table--report th.sq-table__num,
.sq-table--report td.sq-table__num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.sq-report__problems {
	display: grid;
	gap: var(--sq-space-3, 0.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-report__problem {
	margin: 0;
	padding: var(--sq-space-3, 0.75rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-radius: var(--sq-radius-sm, 6px);
}

.sq-report__problem-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sq-space-2, 0.5rem);
	margin: 0 0 0.3rem;
}

.sq-report__problem-source {
	min-width: 0;
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-xs, 0.75rem);
	font-weight: 600;
}

.sq-report__problem-body {
	margin: 0;
	overflow-wrap: break-word;
}

.sq-report__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sq-space-3, 0.75rem);
	margin-top: var(--sq-space-6, 1.5rem);
	padding-top: var(--sq-space-4, 1rem);
	border-top: 1px solid var(--sq-border, #e3e8f0);
}

.sq-report__actions form {
	margin: 0;
}

.sq-report__actions .sq-btn {
	min-height: var(--sq-tap, 44px);
}

/* One action per row on a phone, each one full width and easy to hit. */
@media (max-width: 30em) {
	.sq-report__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.sq-report__actions .sq-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Printed reports lose background tints, so the text has to carry the state. */
@media print {
	.sq-report__status,
	.sq-report__problem {
		background-color: transparent;
	}

	.sq-report__actions {
		display: none;
	}
}

.sq-dash__header {
	margin-bottom: var(--sq-space-5, 1.25rem);
}

.sq-dash__title {
	margin-bottom: var(--sq-space-1, 0.25rem);
	font-size: var(--sq-h3, 1.35rem);
}

.sq-dash__description,
.sq-dash__note {
	margin: 0;
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-dash__note {
	margin-top: var(--sq-space-4, 1rem);
}

.sq-dash__subheading {
	margin-top: var(--sq-space-8, 2rem);
	font-size: var(--sq-h4, 1.15rem);
}

/* -------------------------------------------------------------------------
 * 2. Projects
 * ---------------------------------------------------------------------- */

.sq-project {
	padding: var(--sq-space-4, 1rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-radius: var(--sq-radius, 10px);
	background-color: var(--sq-surface, #fff);
}

.sq-project + .sq-project {
	margin-top: var(--sq-space-3, 0.75rem);
}

.sq-project__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--sq-space-2, 0.5rem);
	margin-bottom: var(--sq-space-1, 0.25rem);
}

.sq-project__name {
	margin: 0;
	font-size: var(--sq-text-md, 1rem);
}

.sq-project__domain {
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-sm, 0.8125rem);
	word-break: break-all;
}

.sq-project__meta {
	margin: 0 0 var(--sq-space-3, 0.75rem);
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-xs, 0.75rem);
}

.sq-project__delete {
	margin: 0;
}

/* A collapsed form keeps a long project list scannable without JavaScript. */
.sq-details {
	margin-bottom: var(--sq-space-3, 0.75rem);
}

.sq-details__summary {
	display: inline-flex;
	align-items: center;
	min-height: var(--sq-tap, 44px);
	color: var(--sq-blue, #2563eb);
	font-size: var(--sq-text-sm, 0.8125rem);
	font-weight: 600;
	cursor: pointer;
}

.sq-details[open] .sq-details__summary {
	margin-bottom: var(--sq-space-3, 0.75rem);
}

/* -------------------------------------------------------------------------
 * 3. Position change indicator
 * ---------------------------------------------------------------------- */

.sq-change {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: var(--sq-text-sm, 0.8125rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sq-change--up {
	color: var(--sq-success-strong, #0f7a37);
}

.sq-change--down {
	color: var(--sq-error-strong, #b91c1c);
}

.sq-change--flat {
	color: var(--sq-text-muted, #5b6474);
}

/* -------------------------------------------------------------------------
 * 4. Panels, pagination, and auth screens
 * ---------------------------------------------------------------------- */

.sq-panel {
	padding: var(--sq-space-5, 1.25rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-radius: var(--sq-radius-lg, 14px);
	background-color: var(--sq-surface, #fff);
	margin-bottom: var(--sq-space-5, 1.25rem);
}

.sq-panel > :last-child {
	margin-bottom: 0;
}

.sq-panel__title {
	margin-bottom: var(--sq-space-3, 0.75rem);
	font-size: var(--sq-h4, 1.15rem);
}

.sq-pagination__status {
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-pagination__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--sq-tap, 44px);
	padding: 0 var(--sq-space-3, 0.75rem);
	border: 1px solid var(--sq-border-strong, #cbd4e2);
	border-radius: var(--sq-radius-sm, 6px);
	font-size: var(--sq-text-sm, 0.8125rem);
	font-weight: 600;
	text-decoration: none;
}

.sq-auth,
.sq-account,
.sq-contact {
	max-width: 34rem;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border: 1px solid var(--sq-border, #e3e8f0);
	border-radius: var(--sq-radius-lg, 14px);
	background: var(--sq-surface, #fff);
	box-shadow: var(--sq-shadow-xs, 0 1px 2px rgba(11, 18, 32, 0.05));
}

/* Nested card + form: avoid double padding on small screens. */
.sq-auth-card .sq-auth,
.sq-auth-card .sq-account,
.sq-auth-card .sq-contact {
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.sq-auth .sq-input,
.sq-auth .sq-select,
.sq-auth .sq-textarea,
.sq-account .sq-input,
.sq-account .sq-select,
.sq-account .sq-textarea {
	font-size: 16px;
	max-width: 100%;
}

.sq-auth__status {
	margin: 0 0 var(--sq-space-4, 1rem);
	padding: 0.75rem 0.9rem;
	border-radius: var(--sq-radius-sm, 6px);
	font-size: var(--sq-text-sm, 0.875rem);
	line-height: 1.45;
}

.sq-auth__status--info {
	background: #eff6ff;
	color: #1e3a8a;
	border: 1px solid #bfdbfe;
}

.sq-auth__status--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.sq-auth .sq-btn,
.sq-account .sq-btn {
	background-color: #2563eb;
	color: #ffffff;
	min-height: var(--sq-tap, 44px);
}

.sq-auth .sq-btn:hover,
.sq-account .sq-btn:hover {
	background-color: #1d4ed8;
	color: #ffffff;
}

.sq-auth .sq-btn:active,
.sq-account .sq-btn:active {
	background-color: #1e40af;
	color: #ffffff;
}

.sq-auth .sq-btn:focus-visible,
.sq-account .sq-btn:focus-visible {
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
	color: #ffffff;
}

.sq-auth .sq-btn:disabled,
.sq-auth .sq-btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.sq-auth__intro {
	color: var(--sq-text-muted, #5b6474);
}

.sq-auth__meta {
	margin: var(--sq-space-4, 1rem) 0 0;
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-auth__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sq-space-3, 0.75rem);
	margin-top: var(--sq-space-4, 1rem);
}

.sq-password-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.sq-password-wrap .sq-input {
	flex: 1 1 auto;
	padding-right: 4.75rem;
}

.sq-password-toggle {
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	min-height: 44px;
	min-width: 44px;
	padding: 0.35rem 0.65rem;
	border: 0;
	border-radius: var(--sq-radius-sm, 6px);
	background: transparent;
	color: var(--sq-text-muted, #5b6474);
	font: inherit;
	font-size: var(--sq-text-sm, 0.8125rem);
	font-weight: 600;
	cursor: pointer;
}

.sq-password-toggle:hover,
.sq-password-toggle:focus-visible {
	color: var(--sq-text, #0b1220);
	outline: none;
}

.sq-password-toggle:focus-visible {
	box-shadow: 0 0 0 2px #93c5fd;
}

@media (max-width: 40rem) {
	.sq-auth,
	.sq-account,
	.sq-contact {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.sq-auth .sq-field,
	.sq-account .sq-field {
		min-width: 0;
	}
}

.sq-account__subheading {
	margin-top: var(--sq-space-8, 2rem);
	font-size: var(--sq-h4, 1.15rem);
}

.sq-alert__list {
	margin: var(--sq-space-2, 0.5rem) 0 0;
	padding-left: 1.25em;
	font-size: var(--sq-text-sm, 0.8125rem);
}

.sq-empty__body {
	color: var(--sq-text-muted, #5b6474);
}

.sq-code {
	display: inline-block;
	padding: 0.15em 0.4em;
	border-radius: var(--sq-radius-sm, 6px);
	background-color: var(--sq-bg-alt, #eef2f9);
	font-family: var(--sq-font-mono, monospace);
	font-size: var(--sq-text-sm, 0.8125rem);
	word-break: break-all;
}

.sq-bullets {
	color: var(--sq-text-muted, #5b6474);
	font-size: var(--sq-text-sm, 0.8125rem);
}

/* -------------------------------------------------------------------------
 * 5. Confirmation modal
 * ---------------------------------------------------------------------- */

/*
 * The dialog is created by searqo-app.js. The theme styles .sq-modal already;
 * these rules keep it working on its own and stop the page behind it scrolling.
 */
.sq-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sq-space-4, 1rem);
	background-color: rgba(11, 18, 32, 0.55);
}

.sq-modal__dialog {
	width: 100%;
	max-width: 30rem;
	padding: var(--sq-space-6, 1.5rem);
	border-radius: var(--sq-radius-lg, 14px);
	background-color: var(--sq-surface, #fff);
	box-shadow: var(--sq-shadow-lg, 0 18px 44px rgba(11, 18, 32, 0.12));
}

.sq-modal__body {
	margin: 0;
	color: var(--sq-text-muted, #5b6474);
}

body.sq-modal-open {
	overflow: hidden;
}
