/* Screen-specific pieces: approvals, memory, tasks, people, schedules, settings, sign-in, setup. */

/* ---- approvals --------------------------------------------------------------------------- */

.approval-list {
	display: grid;
	gap: 12px;
}
.approval-card {
	display: grid;
	gap: 10px;
	padding: 14px var(--row-inset);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card), inset 0 0 0 0.5px var(--line);
}
.approval-card[data-status="pending"] {
	box-shadow: var(--shadow-card), inset 0 0 0 1px color-mix(in srgb, var(--system-orange) 45%, transparent);
}
.approval-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.approval-title {
	min-width: 0;
	flex: 1;
}
.approval-title h3 {
	font-size: var(--text-headline);
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.approval-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 3px;
	color: var(--muted);
	font-size: var(--text-footnote);
}
.approval-meta .mono {
	font-size: var(--text-caption);
	overflow-wrap: anywhere;
}
.approval-origin {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 24px;
	color: var(--accent);
	font-size: var(--text-footnote);
	font-weight: 600;
}
.approval-origin .icon {
	width: 14px;
	height: 14px;
}
/* The few lines under the sentence: plain text a person reads, one fact a line. */
.approval-lines {
	display: grid;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--bg);
	color: var(--text);
	font-size: var(--text-subheadline);
	line-height: 1.4;
}
.approval-lines p {
	margin: 0;
	overflow-wrap: anywhere;
}
/* The exact tool call, shown only when asked for. */
.approval-technical {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--bg);
	color: var(--muted);
	font: var(--text-caption) / 1.45 var(--font-mono);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 18em;
	overflow: auto;
}
.approval-technical[hidden] {
	display: none;
}
/* "Always": what it would allow, in words, beside the button that does it. */
.approval-always-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding-top: 10px;
	border-top: 0.5px solid var(--line);
}
.approval-always-note {
	flex: 1 1 200px;
	min-width: 0;
	margin: 0;
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.approval-always {
	flex: 0 0 auto;
	min-height: 38px;
}
/* The standing permissions of the workspace, under what is waiting. */
.standing-permissions {
	margin-top: 22px;
}
.standing-permissions[hidden] {
	display: none;
}
.permission-row .row-subtitle {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
}
.permission-target {
	font-size: var(--text-caption);
	overflow-wrap: anywhere;
}
.permission-row .row-meta {
	display: grid;
	gap: 1px;
}
.permission-revoke {
	min-height: 34px;
	color: var(--system-red);
	font-weight: 600;
	white-space: nowrap;
}
.approval-more {
	justify-self: start;
	min-height: 30px;
	font-size: var(--text-footnote);
}
.approval-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.approval-buttons {
	display: flex;
	gap: 8px;
	flex: 1 1 220px;
	justify-content: flex-end;
}
.approval-buttons .btn {
	flex: 1 1 0;
	max-width: 180px;
	min-height: 42px;
}
.approval-expiry {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--muted);
	font-size: var(--text-footnote);
}
.approval-expiry .icon {
	width: 15px;
	height: 15px;
}
@media (max-width: 420px) {
	.approval-buttons {
		flex-basis: 100%;
	}
	.approval-buttons .btn {
		max-width: none;
	}
}

/* ---- memory ------------------------------------------------------------------------------ */

.list-status {
	margin: 0 4px 8px;
	color: var(--muted);
	font-size: var(--text-footnote);
}
.list-status:empty {
	display: none;
}
.memory-row {
	align-items: start;
	padding-block: 11px;
}
.memory-meta {
	margin: 0 0 4px;
	align-items: center;
}
.memory-text {
	font-size: var(--text-subheadline);
	line-height: 1.4;
	-webkit-line-clamp: 3;
}
.memory-row .row-end {
	align-self: center;
}
.score {
	color: var(--accent);
	font-weight: 600;
}

/* ---- tasks ------------------------------------------------------------------------------- */

.task-row {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	padding: 6px var(--row-inset) 6px 6px;
	--sep-inset: 56px;
}
.task-list > li + li .task-row::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 56px;
	border-top: 0.5px solid var(--line);
	content: "";
}
.task-check {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--faint);
}
.task-check .icon {
	width: 26px;
	height: 26px;
	stroke-width: 1.6;
}
.task-check.checked {
	color: var(--system-blue);
}
.task-check:active {
	transform: scale(0.9);
}
.task-body {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 6px 0;
	text-align: start;
	color: var(--text);
}
.task-row .row-end {
	align-self: center;
}
.is-done .task-body .row-title {
	color: var(--muted);
	text-decoration: line-through;
	text-decoration-color: var(--faint);
}
.pill .icon {
	width: 12px;
	height: 12px;
	stroke-width: 2.2;
}

/* ---- people ------------------------------------------------------------------------------ */

.avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, hsl(var(--hue, 210) 70% 62%), hsl(calc(var(--hue, 210) + 30) 65% 48%));
	color: #fff;
	font-size: var(--text-subheadline);
	font-weight: 700;
}
.avatar.big,
.ws-avatar.big {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: var(--text-title3);
}
.ws-avatar.big {
	border-radius: 14px;
}
.people-list {
	--sep-inset: calc(var(--row-inset) + 50px);
}
.person-hero {
	display: grid;
	justify-items: center;
	margin: 4px 0 16px;
}
.person-hero .avatar {
	width: 72px;
	height: 72px;
	font-size: var(--text-title1);
}

/* ---- schedules --------------------------------------------------------------------------- */

