.site-nav__dropdown {
	position: relative;
}

.site-nav__dropdown summary {
	cursor: pointer;
	list-style: none;
}

.site-nav__dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 20;
	min-width: 18rem;
	padding: 0.5rem;
	background: var(--card);
	border: 1px solid var(--rule);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.site-nav__dropdown[open] .site-nav__dropdown-menu {
	display: grid;
}

.site-nav__dropdown-menu a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.site-nav__dropdown-menu span {
	font-size: 0.8rem;
}

.shop-surface__header,
.sale-receipt__heading,
.sale-receipt__line,
.sale-receipt__total,
.transaction-list > div,
.shop-cart__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.shop-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
	gap: 1.5rem;
}

.inventory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1rem;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.product-card,
.inventory-item,
.shop-cart,
.sale-receipt,
.sale-completion-panel {
	border: 1px solid var(--rule);
	background: var(--bg-alt);
	padding: 1rem;
}

.product-card img,
.inventory-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.product-card__actions form,
.economy-actions,
.balance-grid {
	display: grid;
	gap: 1rem;
}

.economy-actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.economy-actions--three,
.balance-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.balance-grid > div {
	display: grid;
	gap: 0.25rem;
	padding: 1rem;
	border-top: 3px solid var(--ochre);
	background: var(--bg-alt);
}

.sale-receipt {
	margin-bottom: 1.25rem;
}

.sale-receipt__line,
.sale-receipt__total,
.transaction-list > div,
.shop-cart__item {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--rule);
}

.sale-receipt__total {
	font-size: 1.1rem;
}

.sale-status {
	font-weight: 700;
	text-transform: uppercase;
}

.inventory-item {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 1rem;
}

@media (max-width: 760px) {
	.shop-layout,
	.economy-actions,
	.economy-actions--three,
	.balance-grid {
		grid-template-columns: 1fr;
	}

	.site-nav__dropdown-menu {
		position: static;
		min-width: 0;
	}
}
* {
	box-sizing: border-box;
}

:root {
	--bg: #f3ecdc;
	--bg-alt: #e9dec5;
	--card: #faf5e8;
	--ink: #26201a;
	--ink-soft: #6b5f4c;
	--pounamu: #2f5747;
	--pounamu-deep: #1c362b;
	--ochre: #93712a;
	--pohutukawa: #a3311f;
	--rule: #c9b98f;
	--shadow: 0 1px 0 rgba(38, 32, 26, 0.08);
	color-scheme: light;

	--text-primary: rgba(38, 32, 26, 0.95);
	--text-secondary: rgba(38, 32, 26, 0.72);
	--text-muted: rgba(38, 32, 26, 0.55);
	--text-on-contrast: var(--card);
	--homepage-major-gap: 1.35rem;

	--primary: var(--pounamu-deep);
	--secondary: var(--pounamu);
	--tertiary: var(--ochre);
	--accent: var(--ochre);
	--light: var(--card);
	--dark: var(--ink);
}

html[data-theme='po'] {
	--bg: #10150f;
	--bg-alt: #1a221a;
	--card: #161d15;
	--ink: #ece2c8;
	--ink-soft: #b2a687;
	--pounamu: #71b494;
	--pounamu-deep: #4c8a6c;
	--ochre: #d9b34d;
	--pohutukawa: #e2673f;
	--rule: #3a4536;
	--shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
	color-scheme: dark;

	--text-primary: rgba(236, 226, 200, 0.95);
	--text-secondary: rgba(236, 226, 200, 0.82);
	--text-muted: rgba(236, 226, 200, 0.72);
	--text-on-contrast: var(--ink);
	--darkmode-readable-green: var(--secondary);

	--primary: var(--pounamu);
	--secondary: var(--pounamu);
	--tertiary: var(--ochre);
	--accent: var(--ochre);
	--light: var(--ink);
	--dark: var(--card);
}

body {
	margin: 0;
	color: var(--text-primary);
	background:
		radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--pounamu) 14%, transparent), transparent 60%),
		var(--bg);
	font-family: "Source Serif 4", Georgia, serif;
	transition: background .4s ease, color .4s ease;
}

h1, h2, h3 {
	font-family: "Fraunces", serif;
	font-weight: 600;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

.page-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

@media (min-width: 1024px) {
	.page-shell {
		max-width: 1440px;
		margin: 0 auto;
		border-left: 1px solid var(--rule);
		border-right: 1px solid var(--rule);
	}
}

.site-header,
.site-footer,
.hero,
.panel {
	width: 100%;
	margin: 0;
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 0;
	border-bottom: 1px solid var(--rule);
	border-radius: 0;
	background: var(--bg);
	box-shadow: none;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Fraunces", serif;
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.01em;
}

.brand-icon {
	flex: none;
	font-size: 1.35rem;
	color: var(--pounamu);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
	align-items: center;
	color: var(--ink-soft);
}

.site-nav a {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 0.78rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-soft);
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--pounamu);
	border-color: var(--pounamu);
}

.site-nav__cta {
	color: var(--card) !important;
	background: var(--pounamu-deep);
	border: 1px solid var(--pounamu-deep) !important;
	border-radius: 2px;
	padding: 0.4rem 0.85rem;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
	background: var(--pounamu);
	color: var(--card) !important;
}

.site-nav-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.65rem;
	border: 1px solid rgba(38, 32, 26, 0.2);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.site-nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 0.25rem 0;
	background: currentColor;
}

@media (max-width: 767px) {
	.site-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.site-nav-toggle {
		display: block;
	}

	.site-nav {
		display: none;
		grid-column: 1 / -1;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding-top: 0.75rem;
		border-top: 1px solid rgba(38, 32, 26, 0.12);
	}

	.site-nav.site-nav--open {
		display: flex;
	}

	.site-nav a {
		padding: 0.45rem 0;
	}
}

.thread-state-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	margin-right: 0.25rem;
	border-radius: 999px;
	background: rgba(198, 40, 40, 0.12);
	font-size: 0.9rem;
}

.content-wrap {
	padding-bottom: 1rem;
}

