:root {
	--ink: #172033;
	--navy: #1c3348;
	--paper: #efe8dc;
	--card: #fffdf8;
	--line: #d8cdbb;
	--gold: #8a6232;
	--muted: #5e675f;
	--ok: #1d6b45;
	--wait: #8a6232;
	--bad: #8d2e2e;
	--shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	background:
		radial-gradient(circle at top left, rgba(138, 98, 50, 0.16), transparent 28rem),
		var(--paper);
	font-family: "Segoe UI", "PT Sans", "Noto Sans", sans-serif;
	line-height: 1.45;
}

a { color: inherit; }

.topbar { background: transparent; }

.mast {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 1.25rem;
	background: linear-gradient(180deg, #27465f 0%, #1c3348 100%);
	color: #f6f1e7;
	border-bottom: 2px solid #8a6232;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }

.mark {
	width: 2.15rem;
	height: 2.15rem;
	display: grid;
	place-items: center;
	border: 1px solid rgba(240, 215, 164, 0.7);
	border-radius: 11px;
	color: #f0d7a4;
	font-size: 1rem;
	line-height: 1;
}

.brand-name {
	display: block;
	font-family: Palatino, "Palatino Linotype", Georgia, serif;
	letter-spacing: 0.18em;
	font-size: 1.2rem;
	line-height: 1;
}

.brand-sub { display: block; margin-top: 0.22rem; color: #d9c7a4; font-size: 0.72rem; letter-spacing: 0.03em; }
main { flex: 1 0 auto; }
.site-foot {
	margin-top: auto;
	padding: 2.1rem 0 1.25rem;
	background: #f6f1e7;
	color: var(--navy);
	border-top: 1px solid #e4d9c8;
	font-size: 0.88rem;
}
.site-foot p { margin: 0; }
.site-foot-main, .site-foot-bar { width: min(1040px, calc(100% - 2rem)); margin-left: auto; margin-right: auto; }
main.wide ~ .site-foot .site-foot-main,
main.wide ~ .site-foot .site-foot-bar { width: min(1240px, calc(100% - 2rem)); }
main.roster-page ~ .site-foot .site-foot-main,
main.roster-page ~ .site-foot .site-foot-bar { width: min(1480px, calc(100% - 2rem)); }
main.profile-page ~ .site-foot .site-foot-main,
main.profile-page ~ .site-foot .site-foot-bar { width: min(40rem, calc(100% - 2rem)); }
.site-foot-main {
	display: grid;
	grid-template-columns: minmax(12rem, 1.05fr) minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: start;
	gap: 1.4rem 2rem;
}
.site-foot-logo { display: flex; align-items: center; gap: 0.55rem; }
.site-foot-star { color: var(--gold); font-size: 1.15rem; line-height: 1; }
.site-foot-name {
	font-family: Palatino, "Palatino Linotype", Georgia, serif;
	letter-spacing: 0.14em;
	font-size: 1.05rem;
	line-height: 1;
}
.site-foot-sub { margin-top: 0.75rem; max-width: 16rem; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.site-foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.site-foot-heading {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.site-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.05rem; }
.site-foot-col a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--navy);
	text-decoration: none;
}
.site-foot-col a:hover { color: var(--gold); }
.site-foot-col svg { width: 1rem; height: 1rem; flex: none; color: var(--muted); }
.site-foot-col a:hover svg { color: var(--gold); }
.site-foot-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.8rem;
	padding-top: 1.15rem;
	border-top: 1px solid #e0d5c4;
}
.site-foot-meta { display: flex; flex-direction: column; gap: 0.22rem; color: var(--muted); font-size: 0.78rem; }
.site-foot-owner, .site-foot-dev { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 0.7rem; }
.site-foot-kicker { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }
.site-foot-social { display: flex; gap: 0.45rem; }
.site-foot-social a {
	width: 2.15rem;
	height: 2.15rem;
	display: grid;
	place-items: center;
	border: 1px solid #d3c6b2;
	border-radius: 999px;
	color: var(--navy);
	background: transparent;
	text-decoration: none;
}
.site-foot-social a:hover { color: #f6f1e7; background: var(--navy); border-color: var(--navy); }
.site-foot-social svg { width: 0.95rem; height: 0.95rem; display: block; }

.session { display: flex; align-items: center; gap: 0.85rem; }

.who { margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }

.who strong { font-size: 0.95rem; font-weight: 650; }

.who span { color: #d9c7a4; font-size: 0.75rem; }

.who-name { display: flex; flex-wrap: wrap; gap: 0.28rem; justify-content: flex-end; align-items: center; }

.nick, .rank {
	display: inline;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--navy);
	font-weight: 650;
	line-height: inherit;
}

a.nick { text-decoration: none; }
a.nick:hover { color: var(--gold); }

.rank { color: var(--muted); font-weight: 600; }

.mast .nick, .mast .rank {
	background: transparent;
	padding: 0;
	color: #f6f1e7;
	font-size: 0.95rem;
}

.mast .rank { color: #e4d2ae; font-size: 0.75rem; font-weight: 600; }

.session button {
	background: transparent;
	color: #f6f1e7;
	border-color: rgba(246, 241, 231, 0.4);
	padding: 0.35rem 0.8rem;
	font-size: 0.85rem;
}

.session button:hover { border-color: #f0d7a4; color: #f0d7a4; }

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem;
	align-items: stretch;
	justify-content: flex-start;
	padding: 0 0.85rem;
	background: #f6f0e6;
	border-bottom: 1px solid var(--line);
}

.nav > a {
	display: inline-flex;
	align-items: center;
	color: var(--navy);
	text-decoration: none;
	padding: 0.62rem 0.7rem;
	border-radius: 0;
	font-size: 0.92rem;
}

.nav > a:hover { background: rgba(138, 98, 50, 0.1); }

.nav > a.is-current {
	background: transparent;
	color: var(--navy);
	box-shadow: inset 0 -2px 0 var(--navy);
}

.nav-gap { width: 1px; height: 1rem; margin: 0 0.35rem; align-self: center; background: #d8cdbb; }

.nav button, button, .button {
	font: inherit;
	border: 1px solid transparent;
	background: var(--gold);
	color: #fffdf8;
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.nav button { background: transparent; border-color: rgba(246, 241, 231, 0.35); }

button.ghost, .button.ghost {
	background: transparent;
	color: var(--navy);
	border-color: var(--line);
}

button.danger { background: var(--bad); }

.page { width: min(1040px, calc(100% - 2rem)); margin: 1.6rem auto 3rem; }
.page.profile-page { width: min(40rem, calc(100% - 2rem)); }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
	padding: 1.05rem 1.15rem 1.2rem;
}

h1, h2 { font-family: Palatino, "Palatino Linotype", Georgia, serif; font-weight: 600; }

h1 { margin: 0 0 0.3rem; font-size: 1.7rem; }

.lede, .hint, .muted { color: var(--muted); }

.note {
	white-space: pre-line;
	background: #f7f1e6;
	border-left: 3px solid var(--gold);
	padding: 0.75rem 0.9rem;
	margin: 0.5rem 0 1rem;
}

.banner {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: #f3e7d2;
}

.banner.error { background: #f8e4e1; color: var(--bad); }

.popup {
	width: min(28rem, calc(100vw - 2rem));
	padding: 1.3rem 1.35rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
	color: var(--ink);
	box-shadow: var(--shadow);
}
.popup::backdrop { background: rgba(28, 51, 72, 0.45); }
.popup h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.popup p { margin: 0 0 0.9rem; color: var(--muted); }
.popup .field { margin-bottom: 0.2rem; }
.popup input { width: 100%; }
.popup.person { width: min(26rem, calc(100vw - 2rem)); }
.popup.person form { display: grid; gap: 0.55rem; margin: 0; }
.popup.person form label { display: grid; gap: 0.28rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.popup.person label[hidden],
.popup.person form[hidden] { display: none; }
.popup.person .select-pick,
.popup.person button.select-face { width: 100%; min-width: 0; }
.popup.person .person-actions { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.15rem; }
.popup.person .person-actions button { width: auto; padding: 0.28rem 0.8rem; font-size: 0.88rem; }
.popup.person form#person-drop { margin-top: 0.75rem; }
.popup.person form#person-drop button { width: auto; justify-self: start; padding: 0.28rem 0.8rem; font-size: 0.88rem; }

.field { margin: 0 0 1.1rem; }
.field a { color: var(--gold); }
.kind-params { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.2rem; align-items: center; }
.kind-params legend { width: 100%; padding: 0; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.check { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font-weight: 450; }
.kind-list { list-style: none; margin: 0.2rem 0 0; padding: 0; }
.kind-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.kind-list form { margin: 0; }

.field label, .question { display: block; font-weight: 650; margin-bottom: 0.35rem; }

.req::after { content: " *"; color: var(--bad); }

input:where(:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"])),
textarea,
select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	height: 2.4rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 450;
	padding: 0 0.8rem;
	border: 1px solid #cfc3b0;
	border-radius: 999px;
	background-color: #fff;
	background-clip: padding-box;
	color: var(--ink);
	box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.04);
}

textarea { height: auto; min-height: 7rem; padding: 0.7rem 0.85rem; resize: vertical; border-radius: 16px; }

input::placeholder { color: #8d8478; }

input[type="search"] { appearance: none; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { appearance: none; }

input[type="number"] { appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }

.date-shell {
	position: relative;
	display: block;
	width: 100%;
	height: 2.4rem;
	border: 1px solid #cfc3b0;
	border-radius: 999px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238d8478' stroke-width='1.4' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='11' rx='2'/%3E%3Cpath d='M2 6.5h12M5 1.8v2.4M11 1.8v2.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.04);
}
.date-shell:focus-within {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(138, 98, 50, 0.16);
}
.date-shell input[type="date"] {
	height: 100%;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	padding-right: 2.2rem;
	color-scheme: light;
}
.date-shell input[type="date"]::-webkit-calendar-picker-indicator,
.date-shell input[type="date"]::-moz-calendar-picker-indicator {
	opacity: 0;
	background: transparent;
	cursor: pointer;
	width: 2.2rem;
	height: 100%;
	margin: 0;
	padding: 0;
}

select {
	appearance: none;
	padding-right: 2.2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235e675f' d='M1.2 1.4 6 6.2 10.8 1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(138, 98, 50, 0.16);
}

.choice {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.55rem 0.2rem;
	font-weight: 450;
}

.choice input { margin-top: 0.25rem; }

.scores { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.scores .choice { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; }

.error { color: var(--bad); margin: 0.3rem 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.list { display: grid; gap: 0.75rem; }

.item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.35rem 1rem;
	padding: 0.95rem 1rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	text-decoration: none;
	background: #fff;
}

.item:hover { border-color: var(--gold); }

.item strong { font-size: 1.05rem; }

.pill {
	align-self: start;
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
	font-size: 0.85rem;
	background: #f3e7d2;
	color: var(--wait);
}

.pill.ACCEPTED { background: #e3f3ea; color: var(--ok); }
.pill.REJECTED { background: #f8e4e1; color: var(--bad); }
.pill.red { background: #f8e4e1; color: var(--bad); }
.pill.blue { background: #e6eef6; color: #1c4f86; }
.pill.plain { background: #f3e7d2; color: var(--wait); }

.meta { color: var(--muted); font-size: 0.92rem; }

.profile-fields { margin-top: 0.85rem; }
.profile-row {
	display: grid;
	grid-template-columns: 8.2rem minmax(0, 1fr);
	gap: 0.7rem 0.85rem;
	align-items: center;
	padding: 0.75rem 0;
	border-top: 1px solid var(--line);
}
.profile-row span { color: var(--muted); font-size: 0.85rem; }
.profile-row input { width: 100%; height: 2.3rem; }
.profile-row strong,
.profile-row a { overflow-wrap: anywhere; }
.profile-row .fill { grid-column: 2; }
.profile-note { margin: 0.85rem 0 0; }
.profile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.95rem 0 0;
}
.profile-bar button,
.profile-bar .button { margin: 0; }
.facts { display: grid; gap: 0.85rem; margin-top: 1rem; }
.facts div { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.facts span { display: block; color: var(--muted); font-size: 0.85rem; }
.facts strong { overflow-wrap: anywhere; }
.proof { white-space: pre-wrap; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
tbody tr:hover td { background: #fbf7f0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
a.clip { display: inline-block; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--gold); }
td form { display: flex; gap: 0.5rem; align-items: center; }
td input, td select { width: auto; flex: 1; min-width: 12rem; }

.accounts { display: grid; gap: 0.45rem; margin-top: 1.25rem; }
.accounts button {
	width: 100%;
	text-align: left;
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.7rem 0.85rem;
}
.accounts button:hover { border-color: var(--gold); }

.page.wide { width: min(1240px, calc(100% - 2rem)); }
.page.roster-page { width: min(1480px, calc(100% - 2rem)); }

.open-track, .actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
form.open-track { padding: 0.5rem 0.6rem; margin: 0.7rem 0 0.65rem; }
form.open-track input { flex: 0 0 auto; width: 11rem; min-width: 0; height: 2.05rem; font-size: 0.9rem; }
form.open-track input[type="date"] { width: 10rem; }
form.open-track button { height: 2.05rem; padding: 0 0.85rem; font-size: 0.9rem; }

.track { margin-top: 0.65rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.15rem 1rem; }
.track-line { margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; color: var(--muted); font-size: 0.82rem; }
.track-line .open-date { color: var(--wait); }
.stages { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.12rem; }
.stages li { position: relative; }
.stage-row { display: grid; grid-template-columns: 1.15rem minmax(8rem, 1fr) auto; gap: 0.4rem; align-items: baseline; padding: 0.08rem 0.45rem; border-radius: 7px; background: #f6f3ed; font-size: 0.88rem; color: inherit; text-decoration: none; }
.stages li.passed .stage-row { cursor: pointer; }
.stages li.score-5 .stage-row { background: #e3f6ea; }
.stages li.score-4 .stage-row { background: #e7f3ea; }
.stages li.score-3 .stage-row { background: #f8f1dc; }
.stages li.score-2 .stage-row { background: #f8e6d8; }
.stages li.score-1 .stage-row { background: #f8e2e2; }
.stages li.passed .stage-row:hover { filter: brightness(0.97); }
.stages .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.stages .stage-meta { color: var(--muted); font-size: 0.8rem; display: inline-flex; gap: 0.4rem; align-items: baseline; }
.stages .score { font-weight: 700; }
.stages li.score-5 .score { color: #1d6b45; }
.stages li.score-4 .score { color: #3d7a46; }
.stages li.score-3 .score { color: #8a6232; }
.stages li.score-2 .score { color: #a15a24; }
.stages li.score-1 .score { color: #8d2e2e; }
.stages .wait { color: #8a6232; }
.stage-tip { display: none; color: var(--navy); font-variant-numeric: tabular-nums; }
.stage-tip::after { content: "·"; margin-left: 0.4rem; color: var(--muted); font-weight: 400; }
.stage-row:hover .stage-tip, .stage-row:focus-visible .stage-tip { display: inline; }
.choice small { display: block; font-weight: 400; }
.choice.is-taken { color: var(--muted); }
.choice.is-taken input { accent-color: var(--muted); }
.stage-state:empty { display: none; }
.stage-state { color: var(--muted); }

.topbar { width: 100%; }

.roster .mail { color: var(--muted); }

.entry,
.entry.composer {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem 1rem;
	align-items: end;
	margin: 0.7rem -1.15rem 0;
	padding: 0.15rem 1.15rem 1.2rem;
	border-bottom: 2px solid #c4b49a;
}
.entry label { display: grid; gap: 0.28rem; color: var(--muted); font-weight: 650; font-size: 0.78rem; }
.entry input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .entry select { height: 2.4rem; color: var(--ink); }
.entry input[type="file"] { height: auto; padding: 0.55rem 0.75rem; }
.charter-form { grid-template-columns: 1fr; }
.charter-form label { grid-column: 1; }
.entry .date-shell input[type="date"] { height: 100%; border: 0; box-shadow: none; background: transparent; }
.entry input[type="checkbox"],
.entry input[type="radio"] {
	width: 1rem;
	height: 1rem;
	padding: 0;
	border-radius: 4px;
	box-shadow: none;
}
@media (min-width: 720px) {
	.entry label.wide { grid-column: span 2; }
}
@media (max-width: 800px) {
	.entry { grid-template-columns: 1fr; }
	.entry label.wide { grid-column: auto; }
}
.entry button, .open-track button { justify-self: start; height: 2.4rem; padding-inline: 1.05rem; }
.identity { margin: 0.2rem 0 0.15rem; font-size: 1.05rem; }
.identity strong { font-size: 1.15rem; }
.rank-rules { margin: 0.2rem 0 1rem; }
.rank-rules summary { cursor: pointer; color: #5c5348; }
.rank-rules ul { margin: 0.55rem 0 0; padding-left: 1.15rem; }
.rank-rules li { margin: 0.28rem 0; font-size: 0.92rem; }
.roster form { align-items: center; }
.roster .post-select {
	appearance: none;
	height: 2.15rem;
	min-width: 13.5rem;
	padding: 0 2rem 0 0.85rem;
	border-radius: 999px;
	border: 1px solid #cfc3b0;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a6232' d='M1.2 1.4 6 6.2 10.8 1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	box-shadow: none;
}
.roster button {
	height: 2.15rem;
	padding: 0 0.8rem;
	font-size: 0.88rem;
}
.composer { background: transparent; }
.balance { margin: 0.2rem 0 1rem; font-size: 1.45rem; letter-spacing: -0.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.35rem 0 0.85rem; }
.entry + .filters { margin-top: 1.6rem; }
.filters input, .filters select { width: auto; min-width: 0; height: 2.4rem; background-color: #fff; }
.filters select { width: 11.2rem; padding-right: 1.8rem; }
.filters input[type="search"] {
	flex: 0 1 16rem;
	width: 16rem;
	max-width: 100%;
	padding-left: 2.35rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238d8478' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4'/%3E%3Cpath d='M10.2 10.2 13.5 13.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 0.85rem 0.85rem;
	background-position: 0.8rem center;
}
.filters button { height: 2.4rem; padding: 0 0.85rem; flex: 0 0 auto; }
.filter-count { flex: 0 0 4.2rem; margin-left: 0.15rem; text-align: left; color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 0.85rem; margin-top: 0.95rem; }
.pager a { color: var(--navy); text-decoration: none; }
.pager a:hover { color: var(--gold); }
.pager span { color: var(--muted); font-size: 0.9rem; }
.filter-count.is-quiet { visibility: hidden; }
.filter-empty { margin: 0.2rem 0 0.6rem; }
.sheet { overflow-x: auto; }
.sheet table { min-width: 46rem; }
.roster h2 { margin: 1.15rem 0 0.35rem; font-size: 1.15rem; letter-spacing: 0.02em; }
.roster-sheet { overflow-x: auto; }
.roster-sheet table { width: max-content; min-width: 100%; table-layout: auto; font-size: 0.78rem; }
.roster-sheet th, .roster-sheet td { padding: 0.38rem 0.28rem; text-transform: none; letter-spacing: 0; white-space: nowrap; line-height: 1.2; vertical-align: middle; }
.roster-sheet tbody td:nth-child(1),
.roster-sheet thead tr + tr th:nth-child(1) { min-width: 11.5rem; }
.roster-sheet tbody td:nth-child(2),
.roster-sheet thead tr + tr th:nth-child(2) { min-width: 8.6rem; }
.roster-sheet tbody td:nth-child(3),
.roster-sheet thead tr + tr th:nth-child(3) { min-width: 14rem; }
.roster-sheet thead th { background: transparent; font-size: 0.68rem; font-weight: 650; }
.roster-sheet thead .zones th {
	padding: 0.45rem 0.12rem 0.22rem;
	border-bottom: 2px solid transparent;
	font-family: Palatino, "Palatino Linotype", Georgia, serif;
	font-size: 0.76rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	color: var(--navy);
}
.roster-sheet thead .zones .z-act { color: var(--ok); border-bottom-color: #7eae93; }
.roster-sheet thead .zones .z-fine { color: var(--bad); border-bottom-color: #d7a3a3; }
.roster-sheet thead .zones .z-up { color: var(--gold); border-bottom-color: #d4b48a; }
.roster-sheet thead tr + tr th { padding-top: 0.28rem; color: var(--muted); font-weight: 600; background: transparent; }
.roster-sheet .z-start { border-left: 1px solid var(--line); }
.roster-sheet td.up-ready { color: #2f7a3a; font-weight: 650; }
.roster-sheet td.up-wait { color: #b44545; font-weight: 650; }
.up-ready { color: #2f7a3a; font-weight: 650; }
.up-wait { color: #b44545; font-weight: 650; }
.roster-sheet .c-day,
.roster-sheet .c-ld,
.roster-sheet .c-act,
.roster-sheet .c-vote { width: 2.6rem; }
.roster-sheet .c-warn { width: 3.4rem; }
.roster-sheet .c-when { width: 5.6rem; }
.roster-sheet .c-link { width: 3.6rem; }
.roster-sheet .tick { color: var(--ok); font-size: 1rem; font-weight: 700; line-height: 1; text-decoration: none; }
.roster-sheet a.tick:hover { color: var(--gold); }
.roster-sheet .mid { text-align: center; font-variant-numeric: tabular-nums; }
.roster-sheet .mid span, .roster-sheet .mid small { display: block; }
.roster-sheet .mid small { margin-top: 0.08rem; color: var(--muted); font-size: 0.64rem; font-weight: 600; text-transform: none; }
.roster-sheet .on { color: var(--ok); font-weight: 700; }
.roster td.day { font-weight: 650; }
.roster .d-zero { color: var(--muted); font-weight: 500; }
.roster .d-low { background: #e7f3ea; color: #1d6b45; }
.roster .d-go { background: #c5e6d0; color: #145c32; }
.roster .d-excuse { background: #e6eef6; color: #1c4f86; }
.roster .d-idle { background: #f8e4e1; color: #8d2e2e; }
.roster .d-rest { color: #8a6232; }
.roster .d-leave { background: #ece4f8; color: #5b3d8a; }
.roster .d-hash { background: #f8e6d4; color: #8a4b12; }
.roster-sheet td.sum { font-weight: 700; }
.roster .sum-high { background: #8fc9a8; color: #0e4a2c; }
.roster-sheet tbody tr:hover td.d-low { background: #d7eadc; }
.roster-sheet tbody tr:hover td.d-go { background: #b4dcc2; }
.roster-sheet tbody tr:hover td.d-excuse { background: #d5e4f2; }
.roster-sheet tbody tr:hover td.d-idle { background: #f3d5d1; }
.roster-sheet tbody tr:hover td.d-leave { background: #e0d6f3; }
.roster-sheet tbody tr:hover td.d-hash { background: #f3d9c0; }
.roster-sheet tbody tr:hover td.sum-high { background: #7dbe98; }
.legend .day-key {
	display: inline-grid;
	place-items: center;
	min-width: 1.8rem;
	height: 1.25rem;
	margin-right: 0.4rem;
	padding: 0 0.28rem;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.8rem;
	vertical-align: middle;
}
.legend .day-key.d-zero,
.legend .day-key.d-rest { border: 1px solid var(--line); background: transparent; }
.roster-sheet td.fine-0 { color: var(--muted); font-weight: 500; }
.roster-sheet td.fine-1 { background: #f8e8dc; color: #8a4e28; font-weight: 700; }
.roster-sheet td.fine-2 { background: #f6d2c4; color: #8d3a28; font-weight: 700; }
.roster-sheet td.fine-3 { background: #f0c2c2; color: var(--bad); font-weight: 700; }
.roster-sheet tbody tr:hover td.fine-1 { background: #f3dccb; }
.roster-sheet tbody tr:hover td.fine-2 { background: #f0c4b4; }
.roster-sheet tbody tr:hover td.fine-3 { background: #e8b0b0; }
.roster-sheet .pill { display: inline-block; font-size: 0.74rem; line-height: 1.25; padding: 0.12rem 0.45rem; white-space: nowrap; }
.roster-sheet a { color: var(--gold); }
.roster .filters select { width: 16rem; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.4rem 1.5rem; margin-top: 1.1rem; }
.mark-list { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0.32rem; margin: 0.4rem 0 0.55rem; padding: 0; color: var(--muted); font-size: 0.88rem; }
.legend h2 { margin-top: 0; }
.legend p { margin: 0.15rem 0; color: var(--muted); font-size: 0.88rem; }
.award-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.award { border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; background: #fff; }
.award h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.award ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.7rem 0 0; padding: 0; }
.award li { background: none; border-radius: 0; padding: 0; font-size: 0.95rem; }
.nick-pick { position: relative; display: block; min-width: 0; }
.nick-pick > input { width: 100%; padding-right: 2.1rem; }
.nick-pick > .nick-pick-btn {
	position: absolute;
	right: 0.3rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.6rem;
	height: 1.6rem;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--gold);
	box-shadow: none;
	line-height: 1;
}
.nick-menu {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	top: calc(100% + 0.25rem);
	max-height: 14rem;
	overflow: auto;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	background: #fffdf8;
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(28, 51, 72, 0.12);
}
.nick-menu.is-fixed {
	position: fixed;
	inset: auto;
	right: auto;
	margin: 0;
	z-index: 1000;
	height: auto;
	border: 1px solid var(--line);
	padding: 0.25rem;
	background: #fffdf8;
	color: var(--ink);
}
.nick-menu button {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0.38rem 0.55rem;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--navy);
	box-shadow: none;
	text-align: left;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.3;
}
.nick-menu button:hover,
.nick-menu button.is-current { background: #f6f1e6; }
.select-pick .nick-menu button { font-weight: 500; }
.select-pick { position: relative; display: block; min-width: 0; width: 100%; }
.select-pick > select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}
button.select-face {
	display: flex;
	align-items: center;
	width: 100%;
	height: 2.4rem;
	margin: 0;
	padding: 0 2.2rem 0 0.8rem;
	border: 1px solid #cfc3b0;
	border-radius: 999px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235e675f' d='M1.2 1.4 6 6.2 10.8 1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.04);
	color: var(--ink);
	font-weight: 450;
	font-size: 0.95rem;
	text-align: left;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
button.select-face:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(138, 98, 50, 0.16);
}
.filters .select-pick { width: 11.2rem; flex: 0 0 11.2rem; }
.roster .filters .select-pick { width: 16rem; flex-basis: 16rem; }
td form .select-pick { flex: 1; min-width: 12rem; width: auto; }
.roster button.select-face { height: 2.15rem; min-width: 13.5rem; }
.with-side {
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}
.side-nav {
	position: sticky;
	top: 0.8rem;
	max-height: calc(100vh - 1.6rem);
	overflow: auto;
	padding: 0.7rem 0.85rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
}
.side-nav a {
	display: block;
	padding: 0.32rem 0;
	color: var(--navy);
	text-decoration: none;
	font-size: 0.84rem;
	line-height: 1.25;
}
.side-nav a:hover, .side-nav a.is-current { color: var(--gold); }
.charter-part { scroll-margin-top: 0.8rem; margin: 1rem 0 0; }
.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 20;
	width: 2.6rem;
	height: 2.6rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--navy);
	box-shadow: 0 8px 24px rgba(23, 32, 51, 0.12);
	font-size: 1.15rem;
	line-height: 1;
}
.to-top:hover { color: var(--gold); border-color: var(--gold); }
.to-top[hidden] { display: none; }
.faq .part-title {
	margin: 0 0 0.7rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--line);
	font-size: 1.28rem;
}
.faq h2 { scroll-margin-top: 0.8rem; }
.post-card {
	display: grid;
	grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.3fr);
	gap: 0.7rem 1.1rem;
	align-items: end;
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
}
.post-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.post-card p { margin: 0; }
.shots { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.35rem 0 0.9rem; }
.shots figure { margin: 0; width: min(100%, 22rem); }
.shots.forms { flex-wrap: nowrap; gap: 0.4rem; margin: 0; overflow-x: auto; }
.shots.forms figure { width: 5.4rem; flex: 0 0 5.4rem; }
.shots.banner figure { width: 16rem; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #f6f1e6; cursor: zoom-in; }
dialog.photo-view:not([open]) { display: none !important; }
.photo-view {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: max-content;
	max-width: min(92vw, 52rem);
	max-height: 92vh;
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.photo-view::backdrop { background: rgba(16, 24, 32, 0.72); }
.photo-view img {
	display: block;
	width: auto;
	max-width: min(88vw, 50rem);
	max-height: calc(86vh - 2.2rem);
	margin: 0;
	object-fit: contain;
	background: transparent;
}
.photo-view p {
	margin: 0.45rem 0 0;
	max-width: min(88vw, 50rem);
	text-align: center;
	color: #f6f1e7;
	font-size: 0.9rem;
}
.photo-view p[hidden] { display: none; }
.charter-more { height: 1px; }
.shots.forms img { height: 12.2rem; object-fit: contain; object-position: center bottom; }
.shots figcaption { margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; text-align: center; }
.faq h3 { margin: 0.9rem 0 0.3rem; font-size: 1.05rem; }
.faq .post-card h3 { margin: 0 0 0.25rem; }
.faq ol, .faq ul { margin: 0.2rem 0 0.6rem; padding-left: 1.15rem; }
.faq li { margin: 0.28rem 0; }
.roster-sheet td.z-fine,
.roster-sheet td.z-up { overflow: hidden; padding: 0; }
.roster-sheet .fine-form { margin: 0; }
.roster-sheet span.date-read { display: block; padding: 0.38rem 0.1rem; }
.note-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.note-cell button { height: auto; min-height: 1.8rem; padding: 0.2rem 0.55rem; font-size: 0.78rem; }
.roster-sheet button.fine-hit {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 1.7rem;
	margin: 0;
	padding: 0.38rem 0.1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
.fine-step { display: flex; align-items: center; justify-content: center; gap: 0.85rem; margin: 0 0 1rem; }
.fine-step strong { min-width: 3.2rem; font-size: 1.45rem; text-align: center; }
.fine-step button { width: 2.4rem; min-width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 999px; font-size: 1.2rem; line-height: 1; }
.fine-step button:disabled { opacity: 0.35; cursor: default; }
.roster-sheet a.nick { color: var(--navy); font-weight: 650; }
.roster-sheet a.nick:hover { color: var(--gold); }
@media (max-width: 860px) {
	.with-side { grid-template-columns: 1fr; }
	.post-card { grid-template-columns: 1fr; }
	.side-nav { position: static; }
}
.faq h2 { margin-top: 1.4rem; font-size: 1.35rem; }
.faq a { color: var(--gold); }
.faq a.button { color: #fffdf8; }
.charter-block { padding: 0.85rem 0 0.2rem; border-top: 1px solid var(--line); }
.charter-part .charter-block:first-of-type { border-top: 0; padding-top: 0.15rem; }
.charter-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq .charter-head h2 { margin: 0; font-size: 1.15rem; }
.charter-body { white-space: pre-wrap; margin: 0.4rem 0 0.7rem; }
td .pill { font-size: 0.78rem; padding: 0.08rem 0.45rem; }
.pill.lead { background: #f6e4e2; color: #8d2e2e; }
.pill.curator { background: #f6d4d4; color: #9a2424; }
.pill.vice { background: #edd0d0; color: #6e1c1c; }
.pill.cmd { background: #f4d0d0; color: #9a1a1a; }
.pill.dep { background: #d3e4ea; color: #0c4a58; }
.pill.sen { background: #f8d6ea; color: #8a2f62; }
.pill.inst { background: #e8e0f6; color: #5b3d8a; }
.pill.academ { background: #fde8d4; color: #8a4b12; }
.pill.deposit, .pill.good { background: #e3f3ea; color: #1d6b45; }
.pill.withdraw, .pill.bad { background: #f8e4e1; color: #8d2e2e; }
.pill.transfer { background: #ece4f8; color: #5b3d8a; }
.pill.great { background: #cfe8d8; color: #145c38; }

.page.auth {
	min-height: 0;
	width: 100%;
	margin: 0;
	display: grid;
	place-items: center;
	padding: 1.5rem 1rem;
}

.login-card { width: min(24rem, 100%); margin: 0; }

.login-card form { display: grid; gap: 0.15rem; }

.login-card button[type="submit"] { width: 100%; margin-top: 0.35rem; }

.auth-switch { margin: 0.9rem 0 0; text-align: center; }

.auth-switch a { color: var(--gold); }

[hidden] { display: none !important; }

@media (max-width: 900px) {
	.topbar { grid-template-columns: 1fr; }
	.nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
	.profile-row { grid-template-columns: 1fr; }
	.profile-row .fill { grid-column: auto; }
	.item, td form, .nav { display: flex; flex-wrap: wrap; }
	.page, .page.profile-page { width: min(100% - 1rem, 920px); }
	.site-foot-main { grid-template-columns: 1fr; gap: 1.4rem; }
	.site-foot-bar { align-items: flex-start; flex-wrap: wrap; }
	.nav-gap { display: none; }
}
