/* Goldline staff site
   Light, warm paper with the logo's gold as the single accent.
   Type: Archivo (its width axis echoes the extended italic of the logo). */

:root {
	--gold: #AA9141;          /* the logo gold: lines, fills, icons */
	--gold-ink: #7A6526;      /* gold for text on light grounds (5.6:1) */
	--gold-wash: #F3EEDD;     /* pale gold for hovers and highlights */
	--ink: #1C1B18;
	--ink-2: #5F5B53;
	--ink-3: #716C62;
	--paper: #F6F4EF;
	--surface: #FFFFFF;
	--line: #E4DFD3;
	--line-strong: #CFC8B6;
	--danger: #B4271F;
	--danger-wash: #FBEDEB;
	--ok: #2F6B3A;
	--ok-wash: #EAF3EA;

	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(28, 27, 24, .06), 0 4px 14px rgba(28, 27, 24, .06);
	--shadow-lift: 0 2px 4px rgba(28, 27, 24, .08), 0 10px 28px rgba(28, 27, 24, .10);
	--ease: cubic-bezier(.16, 1, .3, 1);

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) var(--paper); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

a { color: var(--gold-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: relative;
}
.site-header::after {           /* thin gold rule under the bar */
	content: "";
	position: absolute; left: 0; right: 0; bottom: -1px;
	height: 2px;
	background: var(--gold);
}
.header-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 14px 24px 0;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo . user" "nav nav nav";
	align-items: center;
	row-gap: 10px;
}
.brand { grid-area: logo; display: block; line-height: 0; }
.brand img { height: 52px; width: auto; display: block; }

.user-box { grid-area: user; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); }
.user-box .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.user-box .who strong { color: var(--ink); font-weight: 600; }

.main-nav { grid-area: nav; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px 12px;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 15px; font-weight: 500;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: color .2s var(--ease), border-color .2s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	background: var(--gold);
	color: var(--ink);
	font: 600 15px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #B9A250; color: var(--ink); box-shadow: 0 2px 8px rgba(122, 101, 38, .25); }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--gold-wash); box-shadow: none; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-danger { background: var(--surface); border-color: #E6B9B5; color: var(--danger); }
.btn-danger:hover { background: var(--danger-wash); box-shadow: none; color: var(--danger); }
.btn-block { width: 100%; }

/* ---------- Page ---------- */

.page { max-width: 1080px; margin: 0 auto; padding: 40px 24px 24px; }
.page-narrow > * { max-width: 720px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.page-head h1 {
	margin: 0;
	font-size: clamp(30px, 4.2vw, 42px);
	line-height: 1.05;
	font-weight: 750;
	font-variation-settings: "wdth" 118;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.page-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }

h2 { font-size: 20px; line-height: 1.2; margin: 0 0 12px; font-weight: 700; font-variation-settings: "wdth" 110; }

.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}
.panel + .panel { margin-top: 20px; }
.panel h2 { margin-bottom: 4px; }
.panel .hint { margin: 0 0 18px; color: var(--ink-3); font-size: 14px; }

/* ---------- Messages ---------- */

.notice {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	margin: 0 0 20px;
	font-size: 15px;
	background: var(--ok-wash); color: var(--ok);
	border: 1px solid #CFE3CF;
}
.notice.error { background: var(--danger-wash); color: var(--danger); border-color: #F0CCC8; }
.notice .icon { margin-top: 1px; }

/* ---------- Rota list ---------- */

.week { margin-bottom: 30px; }
.week-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.week-head h2 { margin: 0; font-size: 18px; }
.tag {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px; font-weight: 650;
	letter-spacing: .02em;
	background: var(--gold); color: var(--ink);
	white-space: nowrap;
}
.tag.soft { background: var(--gold-wash); color: var(--gold-ink); }

.rota-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rota-list li + li { border-top: 1px solid var(--line); }
.rota-link {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	color: var(--ink);
	text-decoration: none;
	transition: background-color .25s var(--ease);
}
.rota-link:hover { background: var(--gold-wash); color: var(--ink); }
.rota-link:hover .open { color: var(--ink); transform: translateX(3px); }
.doc-badge {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border-radius: 8px;
	background: var(--paper);
	color: var(--gold-ink);
	border: 1px solid var(--line);
}
.doc-badge .icon { width: 22px; height: 22px; }
.rota-link.night .doc-badge { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.rota-title { display: block; font-weight: 650; font-size: 17px; line-height: 1.25; }
.rota-meta { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.open { display: flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; font-size: 14px; transition: transform .25s var(--ease), color .25s var(--ease); }

.empty {
	text-align: center;
	padding: 48px 24px;
	background: var(--surface);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--ink-2);
}
.empty .icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 8px; }
.empty h2 { margin-bottom: 4px; }
.empty p { margin: 0; }

/* ---------- Coming soon strip ---------- */

.more { max-width: 1080px; margin: 24px auto 0; padding: 0 24px; }
.more h2 { font-size: 15px; font-weight: 650; color: var(--ink-2); margin-bottom: 12px; }
.soon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.soon {
	position: relative;
	padding: 16px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--surface), #FBFAF7);
	color: var(--ink-2);
	cursor: default;
}
.soon .icon { width: 22px; height: 22px; color: var(--gold); margin-bottom: 18px; }
.soon strong { display: block; color: var(--ink); font-weight: 650; font-size: 15px; line-height: 1.25; }
.soon span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* ---------- Footer ---------- */

.site-footer { max-width: 1080px; margin: 40px auto 0; padding: 20px 24px 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--ink-3); }
.site-footer a { color: var(--ink-3); }