.footer-region {
	margin-top: auto;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
	gap: 1.25rem;
	margin-bottom: var(--homepage-major-gap);
	align-items: stretch;
}

.hero__copy,
.hero__art,
.panel,
.node-card,
.post-card {
	border: 1px solid var(--rule);
	border-radius: 0;
	background: var(--card);
	box-shadow: var(--shadow);
}

.node-card,
.post-card {
	border-left: 3px solid var(--pounamu);
	transition: border-color 0.2s ease, transform 0.15s ease;
}

.node-card:hover,
.post-card:hover {
	border-left-color: var(--pohutukawa);
	transform: translateX(2px);
}

html[data-theme='po'] .site-header,
html[data-theme='po'] .site-footer,
html[data-theme='po'] .panel,
html[data-theme='po'] .node-card,
html[data-theme='po'] .post-card,
html[data-theme='po'] .profile-choice-preview,
html[data-theme='po'] .profile-detail-item,
html[data-theme='po'] .notification-dock,
html[data-theme='po'] .notification-card {
	background: rgba(22, 29, 21, 0.86);
	border-color: rgba(236, 226, 200, 0.2);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

html[data-theme='po'] .panel__intro,
html[data-theme='po'] .node-card p,
html[data-theme='po'] .post-card__body,
html[data-theme='po'] .field small,
html[data-theme='po'] .site-footer p,
html[data-theme='po'] .post-author-time,
html[data-theme='po'] .thread-list-meta,
html[data-theme='po'] .thread-replies-link,
html[data-theme='po'] .auth-links,
html[data-theme='po'] .notification-inline-message {
	color: rgba(236, 226, 200, 0.82);
}

html[data-theme='po'] .privacy-notice h2,
html[data-theme='po'] .privacy-notice p {
	color: rgba(236, 226, 200, 0.95);
}

html[data-theme='po'] .site-nav,
html[data-theme='po'] .profile-detail-item dd,
html[data-theme='po'] .birthday-item small {
	color: rgba(236, 226, 200, 0.85);
}

html[data-theme='po'] .thread-count-summary,
html[data-theme='po'] .post-list > p,
html[data-theme='po'] .profile-choice-preview p,
html[data-theme='po'] .post-card__header span,
html[data-theme='po'] .notification-card__time,
html[data-theme='po'] .character-preview-card__timestamp,
html[data-theme='po'] .pagination span,
html[data-theme='po'] .simple-editor-limit-hint,
html[data-theme='po'] .post-card__body .text-color-black {
	color: var(--darkmode-readable-green);
}

html[data-theme='po'] .field input,
html[data-theme='po'] .field select,
html[data-theme='po'] .field textarea,
html[data-theme='po'] .simple-editor-button,
html[data-theme='po'] .simple-editor-color-select,
html[data-theme='po'] .simple-editor-font-select,
html[data-theme='po'] .simple-editor-highlight-select {
	background: rgba(22, 29, 21, 0.95);
	border-color: rgba(236, 226, 200, 0.28);
	color: rgba(236, 226, 200, 0.95);
}

html[data-theme='po'] .simple-editor-toolbar__selects {
	border-color: rgba(236, 226, 200, 0.18);
}

html[data-theme='po'] .button--ghost {
	border-color: rgba(236, 226, 200, 0.35);
	background: rgba(236, 226, 200, 0.08);
}

.hero__copy {
	padding: 2rem;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.hero__copy::after {
	content: '';
	position: absolute;
	inset: auto -6rem -7rem auto;
	width: 18rem;
	height: 18rem;
	background: radial-gradient(circle, color-mix(in srgb, var(--pounamu) 16%, transparent), transparent 70%);
	pointer-events: none;
}

.hero__copy h1,
.panel h1,
.panel h2,
.post-card h3,
.node-card h3 {
	font-family: "Fraunces", serif;
}

.hero__copy h1 {
	margin: 0 0 0.8rem;
	font-size: clamp(2.6rem, 4vw, 4.4rem);
	line-height: 0.95;
}

.hero__copy .hero__lead {
	max-width: 58ch;
	font-size: 1.06rem;
	line-height: 1.7;
	color: var(--ink-soft);
}

.hero__art {
	overflow: hidden;
	min-height: 340px;
}

.character-file__tagline,
.post-author-tagline {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.92rem;
	line-height: 1.35;
	color: rgba(38, 32, 26, 0.72);
}

html[data-theme='po'] .character-file__tagline,
html[data-theme='po'] .post-author-tagline {
	color: rgba(236, 226, 200, 0.82);
}

.hero__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.4rem;
}

.panel-grid {
	width: 100%;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.panel {
	padding: 1.4rem;
}

.panel--empty {
	grid-column: 1 / -1;
	text-align: center;
}

.panel--form,
.panel--node {
	max-width: none;
}

.panel__header,
.node-card__head,
.post-card__header,
.meta-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
}

.panel__intro,
.node-card p,
.post-card__body,
.field small,
.site-footer p {
	color: rgba(38, 32, 26, 0.72);
	line-height: 1.6;
}

.child-area-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.8rem;
	margin-top: 0.55rem;
	font-size: 0.9rem;
}

.child-area-links a {
	color: var(--secondary);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.child-area-links a:hover,
.child-area-links a:focus-visible {
	color: var(--tertiary);
}

.privacy-notice {
	margin: 0.8rem 0 1rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(47, 87, 71, 0.2);
	border-radius: 16px;
	background: rgba(47, 87, 71, 0.07);
}

.privacy-notice h2 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-family: "Fraunces", serif;
	color: rgba(28, 54, 43, 0.95);
}

.privacy-notice p {
	margin: 0.35rem 0 0;
	color: rgba(38, 32, 26, 0.78);
	line-height: 1.55;
}

.pending-validation-banner {
	max-width: none;
	border: 1px solid rgba(163, 49, 31, 0.32);
	background: linear-gradient(
		135deg,
		rgba(163, 49, 31, 0.15),
		rgba(163, 49, 31, 0.07)
	);
	box-shadow: 0 16px 34px rgba(122, 36, 20, 0.16);
}

