/*
  DataSuite sign-in and account pages: the design on the "DataSuite Sign-in Redesign" canvas, as one plain stylesheet
  (no build step). The colours and fonts are the Countdown apps' own; every rule is prefixed ds- so it can sit next to
  older styles while pages move over.
*/

:root {
	--ds-primary: #9b5758;
	--ds-primary-hover: #7d3f40;
	--ds-primary-ink: #7d3f40;
	--ds-primary-tint: #f4eaea;
	--ds-gold: #cfaa50;
	--ds-ink: #1f2328;
	--ds-ink-2: #3d444b;
	--ds-muted: #57606a;
	--ds-bg: #f4f5f7;
	--ds-surface: #ffffff;
	--ds-line: #dfe3e7;
	--ds-line-soft: #eceef0;
	--ds-control: #8c959f;
	--ds-ok: #2f7d3b;
	--ds-ok-ink: #1f5f2a;
	--ds-ok-tint: #e6f2e8;
	--ds-warn-ink: #7a5a12;
	--ds-warn-tint: #fbf3e1;
	--ds-warn-line: #d9b25c;
	--ds-danger: #b3261e;
	--ds-danger-tint: #fcefee;
	--ds-danger-line: #d9928d;
	--ds-serif: "Source Serif 4", Georgia, serif;
	--ds-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--ds-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* ---------- Page basics ---------- */

/* hidden always wins: a component's own display (flex, inline-flex) must not show what a page hid */
.ds-body [hidden] { display: none !important; }

.ds-body {
	margin: 0;
	background: var(--ds-bg);
	color: var(--ds-ink);
	font-family: var(--ds-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.ds-body a { color: var(--ds-primary-ink); }
.ds-body a:hover { color: #5e2e2f; }
.ds-body p { margin: 0; }

.ds-h1 {
	font-family: var(--ds-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.ds-h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.ds-sub { color: var(--ds-muted); font-size: 15px; line-height: 1.5; }
.ds-hint { color: var(--ds-muted); font-size: 13px; line-height: 1.45; }
.ds-center { text-align: center; }
.ds-mono { font-family: var(--ds-mono); }
.ds-stack { display: flex; flex-direction: column; gap: 12px; }
.ds-stack-tight { display: flex; flex-direction: column; gap: 6px; }
.ds-stack-loose { display: flex; flex-direction: column; gap: 16px; }
.ds-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-row > * { flex: 1 1 140px; }
.ds-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-icon { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; line-height: 1; display: inline-block; vertical-align: middle; font-size: 20px; }

/* ---------- The sign-in card ---------- */

.ds-auth {
	min-height: 100vh;
	box-sizing: border-box;
	padding: 40px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

.ds-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ds-serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--ds-ink);
	text-decoration: none;
}

.ds-mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--ds-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ds-sans);
	font-size: 14px;
	font-weight: 600;
	flex: none;
}

.ds-card {
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	background: var(--ds-surface);
	border: 1px solid var(--ds-line);
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (max-width: 480px) {
	.ds-card { padding: 24px 20px; }
}

.ds-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	font-size: 13px;
	color: var(--ds-muted);
}

/* the round icon above a card's heading */
.ds-badge {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ds-primary-tint);
	color: var(--ds-primary-ink);
	flex: none;
}
.ds-badge .ds-icon { font-size: 28px; }
.ds-badge--ok { background: var(--ds-ok-tint); color: var(--ds-ok); }
.ds-badge--warn { background: var(--ds-warn-tint); color: var(--ds-warn-ink); }
.ds-badge--danger { background: var(--ds-danger-tint); color: var(--ds-danger); }
.ds-badge--muted { background: var(--ds-bg); color: var(--ds-muted); }
.ds-badge--big { width: 72px; height: 72px; }
.ds-badge--big .ds-icon { font-size: 36px; }

/* ---------- Form controls ---------- */

.ds-field { display: flex; flex-direction: column; gap: 6px; }
.ds-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.ds-label { font-size: 14px; font-weight: 600; }

.ds-input {
	height: 44px;
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--ds-control);
	border-radius: 8px;
	padding: 0 12px;
	font: inherit;
	font-size: 16px;
	color: var(--ds-ink);
	background: var(--ds-surface);
}
textarea.ds-input { height: 96px; padding: 10px 12px; resize: vertical; }
select.ds-input { padding-right: 32px; }
.ds-input:focus { outline: 2px solid var(--ds-primary); outline-offset: 1px; border-color: var(--ds-primary); }
.ds-input--code { font-family: var(--ds-mono); font-size: 18px; letter-spacing: 1px; }

.ds-error { color: var(--ds-danger); font-size: 13px; }
.ds-error:empty { display: none; }
.validation-summary-valid { display: none; }
.ds-errors ul { margin: 0; padding-left: 18px; }

.ds-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}
.ds-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ds-primary); flex: none; }