/* ---------- Forms ---------- */

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .help { display: block; font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font: 16px/1.4 var(--font);
	caret-color: var(--gold-ink);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(170, 145, 65, .22); }
input[disabled] { background: var(--paper); color: var(--ink-2); }
input.error, textarea.error { border-color: var(--danger); }
label.error { display: block; color: var(--danger); font-size: 13px; font-weight: 500; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- Sign-in pages ---------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card {
	width: 100%; max-width: 420px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-lift);
	padding: 36px 32px 28px;
}
.auth-card .brand img { height: 72px; margin: 0 auto 26px; }
.auth-card h1 { font-size: 24px; line-height: 1.15; margin: 0 0 6px; font-weight: 750; font-variation-settings: "wdth" 115; text-align: center; }
.auth-card .lede { text-align: center; color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }
.auth-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ---------- Admin tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.data { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); background: #FBFAF7; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.edit-row td { background: #FBFAF7; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--ink-2); }
.status.on { background: var(--ok-wash); color: var(--ok); }
.status.warn { background: var(--gold-wash); color: var(--gold-ink); }
.status.bad { background: var(--danger-wash); color: var(--danger); }
.row-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.row-actions button { font: 600 13px/1 var(--font); padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.row-actions button:hover { background: var(--gold-wash); }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.edit-grid label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 4px; }
.edit-grid input { min-height: 38px; padding: 7px 10px; font-size: 14px; }
.edit-msg { font-size: 13px; color: var(--ok); margin-top: 8px; min-height: 1em; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 24px; color: var(--ink-2); font-size: 15px; }
.stats b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; }
.filters label { display: flex; align-items: center; gap: 6px; }
.filters input { accent-color: var(--gold-ink); }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; font-size: 14px; }
.pager a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--surface); }

/* ---------- Upload page (file manager) ---------- */

.fm-list { list-style: none; margin: 0; padding: 0; }
.fm-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.fm-list li:first-child { border-top: 0; }
.fm-list a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 550; overflow-wrap: anywhere; }
.fm-list a:hover { color: var(--gold-ink); }
.fm-list .meta { color: var(--ink-3); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; margin-bottom: 14px; color: var(--ink-3); }

/* ---------- Motion: rota rows settle in once ---------- */

@media (prefers-reduced-motion: no-preference) {
	.rota-list li { animation: settle .6s var(--ease) both; }
	.rota-list li:nth-child(2) { animation-delay: .04s; }
	.rota-list li:nth-child(3) { animation-delay: .08s; }
	.rota-list li:nth-child(n+4) { animation-delay: .12s; }
	@keyframes settle { from { transform: translateY(8px); } }
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
	.soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.soon:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	.header-inner { padding: 12px 16px 0; }
	.brand img { height: 36px; }
	.user-box .who { display: none; }
	.page { padding: 28px 16px 16px; }
	.more { padding: 0 16px; }
	.site-footer { padding: 18px 16px 28px; }
	.panel { padding: 18px; }
	.rota-link { grid-template-columns: 40px 1fr; padding: 14px 16px; gap: 14px; }
	.rota-link .open { display: none; }
	.doc-badge { width: 40px; height: 40px; }
	.field-row { grid-template-columns: 1fr; }
	.auth-card { padding: 30px 22px 22px; }
	.search-bar { grid-template-columns: 1fr; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pager a[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.upload-row .field { margin: 0; }
input[type="file"] { width: 100%; min-height: 44px; padding: 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); font: 14px var(--font); color: var(--ink-2); }
input[type="file"]::file-selector-button { font: 600 14px var(--font); padding: 6px 12px; margin-right: 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.folder-block + .folder-block { margin-top: 18px; }
.folder-block h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 8px; }
.folder-block h3 .icon { color: var(--gold); }
.folder-block .table-wrap { box-shadow: none; }
.folder-empty { padding: 12px 16px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 760px) { .upload-row { grid-template-columns: 1fr; } }
.older { margin-top: 8px; }
.older summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); list-style: none; }
.older summary::-webkit-details-marker { display: none; }
.older summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.older[open] summary::before { transform: rotate(45deg); }
.older summary:hover { color: var(--ink); background: var(--gold-wash); }