.pending-validation-banner h2 {
	margin-top: 0;
	margin-bottom: 0.6rem;
	color: rgba(122, 36, 20, 0.98);
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.pending-validation-banner p {
	margin: 0.55rem 0 0;
	color: rgba(58, 26, 15, 0.92);
	font-size: 1rem;
	line-height: 1.55;
}

.eyebrow {
	text-transform: none;
	letter-spacing: 0;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 0.7rem;
	color: var(--pounamu);
	margin: 0 0 0.35rem;
	font-weight: 500;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--ink-soft);
	font-family: "Source Serif 4", Georgia, serif;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.68rem;
	font-weight: 500;
}

.pill--dark {
	background: var(--bg-alt);
	color: var(--ink);
}

.thread-tag-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	margin-right: 0.45rem;
	vertical-align: middle;
}

.tw-stack {
	display: grid;
	gap: 0.45rem;
	margin: 0.35rem 0 0.85rem;
}

.tw-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.tw-badge-row__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(38, 32, 26, 0.72);
}

.tw-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	border: 1px solid rgba(38, 32, 26, 0.2);
}

.tw-badge-row--thread-list {
	margin-top: 0.15rem;
}

.tw-badge-row--reply {
	margin-top: 0.3rem;
}

html[data-theme='po'] .tw-badge-row__label {
	color: var(--darkmode-readable-green);
}

.pre-edit-snapshot {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.18);
}

.pre-edit-snapshot summary {
	cursor: pointer;
	font-weight: 700;
	margin-bottom: 0.55rem;
}

.edit-history-diff {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: Consolas, 'Courier New', monospace;
	font-size: 0.82rem;
	line-height: 1.35;
	padding: 0.75rem;
	border-radius: 0.5rem;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.7rem;
	padding: 0.65rem 1rem;
	border-radius: 2px;
	border: 1px solid transparent;
	font-family: "Source Serif 4", Georgia, serif;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.82rem;
	font-weight: 500;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--pounamu-deep);
	color: var(--card);
	border-color: var(--pounamu-deep);
	box-shadow: none;
}

.button--primary:hover {
	background: var(--pounamu);
}

.button--ghost {
	border-color: var(--rule);
	color: var(--ink);
	background: transparent;
}

.button--ghost:hover {
	border-color: var(--ochre);
	color: var(--ochre);
}

.button--danger {
	background: rgba(163, 49, 31, 0.92);
	color: var(--text-on-contrast);
	box-shadow: 0 12px 24px rgba(163, 49, 31, 0.24);
}

.button--danger-outline {
	border-color: rgba(163, 49, 31, 0.72);
	background: rgba(250, 245, 232, 0.78);
	color: rgba(150, 40, 25, 0.95);
}


.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.28rem 0.68rem;
	border-radius: 2px;
	border: 1px solid transparent;
	font-family: "Source Serif 4", Georgia, serif;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.btn-outline-danger {
	color: #a3311f;
	background: transparent;
	border-color: #a3311f;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
	color: var(--text-on-contrast);
	background: #a3311f;
}

.btn-outline-info {
	color: #0c6170;
	background: transparent;
	border-color: #0c6170;
}

.btn-outline-info:hover,
.btn-outline-info:focus-visible {
	color: var(--text-on-contrast);
	background: #0c6170;
}

.btn-danger {
	color: var(--text-on-contrast);
	background: #a3311f;
	border-color: #a3311f;
}

.btn-danger:hover,
.btn-danger:focus-visible {
	background: #7c2517;
	border-color: #7c2517;
}

.btn-sm,
.btn.report-btn {
	min-height: 1.8rem;
	padding: 0.22rem 0.58rem;
	font-size: 0.72rem;
}

.button--report-small {
	min-height: 2rem;
	padding: 0.35rem 0.72rem;
	font-size: 0.78rem;
	background: rgba(122, 36, 20, 0.94);
	color: var(--text-on-contrast);
	box-shadow: 0 8px 16px rgba(122, 36, 20, 0.2);
}

.button--compact-action {
	width: min(25%, 16rem);
	min-width: 11rem;
	justify-self: start;
}

.button--compact-action.profile-settings-cog {
	width: 4rem;
	min-width: 4rem;
	min-height: 4rem;
	padding: 0.25rem;
	font-size: 3rem;
	line-height: 1;
	flex: 0 0 4rem;
}

.meta-row.flex-row {
	flex-direction: row;
}

.form-shell > .button.button--primary:not(.button--notification):not(.button--danger) {
	width: min(25%, 16rem);
	min-width: 11rem;
	justify-self: start;
}

.notification-inline-message {
	width: 100%;
	margin: 0;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.83rem;
	color: rgba(38, 32, 26, 0.72);
}

.notification-inline-text {
	font-size: inherit;
	color: inherit;
	text-decoration: none;
}

.node-list,
.post-list {
	display: grid;
	gap: 0.85rem;
}

.node-card,
.post-card {
	padding: 1rem 1.1rem;
}

.node-card__children {
	margin-top: 0.85rem;
	padding-left: 1rem;
	border-left: 2px solid rgba(147, 113, 42, 0.22);
	display: grid;
	gap: 0.75rem;
}

.post-card__header h3 {
	margin: 0;
}

.post-card__header span {
	color: rgba(38, 32, 26, 0.55);
	font-size: 0.9rem;
}

.thread-card__main {
	display: grid;
	gap: 0.35rem;
}

.thread-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	font-size: 0.92rem;
	color: rgba(38, 32, 26, 0.72);
}