.schedule-row {
	align-items: center;
}
.schedule-body {
	display: grid;
	gap: 2px;
	min-width: 0;
	text-align: start;
	color: var(--text);
	padding: 4px 0;
}
.schedule-row.is-paused .schedule-body {
	opacity: 0.6;
}
.schedule-row .row-subtitle::first-letter {
	text-transform: uppercase;
}
.cron-reading {
	margin: 8px 4px 2px;
	color: var(--accent);
	font-size: var(--text-subheadline);
	font-weight: 600;
}
.cron-reading[data-error] {
	color: var(--danger);
	font-weight: 500;
}
.cron-presets {
	margin: 4px 0 4px;
	padding-inline: 0;
	margin-inline: 0;
}
.toggle-group {
	margin-top: 16px;
}
.toggle-group .row {
	cursor: pointer;
}
.row-end-group {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.accent-check {
	color: var(--accent);
	stroke-width: 2.4;
}

/* ---- policy ------------------------------------------------------------------------------ */

.policy-rules {
	counter-reset: none;
}
.policy-rule {
	align-items: start;
	--sep-inset: var(--row-inset);
}
.policy-rule .row-title {
	font-size: var(--text-subheadline);
	overflow-wrap: anywhere;
}
.policy-rule .row-subtitle {
	font-size: var(--text-caption);
	overflow-wrap: anywhere;
}
.rule-index {
	display: inline-block;
	min-width: 1.8em;
	color: var(--faint);
	font-variant-numeric: tabular-nums;
}
.policy-rule .row-end {
	align-self: center;
}

/* ---- settings ---------------------------------------------------------------------------- */

.about {
	margin: 24px 0 8px;
	color: var(--faint);
	font-size: var(--text-footnote);
	text-align: center;
}

/* ---- sign-in and gates ------------------------------------------------------------------- */

.auth {
	display: grid;
	place-items: center;
	min-height: var(--app-height, 100dvh);
	padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
	overflow-y: auto;
	height: 100%;
}
.auth-inner {
	display: grid;
	justify-items: center;
	gap: 10px;
	width: min(400px, 100%);
	text-align: center;
}
.auth-mark {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 8px;
	border-radius: 22px;
	background: linear-gradient(145deg, #3d8bff, #6a5cff 55%, #b85cff);
	color: #fff;
	box-shadow: 0 14px 40px #6a5cff47;
}
.auth-mark[data-tone="warning"] {
	background: var(--warning-fill);
	color: var(--warning);
	box-shadow: none;
}
.auth-mark[data-tone="muted"] {
	background: var(--soft);
	color: var(--muted);
	box-shadow: none;
}
.auth-mark .icon {
	width: 36px;
	height: 36px;
	stroke-width: 1.7;
}
.auth h1 {
	font: 700 var(--text-title1) / 1.2 var(--font-display);
	letter-spacing: -0.02em;
}
.auth-lead {
	color: var(--muted);
	font-size: var(--text-callout);
	max-width: 34ch;
}
.auth-card {
	display: grid;
	gap: 12px;
	width: 100%;
	margin-top: 18px;
	text-align: start;
}
.auth-text {
	color: var(--muted);
	font-size: var(--text-subheadline);
	text-align: center;
}
.auth-form {
	display: grid;
	gap: 14px;
}
.auth-alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	justify-self: center;
	font-weight: 500;
	font-size: var(--text-subheadline);
}
.auth-alt .icon,
.auth-links .icon {
	width: 18px;
	height: 18px;
}
.auth-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.auth-links .link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	font-size: var(--text-subheadline);
}
.auth-links .link-btn:disabled {
	color: var(--muted);
}
.auth-detail {
	color: var(--muted);
	font-size: var(--text-caption);
}
.auth-hint {
	color: var(--faint);
	font-size: var(--text-footnote);
}
.code-input {
	min-height: 60px;
	font-size: 1.75rem;
	letter-spacing: 0.5em;
	text-align: center;
	padding-left: calc(14px + 0.5em);
}

/* ---- setup guide ------------------------------------------------------------------------- */

.setup-screen .screen-body {
	max-width: 600px;
}
.stepper {
	display: flex;
	gap: 6px;
	margin: 4px 0 18px;
	padding: 0;
	list-style: none;
}
.stepper li {
	flex: 1;
	min-width: 0;
}
.step-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 40px;
	padding: 0 8px;
	border-radius: 20px;
	background: var(--soft);
	color: var(--muted);
	font-size: var(--text-footnote);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	transition: background var(--fast), color var(--fast);
}
.step-pill > span:nth-child(2) {
	overflow: hidden;
	text-overflow: ellipsis;
}
.step-pill[aria-current="step"] {
	background: var(--card);
	color: var(--text);
	box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line-strong);
}
.step-mark {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--soft-strong);
	color: var(--text);
	font-size: var(--text-caption2);
	font-weight: 700;
}
.step-pill[data-state="ok"] .step-mark {
	background: var(--system-green);
	color: #fff;
}
.step-pill[data-state="error"] .step-mark {
	background: var(--system-red);
	color: #fff;
}
.step-mark .icon {
	width: 13px;
	height: 13px;
	stroke-width: 3;
}
.setup-panel {
	display: grid;
	gap: 16px;
	animation: fade-in var(--medium) ease-out both;
}
.setup-hero {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 6px 0 2px;
	text-align: center;
}
.setup-logo {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin-bottom: 6px;
	border-radius: 20px;
	background: var(--brand);
	color: #fff;
	box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 40%, transparent);
}
.setup-logo .icon {
	width: 34px;
	height: 34px;
	stroke-width: 1.8;
}
.setup-hero h1 {
	font: 700 var(--text-title1) / 1.2 var(--font-display);
	letter-spacing: -0.02em;
}
.setup-hero p {
	max-width: 46ch;
	color: var(--muted);
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
}
.setup-status {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px var(--row-inset);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
}
.setup-status .status-dot {
	width: 11px;
	height: 11px;
}
.setup-status[data-state="busy"] .status-dot {
	animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
	50% {
		transform: scale(1.35);
		opacity: 0.6;
	}
}
.setup-status-text {
	display: grid;
	gap: 1px;
	min-width: 0;
}
.setup-status-text strong {
	font-size: var(--text-body);
	font-weight: 600;
}
.setup-status-text small {
	color: var(--muted);
	font-size: var(--text-footnote);
	overflow-wrap: anywhere;
}
.setup-status.celebrate {
	animation: celebrate 700ms var(--ease-spring);
	box-shadow: var(--shadow-card), inset 0 0 0 2px var(--system-green);
}
@keyframes celebrate {
	40% {
		transform: scale(1.03);
	}
}
.setup-note {
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--tint-fill);
	color: var(--text);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
}
.setup-form {
	display: grid;
	gap: 12px;
}
.setup-steps {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 14px var(--row-inset) 14px calc(var(--row-inset) + 22px);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
	font-size: var(--text-subheadline);
	line-height: 1.45;
}
.setup-steps li::marker {
	color: var(--accent);
	font-weight: 700;
}
.copy-line {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding: 4px 4px 4px 12px;
	border-radius: 10px;
	background: var(--bg);
}
.copy-line code {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	white-space: nowrap;
	font-size: var(--text-subheadline);
}
.copy-line .icon-btn {
	width: 38px;
	height: 38px;
}
.copy-line .icon-btn .icon {
	width: 18px;
	height: 18px;
}
.setup-facts {
	box-shadow: var(--shadow-card);
}
.setup-help {
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
}
.setup-help summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 var(--row-inset);
	color: var(--accent);
	font-size: var(--text-subheadline);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.setup-help summary::-webkit-details-marker {
	display: none;
}
.setup-help summary .icon {
	width: 18px;
	height: 18px;
}
.setup-help[open] summary {
	border-bottom: 0.5px solid var(--line);
}
.setup-help ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 12px var(--row-inset) 14px calc(var(--row-inset) + 18px);
	color: var(--text);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
}
.setup-footer {
	display: grid;
	gap: 6px;
	margin-top: 4px;
}

