:root {
	font-family:
		system-ui,
		-apple-system,
		"Segoe UI",
		sans-serif;
	color: #342d23;
	background: #ede6d8;
	font-size: 15px;
	--brass: #956b2f;
	--ink: #273b35;
	--line: #d6c6a8;
	--paper: #fffaf0;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	display: flex;
	min-height: 100vh;
}
aside {
	width: 245px;
	flex-shrink: 0;
	background: linear-gradient(155deg, #263b35, #162722);
	color: #ebddbe;
	padding: 30px 20px;
	position: fixed;
	inset: 0 auto 0 0;
	border-right: 5px solid #aa8247;
	display: flex;
	flex-direction: column;
}
.academy-logo {
	display: block;
	width: 150px;
	height: 110px;
	object-fit: contain;
	margin: 0 auto 18px;
}
.brand {
	font-family: Georgia, serif;
	letter-spacing: 0.16em;
	text-align: center;
	font-size: 18px;
}
.brand-sub {
	text-align: center;
	font-family: Georgia, serif;
	margin-top: 8px;
	font-size: 16px;
}
.rule {
	height: 1px;
	background: #65715d;
	margin: 27px 0;
}
nav {
	display: grid;
	gap: 7px;
}
nav button {
	color: #e8dcc3;
	background: transparent;
	text-align: left;
	border: 1px solid transparent;
	padding: 12px 13px;
}
nav button.active,
nav button:hover {
	background: #ffffff10;
	border-color: #b99a5a;
	color: white;
}
.login-panel{max-width:500px;margin:10vh auto}.error-text{color:#8d3f32;font-weight:600}.account-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
footer {
	margin-top: auto;
	padding-top: 35px;
	font-size: 9px;
	line-height: 2;
	letter-spacing: 0.08em;
}
footer span {
	font-size: 10px;
	letter-spacing: 0;
	color: #c7c9bd;
}
main {
	margin-left: 245px;
	width: calc(100% - 245px);
	padding: 34px 42px 60px;
	max-width: 1650px;
}
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	gap: 20px;
}
.eyebrow {
	font-size: 10px;
	letter-spacing: 0.18em;
	color: #735b34;
	font-weight: 700;
}
h1,
h2,
h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
}
h1 {
	font-size: 34px;
	margin: 10px 0;
}
h2 {
	font-size: 24px;
	margin: 0 0 16px;
}
h3 {
	font-size: 20px;
	margin: 0 0 10px;
}
.date-label {
	font-size: 11px;
	color: #66583f;
	min-width: 160px;
}
.demo {
	border: 1px solid #bca276;
	border-left: 4px solid #957035;
	background: #f7edd7;
	padding: 12px 16px;
	font-size: 11px;
	letter-spacing: 0.08em;
	font-weight: 700;
	margin-bottom: 25px;
}
.demo span {
	letter-spacing: 0;
	font-weight: 400;
	margin-left: 12px;
	font-size: 12px;
}
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 17px;
	margin: 22px 0;
}
.card,
.panel {
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 3px 9px #483c2110;
	padding: 22px;
}
.card {
	border-top: 3px solid var(--brass);
}
.card strong {
	font-family: Georgia, serif;
	display: block;
	font-size: 38px;
	margin: 12px 0;
	color: var(--ink);
}
.muted,
small {
	color: #6f6555;
	font-size: 12px;
}
.split {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 20px;
}
.stack {
	display: grid;
	gap: 20px;
}
.panel {
	margin-bottom: 20px;
}
.panel p {
	line-height: 1.65;
}
.hero {
	background: linear-gradient(120deg, #34493f, #20362f);
	border: 1px solid #ad8c51;
	color: #f5e9ce;
	padding: 30px;
	position: relative;
	overflow: hidden;
}
.hero:after {
	content: "⚙";
	position: absolute;
	font-size: 155px;
	right: 20px;
	top: -17px;
	color: #d2ab6122;
	pointer-events: none;
}
.hero h2 {
	font-size: 30px;
}
.hero p {
	color: #dedbc8;
	max-width: 620px;
	line-height: 1.65;
}
.row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.between {
	justify-content: space-between;
}
.badge {
	display: inline-block;
	padding: 4px 8px;
	font-size: 11px;
	border: 1px solid #baa77f;
	background: #f3e9d4;
	color: #574521;
	border-radius: 3px;
}
.badge.green {
	background: #e0eade;
	border-color: #93a88d;
	color: #25492b;
}
.badge.dim {
	background: #ece9e3;
	color: #625c51;
}
.list-item {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}
.list-item:last-child {
	border: 0;
}
.list-item p {
	margin: 6px 0;
}
.actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}
button,
.button {
	font: inherit;
	font-size: 13px;
	background: #2c443a;
	color: #fff8e8;
	border: 1px solid #2c443a;
	border-radius: 3px;
	padding: 10px 15px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
button:hover,
.button:hover {
	filter: brightness(1.15);
}
button.secondary {
	background: #f6efdf;
	color: #493b25;
	border-color: #bbaa88;
}
button:disabled {
	opacity: 0.5;
	cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid #b37016;
	outline-offset: 3px;
}
label {
	display: block;
	font-size: 13px;
	margin-bottom: 14px;
}
input,
select,
textarea {
	display: block;
	width: 100%;
	padding: 10px;
	border: 1px solid #b6a98d;
	border-radius: 3px;
	font: inherit;
	margin-top: 6px;
	background: #fffdf7;
	color: #332f27;
}
textarea {
	min-height: 80px;
	resize: vertical;
}
table {
	border-collapse: collapse;
	width: 100%;
	font-size: 13px;
	text-align: left;
}
th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6c5a3c;
	background: #f3ebdb;
}
th,
td {
	padding: 13px 12px;
	border-bottom: 1px solid var(--line);
}
td select {
	min-width: 125px;
}
td input,
td select {
	margin: 0;
}
progress {
	width: 100%;
	height: 16px;
	accent-color: var(--brass);
	margin: 14px 0;
}
.empty {
	padding: 20px 0;
	color: #746751;
	font-style: italic;
}
.scroll {
	overflow-x: auto;
}
.guild-name {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.guild-score {
	font-size: 42px;
	font-family: Georgia, serif;
	color: var(--ink);
	margin: 15px 0;
}
dialog {
	border: 1px solid #9c8153;
	background: #fffaf0;
	width: min(650px, 92vw);
	max-height: 85vh;
	padding: 28px;
	color: #342d23;
	box-shadow: 0 20px 70px #0007;
}
dialog::backdrop {
	background: #15251dcc;
}
#notice:not(:empty) {
	padding: 14px;
	background: #e5eddc;
	border: 1px solid #9caa83;
	margin-bottom: 20px;
}
#notice.error {
	background: #f8e5df;
	border-color: #a96a52;
}
.check-table select {
	font-size: 12px;
}
.check-table td {
	padding: 10px 6px;
}
.key-total {
	font-size: 54px;
	font-family: Georgia, serif;
}
.presentation {
	text-align: center;
	padding: 40px;
}
.presentation h2 {
	font-size: 35px;
}
body.projecting aside,
body.projecting header,
body.projecting .demo {
	display: none;
}
body.projecting main {
	margin: 0;
	width: 100%;
	max-width: none;
}
.note {
	padding: 12px;
	background: #f0e9dc;
	line-height: 1.7;
	font-size: 12px;
}
.file-input {
	padding: 10px 0;
	border: 0;
	background: transparent;
}
.two-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}
@media (max-width: 1100px) {
	main {
		padding: 25px;
	}
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.split {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 720px) {
	body {
		display: block;
	}
	aside {
		position: relative;
		width: 100%;
		padding: 18px;
		border-right: 0;
		border-bottom: 4px solid #aa8247;
	}
	.rule,
	footer {
		display: none;
	}
	.academy-logo {
		width: 96px;
		height: 70px;
		margin: 0 auto 10px;
	}
	.brand-sub {
		margin-bottom: 15px;
	}
	nav {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}
	nav button {
		padding: 10px 7px;
		font-size: 12px;
		text-align: center;
	}
	main {
		margin: 0;
		width: 100%;
		padding: 20px;
	}
	h1 {
		font-size: 26px;
	}
	header {
		align-items: flex-start;
		flex-direction: column;
	}
	.demo span {
		display: block;
		margin: 6px 0;
	}
	.cards {
		gap: 10px;
	}
	.card {
		padding: 16px;
	}
	.two-fields {
		grid-template-columns: 1fr;
	}
}
.bonus-students {
	max-height: 220px;
	overflow: auto;
	border: 1px solid var(--line);
	padding: 12px;
	margin: 0 0 14px;
}
.bonus-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
}
.bonus-choice input {
	width: auto;
	margin: 0;
}
.year-backup-check {
	display: flex;
	align-items: center;
	gap: 10px;
}
.year-backup-check input {
	display: inline-block;
	width: auto;
	margin: 0;
}
#bonus-guild[hidden] {
	display: none;
}
.quick-action-row > .actions {
	margin-bottom: 5px;
}
button.danger {
	background: #8d3f32;
	border-color: #713126;
	color: #fff8ed;
}
.point-presets {
	border: 0;
	padding: 0;
	margin: 0 0 16px;
}
.point-presets legend {
	font-size: 13px;
	margin-bottom: 8px;
}
.point-presets button {
	min-width: 82px;
}
.point-presets button.selected {
	background: var(--ink);
	border: 3px solid #aa8247;
	color: white;
}