/* segmented digit boxes */
.ds-digits { display: flex; gap: 8px; justify-content: space-between; }
.ds-digits input {
	width: 100%;
	min-width: 0;
	height: 56px;
	box-sizing: border-box;
	border: 1px solid var(--ds-control);
	border-radius: 8px;
	text-align: center;
	font-family: var(--ds-mono);
	font-size: 24px;
	color: var(--ds-ink);
	background: var(--ds-surface);
}
.ds-digits input:focus { outline: 2px solid var(--ds-primary); outline-offset: 1px; }
.ds-digits .ds-sep { align-self: center; color: var(--ds-muted); flex: none; }

/* a code field with a show/hide button beside it */
.ds-codebox { display: flex; gap: 8px; }
.ds-codebox .ds-input { height: 56px; font-family: var(--ds-mono); font-size: 24px; letter-spacing: 6px; }
.ds-eye {
	width: 56px;
	height: 56px;
	flex: none;
	border: 1px solid var(--ds-control);
	border-radius: 8px;
	background: var(--ds-surface);
	color: var(--ds-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.ds-eye:hover { background: var(--ds-bg); }

/* ---------- Buttons ---------- */

.ds-btn,
.ds-btn2,
.ds-btn-danger {
	height: 44px;
	box-sizing: border-box;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	cursor: pointer;
	width: 100%;
	padding: 0 16px;
}
.ds-body .ds-btn { background: var(--ds-primary); color: #fff; border: 0; }
.ds-body .ds-btn:hover { background: var(--ds-primary-hover); color: #fff; }
.ds-body .ds-btn2 { background: var(--ds-surface); color: var(--ds-ink); border: 1px solid var(--ds-control); }
.ds-body .ds-btn2:hover { background: var(--ds-bg); color: var(--ds-ink); }
.ds-body .ds-btn-danger { background: var(--ds-surface); color: var(--ds-danger); border: 1px solid var(--ds-danger-line); }
.ds-body .ds-btn-danger:hover { background: var(--ds-danger-tint); color: var(--ds-danger); }
.ds-btn[disabled], .ds-btn2[disabled] { opacity: .6; cursor: default; }

/* compact buttons in rows of an account page */
.ds-act {
	height: 40px;
	box-sizing: border-box;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	padding: 0 14px;
	white-space: nowrap;
	cursor: pointer;
	min-width: 84px;
}
.ds-body .ds-act { background: var(--ds-surface); color: var(--ds-ink); border: 1px solid var(--ds-control); }
.ds-body .ds-act:hover { background: var(--ds-bg); color: var(--ds-ink); }
.ds-body .ds-act--primary { background: var(--ds-primary); color: #fff; border-color: var(--ds-primary); }
.ds-body .ds-act--primary:hover { background: var(--ds-primary-hover); color: #fff; }
.ds-body .ds-act--danger { color: var(--ds-danger); border-color: var(--ds-danger-line); }
.ds-body .ds-act--danger:hover { background: var(--ds-danger-tint); color: var(--ds-danger); }

.ds-or { display: flex; align-items: center; gap: 12px; color: var(--ds-muted); font-size: 13px; }
.ds-or::before, .ds-or::after { content: ""; flex: 1; height: 1px; background: var(--ds-line); }

.ds-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

/* ---------- Notices ---------- */

.ds-alert {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
	align-items: flex-start;
}
.ds-alert .ds-icon { font-size: 20px; flex: none; }
.ds-alert--warn { background: var(--ds-warn-tint); border: 1px solid var(--ds-warn-line); }
.ds-alert--warn .ds-icon { color: var(--ds-warn-ink); }
.ds-alert--error { background: var(--ds-danger-tint); border: 1px solid var(--ds-danger-line); }
.ds-alert--error .ds-icon { color: var(--ds-danger); }
.ds-alert--ok { background: var(--ds-ok-tint); border: 1px solid #8fbf96; }
.ds-alert--ok .ds-icon { color: var(--ds-ok); }
.ds-alert--info { background: var(--ds-bg); border: 1px solid var(--ds-line); }

/* who is signing in */
.ds-who {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--ds-line);
	border-radius: 10px;
	font-size: 15px;
}
.ds-who > :nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.ds-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ds-gold);
	color: var(--ds-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	flex: none;
	text-transform: uppercase;
}
.ds-avatar--big { width: 76px; height: 76px; font-size: 26px; }

/* the person's menu on the avatar: who is signed in, and Sign out */
.ds-usermenu { position: relative; }
.ds-usermenu > summary { list-style: none; cursor: pointer; }
.ds-usermenu > summary::-webkit-details-marker { display: none; }
.ds-usermenu > summary:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; }
.ds-usermenu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 20;
	min-width: 220px;
	padding: 6px;
	background: var(--ds-surface);
	border: 1px solid var(--ds-line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(31, 35, 40, 0.12);
}
.ds-usermenu__who { margin: 0; padding: 8px 10px; font-size: 13px; color: #57606a; overflow-wrap: anywhere; border-bottom: 1px solid var(--ds-line); }
.ds-usermenu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 4px;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.ds-usermenu__item:hover, .ds-usermenu__item:focus-visible { background: var(--ds-line); }
a.ds-usermenu__item { text-decoration: none; }
.ds-usermenu__sep { margin: 4px 0 0; border: 0; border-top: 1px solid var(--ds-line); }

/* label/value facts (approve a device) */
.ds-facts {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
	font-size: 15px;
	padding: 14px 16px;
	border: 1px solid var(--ds-line);
	border-radius: 10px;
}
.ds-facts dt { color: var(--ds-muted); }
.ds-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.ds-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.ds-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ds-ticks .ds-icon { color: var(--ds-ok); font-size: 18px; margin-top: 1px; }

.ds-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }

/* a list of steps (waiting for approval) */
.ds-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ds-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.ds-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 600; box-sizing: border-box; }
.ds-dot--done { background: var(--ds-ok); color: #fff; }
.ds-dot--now { background: #fff; border: 2px solid var(--ds-primary); }
.ds-dot--later { background: var(--ds-line-soft); color: var(--ds-muted); }

/* ---------- Account hub ---------- */

.ds-top {
	height: 60px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 20px;
	background: var(--ds-surface);
	border-bottom: 1px solid var(--ds-line);
}
.ds-top .ds-brand { font-size: 19px; }
.ds-top .ds-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
/* the Countdown to 2030 mark (three figures lifting each other): the image itself, without the coloured square */
.ds-mark--countdown { background: none; border-radius: 0; object-fit: contain; }
.ds-top-sep { width: 1px; height: 24px; background: var(--ds-line); }
.ds-top-name { font-size: 16px; color: #454c54; }
.ds-top-spacer { flex: 1; }
.ds-top-link { font-size: 15px; }
@media (max-width: 560px) {
	.ds-top-sep, .ds-top-name { display: none; }
}

.ds-shell { display: flex; flex-wrap: wrap; align-items: flex-start; }

.ds-side {
	flex: 1 1 230px;
	max-width: 256px;
	box-sizing: border-box;
	padding: 20px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
@media (max-width: 860px) {
	.ds-side { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; }
	.ds-side hr { display: none; }
}
.ds-side a,
.ds-side button {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--ds-ink-2);
	text-decoration: none;
	font: inherit;
	font-size: 15px;
	background: none;
	border: 0;
	cursor: pointer;
	width: 100%;
	text-align: left;
}
@media (max-width: 860px) {
	.ds-side a, .ds-side button, .ds-side form { width: auto; }
}
.ds-side a:hover, .ds-side button:hover { background: #e9ebee; color: var(--ds-ink); }
.ds-side a[aria-current] { background: var(--ds-primary-tint); color: var(--ds-primary-ink); font-weight: 600; }
.ds-side hr { width: calc(100% - 24px); border: 0; border-top: 1px solid var(--ds-line); margin: 10px 12px; }

.ds-content {
	flex: 999 1 600px;
	min-width: 0;
	max-width: 1000px;
	box-sizing: border-box;
	padding: 28px 24px 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
@media (max-width: 560px) {
	.ds-content { padding: 20px 16px 40px; }
}
.ds-content .ds-h1 { font-size: 30px; }

.ds-panel { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 12px; }
.ds-panel--danger { border-color: var(--ds-danger-line); }
.ds-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 18px 22px;
	border-bottom: 1px solid var(--ds-line-soft);
}
.ds-panel-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.ds-panel-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 14px 22px;
	border-top: 1px solid var(--ds-line-soft);
}
.ds-panel-head + .ds-panel-row { border-top: 0; }
.ds-panel-row .ds-k { flex: 0 0 220px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.ds-panel-row .ds-k--plain { font-weight: 400; color: var(--ds-muted); font-size: 14px; }
.ds-panel-row .ds-v { flex: 1 1 220px; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.ds-panel-row .ds-v small { display: block; color: var(--ds-muted); font-size: 13px; margin-top: 2px; }
.ds-panel-row .ds-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.ds-tile-icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--ds-primary-tint);
	color: var(--ds-primary-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.ds-tile-icon .ds-icon { font-size: 20px; }

.ds-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.ds-pill--on { background: var(--ds-ok-tint); color: var(--ds-ok-ink); }
.ds-pill--off { background: var(--ds-line-soft); color: #454c54; }
.ds-pill--now { background: var(--ds-primary-tint); color: var(--ds-primary-ink); }
.ds-pill--warn { background: var(--ds-warn-tint); color: var(--ds-warn-ink); }

.ds-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ds-tile {
	background: var(--ds-surface);
	border: 1px solid var(--ds-line);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: var(--ds-ink);
}
.ds-body .ds-tile { color: var(--ds-ink); }
.ds-tile:hover { border-color: var(--ds-primary); }
.ds-tile b { font-size: 16px; font-weight: 600; }

.ds-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; }
.ds-hero-name { font-family: var(--ds-serif); font-size: 24px; font-weight: 600; }

.ds-checks { list-style: none; margin: 0; padding: 6px 0; }
.ds-checks li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; font-size: 15px; flex-wrap: wrap; }
.ds-checks .ds-t { flex: 1 1 220px; }
.ds-check-ok, .ds-check-todo { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.ds-check-ok { background: var(--ds-ok-tint); color: var(--ds-ok-ink); }
.ds-check-todo { background: var(--ds-warn-tint); color: var(--ds-warn-ink); }
.ds-check-ok .ds-icon, .ds-check-todo .ds-icon { font-size: 16px; }

.ds-meter { height: 8px; border-radius: 4px; background: var(--ds-line-soft); overflow: hidden; width: 160px; }
.ds-meter span { display: block; height: 100%; background: var(--ds-ok); }

.ds-table-box { overflow-x: auto; }
.ds-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.ds-table th, .ds-table td { text-align: left; padding: 12px 22px; border-top: 1px solid var(--ds-line-soft); vertical-align: top; }
.ds-table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--ds-muted); border-top: 0; background: #fafbfc; }

.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; background: var(--ds-bg); border: 1px solid var(--ds-line); }

.ds-status {
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--ds-ok-tint);
	color: var(--ds-ok-ink);
	font-size: 15px;
}
.ds-status--error { background: var(--ds-danger-tint); color: var(--ds-danger); }

/* ---------- Dialogs (<dialog class="ds-dialog">) ---------- */

.ds-dialog {
	width: min(100% - 32px, 480px);
	box-sizing: border-box;
	border: 0;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	color: var(--ds-ink);
	font-family: var(--ds-sans);
}
.ds-dialog::backdrop { background: rgba(31, 35, 40, .55); }
.ds-dialog > form, .ds-dialog > div { display: flex; flex-direction: column; gap: 18px; }
.ds-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ds-dialog-head .ds-h1 { font-size: 24px; }
.ds-dialog-close {
	width: 44px;
	height: 44px;
	margin: -10px -10px 0 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #454c54;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
}
.ds-dialog-close:hover { background: var(--ds-bg); }
.ds-dialog--narrow { width: min(100% - 32px, 420px); }
.ds-dialog [hidden] { display: none !important; }
/* "Next: turn off two-step sign-in" -- what the confirmation is for */
.ds-why { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--ds-bg); font-size: 14px; line-height: 1.45; }
.ds-why .ds-icon { font-size: 20px; flex: none; }
/* the idle warning's countdown */
.ds-count { font-family: var(--ds-mono); font-size: 44px; text-align: center; color: var(--ds-primary-ink); }
/* the apps a sign-out reached */
.ds-apps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ds-line); border-radius: 10px; }
.ds-apps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 15px; border-top: 1px solid var(--ds-line); }
.ds-apps li:first-child { border-top: 0; }
.ds-apps li > span:last-child { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ds-muted); }
.ds-apps li[data-done] > span:last-child { color: var(--ds-ok-ink); }