/* WhatsApp pairing code: large, spaced, copyable. */
.pair-card {
	display: grid;
	gap: 14px;
	padding: 18px var(--row-inset);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card), inset 0 0 0 1px color-mix(in srgb, #25d366 40%, transparent);
	text-align: center;
}
.pair-label {
	color: var(--muted);
	font-size: var(--text-footnote);
	font-weight: 500;
}
.pair-code {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	user-select: all;
	-webkit-user-select: all;
}
.code-group {
	display: flex;
	gap: 4px;
}
.code-char {
	display: grid;
	place-items: center;
	width: clamp(30px, 9vw, 44px);
	height: clamp(42px, 12vw, 56px);
	border-radius: 10px;
	background: var(--bg);
	box-shadow: inset 0 0 0 0.5px var(--line-strong);
	color: var(--text);
	font-size: clamp(1.4rem, 6.4vw, 2rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.code-dash {
	color: var(--faint);
	font-size: 1.5rem;
	font-weight: 600;
}
.pair-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 16px;
}
.code-timer {
	color: var(--muted);
	font-size: var(--text-footnote);
}
.code-timer[data-expired] {
	color: var(--danger);
	font-weight: 600;
}
.pair-wait {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	border-radius: 12px;
	background: var(--success-fill);
	color: var(--success);
	font-size: var(--text-footnote);
	font-weight: 600;
}
.pair-wait .spinner {
	width: 16px;
	height: 16px;
}
.pair-steps-title {
	margin-top: 6px;
	font-size: var(--text-headline);
	font-weight: 600;
	text-align: start;
}
.pair-card .segmented {
	margin: 0;
}
.wa-steps {
	padding-inline: calc(4px + 22px) 4px;
	background: none;
	box-shadow: none;
	text-align: start;
}
.pair-again {
	display: flex;
	justify-content: center;
}
/* The terminal sign-in to GitHub reuses the pairing card, in GitHub's tint. */
.pair-card.gh-pair {
	box-shadow: var(--shadow-card), inset 0 0 0 1px color-mix(in srgb, #6e5494 45%, transparent);
}
/* Eight boxes and a dash on one line, also on the narrowest phones: this card sits inside a
   section, so it is narrower than the WhatsApp one and its boxes are a little smaller. */
.gh-pair .pair-code {
	gap: 5px;
}
.gh-pair .code-group {
	gap: 3px;
}
.gh-pair .code-char {
	width: clamp(23px, 7.2vw, 40px);
	height: clamp(36px, 10.4vw, 52px);
	border-radius: 8px;
	font-size: clamp(1.15rem, 5.4vw, 1.8rem);
}
.gh-pair .code-dash {
	font-size: 1.2rem;
}
.gh-pair .pair-wait {
	background: var(--tint-fill);
	color: var(--accent);
}
.gh-pair .wa-steps strong {
	display: block;
	font-weight: 600;
}
.gh-pair .wa-steps li {
	color: var(--muted);
}
.gh-pair .wa-steps li strong {
	color: var(--text);
}
.cli-points {
	list-style: disc;
}
.cli-points li::marker {
	color: var(--muted);
	font-weight: 400;
}
.cli-section > .setup-form {
	margin-top: 0;
}
.wa-connected {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px var(--row-inset);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
}
.wa-connected strong {
	display: block;
	font-size: var(--text-headline);
}
.wa-connected .mono {
	color: var(--muted);
	font-size: var(--text-subheadline);
}
.wa-check {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}
.wa-check .icon {
	width: 24px;
	height: 24px;
	stroke-width: 2.6;
}

/* ---- accounts ---------------------------------------------------------------------------- */

.row-icon-big {
	width: 52px;
	height: 52px;
	border-radius: 14px;
}
.row-icon-big .icon {
	width: 28px;
	height: 28px;
}
.account-page {
	display: grid;
	gap: 0;
}
.account-page > .setup-status {
	margin-top: 12px;
}
.account-page > .notice {
	margin-top: 12px;
}
.danger-zone {
	margin-top: 12px;
}
/* The typed confirmation before a workspace is deleted: what is lost, then the short name. */
.delete-list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 12px var(--row-inset) 12px calc(var(--row-inset) + 18px);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
	font-size: var(--text-subheadline);
	line-height: 1.4;
}
.delete-list li::marker {
	color: var(--danger);
}
.delete-warning {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--danger-fill);
	color: var(--danger);
	font-size: var(--text-footnote);
	font-weight: 600;
	line-height: var(--leading-foot);
}
.delete-warning .icon {
	flex: none;
	width: 18px;
	height: 18px;
}
.sheet-body > form.delete-form > p.lead {
	margin: 0 4px;
	color: var(--muted);
	font-size: var(--text-subheadline);
}
.warn-text {
	color: var(--warning);
}
.danger-text {
	color: var(--danger);
}
.signin-card {
	display: grid;
	gap: 12px;
	padding: 16px var(--row-inset);
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card), inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.signin-title {
	font-size: var(--text-headline);
	font-weight: 600;
}
.signin {
	display: grid;
	gap: 14px;
}
.signin-lead {
	color: var(--muted);
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
}
.signin-steps {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0 0 0 22px;
	font-size: var(--text-subheadline);
	line-height: 1.45;
}
.signin-steps > li {
	padding-inline-start: 4px;
}
.signin-steps > li > * + * {
	margin-top: 8px;
}
.signin-steps > li > .btn,
.signin-steps > li > form {
	margin-top: 10px;
}
.signin-steps > li::marker {
	color: var(--accent);
	font-weight: 700;
}
.signin-steps p {
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
}
.signin-steps .btn {
	min-height: 54px;
	font-size: var(--text-headline);
}
.signin-steps strong {
	display: block;
}
.signin-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.user-code {
	padding: 14px 10px;
	border-radius: 12px;
	background: var(--bg);
	box-shadow: inset 0 0 0 0.5px var(--line-strong);
	color: var(--text);
	font-size: clamp(1.6rem, 8vw, 2.3rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	overflow-wrap: anywhere;
	user-select: all;
	-webkit-user-select: all;
}
.signin .pair-tools {
	justify-content: flex-start;
}

/* A request that is allowed to be slow: spinner, words, and a bar that fills over ~15 s. */
.slow-load {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 28px 12px;
	text-align: center;
}
.slow-load p {
	color: var(--muted);
	font-size: var(--text-footnote);
}
.slow-load small {
	font-size: var(--text-caption);
	font-variant-numeric: tabular-nums;
}
.progress {
	position: relative;
	width: min(260px, 80%);
	height: 4px;
	border-radius: 2px;
	background: var(--soft);
	overflow: hidden;
}
.progress-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: inherit;
	background: var(--system-blue);
	transition: width 250ms linear;
}
.connectors .btn-row {
	justify-content: center;
	margin-top: 8px;
}

