:root {
	color-scheme: dark;
	--bg: #050506;
	--surface: #15171c;
	--raised: #1c1f26;
	--text: #f1f1f1;
	--muted: #aeb3bf;
	--line: #343943;
	--accent: #d8a84f;
	--selected: #261c16;
	--good: #59d39a;
	--bad: #ff7c88;
	font: 14px/1.55 system-ui, sans-serif;
	color: var(--text);
	background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.app { max-width: 1120px; margin: 24px auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.portal-header { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 24px; border-bottom: 1px solid #453221; background: #09090b; }
.portal-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.portal-brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-name { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.brand-caption { display: block; color: var(--accent); font-size: 12px; }
.portal-nav, .account, .tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account { margin-left: auto; min-width: 0; }
#account-name { max-width: 180px; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
button, .button, .portal-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--raised); color: var(--text); font: inherit; line-height: 1.4; cursor: pointer; }
.button, .portal-nav a { text-decoration: none; text-align: center; }
button:hover, .button:hover { border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
.quiet, .portal-nav a { background: transparent; border-color: transparent; color: var(--muted); }
.quiet:hover, .portal-nav a:hover { color: var(--text); background: #262027; border-color: transparent; }
.primary { color: #fff; border-color: #9b4b2d; background: linear-gradient(135deg, #c64a29, #8e2e20); box-shadow: inset 0 1px rgba(255,209,145,.15); }
.portal-nav a[aria-current="page"] { color: var(--accent); background: var(--selected); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input, select { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: #101217; color: var(--text); font: inherit; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.content { padding: 28px 24px; background: radial-gradient(ellipse at 0 0, rgba(214,75,41,.08), transparent 55%), var(--bg); }
h1 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
strong { font-weight: 500; }
h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
p { margin: 8px 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 13px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.check-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.login-panel { max-width: 600px; margin: 18px auto 30px; padding: 30px; }
.login-panel h1 { margin-bottom: 12px; }
.login-panel .primary { margin: 16px 0 10px; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; padding: 26px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.setup-steps li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; padding: 0 4px; }
.setup-steps li:not(:last-child)::after { content: ''; position: absolute; height: 1px; background: var(--line); top: 16px; left: calc(50% + 22px); right: calc(-50% + 22px); }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--surface); margin-bottom: 8px; }
.setup-steps li:first-child .step-number { color: var(--accent); border-color: var(--accent); background: #261c16; }
.step-title { color: var(--text); font-weight: 500; }
.step-description { color: var(--muted); font-size: 12px; }
.member-steps { padding: 0 0 24px; margin: 0 0 24px; border-top: 0; border-bottom: 1px solid var(--line); }
.member-steps li:first-child .step-number { border-color: var(--line); color: var(--muted); background: var(--surface); }
.member-steps li.is-complete .step-number { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.member-steps li.is-current .step-number { border-color: var(--accent); color: var(--accent); background: #261c16; }
.member-steps li.is-complete:not(:last-child)::after { background: var(--accent); }
@media (max-width: 520px) {
	.setup-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.setup-steps li { grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; justify-items: start; text-align: left; padding: 0; }
	.step-number { grid-row: span 2; margin-bottom: 0; align-self: center; }
	.setup-steps li:not(:last-child)::after { width: 1px; height: auto; top: 43px; bottom: -18px; left: 16px; right: auto; }
}
.member-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 18px; align-items: start; }
.access-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 21px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: 0 0 8px; }
.status-dot.inactive { background: var(--accent); }
.status-dot.blocked { background: var(--bad); }
.status-note { padding: 11px 13px; margin: 18px 0; border-left: 2px solid var(--good); background: #10211c; color: #a9e7cb; font-size: 13px; overflow-wrap: anywhere; }
.status-note.pending { border-color: var(--accent); background: #251e14; color: #e4cda3; }
.status-note.blocked { border-color: var(--bad); background: #2a151c; color: var(--bad); }
.fields { display: grid; gap: 13px; margin: 16px 0 0; }
.fields button { justify-self: start; }
.verified { color: var(--good); margin: 18px 0 10px; }
.next-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.next-step .button { margin: 6px 0; }
.claim-steps { margin: 14px 0; padding-left: 22px; color: var(--muted); font-size: 13px; }
.claim-steps li { margin: 10px 0; padding-left: 4px; overflow-wrap: anywhere; }
.claim-steps li::marker { color: var(--accent); }
.claim-steps strong { color: var(--text); }
.tabs { margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs button { border-color: transparent; background: transparent; color: var(--muted); }
.tabs button[aria-pressed="true"] { color: var(--accent); background: var(--selected); }
.admin-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 18px; align-items: start; }
.section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-title h2 { margin: 0; }
.inline-form { display: flex; align-items: end; gap: 8px; }
.inline-form label { flex: 1; min-width: 0; }
.members { margin-top: 14px; display: grid; }
.member-row { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 10px; text-align: left; display: grid; grid-template-columns: minmax(0,1fr) auto; background: transparent; }
.member-row[aria-pressed="true"] { background: #241c17; box-shadow: inset 2px 0 var(--accent); }
.member-name { display: block; overflow-wrap: anywhere; }
.member-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.badge { font-size: 12px; color: var(--good); white-space: nowrap; }
.badge.inactive { color: var(--muted); }
.badge.blocked { color: var(--bad); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.duration { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.result { color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.result:empty { margin: 0; }
.result.error { color: var(--bad); }
#notice:not(:empty) { border-left: 2px solid var(--accent); padding: 11px 13px; margin-bottom: 18px; background: #251e14; color: #e4cda3; overflow-wrap: anywhere; }
#notice.error { color: var(--bad); border-color: var(--bad); background: #2a151c; }
.record { padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.settings { max-width: 600px; }
summary { cursor: pointer; color: var(--accent); padding: 12px 0; font-size: 14px; }
#link-tools { margin-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 1168px) { .app { margin: 24px; } }
@media (max-width: 760px) {
	.member-grid, .admin-grid { grid-template-columns: minmax(0,1fr); }
	.account { width: 100%; margin-left: 0; }
	#account-name { max-width: none; flex: 1; }
}
@media (max-width: 420px) {
	.app { margin: 8px; }
	.portal-header, .content { padding: 16px 14px; }
	.panel { padding: 18px; }
	.login-panel { margin: 6px 0 14px; }
	.portal-brand img { width: 50px; height: 50px; }
	.inline-form { flex-wrap: wrap; }
	.inline-form label { flex-basis: 100%; }
}
@media (pointer: coarse) { button, input, select, .button, .portal-nav a, summary { min-height: 44px; } input, select { font-size: 16px; } }