/* ---------- The account pages' own sections (account.css) inside the hub ---------- */

.ds-shell, .ds-shell * { box-sizing: border-box; }
.ds-content .page-title { font-family: var(--ds-serif); font-size: 30px; font-weight: 600; line-height: 1.2; margin: 0 0 6px; color: var(--ds-ink); }
.ds-content .page-subtitle { color: var(--ds-muted); font-size: 15px; margin: 0 0 8px; }
.ds-content .card { background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: 12px; box-shadow: none; }
.ds-content .card__title { font-size: 17px; font-weight: 600; }
.ds-content .btn-primary, .ds-content .btn-accent { background: var(--ds-primary); color: #fff; }
.ds-content .btn-primary:hover, .ds-content .btn-accent:hover { background: var(--ds-primary-hover); }
.ds-body .modal { border-radius: 16px; }

/* the authenticator QR code: QRCoder draws a fixed-size SVG, so it is scaled to its box */
.ds-qr { width: 164px; height: 164px; background: #fff; border: 1px solid var(--ds-line); border-radius: 10px; padding: 8px; box-sizing: border-box; flex: none; overflow: hidden; }
.ds-qr svg { display: block; width: 100%; height: 100%; }

/* a form's section heading (register: About you, Your work, Password) */
.ds-section { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--ds-muted); margin: 8px 0 0; }

/* a command to copy (the setup page's): wraps inside its card rather than running past it */
.ds-command { font-family: var(--ds-mono); font-size: 13px; background: var(--ds-bg); border: 1px solid var(--ds-line); border-radius: 8px; padding: 10px 12px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* the four-bar password strength meter, coloured by the page's script */
.ds-meter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ds-meter-bar span { height: 4px; border-radius: 2px; background: var(--ds-line); }

/* The hub is centred with a sensible width, so a wide screen doesn't leave the page against the left edge with an
   empty strip beside it; the top bar's ends line up with it. */
.ds-shell { max-width: 1240px; margin: 0 auto; }
.ds-shell .ds-content { max-width: none; }
.ds-top { padding: 0 max(20px, calc((100vw - 1240px) / 2 + 20px)); }

/* an empty list, said with an icon and a next step instead of one line in a wide box */
.ds-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; }
.ds-empty .ds-badge { margin-bottom: 4px; }
.ds-empty .ds-sub { max-width: 460px; }

/* Overview, Profile: two columns on a wide screen (the page's own content, then a side column), one on a phone */
.ds-overview, .ds-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.ds-overview-main, .ds-overview-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1000px) { .ds-overview, .ds-split { grid-template-columns: minmax(0, 1fr); } }