/* ---- workspaces -------------------------------------------------------------------------- */

.ws-row {
	align-items: center;
}
.ws-body {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 4px 0;
	color: var(--text);
	text-align: start;
}
.ws-body .row-title {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ws-body .row-meta .icon {
	width: 13px;
	height: 13px;
	margin-inline-end: 4px;
	vertical-align: -2px;
}
.ws-row .icon-btn {
	width: 36px;
	height: 36px;
	color: var(--accent);
}
.inline-link {
	display: inline;
	min-height: 0;
	padding: 0;
	font-size: inherit;
	font-weight: 600;
}

/* ---- schedules: the account a schedule runs on ---------------------------------------------- */

.schedule-row .row-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.account-pill .icon {
	width: 12px;
	height: 12px;
}

/* ---- tools ------------------------------------------------------------------------------- */

.tool-row.is-off .row-body {
	opacity: 0.6;
}

/* The one list: a small tag says where a tool comes from; → opens its settings. */
.tool-tag {
	display: inline-flex;
	align-items: center;
	min-height: 18px;
	padding: 0 6px;
	border-radius: 9px;
	background: var(--soft);
	color: var(--muted);
	font-size: var(--text-caption);
	font-weight: 600;
	vertical-align: 1px;
	white-space: nowrap;
}
.tool-tag[data-source="cf"] {
	background: var(--warning-fill);
	color: var(--warning);
}
.tool-tag[data-source="claude"] {
	background: color-mix(in srgb, var(--system-orange) 14%, transparent);
	color: var(--system-orange);
}
.tool-tag[data-source="openai"] {
	background: color-mix(in srgb, var(--system-teal) 14%, transparent);
	color: var(--system-teal);
}
.tool-tag[data-source="own"] {
	background: color-mix(in srgb, var(--system-purple) 14%, transparent);
	color: var(--system-purple);
}
.tool-settings {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin-right: -8px;
	border: 0;
	background: none;
	color: var(--accent);
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
}
.tools-legend .tool-tag {
	margin-left: 4px;
}

/* ---- your own tools (MCP servers the owner adds) ------------------------------------------ */

/* A row that is not one button: its text opens the server's page, its end holds a switch. */
.own-tool-open {
	align-self: stretch;
	align-content: center;
	text-align: start;
	/* The tap target reaches the row's edges, the text does not move. */
	margin: -9px 0;
	padding: 9px 0;
	border-radius: 8px;
}
.own-tool-open:active {
	opacity: 0.55;
}
.own-tool-row.is-off .row-body {
	opacity: 0.6;
}
.own-tool-open .row-title,
.own-tool-open .row-subtitle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.own-tool-open .tool-host {
	display: flex;
}
.own-tool-prefix:empty {
	display: none;
}
.own-tool-prefix code,
.own-tool-detail code {
	font-family: var(--font-mono);
	font-size: 0.92em;
	overflow-wrap: anywhere;
}
.own-tool-sheet .sheet-lead {
	margin: 0 4px;
	color: var(--muted);
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
}
.own-tool-status {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px 10px;
	align-items: start;
	padding: 12px 14px;
	border-radius: var(--group-radius);
	background: var(--card);
}
.own-tool-status > .status-dot,
.own-tool-status > .spinner {
	margin-top: 7px;
}
.own-tool-status > .spinner {
	width: 14px;
	height: 14px;
	margin-top: 4px;
}
.own-tool-status-text {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.own-tool-status-text p {
	margin: 0;
	color: var(--muted);
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
}
.own-tool-status-text .own-tool-said {
	font-family: var(--font-mono);
	font-size: var(--text-caption);
	overflow-wrap: anywhere;
}
.own-tool-status-text .own-tool-when {
	color: var(--faint);
	font-size: var(--text-footnote);
}
.own-tool-url,
.own-tool-name {
	font-size: var(--text-footnote);
	overflow-wrap: anywhere;
}
.own-tool-detail .row-value {
	max-width: 62vw;
}
.own-tool-action,
.own-tool-actions,
.own-tool-signin,
.own-tool-client,
.own-tool-token {
	display: grid;
	gap: 12px;
}
.own-tool-wait {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 4px;
	font-weight: 600;
}
.own-tool-redirect {
	margin-top: 0;
}
.own-tool-redirect > .mono {
	flex: 1;
	min-width: 0;
	font-size: var(--text-footnote);
	overflow-wrap: anywhere;
}
.own-tool-names .row {
	min-height: 38px;
	padding-block: 6px;
}

/* ---- setup guide additions --------------------------------------------------------------- */

/* Four steps on a phone: the current one shows its name, the others only their mark. */
@media (max-width: 480px) {
	.stepper li:has(.step-pill:not([aria-current="step"])) {
		flex: 0 0 auto;
	}
	.stepper .step-pill:not([aria-current="step"]) {
		width: 44px;
		padding: 0;
	}
	.stepper .step-pill:not([aria-current="step"]) > span:nth-child(2) {
		display: none;
	}
}
.setup-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
}
.setup-aside {
	text-align: center;
}
.setup-fallback summary {
	color: var(--text);
	font-weight: 500;
}
.setup-fallback summary > .icon:first-child {
	color: var(--muted);
}
.fallback-title {
	display: grid;
	flex: 1;
	gap: 1px;
	min-width: 0;
	padding: 8px 0;
}
.fallback-state {
	color: var(--muted);
	font-size: var(--text-caption);
	font-weight: 500;
}
.fallback-state[data-tone="ok"] {
	color: var(--success);
}
.fallback-state[data-tone="error"] {
	color: var(--danger);
}
.setup-fallback .fallback-chev {
	transition: transform var(--fast);
}
.setup-fallback[open] .fallback-chev {
	transform: rotate(180deg);
}
.fallback-body {
	display: grid;
	gap: 12px;
	padding: 12px var(--row-inset) 14px;
}
.fallback-body .setup-steps {
	box-shadow: none;
	background: var(--bg);
}
.fallback-body > ul {
	padding: 0 0 0 18px;
}
.setup-panel .group[aria-current] .row,
.setup-facts .row[aria-current="true"] {
	box-shadow: inset 3px 0 0 var(--accent);
}

/* ---- skills ------------------------------------------------------------------------------ */

.next-turn {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 4px;
}
.next-turn .icon {
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	margin-top: 1px;
	color: var(--accent);
}
.skill-row .row-title .mono,
.skill-row .row-title.mono {
	font-size: 0.95em;
}
.skill-head {
	display: grid;
	gap: 10px;
	margin: 4px 0 8px;
}
.skill-desc {
	color: var(--muted);
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
	overflow-wrap: anywhere;
}
.skill-screen .large-title h1,
.skill-screen .navbar-title {
	overflow-wrap: anywhere;
}
.skill-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: var(--text-footnote);
}
.skill-head .notice {
	margin-top: 0;
}
.skill-head .notice > div {
	margin-top: 4px;
}
.code-editor {
	font: var(--text-footnote) / 1.55 var(--font-mono);
	tab-size: 4;
	white-space: pre;
	overflow-wrap: normal;
	overflow-x: auto;
}
.skill-editor {
	min-height: 340px;
	max-height: 70vh;
	resize: vertical;
}
.editor-card .field {
	gap: 0;
}
.editor-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.editor-actions .spacer {
	flex: 1;
}
.editor-actions .btn {
	min-height: 40px;
	padding-inline: 18px;
}
.editor-sheet .code-editor {
	min-height: 280px;
}
@media (min-width: 960px) {
	.editor-sheet {
		width: min(760px, 92vw);
		max-width: none;
	}
}
.fallback-body .copy-line {
	background: var(--card);
}
.tool-host {
	display: flex;
	min-width: 0;
	white-space: nowrap;
}
.tool-host > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
}
.tool-host > span:last-child {
	flex-shrink: 0;
}

