:root {
	--bg: #f3eee6;
	--card: #fffdf9;
	--ink: #2c2a27;
	--muted: #6f6a62;
	--line: #e2dbcf;
	--accent: #3f6f6a;
	--accentInk: #ffffff;
	--jordi: #e7eef4;
	--jordiLine: #9db4c8;
	--siets: #eef3e6;
	--sietsLine: #a9bf8f;
	--mediator: #fbf6ec;
	--warn: #fdecea;
	--warnLine: #d98b80;
	--radius: 14px;
}
html {
	-webkit-text-size-adjust: 100%;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
a {
	color: var(--accent);
}
h1 {
	font-size: 1.6rem;
	line-height: 1.25;
	margin: 0 0 .5rem;
}
h2 {
	font-size: 1.2rem;
	margin: 1.6rem 0 .5rem;
}
h3 {
	font-size: 1.02rem;
	margin: 1.2rem 0 .3rem;
}
header.top {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(243, 238, 230, .94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	padding: .6rem max(1rem, env(safe-area-inset-left));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem 1rem;
}
.brand {
	font-weight: 700;
	text-decoration: none;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: .45rem;
}
.dot {
	width: .8rem;
	height: .8rem;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--jordiLine) 50%, var(--sietsLine) 50%);
}
nav.menu {
	display: flex;
	flex-wrap: wrap;
	gap: .2rem .9rem;
	font-size: .95rem;
}
nav.menu a {
	text-decoration: none;
}
nav.menu .me {
	font-weight: 600;
}
main {
	flex: 1;
	width: 100%;
	max-width: 54rem;
	margin: 0 auto;
	padding: 1rem;
}
footer.help {
	text-align: center;
	font-size: .85rem;
	color: var(--muted);
	padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
}
footer.help p {
	margin: 0;
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.1rem 1.2rem;
	margin: 0 0 1rem;
}
.narrow {
	max-width: 26rem;
	margin: 2rem auto;
}
.attention {
	border-color: var(--accent);
}
.muted {
	color: var(--muted);
	font-size: .92rem;
}
.error {
	color: #a33a2c;
	min-height: 0;
	margin: 0;
}
.done {
	color: var(--accent);
	margin: 0;
}
.pre {
	white-space: pre-wrap;
	font-size: .93rem;
	overflow-wrap: anywhere;
}
button,
.button {
	font: inherit;
	font-size: .95rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
button.primary,
.button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accentInk);
}
button.small {
	font-size: .8rem;
	padding: .25rem .7rem;
}
button.armed {
	background: #a33a2c;
	border-color: #a33a2c;
	color: #fff;
}
html.loading button.send {
	opacity: .5;
}
input,
textarea,
select {
	font: inherit;
	width: 100%;
	padding: .6rem .7rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
}
textarea {
	resize: vertical;
}
label {
	display: block;
	font-size: .95rem;
}
.stack {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}
.stack label input {
	margin-top: .25rem;
}
.stack label textarea {
	margin-top: .25rem;
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	margin: .5rem 0;
}
.row input {
	flex: 1 1 14rem;
}
fieldset.who {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1.2rem;
}
fieldset.who label {
	display: flex;
	gap: .4rem;
	align-items: center;
}
fieldset.who input {
	width: auto;
}
label.check {
	display: flex;
	gap: .5rem;
	align-items: flex-start;
}
label.check input {
	width: auto;
	margin-top: .3rem;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: .3rem .8rem;
}
.pill input {
	width: auto;
}
.hello p {
	color: var(--muted);
}
.choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: .8rem;
}
.choices form {
	margin: 0;
}
.choice,
.choice button {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	text-align: left;
	width: 100%;
	height: 100%;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	color: var(--ink);
	text-decoration: none;
}
.choice span,
.choice button span {
	color: var(--muted);
	font-size: .92rem;
}
.choice b,
.choice button b {
	font-size: 1.08rem;
}
form.choice {
	padding: 0;
	border: 0;
	background: none;
}
.thread-head {
	margin-bottom: .8rem;
}
.thread-head h1 {
	margin-bottom: .2rem;
}
.thread-head p {
	margin: .1rem 0;
}
.kicker {
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .75rem;
	color: var(--muted);
}
.messages {
	display: flex;
	flex-direction: column;
	gap: .7rem;
	margin: .5rem 0 1rem;
}
.msg {
	border-radius: var(--radius);
	padding: .7rem .9rem;
	border: 1px solid var(--line);
	max-width: 46rem;
}
.msg .meta {
	font-size: .78rem;
	color: var(--muted);
	display: flex;
	gap: .5rem;
	align-items: center;
}
.msg .body p {
	margin: .35rem 0;
}
.msg .body ul {
	padding-left: 1.2rem;
}
.msg.person {
	align-self: flex-end;
	background: var(--jordi);
	border-color: var(--jordiLine);
}
.msg.person.siets {
	background: var(--siets);
	border-color: var(--sietsLine);
}
.msg.mediator {
	background: var(--mediator);
}
.msg.safety {
	background: var(--warn);
	border-color: var(--warnLine);
}
.msg.note {
	align-self: center;
	font-size: .85rem;
	color: var(--muted);
	border-style: dashed;
	background: transparent;
}
.pending .status {
	color: var(--muted);
	font-style: italic;
}
.pending .status:after {
	content: " ...";
}
button.speak {
	font-size: .72rem;
	padding: .1rem .55rem;
	margin-left: auto;
}
button.speak.playing {
	background: var(--accent);
	color: var(--accentInk);
}
details.sources {
	font-size: .82rem;
	color: var(--muted);
	margin-top: .3rem;
}
details.sources ul {
	margin: .3rem 0;
	padding-left: 1.1rem;
}
.composer {
	position: sticky;
	bottom: 0;
	background: var(--bg);
	padding: .5rem 0;
}
.composer .tools {
	display: flex;
	gap: .5rem;
	align-items: center;
	margin-top: .4rem;
}
.composer .send {
	margin-left: auto;
}
button.mic.recording {
	background: #a33a2c;
	border-color: #a33a2c;
	color: #fff;
}
.rec {
	font-size: .85rem;
	color: var(--muted);
}
.thread-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1rem;
}
.thread-actions form {
	margin: 0;
}
.safety-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .5rem 0 1rem;
}
.crisis {
	background: var(--warn);
	border: 1px solid var(--warnLine);
	border-radius: var(--radius);
	padding: 1rem 1.2rem;
}
.crisis h2 {
	margin-top: 0;
}
.referral {
	background: var(--warn);
	border: 1px solid var(--warnLine);
	border-radius: var(--radius);
	padding: .7rem 1rem;
}
.totp {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 1rem;
	align-items: center;
}
.totp code {
	font-size: .9rem;
	word-break: break-all;
}
.qr {
	background: #fff;
	padding: .5rem;
	border-radius: 10px;
	max-width: 11rem;
	color: #000;
}
.qr svg {
	width: 100%;
	height: auto;
	display: block;
}
.list {
	padding-left: 1.1rem;
}
.list li {
	margin: .3rem 0;
}
.states {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.state {
	font-size: .82rem;
	padding: .15rem .6rem;
	border-radius: 999px;
	border: 1px solid var(--jordiLine);
	background: var(--jordi);
}
.state.siets {
	border-color: var(--sietsLine);
	background: var(--siets);
}
.needs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: .8rem;
	margin: .8rem 0;
}
.summary {
	border-radius: var(--radius);
	padding: .8rem 1rem;
	border: 1px solid var(--jordiLine);
	background: var(--jordi);
}
.summary h3 {
	margin-top: 0;
}
.summary p {
	margin: .35rem 0;
}
.summary.siets {
	border-color: var(--sietsLine);
	background: var(--siets);
}
.analysis {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: .8rem 1.1rem;
	margin: 1rem 0;
}
.src {
	color: var(--muted);
	font-size: .85rem;
}
.proposal,
.agreement {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: .7rem 1rem;
	margin: .6rem 0;
	background: var(--card);
}
.proposal p,
.agreement p {
	margin: .25rem 0;
}
.agreement.afgesproken {
	border-color: var(--accent);
}
.agreement.gestopt {
	opacity: .7;
}
.agreement .text {
	font-weight: 600;
}
.meta {
	font-size: .82rem;
	color: var(--muted);
}
.votes {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	font-size: .85rem;
	color: var(--muted);
}
.checkins {
	font-size: .88rem;
	padding-left: 1.1rem;
}
form.checkin {
	border-top: 1px solid var(--line);
	padding-top: .6rem;
	margin-top: .6rem;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
form.checkin p {
	margin: 0;
}
form.checkin button {
	align-self: flex-start;
}
.draft textarea {
	margin-top: .25rem;
}
.wait {
	background: var(--mediator);
}
.toc {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .9rem;
	font-size: .92rem;
	margin: .6rem 0;
}
ul.sources {
	list-style: none;
	padding: 0;
}
ul.sources li {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	padding: .6rem 0;
	border-bottom: 1px solid var(--line);
}
ul.sources li div {
	display: flex;
	flex-direction: column;
}
.note {
	border-left: 4px solid var(--jordiLine);
	padding: .2rem .8rem;
	margin: .8rem 0;
}
.note p {
	margin: .2rem 0;
}
.note.siets {
	border-left-color: var(--sietsLine);
}
ul.log {
	list-style: none;
	padding: 0;
	font-size: .9rem;
}
ul.log li {
	padding: .2rem 0;
}
details summary {
	cursor: pointer;
}
.gebod {
	border-top: 1px solid var(--line);
	padding-top: .4rem;
	margin-top: 1rem;
}
.gebod h2 {
	display: flex;
	gap: .6rem;
	align-items: center;
}
.gebod p {
	margin: .35rem 0;
}
.gebod .rule {
	font-weight: 600;
}
.num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accentInk);
	font-size: 1rem;
	flex: none;
}
.change {
	background: var(--mediator);
	border: 1px dashed var(--accent);
	border-radius: var(--radius);
	padding: .6rem .9rem;
	margin: .6rem 0;
}
.change h3 {
	margin-top: .2rem;
}
.pauses {
	display: flex;
	gap: .4rem;
	align-items: center;
	margin-top: .3rem;
}
.pauses form {
	margin: 0;
}
.pausebox {
	background: var(--mediator);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	padding: .8rem 1rem;
	margin: .5rem 0 1rem;
}
.pausebox p {
	margin: .3rem 0;
}
.msg.pause {
	align-self: center;
	background: var(--mediator);
	border-color: var(--accent);
}
.gebodnote {
	border-left: 4px solid var(--accent);
	padding: .1rem .8rem;
	margin: .5rem 0;
}
.gebodnote p {
	margin: .2rem 0;
}
.gebodnote .who {
	font-weight: 600;
}
@media (max-width: 560px){
	.totp {
		grid-template-columns: 1fr;
	}
}