.thread-card__reply-count {
	display: inline-flex;
	font-weight: 700;
	color: var(--secondary);
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

html[data-theme='po'] .thread-card__reply-count {
	color: rgba(236, 226, 200, 0.95);
}

.thread-card__meta-separator {
	opacity: 0.7;
}

.thread-list-meta {
	margin: 0;
	color: rgba(38, 32, 26, 0.7);
	font-size: 0.92rem;
	text-align: right;
}

.thread-list-meta a {
	font-weight: 700;
}

.thread-replies-link {
	display: inline-block;
	margin-top: 0.25rem;
	font-size: 0.82rem;
	color: rgba(38, 32, 26, 0.62);
	text-decoration: underline;
}

.thread-replies-link:hover,
.thread-replies-link:focus-visible {
	color: var(--secondary);
}

.post-author-meta {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.post-avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid rgba(38, 32, 26, 0.18);
}

.post-author-link {
	display: block;
	font-weight: 700;
	line-height: 1.2;
	color: rgba(38, 32, 26, 0.95);
}

.post-author-link:visited {
	color: rgba(38, 32, 26, 0.95);
}

.post-author-line {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	flex-wrap: nowrap;
}

.post-author-line .post-author-link {
	display: inline;
}

.post-author-name-stack {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	white-space: nowrap;
}

.post-author-meta-line {
	display: block;
}

.group-badge-row--inline,
.ooc-group-badge-row--inline {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0;
	flex-wrap: nowrap;
}

.ooc-group-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 0.15rem;
}

.ooc-group-badge {
	display: inline-flex;
	align-items: center;
	min-height: 1rem;
	padding: 0.08rem 0.42rem;
	border-radius: 999px;
	border: 1px solid rgba(38, 32, 26, 0.14);
	font-size: 0.66rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.profile-name-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.profile-view-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.profile-view-heading .profile-avatar-large {
	flex: 0 0 auto;
	margin-bottom: 0;
}

.profile-view-heading .profile-name-heading {
	min-width: 0;
	margin: 0;
}

.profile-name-heading__badges {
	margin-top: 0;
}

.post-author-time {
	font-size: 0.86rem;
	color: rgba(38, 32, 26, 0.6);
}

html[data-theme='po'] .post-author-link,
html[data-theme='po'] .post-author-link:visited {
	color: rgba(236, 226, 200, 0.95);
}

.mention-link {
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

.mention-suggestions {
	display: grid;
	gap: 0.15rem;
	margin-top: -0.35rem;
	padding: 0.35rem;
	border: 1px solid rgba(38, 32, 26, 0.18);
	border-radius: 10px;
	background: var(--light);
	box-shadow: 0 0.7rem 1.6rem rgba(38, 32, 26, 0.16);
	z-index: 5;
}

.mention-suggestions[hidden] {
	display: none;
}

.mention-suggestions__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	width: 100%;
	padding: 0.45rem 0.55rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--dark);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mention-suggestions__item:hover,
.mention-suggestions__item:focus-visible {
	background: rgba(38, 32, 26, 0.08);
}

.mention-suggestions__item span {
	font-size: 0.78rem;
	color: rgba(38, 32, 26, 0.62);
}

.form-error-banner {
	margin: 0;
	padding: 0.8rem 1rem;
	border-radius: 14px;
	background: rgba(190, 35, 35, 0.1);
	border: 1px solid rgba(190, 35, 35, 0.22);
	color: rgba(110, 28, 15, 0.95);
}

.form-error-banner p {
	margin: 0;
	font-weight: 700;
}

.form-error-list {
	margin: 0.6rem 0 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 0.35rem;
}

.field .errorlist {
	margin: 0;
	padding-left: 1.2rem;
	color: rgba(130, 32, 18, 0.98);
	font-weight: 600;
	font-size: 0.9rem;
}

.field .errorlist li {
	margin: 0;
}

.visibility-anonymous-warning {
	color: #a3311f;
	font-weight: 700;
}

.shoutbox-panel {
	width: 100%;
	margin: 0;
}

.shoutbox-form {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.shoutbox-form__actions {
	display: grid;
	gap: 0.85rem;
}

.shoutbox-form__character {
	margin: 0;
}

.compact-action-row {
	display: grid;
	gap: 0.85rem;
}

.compact-action-row__select {
	margin: 0;
}

.compact-action-row--buttons {
	grid-template-columns: 1fr;
}

.playby-letter {
	margin: 1.4rem 0 0.4rem;
	border-bottom: 1px solid var(--rule);
}

.playby-group {
	margin: 0;
	padding-left: 1.1rem;
}

.playby-row {
	margin-bottom: 0.35rem;
}

.playby-row__admin {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.3rem;
}

.playby-row__admin .compact-action-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.compact-action-row--buttons > .button {
	justify-self: start;
}

.shoutbox-list {
	max-height: 34rem;
	overflow: auto;
	padding-right: 0.2rem;
}

.shoutbox-card__body {
	margin-bottom: 0.55rem;
}

.reaction-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.75rem;
	align-items: center;
}

.reaction-row form {
	margin: 0;
}

.reaction-row__left {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
}

.reaction-row--shout {
	justify-content: space-between;
}

.shoutbox-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
}

.shoutbox-card__actions form {
	display: inline-flex;
}

.thread-action-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.75rem;
}

.thread-action-row form {
	margin: 0;
}

.thread-action-row .button--report-small {
	margin-left: auto;
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 0.8rem;
	border-top: 1px solid rgba(38, 32, 26, 0.1);
}

.pagination span {
	font-weight: 700;
	color: rgba(38, 32, 26, 0.72);
}

.reaction-count:empty {
	display: none;
}

.reaction-chip {
	border: 1px solid rgba(38, 32, 26, 0.2);
	background: rgba(250, 245, 232, 0.92);
	color: rgba(38, 32, 26, 0.85);
	border-radius: 999px;
	padding: 0.28rem 0.62rem;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.reaction-chip:hover,
.reaction-chip:focus-visible {
	transform: translateY(-1px);
}

.reaction-chip--active {
	box-shadow: 0 0 0 2px rgba(38, 32, 26, 0.14) inset;
}

.reaction-chip[data-reaction="like"] {
	border-color: #68a4ff;
	background: rgba(104, 164, 255, 0.2);
	color: #0b3b8f;
}

.reaction-chip[data-reaction="love"] {
	border-color: #ff6b7d;
	background: rgba(255, 107, 125, 0.2);
	color: #9e1128;
}

.reaction-chip[data-reaction="laugh"] {
	border-color: #e0c12c;
	background: rgba(255, 225, 102, 0.34);
	color: #7b6600;
}

.reaction-chip[data-reaction="wow"] {
	border-color: #ff9c42;
	background: rgba(255, 156, 66, 0.24);
	color: #8a4b00;
}

.reaction-chip[data-reaction="sad"] {
	border-color: #3f495c;
	background: rgba(63, 73, 92, 0.26);
	color: #1b2029;
}

.reaction-chip[data-reaction="yay"] {
	border-color: #2e7d32;
	background: rgba(46, 125, 50, 0.28);
	color: #17441c;
}

.report-btn {
	margin-left: 0;
}

.birthday-list-wrap {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(38, 32, 26, 0.1);
}

.birthday-list-wrap h3 {
	margin: 0 0 0.5rem;
	font-family: "Fraunces", serif;
}

.birthday-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
}