/* ---- schedules: who runs it, on which model, and the shipped watcher ----------------------- */

.schedule-key {
	color: var(--faint);
	font-size: var(--text-caption);
}
.schedule-about {
	color: var(--text);
}
.model-pill {
	font-family: var(--font-mono);
	font-weight: 500;
}
.schedule-row .pill .icon {
	width: 12px;
	height: 12px;
}
.schedule-row.is-known.is-paused .schedule-body {
	opacity: 0.85;
}
.background-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.background-note > .icon {
	flex-shrink: 0;
	width: 17px;
	height: 17px;
	margin-top: 1px;
	color: var(--accent);
}
.background-note small {
	display: block;
	margin-top: 4px;
	color: var(--muted);
}
.agent-note {
	margin-top: 2px;
}
.schedule-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 2px;
}

/* "Rename" at the end of the account's head row: an action, in the accent colour. */
.row-action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--accent);
	font-size: var(--text-footnote);
	font-weight: 500;
	white-space: nowrap;
}
.row-action .icon {
	width: 16px;
	height: 16px;
}

/* Giving a chat to another workspace: the chat on top, the workspaces as one choice. */
.route-form {
	display: grid;
	gap: 12px;
}
.route-chat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 4px 0;
}
.route-chat-text {
	display: grid;
	min-width: 0;
}
.route-chat-text strong {
	overflow: hidden;
	font-size: var(--text-headline, 1.0625rem);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.route-chat-text small {
	color: var(--muted);
	font-size: var(--text-footnote);
}
.sheet-body > form.route-form > p.lead {
	margin: 0 4px;
	color: var(--muted);
	font-size: var(--text-subheadline);
}
.route-form > .field-hint,
.route-notes > .field-hint {
	margin: 0 var(--row-inset);
}
.route-notes {
	display: grid;
	gap: 6px;
}
.route-choices .row[aria-checked="true"] .row-title {
	font-weight: 600;
}
.route-choices .row-title .pill {
	margin-left: 6px;
}
/* The routing screen: the same channel badge as the thread list, a size smaller. */
.thread-avatar.small {
	width: 32px;
	height: 32px;
	flex: none;
}
.thread-avatar.small .icon {
	width: 18px;
	height: 18px;
}
/* The groups the bot is in: one card each, the group and under it the switch for other people. */
.group-chats {
	display: grid;
	gap: 12px;
}
.group-chat-note {
	margin: 6px var(--row-inset) 0;
}
.group-chat-note[data-note="notAdmin"] {
	color: var(--warning);
}

.routing-lead {
	margin: 0 var(--row-inset) 8px;
	color: var(--muted);
	font-size: var(--text-subheadline);
}

/* ---- an application asks to connect (consent), and the connected applications ------------- */

.consent {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: calc(28px + var(--safe-top)) max(var(--page-inset), var(--safe-right)) calc(28px + var(--safe-bottom)) max(var(--page-inset), var(--safe-left));
}
.consent-head {
	display: grid;
	justify-items: center;
	gap: 8px;
	text-align: center;
}
.consent-head h1 {
	font: 700 var(--text-title2) / 1.25 var(--font-display);
	letter-spacing: -0.01em;
	max-width: 100%;
}
.consent-lead {
	color: var(--muted);
	font-size: var(--text-callout);
	max-width: 36ch;
}
.consent-head + .section {
	margin-top: 22px;
}
/* A fact about the application: a small label, the value under it. */
.consent-fact .row-body {
	gap: 3px;
}
.consent-label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: var(--text-footnote);
}
/* The application's own words: ordinary text, never wider than the page and never a screenful. */
.consent-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.consent > .notice {
	margin-top: 16px;
}
.consent-host {
	overflow-wrap: anywhere;
	font-weight: 600;
}
.consent-scopes .row-icon {
	color: var(--accent);
}
.consent-workspaces .row[aria-checked="true"] .row-title {
	font-weight: 600;
}
.consent-workspaces .row-title .pill {
	margin-left: 6px;
}
.consent-actions {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}
.consent-actions .field-error:empty {
	display: none;
}
.consent-later {
	margin-top: 2px;
	color: var(--faint);
	font-size: var(--text-footnote);
	text-align: center;
}
.consent-own {
	color: var(--muted);
	font-size: var(--text-footnote);
	text-align: center;
}
.connected-url {
	font-size: var(--text-footnote);
	overflow-wrap: anywhere;
	user-select: all;
}
.connected-name .row-subtitle {
	color: var(--text);
	font-size: var(--text-body);
	overflow-wrap: anywhere;
}