/* Wide pages (staff admin table) */
body.wide .header-inner, body.wide .page, body.wide .site-footer { max-width: 1440px; }
table.data .col-check { width: 44px; padding-right: 0; }
table.data .col-actions { width: 1%; white-space: nowrap; }
table.data .col-nowrap { white-space: nowrap; }
table.data .col-email { overflow-wrap: anywhere; min-width: 200px; }
table.data tbody tr:not(.edit-row):hover td { background: #FCFBF8; }
.row-actions button { min-width: 64px; }
.edit-grid .row-actions button { min-width: 0; }
/* Approve / Ban / Edit always sit in the same columns so they line up row to row */
.row-actions.slots { display: grid; grid-template-columns: 78px 70px 56px; gap: 6px; }
.row-actions.slots button { min-width: 0; width: 100%; }
.row-actions.slots .act-approve { grid-column: 1; }
.row-actions.slots .act-ban { grid-column: 2; }
.row-actions.slots .act-edit { grid-column: 3; }

/* Rota list on Upload Rotas, with remove controls */
.fm-list.removable li { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; }
.fm-list.removable input[type="checkbox"], .remove-bar input { width: 18px; height: 18px; accent-color: var(--gold-ink); }
.remove-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #FBFAF7; }
.remove-bar .check { margin: 0; font-size: 14px; }
@media (max-width: 600px) {
	.fm-list.removable li { grid-template-columns: auto minmax(0, 1fr) auto; }
	.fm-list.removable .meta { display: none; }
}

/* Password strength meter (js/password.js) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--gold-ink); font: 600 13px var(--font); padding: 7px 10px; border-radius: 5px; cursor: pointer; }
.pw-toggle:hover { background: var(--gold-wash); color: var(--ink); }

.pw-meter { --lvl: var(--line-strong); margin-top: 12px; }
.pw-meter[data-level="1"] { --lvl: #C0392B; }
.pw-meter[data-level="2"] { --lvl: #D9822B; }
.pw-meter[data-level="3"] { --lvl: var(--gold); }
.pw-meter[data-level="4"] { --lvl: var(--ok); }

.pw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.pw-label { color: var(--ink-3); font-weight: 500; }
.pw-level { font-weight: 700; color: var(--lvl); transition: color .3s var(--ease); }
.pw-meter[data-level="3"] .pw-level { color: var(--gold-ink); }

.pw-segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pw-segs i { display: block; height: 7px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.pw-segs i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lvl); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease), background-color .35s var(--ease); }
.pw-meter[data-level="1"] .pw-segs i:nth-child(-n+1)::after,
.pw-meter[data-level="2"] .pw-segs i:nth-child(-n+2)::after,
.pw-meter[data-level="3"] .pw-segs i:nth-child(-n+3)::after,
.pw-meter[data-level="4"] .pw-segs i::after { transform: scaleX(1); }
.pw-segs i:nth-child(2)::after { transition-delay: .04s; }
.pw-segs i:nth-child(3)::after { transition-delay: .08s; }
.pw-segs i:nth-child(4)::after { transition-delay: .12s; }

.pw-rules { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-size: 12.5px; line-height: 1.2; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.pw-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; flex: none; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.pw-rules li.ok { background: var(--ok-wash); border-color: #CFE3CF; color: var(--ok); }
.pw-rules li.ok .pw-dot { background: var(--ok); border-color: var(--ok); }
.pw-rules li.ok .pw-dot::after { content: ""; width: 6px; height: 3.5px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: translateY(-1px) rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
	.pw-rules li.pop { animation: pw-pop .35s var(--ease); }
	@keyframes pw-pop { 40% { transform: scale(1.07); } }
}

.pw-match { font-size: 13px; font-weight: 600; margin-top: 7px; min-height: 1.2em; }
.pw-match.ok { color: var(--ok); }
.pw-match.bad { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.why { background: var(--gold-wash); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 0 0 20px; }