.birthday-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.8rem;
	font-weight: 700;
}

.birthday-item small {
	color: rgba(38, 32, 26, 0.72);
	font-size: 0.82rem;
}

.birthday-item--character {
	font-size: 0.9rem;
	font-weight: 600;
	padding-left: 0.9rem;
	opacity: 0.9;
}

.birthday-item--character small {
	font-size: 0.76rem;
}

.auth-panel {
	max-width: 540px;
	margin: 1.2rem auto;
}

.auth-links {
	margin-top: 0.9rem;
	color: rgba(38, 32, 26, 0.7);
}

.confirm-toast {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1200;
	max-width: min(28rem, calc(100% - 2rem));
	padding: 0.75rem 0.95rem;
	border-radius: 14px;
	background: rgba(163, 49, 31, 0.96);
	color: var(--text-on-contrast);
	border: 1px solid rgba(250, 245, 232, 0.2);
	box-shadow: 0 14px 32px rgba(38, 32, 26, 0.22);
	font-size: 0.86rem;
	font-weight: 700;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
}

.notification-trigger {
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	font-size: inherit;
	white-space: nowrap;
	text-decoration: underline;
	color: inherit;
	cursor: pointer;
}

.notification-trigger__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	margin-left: 0.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #a3311f;
	color: var(--text-on-contrast);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.theme-toggle {
	display: flex;
	align-items: center;
	gap: 9px;
	background: none;
	border: 1px solid var(--rule);
	border-radius: 20px;
	padding: 5px 12px 5px 8px;
	cursor: pointer;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 11px;
	letter-spacing: 0;
	color: var(--ink-soft);
}

.theme-toggle:hover {
	border-color: var(--pounamu);
}

.theme-toggle i {
	font-size: 14px;
	color: var(--pounamu);
}

.notification-dock {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 1250;
	width: min(26rem, calc(100% - 2rem));
	max-height: calc(100vh - 2rem);
	display: grid;
	gap: 0.6rem;
	padding: 0.8rem;
	border-radius: 16px;
	border: 1px solid rgba(38, 32, 26, 0.16);
	background: rgba(250, 245, 232, 0.95);
	box-shadow: 0 16px 34px rgba(38, 32, 26, 0.2);
	overflow: hidden;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	visibility: hidden;
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.notification-dock--open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	visibility: visible;
}

.notification-dock__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
}

.notification-close {
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	margin-right: 0.2rem;
}

html[data-theme='po'] .notification-close,
html[data-theme='po'] .message__close {
	color: var(--darkmode-readable-green);
}

.notification-dock__header h2 {
	margin: 0;
	font-size: 1.02rem;
}

.notification-dock__list {
	display: grid;
	gap: 0.55rem;
	max-height: calc(100vh - 7rem);
	overflow: auto;
	padding-right: 0.2rem;
}

.notification-card {
	padding: 0.65rem;
	border-radius: 12px;
	border: 1px solid rgba(38, 32, 26, 0.12);
	background: rgba(248, 245, 238, 0.85);
	display: grid;
	gap: 0.5rem;
}

.notification-card--kept {
	border-color: rgba(47, 87, 71, 0.36);
	background: rgba(47, 87, 71, 0.08);
}

.notification-card a,
.notification-card__message {
	font-size: 0.9rem;
	line-height: 1.35;
	color: inherit;
}

.notification-card a {
	text-decoration: underline;
}

.notification-card__time {
	font-size: 0.76rem;
	color: rgba(38, 32, 26, 0.62);
}

html[data-theme='po'] .notification-card__time {
	color: var(--darkmode-readable-green);
}