/* ---- health data from the phone ---------------------------------------------------------- */

/* The health tool's row in the list of tools: a line under its address says that it opens. */
.tool-open-hint {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-top: 2px;
	color: var(--accent);
	font-size: var(--text-footnote);
	font-weight: 600;
}
.tool-open-hint .icon.chev {
	width: 12px;
	height: 12px;
	stroke-width: 2.6;
	color: inherit;
}
.health-status {
	align-items: flex-start;
}
.health-status .status-dot {
	flex: none;
	margin-top: 6px;
}
.health-state .group {
	margin-top: 10px;
}
.health-error {
	margin-top: 4px;
	font-size: var(--text-caption);
}
/* The address and the token: a small label, the value under it, the buttons at the end. */
.health-value-row .row-body {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.health-label {
	color: var(--muted);
	font-size: var(--text-footnote);
}
.health-label small {
	color: var(--faint);
	font-size: inherit;
}
.health-value {
	font-size: var(--text-footnote);
	line-height: 1.4;
	overflow-wrap: anywhere;
	user-select: all;
}
.health-secret {
	cursor: pointer;
}
.health-secret[data-shown="false"] {
	user-select: none;
}
.health-value-row .row-end {
	gap: 0;
}
.health-value-row .icon-btn {
	width: 40px;
	height: 40px;
}
.health-value-row .icon-btn .icon {
	width: 19px;
	height: 19px;
}
.health-guide-lead {
	margin: 0 var(--row-inset) 10px;
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
}
/* The list is a grid: without this a long line of the example would widen the whole card. */
.health-steps > li,
.health-notes > li {
	min-width: 0;
}
.health-steps > li > strong {
	display: block;
	font-weight: 600;
}
.health-steps > li > p {
	margin: 2px 0 0;
}
.health-steps .health-hint {
	margin-top: 8px;
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
}
/* What iOS itself shows: an action, a field, a choice. */
.ios-term {
	font-weight: 600;
}
.health-hint .ios-term {
	color: var(--text);
}
.health-keys {
	margin: 10px 0 0;
	padding: 0;
	border-radius: 10px;
	background: var(--bg);
	list-style: none;
	overflow: hidden;
}
.health-keys li + li {
	border-top: 0.5px solid var(--line);
}
.health-key {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: var(--touch);
	padding: 6px 10px 6px 12px;
	text-align: start;
}
.health-key:active {
	opacity: 0.55;
}
.health-key-text {
	display: grid;
	min-width: 0;
}
/* The name and its key share a line while they fit; on a narrow phone the key goes under. */
.health-key-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 10px;
}
.health-key-text small {
	color: var(--muted);
	font-size: var(--text-caption);
}
.health-key code {
	color: var(--accent);
	font-size: var(--text-footnote);
}
.health-key > .icon {
	width: 16px;
	height: 16px;
	color: var(--accent);
}
.health-example {
	margin: 6px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--bg);
	font-size: var(--text-footnote);
	line-height: 1.5;
	overflow-x: auto;
	white-space: pre;
}
.health-notes {
	list-style: disc;
}
.health-notes li::marker {
	color: var(--faint);
	font-weight: 400;
}

/* ---- the voice vocabulary (js/screens/vocabulary.js) -------------------------------------- */