/* the side column's "who you are" card */
.ds-idcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 22px; }
.ds-idcard .ds-avatar--big { margin-bottom: 8px; }
.ds-idcard .ds-hero-name { overflow-wrap: anywhere; }

/* the security score: a ring that fills with what's done */
.ds-score { gap: 16px; justify-content: flex-start; }
.ds-ring {
	--ds-ring: 0;
	width: 56px; height: 56px; border-radius: 50%; flex: none;
	background: conic-gradient(var(--ds-ok, #2f7d3b) calc(var(--ds-ring) * 1%), var(--ds-line) 0);
	display: flex; align-items: center; justify-content: center;
}
.ds-ring span {
	width: 44px; height: 44px; border-radius: 50%; background: var(--ds-surface, #fff);
	display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.ds-score .ds-act { margin-left: auto; }

/* a list of links, each a full-width row */
.ds-links { list-style: none; margin: 0; padding: 6px 0; }
.ds-links a { display: flex; align-items: center; gap: 12px; padding: 10px 18px; min-height: 44px; text-decoration: none; }
.ds-body .ds-links a { color: var(--ds-ink); }
.ds-links a:hover { background: var(--ds-bg); }
.ds-links .ds-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ds-links b { font-weight: 600; font-size: 15px; }
.ds-chev { color: var(--ds-muted); font-size: 20px; }

.ds-feed { list-style: none; margin: 0; padding: 0; }
.ds-feed li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 22px; border-top: 1px solid var(--ds-line); font-size: 15px; }
.ds-feed li:first-child { border-top: 0; }
.ds-feed .ds-t { flex: 1; min-width: 0; }
.ds-checks li { padding-top: 10px; padding-bottom: 10px; }