.notification-card__actions {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.character-preview-card {
	padding: 0;
	overflow: hidden;
}

.character-card-grid {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.character-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.character-preview-card__link {
	display: grid;
	grid-template-columns: minmax(64px, 86px) minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	padding: 1rem;
}

.character-preview-card__body {
	display: grid;
	gap: 0.45rem;
}

.character-preview-card__timestamp {
	font-size: 0.78rem;
	color: rgba(38, 32, 26, 0.62);
}

.character-file__header {
	display: grid;
	grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(38, 32, 26, 0.12);
}

.character-file__portrait {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid rgba(38, 32, 26, 0.16);
	background: rgba(250, 245, 232, 0.6);
}

.character-file__summary {
	display: grid;
	gap: 0.75rem;
	padding-top: 1.25rem;
}

.character-file__title-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.character-file__title-row h1 {
	margin: 0;
}


.character-file__owner-line {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.character-file__edit-button {
	width: fit-content;
	margin-top: 1rem;
}

.character-file__edit-button + .character-file__edit-button {
	margin-top: 0;
}

.character-file__header--compact {
	align-items: flex-start;
}
.profile-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 1rem 0;
	border-bottom: 1px solid rgba(38, 32, 26, 0.14);
}

.profile-tab {
	padding: 0.65rem 1rem;
	border: 1px solid rgba(38, 32, 26, 0.14);
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	background: rgba(250, 245, 232, 0.52);
	font-weight: 700;
}

.profile-tab--active {
	background: rgba(47, 87, 71, 0.12);
	color: var(--secondary);
}

.profile-tabs--nested {
	margin: 0;
}

.character-file__section {
	display: grid;
	gap: 1rem;
}

.character-file__form {
	margin-top: 1rem;
}

.family-tree {
	display: grid;
	gap: 1rem;
}

.family-tree__branch {
	padding-left: 1rem;
	border-left: 3px solid rgba(47, 87, 71, 0.22);
}

.family-tree__branch ul {
	display: grid;
	gap: 0.55rem;
	padding-left: 1rem;
}

.family-tree__branch li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.family-tree__member-copy {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
	min-width: min(100%, 18rem);
}

.family-tree__actions {
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
}

.family-tree__form-actions {
	align-items: center;
}

.family-tree__report-button {
	margin-left: auto;
}

.family-tree__report-row {
	display: flex;
	justify-content: flex-end;
}

.thread-note-list {
	display: grid;
	gap: 0.85rem;
}

.search-panel__filters {
	display: grid;
	gap: 0.85rem;
}

.search-panel__filters--compact {
	grid-template-columns: minmax(0, 18rem) auto;
	align-items: end;
}

.search-panel__letter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.search-panel__letter-button--active {
	background: rgba(47, 87, 71, 0.16);
	color: var(--secondary);
}

.search-panel__subtabs {
	display: grid;
	gap: 0.85rem;
}

.thread-note-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
	gap: 1rem;
	align-items: start;
	padding: 0.9rem;
	border: 1px solid rgba(38, 32, 26, 0.12);
	border-radius: 8px;
	background: rgba(250, 245, 232, 0.5);
}

.search-result-row {
	grid-template-columns: minmax(0, 1fr) auto;
}

.search-result-row--single-column {
	grid-template-columns: minmax(0, 1fr);
}

.search-result-row--thread-actions {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.search-result-row__title {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.inbox-conversation-link {
	display: block;
}

.inbox-conversation-link .thread-list-meta {
	text-align: left;
}

.inbox-conversation-title {
	font-weight: 400;
}

.inbox-conversation-title__subject--unread {
	font-weight: 700;
}

.search-result-row__actions {
	display: flex;
	justify-content: flex-end;
}

.thread-note-row__form {
	display: grid;
	gap: 0.55rem;
}

.inline-form {
	display: inline;
}

html[data-theme='po'] .profile-tab,
html[data-theme='po'] .thread-note-row,
html[data-theme='po'] .character-file__portrait {
	background: rgba(236, 226, 200, 0.08);
	border-color: rgba(236, 226, 200, 0.22);
}

.button--notification {
	min-height: 1.9rem;
	padding: 0.32rem 0.62rem;
	font-size: 0.76rem;
	background: var(--pounamu-deep);
	color: var(--card);
}

.confirm-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

.profile-avatar-large,
.character-avatar {
	width: 6rem;
	height: 6rem;
	border-radius: 14px;
	object-fit: cover;
	border: 1px solid rgba(38, 32, 26, 0.18);
	margin-bottom: 0.75rem;
}

.profile-choice-preview {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.75rem 0.9rem;
	border-radius: 16px;
	border: 1px solid rgba(38, 32, 26, 0.12);
	background: rgba(250, 245, 232, 0.7);
}

.profile-choice-preview p {
	margin: 0;
	color: rgba(38, 32, 26, 0.78);
	line-height: 1.45;
}

.profile-choice-preview img {
	margin: 0;
	flex-shrink: 0;
}

.group-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(38, 32, 26, 0.18);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.group-badge-row {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.assignment-mode-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(38, 32, 26, 0.22);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-on-contrast);
}

.assignment-mode-badge--open {
	background: #2f5747;
}

.assignment-mode-badge--closed {
	background: #7c2517;
}

.profile-detail-list {
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.profile-detail-item {
	padding: 0.65rem 0.8rem;
	border-radius: 12px;
	border: 1px solid rgba(38, 32, 26, 0.1);
	background: rgba(250, 245, 232, 0.65);
}

.profile-detail-item dt {
	font-weight: 700;
	margin: 0 0 0.2rem;
}

.profile-detail-item dd {
	margin: 0;
	color: rgba(38, 32, 26, 0.75);
	line-height: 1.5;
}

@media (max-width: 560px) {
	.profile-choice-preview {
		flex-direction: column;
		align-items: flex-start;
	}
}

.form-shell {
	display: grid;
	gap: 1rem;
}

.field {
	display: grid;
	gap: 0.45rem;
	font-weight: 700;
}

.family-relationship-only[hidden] {
	display: none;
}

.field-row-3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.field-row-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.field input,
.field select,
.field textarea {
	width: 100%;
	border: 1px solid rgba(38, 32, 26, 0.18);
	border-radius: 18px;
	padding: 0.85rem 1rem;
	font: inherit;
	background: rgba(250, 245, 232, 0.9);
}

.field select.select--compact-action {
	width: min(25%, 16rem);
	min-width: 11rem;
}

@media (max-width: 1100px) {
	.button--compact-action,
	.form-shell > .button.button--primary:not(.button--notification):not(.button--danger),
	.field select.select--compact-action {
		width: min(40%, 18rem);
		min-width: 10rem;
	}
}

@media (max-width: 820px) {
	.button--compact-action,
	.form-shell > .button.button--primary:not(.button--notification):not(.button--danger),
	.field select.select--compact-action {
		width: min(60%, 22rem);
		min-width: 0;
	}
}

@media (min-width: 768px) {
	.shoutbox-form__actions {
		grid-template-columns: minmax(0, 16rem) auto;
		align-items: end;
		column-gap: 0.9rem;
	}

	.shoutbox-form__actions .button--compact-action,
	.shoutbox-form__actions > .button.button--primary {
		margin-bottom: 0.2rem;
	}

	.compact-action-row {
		grid-template-columns: minmax(0, 16rem) auto;
		align-items: end;
		column-gap: 0.9rem;
	}

	.compact-action-row--buttons {
		grid-template-columns: auto auto;
		align-items: center;
	}

	.compact-action-row .button--compact-action,
	.compact-action-row > .button.button--primary {
		margin-bottom: 0.2rem;
	}
}

@media (max-width: 560px) {
	.button--compact-action,
	.form-shell > .button.button--primary:not(.button--notification):not(.button--danger),
	.field select.select--compact-action {
		width: 100%;
	}
}

.field textarea {
	resize: vertical;
}

.simple-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.5rem;
}

.simple-editor-toolbar__selects {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	width: 100%;
}

.simple-editor-surface {
	width: 100%;
	min-height: 14rem;
	max-height: 40rem;
	overflow-y: auto;
	border: 1px solid rgba(38, 32, 26, 0.18);
	border-radius: 18px;
	padding: 0.85rem 1rem;
	background: rgba(250, 245, 232, 0.9);
	font-weight: 400;
	line-height: 1.6;
	outline: none;
}

.simple-editor-surface:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px rgba(58, 74, 58, 0.14);
}

.simple-editor-surface:empty::before {
	content: 'Write your content here...';
	color: var(--text-muted);
	pointer-events: none;
}

.simple-editor-color-control {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.4rem 0.25rem 0.6rem;
	border: 1px solid rgba(38, 32, 26, 0.2);
	border-radius: 12px;
	background: rgba(250, 245, 232, 0.92);
	font-size: 0.82rem;
	font-weight: 700;
}

.simple-editor-color-control input[type='color'] {
	width: 2.4rem;
	height: 1.75rem;
	padding: 0.1rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

html[data-theme='po'] .simple-editor-surface,
html[data-theme='po'] .simple-editor-color-control {
	border-color: rgba(236, 226, 200, 0.28);
	background: rgba(22, 29, 21, 0.95);
	color: rgba(236, 226, 200, 0.95);
}

.simple-editor-button,
.simple-editor-color-select,
.simple-editor-font-select,
.simple-editor-highlight-select,
.simple-editor-size-select {
	border: 1px solid rgba(38, 32, 26, 0.2);
	background: rgba(250, 245, 232, 0.92);
	border-radius: 12px;
	padding: 0.35rem 0.55rem;
	font: inherit;
	font-weight: 700;
	color: rgba(38, 32, 26, 0.88);
}

.simple-editor-font-select,
.simple-editor-size-select {
	min-height: 2.25rem;
	padding: 0.25rem 0.6rem;
	font-size: 0.82rem;
}

.simple-editor-button {
	min-width: 2.25rem;
	min-height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.simple-editor-button:hover,
.simple-editor-button:focus-visible {
	border-color: rgba(38, 32, 26, 0.4);
	background: rgba(247, 240, 224, 0.95);
}

.simple-editor-button--bold {
	font-weight: 700;
}

.simple-editor-button--italic {
	font-style: italic;
}

.simple-editor-button--underline {
	text-decoration: underline;
}

.simple-editor-button--strike {
	text-decoration: line-through;
}

.simple-editor-button--standalone {
	display: inline-flex;
	width: fit-content;
	justify-self: start;
	margin-top: 0.5rem;
}

.simple-editor-toolbar__selects select {
	min-width: 0;
	flex: 0 0 auto;
}

.simple-editor-limit-hint {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: rgba(38, 32, 26, 0.72);
}

.simple-editor-limit-hint.is-error {
	color: #a3311f;
	font-weight: 700;
}

@media (max-width: 560px) {
	.simple-editor-toolbar__selects {
		flex-direction: column;
	}
}

.thread-form-head-row {
	display: grid;
	gap: 0.85rem;
}

.thread-warning-disclosure {
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--rule);
	background: var(--bg-alt);
}

.thread-warning-disclosure summary {
	cursor: pointer;
	font-weight: 600;
}

.thread-warning-disclosure:not([open]) > :not(summary) {
	display: none;
}

.thread-warning-disclosure[open] summary {
	margin-bottom: 0.75rem;
}

.composer-stack {
	display: grid;
	gap: 0.7rem;
}

.composer-preview {
	padding: 0.9rem 1rem;
	border: 1px solid rgba(38, 32, 26, 0.16);
	border-radius: 14px;
	background: rgba(250, 245, 232, 0.65);
	min-height: 4rem;
}

.composer-preview.is-visible {
	display: block;
}

[data-simple-editor-ready='true'] ~ [data-composer-preview],
[data-preview-toggle][hidden] {
	display: none !important;
}

.compact-action-row__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

@media (min-width: 768px) {
	.thread-form-head-row {
		grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
		align-items: end;
	}
}

.post-card__body .editor-code-block {
	margin: 0.75rem 0;
	padding: 0.7rem 0.8rem;
	background: rgba(38, 32, 26, 0.08);
	border: 1px solid rgba(38, 32, 26, 0.18);
	border-radius: 10px;
	overflow-x: auto;
}

.post-card__body .editor-image {
	display: block;
	max-width: min(100%, 800px);
	max-height: 600px;
	width: auto;
	height: auto;
	margin: 0.7rem 0;
	border-radius: 8px;
}

.gif-freeze-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	overflow: hidden;
	border-radius: 8px;
}

.gif-freeze-canvas {
	display: block;
	background: rgba(0, 0, 0, 0.08);
}

.post-card__body .editor-code-block code {
	font-family: Consolas, 'Courier New', monospace;
	font-size: 0.88rem;
	line-height: 1.45;
	white-space: pre;
}

.post-card__body .text-font-default {
	font-family: inherit;
}

.post-card__body .text-font-typewriter {
	font-family: Consolas, 'Courier New', monospace;
}

.post-card__body .text-font-fancy {
	font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
	font-style: italic;
}

.post-card__body .text-font-elegant {
	font-family: 'Georgia', 'Times New Roman', serif;
	letter-spacing: 0.03em;
}

.post-card__body .text-font-script {
	font-family: 'Brush Script MT', 'Segoe Script', cursive;
	font-size: 1.1em;
}

.post-card__body .text-size-small {
	font-size: 0.9em;
}

.post-card__body .text-size-medium {
	font-size: 1em;
}

.post-card__body .text-size-large {
	font-size: 1.15em;
}

.post-card__body .editor-quote {
	margin: 0.7rem 0;
	padding: 0.7rem 0.9rem;
	border-left: 3px solid rgba(38, 32, 26, 0.3);
	background: rgba(38, 32, 26, 0.05);
	font-style: italic;
}

.post-card__body .editor-ooc-block {
	margin: 0.8rem 0;
	padding: 0.65rem 0.8rem;
	border-radius: 12px;
	border-left: 4px solid rgba(217, 179, 77, 0.82);
	background: rgba(217, 179, 77, 0.14);
	display: grid;
	gap: 0.4rem;
}

.post-card__body .editor-ooc-block__label {
	display: inline-block;
	font-size: 0.76rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.post-card__body .editor-ooc-block__body {
	display: block;
}

.post-card__body .text-highlight-red {
	background: rgba(198, 40, 40, 0.24);
	padding: 0.04rem 0.2rem;
	border-radius: 4px;
}

.post-card__body .text-highlight-blue {
	background: rgba(30, 136, 229, 0.24);
	padding: 0.04rem 0.2rem;
	border-radius: 4px;
}

.post-card__body .text-highlight-green {
	background: rgba(46, 125, 50, 0.24);
	padding: 0.04rem 0.2rem;
	border-radius: 4px;
}

.post-card__body .text-highlight-gold {
	background: rgba(191, 137, 0, 0.24);
	padding: 0.04rem 0.2rem;
	border-radius: 4px;
}

.post-card__body .text-highlight-black {
	background: rgba(38, 32, 26, 0.26);
	color: var(--text-on-contrast);
	padding: 0.04rem 0.2rem;
	border-radius: 4px;
}

.post-card__body .text-highlight-white {
	background: rgba(250, 245, 232, 0.75);
	color: var(--text-primary);
	padding: 0.04rem 0.2rem;
	border-radius: 4px;
}

.post-card__body .spoiler-block {
	margin: 0.65rem 0;
	padding: 0.45rem 0.65rem;
	border: 1px dashed rgba(38, 32, 26, 0.25);
	border-radius: 12px;
	background: rgba(250, 245, 232, 0.65);
}

.post-card__body .spoiler-block summary {
	cursor: pointer;
	font-weight: 700;
	user-select: none;
}

.post-card__body .spoiler-block[open] summary {
	margin-bottom: 0.45rem;
}

.post-card__body .text-color-red {
	color: #b22222;
}

.post-card__body .text-color-blue {
	color: #1f4e9c;
}

.post-card__body .text-color-green {
	color: #196f3d;
}

.post-card__body .text-color-gold {
	color: #b8860b;
}

.post-card__body .text-color-black {
	color: #111111;
}

.post-card__body .text-color-white {
	color: var(--text-on-contrast);
	text-shadow: 0 0 2px rgba(38, 32, 26, 0.7);
}

.message-stack {
	width: 100%;
	margin: 0;
	display: grid;
	gap: 0.5rem;
}

.message {
	padding: 0.9rem 1rem;
	border-radius: 18px;
	background: rgba(47, 87, 71, 0.12);
	border: 1px solid rgba(47, 87, 71, 0.18);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 180ms ease, transform 180ms ease;
}

.message__text {
	flex: 1;
}

.message__close {
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin-left: auto;
}

.message.is-dismissing {
	opacity: 0;
	transform: translateY(-4px);
}

.site-footer {
	padding: 1.25rem;
	border: 0;
	border-top: 1px solid var(--rule);
	border-radius: 0;
	background: var(--bg-alt);
	color: var(--ink);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}

.site-header,
.hero__copy,
.hero__art,
.panel-grid > .panel,
.site-footer {
	border-radius: 0;
}

.site-footer__online {
	display: grid;
	gap: 0.45rem;
	align-content: start;
}

.presence-panel {
	padding: 0.5rem 0.8rem;
	border: 1px solid var(--rule);
	border-radius: 0;
	background: var(--bg-alt);
	color: var(--ink);
	box-shadow: none;
	max-width: 100%;
}

.presence-panel h2 {
	font-size: 0.78rem;
	margin: 0 0 0.25rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.presence-footer {
	margin: 0.75rem 1.25rem 0;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	align-items: flex-start;
	font-size: 0.78rem;
}

.site-footer__links a {
	color: currentColor;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.online-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-start;
	align-items: center;
	line-height: 1.2;
}

.online-list .avatar-circle {
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pounamu), var(--ochre));
	border: 1px solid var(--rule);
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Fraunces", serif;
	font-size: 0.7rem;
	color: var(--card);
	font-weight: 600;
	margin-right: 0.35rem;
}

.koru-row {
	height: 22px;
	background-repeat: repeat-x;
	background-size: 44px 22px;
	background-position: center;
	opacity: 0.8;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M2 20 C2 8 10 3 18 3 C24 3 27 7 27 11 C27 14.5 24.5 16.5 21.5 16.5 C19.3 16.5 18 15 18 13' fill='none' stroke='%2335594A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	margin: 1.5rem 0;
}

html[data-theme='po'] .koru-row {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M2 20 C2 8 10 3 18 3 C24 3 27 7 27 11 C27 14.5 24.5 16.5 21.5 16.5 C19.3 16.5 18 15 18 13' fill='none' stroke='%2371B494' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero__art {
	position: relative;
}

.corner {
	position: absolute;
	width: 40px;
	height: 40px;
	opacity: 0.6;
	pointer-events: none;
}

.corner path {
	fill: none;
	stroke: var(--ochre);
	stroke-width: 1.6;
}

.corner.tl { top: 10px; left: 10px; }
.corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.corner.br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

.presence-panel .pill {
	padding: 0.22rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
}

@media (max-width: 820px) {
	.notification-dock {
		position: fixed;
		top: 0.75rem;
		right: 0.75rem;
		width: min(1180px, calc(100% - 2rem));
		margin: 0;
		max-height: none;
	}

	.notification-dock__list {
		max-height: 20rem;
	}

	.panel-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		grid-template-columns: 1fr;
	}

	.panel__header,
	.node-card__head,
	.post-card__header,
	.meta-row,
	.site-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.8rem;
	font-size: 0.9rem;
	opacity: 0.9;
}

.breadcrumbs a {
	color: var(--secondary);
	text-decoration: underline;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
	color: var(--tertiary);
}