.vocab-card {
	padding: 12px;
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
}
.vocab-count {
	text-transform: none;
	letter-spacing: 0;
}
.vocab-add-line {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}
/* A filled field inside the card, like the system's own grouped forms. */
.vocab-input,
.vocab-context-input {
	background: var(--soft);
	box-shadow: none;
	resize: none;
}
.vocab-input {
	flex: 1;
	min-width: 0;
	min-height: var(--touch);
	padding: 10px 14px;
	border-radius: 22px;
}
.vocab-add-btn {
	flex: none;
	min-height: var(--touch);
	border-radius: 22px;
}
.vocab-hint {
	margin: 8px 4px 0;
}
.vocab-hint[data-full] {
	color: var(--warning);
	font-weight: 500;
}
.vocab-notes {
	display: grid;
	gap: 4px;
	margin: 8px 4px 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
	overflow-wrap: anywhere;
}
.vocab-notes[hidden] {
	display: none;
}
.vocab-notes li[data-kind="rejected"] {
	color: var(--danger);
}
.vocab-own {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 0.5px solid var(--line);
}
.vocab-own .state {
	padding-block: 10px 6px;
}
.vocab-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vocab-chip {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 36px;
	padding-inline-start: 14px;
	border-radius: 18px;
	background: var(--soft);
	color: var(--text);
	font-size: var(--text-subheadline);
	font-weight: 500;
}
.vocab-term {
	padding-block: 7px;
	overflow-wrap: anywhere;
}
/* One tap removes a term. The button is drawn small, beside its word, and answers on a full 44. */
.vocab-x {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 36px;
	border-radius: 50%;
	color: var(--muted);
	transition: transform var(--fast) var(--ease), color var(--fast);
}
.vocab-x::after {
	content: "";
	position: absolute;
	inset: -4px -6px;
}
.vocab-x .icon {
	width: 14px;
	height: 14px;
	stroke-width: 2.6;
}
.vocab-x:active {
	transform: scale(0.85);
	color: var(--danger);
}
@media (hover: hover) and (pointer: fine) {
	.vocab-x:hover {
		background: var(--press);
		color: var(--danger);
	}
}
.vocab-chip[data-new],
.vocab-assistant-row[data-new] {
	animation: vocab-new 2.6s ease-out both;
}
@keyframes vocab-new {
	from {
		background: var(--tint-fill);
		box-shadow: inset 0 0 0 1.5px var(--system-blue);
	}
}
.vocab-assistant-row .vocab-x {
	width: var(--touch);
	height: var(--touch);
	/* The button's own width, not the row's padding, is what stands at the edge. */
	margin-inline-end: -10px;
}
.vocab-assistant-row .vocab-x::after {
	display: none;
}
/* Names that come from the people records: there to be read, not to be changed. */
.vocab-names-card {
	margin-top: 10px;
}
.vocab-chip.is-name {
	padding-inline: 13px;
	background: transparent;
	box-shadow: inset 0 0 0 0.5px var(--line-strong);
	color: var(--muted);
}
.vocab-names[data-off] {
	opacity: 0.45;
}
.vocab-names-empty {
	margin: 2px 4px;
	color: var(--muted);
	font-size: var(--text-subheadline);
}
.vocab-context-input {
	min-height: 96px;
}
.vocab-context-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 36px;
	margin-top: 8px;
	padding-inline-start: 4px;
}
.vocab-context-count {
	color: var(--faint);
	font-size: var(--text-caption);
}
.vocab-context-count[data-over] {
	color: var(--danger);
	font-weight: 600;
}
.vocab-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 22px var(--row-inset) 0;
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
}
.vocab-note[hidden] {
	display: none;
}
.vocab-note .icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

/* ---- council ----------------------------------------------------------------------------- */
/* Groups of lenses (screens/council.js): a stack of the seats' marks on each row, a sheet to
   choose them, and the one line that says what they are. */

.seat-avatar.is-small {
	width: 28px;
	height: 28px;
	font-size: var(--text-caption2);
}
.seat-stack {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	min-width: 38px;
}
.seat-stack > .seat-avatar + .seat-avatar {
	margin-left: -10px;
}
.seat-stack > .seat-avatar {
	box-shadow: 0 0 0 2px var(--card);
}
.seat-stack.big > .seat-avatar {
	width: 44px;
	height: 44px;
}
.council-list {
	--sep-inset: calc(var(--row-inset) + 62px);
}
.council-note {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	max-width: 640px;
	margin: 14px var(--row-inset) 24px;
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: 1.4;
}
.council-note .icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}
.council-pick-head {
	display: flex;
	justify-content: space-between;
	margin: 18px 4px 6px;
	color: var(--muted);
	font-size: var(--text-footnote);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.council-pick .council-seat {
	cursor: pointer;
}
.council-pick .council-seat.is-off {
	opacity: 0.45;
	cursor: default;
}
.council-pick input[type="checkbox"] {
	width: 22px;
	height: 22px;
	accent-color: var(--accent);
}
.council-editor .btn-danger {
	margin-top: 22px;
}

/* ---- the home page: greeting and widgets ----------------------------------------------- */
/* The page has room for four widgets in a row on a wide screen; the greeting stands over them. */
.screen.home-screen {
	--content-max: 1040px;
}
/* "Cancel" and "Done" while arranging: words, side by side, never broken. */
.home-screen .navbar-end {
	flex: none;
}
.home-screen .nav-button {
	white-space: nowrap;
	padding: 0 14px;
}
.home-sub {
	display: grid;
	gap: 6px;
}
.home-date {
	text-transform: capitalize;
}
.large-title .home-headline {
	color: var(--text);
	font-size: var(--text-body);
	line-height: var(--leading-body);
	overflow-wrap: anywhere;
}
.home {
	display: grid;
	gap: 16px;
	max-width: var(--content-max);
	margin: 0 auto;
	width: 100%;
}
.home-name .field {
	margin: 0;
}
.widgets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}
.widget {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	min-height: 132px;
	padding: 14px;
	border-radius: var(--group-radius);
	background: var(--card);
	box-shadow: var(--shadow-card);
	color: var(--text);
	text-align: start;
}
.widget[data-size="m"],
.widget[data-size="l"] {
	grid-column: span 2;
}
.widget[data-size="l"] {
	min-height: 264px;
}
.widget.is-link {
	cursor: pointer;
}
.widget.is-link:active {
	background: var(--press);
}
.widget.is-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.widget .clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.widget-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 8px;
	min-height: 28px;
}
.widget-head .row-icon {
	width: 26px;
	height: 26px;
	border-radius: 7px;
}
.widget-head .row-icon .icon {
	width: 16px;
	height: 16px;
}
.widget-head h2 {
	font-size: var(--text-subheadline);
	font-weight: 600;
	line-height: var(--leading-sub);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.widget-head .chev {
	width: 14px;
	height: 14px;
	color: var(--faint);
}
.widget-when {
	color: var(--faint);
	font-size: var(--text-caption2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* In a half-width widget a line's time stands under its name: side by side one of them is cut. */
.widget[data-size="s"] .widget-lines li {
	grid-template-columns: auto minmax(0, 1fr);
}
.widget[data-size="s"] .widget-lines li > small {
	grid-column: 2;
}
.widget-ask {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin: -2px -4px -2px 0;
	border-radius: 15px;
	color: var(--accent);
}
.widget-ask:active {
	background: var(--press);
}
.widget-ask .icon {
	width: 17px;
	height: 17px;
}
.widget-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.widget[data-size="m"] .widget-body,
.widget[data-size="l"] .widget-body {
	justify-content: flex-start;
}
.widget-empty {
	color: var(--muted);
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
}
.home-empty {
	padding: 24px 8px;
	text-align: center;
}
.widget-count,
.widget-stat,
.widget-progress,
.widget-chart {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.widget-count strong,
.widget-value strong {
	font: 700 var(--text-title1) / 1.1 var(--font-display);
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}
.widget-count span,
.widget-value span {
	color: var(--muted);
	font-size: var(--text-subheadline);
}
.widget-count small {
	color: var(--faint);
	font-size: var(--text-caption);
}
.widget-value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
}
.widget-caption {
	color: var(--muted);
	font-size: var(--text-footnote);
	line-height: var(--leading-foot);
	overflow-wrap: anywhere;
}
.widget-delta {
	font-size: var(--text-footnote);
	font-weight: 600;
	color: var(--muted);
}
.widget-delta[data-trend="up"] {
	color: var(--success);
}
.widget-delta[data-trend="down"] {
	color: var(--danger);
}
.widget-note {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-size: var(--text-callout);
	line-height: var(--leading-body);
}
.widget-lines {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.widget-lines li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	column-gap: 8px;
	font-size: var(--text-subheadline);
	line-height: var(--leading-sub);
	overflow-wrap: anywhere;
}
.widget-lines .icon {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--faint);
}
.widget-lines li.is-done > span {
	color: var(--muted);
	text-decoration: line-through;
}
.widget-lines li.is-done .icon {
	color: var(--system-green);
}
.widget-lines small {
	color: var(--muted);
	font-size: var(--text-caption);
	white-space: nowrap;
}
.widget-lines small[data-tone="red"] {
	color: var(--danger);
	font-weight: 600;
}
.widget-lines .widget-detail {
	display: block;
	white-space: normal;
	text-decoration: none;
}
.widget-bar {
	height: 8px;
	border-radius: 4px;
	background: var(--soft);
	overflow: hidden;
}
.widget-bar span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--fill);
}
.widget-bars {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	align-items: end;
	gap: 4px;
	height: 96px;
}
.widget[data-size="l"] .widget-bars {
	height: 168px;
}
.widget-bar-col {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: end;
	gap: 4px;
	height: 100%;
	min-width: 0;
}
.widget-bar-col i {
	display: block;
	border-radius: 4px 4px 2px 2px;
	background: var(--fill);
}
.widget-bar-col small {
	color: var(--faint);
	font-size: var(--text-caption2);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.widget-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.widget-actions .btn {
	background: var(--tint-fill);
	color: var(--accent);
	max-width: 100%;
}
.widget-actions .btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Arranging: each widget carries its own controls. */
.home.is-editing .widget {
	outline: 1px dashed var(--line-strong);
	outline-offset: -1px;
}
.widget-edit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}
.widget-tool {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--soft);
	color: var(--text);
}
.widget-tool:disabled {
	opacity: 0.35;
}
.widget-tool .icon {
	width: 18px;
	height: 18px;
}
.widget-tool.is-up .icon {
	transform: rotate(180deg);
}
.widget-tool.is-danger {
	color: var(--danger);
}
.widget-sizes {
	display: inline-grid;
	grid-auto-flow: column;
	margin-inline-start: auto;
	border-radius: 10px;
	background: var(--soft);
	overflow: hidden;
}
.widget-sizes button {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	color: var(--muted);
	font-size: var(--text-footnote);
	font-weight: 600;
}
.widget-sizes button[aria-pressed="true"] {
	background: var(--fill);
	color: var(--on-accent);
}
.home-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.home-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 10px;
	color: var(--faint);
	font-size: var(--text-footnote);
	text-align: center;
}
@media (min-width: 720px) {
	.widgets {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
/* The bar's own title (the greeting again, shown once the page is scrolled) gives way to the buttons. */
.home-screen .navbar {
	grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto;
}
.home-screen .navbar-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Where a turn's time went (screens/turn-timing.js): the total, and a bar per phase. */
.timing-total {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 8px 12px 16px;
}
.timing-total strong {
	font-size: var(--text-title1);
	font-variant-numeric: tabular-nums;
}
.timing-total span {
	color: var(--muted);
	font-size: var(--text-footnote);
}
.timing-cell {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.timing-bar {
	position: relative;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--soft);
	overflow: hidden;
}
.timing-bar span {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 2px;
	background: var(--system-blue);
}
