:root {
    color-scheme: light;
    --bg: #f4f7f1;
    --surface: #fff;
    --ink: #24392f;
    --muted: #5a6d62;
    --line: #d8e2d8;
    --accent: #286a55;
    --soft: #e8f0e6;
    --error: #a43434;
    --shadow: 0 12px 40px #203b2810;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font:
        16px/1.7 system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
}
a {
    color: var(--accent);
    text-underline-offset: 4px;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button,
select {
    cursor: pointer;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
button {
    border: 0;
}
input,
select,
textarea {
    max-width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 9px;
    padding: 9px 12px;
}
textarea {
    resize: vertical;
    min-height: 150px;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    padding: 12px;
    background: var(--surface);
    z-index: 100;
    transform: translateY(-160%);
}
.skip-link:focus {
    transform: none;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 1540px;
    margin: auto;
    padding: 13px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    font:
        26px Georgia,
        serif;
}
.brand strong {
    font:
        26px Georgia,
        serif;
    letter-spacing: 1px;
}
.brand small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 2px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}
.connection-state {
    display: flex;
    gap: 7px;
    align-items: center;
}
.state-dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #b49045;
}
.state-dot.is-online {
    background: var(--accent);
}
.state-dot.is-offline {
    background: var(--error);
}
.text-button {
    background: transparent;
    color: var(--accent);
    padding: 8px 4px;
    font-size: 14px;
}
.theme-control select {
    font-size: 12px;
    padding: 5px;
}
.admin-link {
    text-decoration: none;
}
.icon-button {
    background: var(--soft);
    border-radius: 7px;
    width: 40px;
    height: 40px;
}
#menu-toggle {
    display: none;
}
.site-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    max-width: 1460px;
    margin: auto;
    padding: 32px 34px;
}
.sidebar {
    position: sticky;
    top: 102px;
    align-self: start;
    max-height: calc(100vh - 125px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav-heading {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--muted);
    padding: 19px 12px 7px;
    margin: 0;
    display: block;
}
.sidebar > .nav-heading {
    padding-top: 0;
}
.nav-link {
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: var(--muted);
}
.nav-link:hover {
    background: var(--soft);
    color: var(--ink);
}
.nav-link[aria-current="page"] {
    background: var(--soft);
    color: var(--accent);
    font-weight: 650;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}
.sidebar-note {
    font-size: 12px;
    color: var(--muted);
    padding: 20px 12px;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}
.archive-shell {
    min-width: 0;
    outline: none;
}
.hero {
    position: relative;
    isolation: isolate;
    min-height: 350px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 34px;
    background: #243e36;
    color: #fff;
}
.hero-picture,
.hero-art,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-art {
    object-fit: cover;
    object-position: 70% 55%;
}
.hero-shade {
    background: linear-gradient(90deg, #122d28e8, #142f296e 65%, #183b301c);
    z-index: 1;
}
.hero-copy {
    position: relative;
    z-index: 2;
    padding: 36px 40px;
    max-width: 550px;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 650;
}
.hero .eyebrow {
    color: #d3e8dd;
}
.hero h1 {
    white-space: pre-line;
    font:
        clamp(32px, 3.6vw, 46px) / 1.3 Georgia,
        "Songti SC",
        serif;
    letter-spacing: 2px;
    margin: 15px 0;
}
.hero-lede {
    font-size: 14px;
    line-height: 1.9;
    max-width: 400px;
    color: #e6eee8;
}
.primary-action {
    display: inline-block;
    background: #f2f6ed;
    color: #254e3d;
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 13px;
    margin-top: 7px;
}
.hero-caption {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    right: 24px;
    font-size: 11px;
    color: #e6eee8;
}
.page-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.page-heading h2 {
    font:
        30px/1.4 Georgia,
        "Songti SC",
        serif;
    margin: 0;
}
.page-description {
    font-size: 14px;
    color: var(--muted);
    max-width: 650px;
    margin: 9px 0 0;
}
.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 17px;
}
.outline-button {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--accent);
    white-space: nowrap;
}
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.overview-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 12px;
    min-width: 0;
}
.overview-card h3 {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--muted);
    margin: 0 0 12px;
    font-weight: 500;
}
.state-value {
    font-size: 24px;
    font-weight: 550;
    display: block;
}
.overview-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0;
}
.overview-card time {
    overflow-wrap: anywhere;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 14px;
    gap: 12px;
}
.section-heading h3 {
    font:
        22px Georgia,
        "Songti SC",
        serif;
    margin: 0;
}
.section-heading a {
    font-size: 12px;
}
.overview-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.summary-card,
.record-card,
.about-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.summary-card h4 {
    margin: 0 0 8px;
    font-size: 17px;
}
.summary-card p {
    color: var(--muted);
    font-size: 14px;
    white-space: pre-wrap;
}
.record-card {
    margin: 0 0 14px;
    box-shadow: var(--shadow);
}
.record-card h3 {
    font:
        23px/1.4 Georgia,
        "Songti SC",
        serif;
    margin: 10px 0;
}
.record-card h3 a {
    color: var(--ink);
    text-decoration: none;
}
.record-card h3 a:hover {
    text-decoration: underline;
}
.record-meta {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}
.tag {
    background: var(--soft);
    color: var(--accent);
    border-radius: 5px;
    padding: 2px 7px;
}
.record-summary {
    white-space: pre-wrap;
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0;
}
.record-more {
    font-size: 12px;
}
.record-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin: 18px 0 0;
}
.detail-field {
    font-size: 14px;
}
.detail-field dt {
    color: var(--muted);
    font-size: 12px;
}
.detail-field dd {
    margin: 4px 0 0;
    white-space: pre-wrap;
}
.detail-field.wide {
    grid-column: 1/-1;
}
.detail-field ul,
.detail-field ol {
    margin: 6px 0;
    padding-left: 22px;
}
.progress-track {
    height: 5px;
    background: var(--soft);
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
}
.timeline-list {
    border-left: 1px solid var(--line);
    margin-left: 8px;
    padding-left: 25px;
}
.timeline-list .record-card {
    position: relative;
}
.timeline-list .record-card:before {
    position: absolute;
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    left: -30px;
    top: 26px;
}
.article-reader {
    max-width: 800px;
    margin: auto;
}
.article-reader h2 {
    font:
        34px/1.5 Georgia,
        "Songti SC",
        serif;
    margin: 18px 0;
}
.article-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.95;
    margin: 28px 0;
    font-size: 17px;
}
.article-reader > .record-meta {
    margin-bottom: 22px;
}
.article-reader .record-summary {
    padding: 16px;
    background: var(--soft);
    border-radius: 10px;
}
.reading-notice {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--soft);
    border-radius: 9px;
    margin-bottom: 20px;
}
.filter-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--soft);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 22px;
}
.filter-bar label {
    font-size: 12px;
    display: grid;
    gap: 6px;
    flex: 1 1 100px;
}
.filter-bar select,
.filter-bar input {
    width: 100%;
    font-size: 13px;
    min-height: 42px;
}
.filter-bar .search-field {
    flex: 3 1 200px;
}
.filter-bar button {
    min-height: 42px;
}
.list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.module-status {
    font-size: 12px;
    color: var(--muted);
    margin: 12px 0 24px;
}
.empty-state {
    padding: 48px 26px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 12px;
}
.empty-state strong {
    display: block;
    font-size: 17px;
    font-weight: 500;
}
.empty-state p {
    color: var(--muted);
    font-size: 13px;
    max-width: 540px;
    margin: 8px auto;
}
.empty-mark {
    font:
        27px Georgia,
        serif;
    display: block;
    color: var(--accent);
    margin-bottom: 12px;
}
.error-state {
    border-color: var(--error);
}
.error-state strong,
.error {
    color: var(--error);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
}
.about-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}
.about-card ul {
    padding-left: 20px;
    font-size: 14px;
    color: var(--muted);
}
.contribute-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
}
.participation-intro h2 {
    font:
        26px Georgia,
        "Songti SC",
        serif;
    margin: 10px 0 20px;
}
.participation-intro p,
.participation-intro li {
    font-size: 14px;
    color: var(--muted);
}
.participation-intro ol {
    padding-left: 22px;
    line-height: 2.2;
}
.privacy-note {
    background: var(--soft);
    padding: 15px;
    border-radius: 8px;
}
.message-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}
.field {
    display: grid;
    gap: 7px;
    font-size: 13px;
}
.field small {
    font-size: 11px;
    color: var(--muted);
}
.captcha-block {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
}
.captcha-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}
.captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.captcha-image-wrap {
    width: 300px;
    max-width: 100%;
    min-height: 96px;
    border-radius: 7px;
    background: #f7f8f4;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid #d2d9d0;
}
.captcha-image-wrap img {
    max-width: 100%;
    height: auto;
    display: none;
}
.captcha-image-wrap.has-image img {
    display: block;
}
.captcha-image-wrap.has-image .captcha-loading {
    display: none;
}
.captcha-loading {
    font-size: 12px;
    color: #546658;
    padding: 8px;
}
.captcha-input {
    flex: 1 1 140px;
    min-width: 0;
}
.captcha-input input {
    width: 100%;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.captcha-status,
.draft-note,
.form-status {
    font-size: 12px;
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.submit-action {
    background: var(--accent);
    color: var(--surface);
    padding: 12px 18px;
    border-radius: 8px;
}
.form-status.success {
    color: var(--accent);
}
.site-footer {
    border-top: 1px solid var(--line);
    margin: 45px 0 5px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
}
.site-footer div {
    display: flex;
    gap: 14px;
    align-items: center;
}
.site-footer strong {
    font:
        19px Georgia,
        serif;
}
.mobile-nav {
    display: none;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #14221d;
    --surface: #1c2e26;
    --ink: #e4eee5;
    --muted: #adc1b2;
    --line: #395344;
    --accent: #a5d7b5;
    --soft: #263e30;
    --error: #ffaeaa;
    --shadow: 0 12px 40px #0002;
}
:root[data-theme="dark"] .submit-action {
    color: #14221d;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        color-scheme: dark;
        --bg: #14221d;
        --surface: #1c2e26;
        --ink: #e4eee5;
        --muted: #adc1b2;
        --line: #395344;
        --accent: #a5d7b5;
        --soft: #263e30;
        --error: #ffaeaa;
        --shadow: 0 12px 40px #0002;
    }
    :root:not([data-theme="light"]):not([data-theme="dark"]) .submit-action {
        color: #14221d;
    }
}
@media (min-width: 1550px) {
    .site-layout {
        gap: 50px;
    }
}
@media (max-width: 1100px) {
    .site-layout {
        grid-template-columns: 185px minmax(0, 1fr);
        gap: 24px;
        padding: 25px 24px;
    }
    .header-inner {
        padding: 12px 24px;
    }
    .overview-card {
        padding: 16px;
    }
    .hero-copy {
        padding: 30px;
    }
    .contribute-panel {
        grid-template-columns: 1fr;
    }
    .hero-caption {
        display: none;
    }
}
@media (max-width: 800px) {
    .site-layout {
        display: block;
        padding: 20px 24px 85px;
    }
    .sidebar {
        display: none;
        position: fixed;
        top: 79px;
        bottom: 64px;
        left: 0;
        width: 270px;
        max-width: 90vw;
        max-height: none;
        background: var(--surface);
        z-index: 25;
        box-shadow: 20px 0 80px #0003;
        padding: 20px;
    }
    .sidebar.is-open {
        display: block;
    }
    #menu-toggle {
        display: block;
    }
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        z-index: 35;
        justify-content: space-around;
        background: var(--surface);
        border-top: 1px solid var(--line);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }
    .mobile-nav a,
    .mobile-nav button {
        font-size: 12px;
        color: var(--muted);
        padding: 9px 13px;
        border-radius: 6px;
        text-decoration: none;
        background: transparent;
    }
    .mobile-nav [aria-current="page"] {
        color: var(--accent);
        background: var(--soft);
    }
    .hero {
        min-height: 320px;
    }
    .page-heading h2 {
        font-size: 27px;
    }
    .header-actions {
        gap: 12px;
    }
    .admin-link {
        display: none;
    }
    .theme-control {
        display: block;
    }
    .overview-shortcuts {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 520px) {
    .header-inner {
        padding: 10px 16px;
    }
    .brand small {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .brand strong {
        font-size: 23px;
    }
    .brand-mark {
        width: 35px;
        height: 35px;
        font-size: 23px;
    }
    .header-actions {
        gap: 10px;
    }
    .connection-state {
        font-size: 11px;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .header-actions {
        flex: 1 1 100%;
        justify-content: space-between;
    }
    .theme-control select {
        max-width: 115px;
    }
    .site-layout {
        padding: 18px 16px 85px;
    }
    .hero {
        min-height: 340px;
        margin-top: 0;
        border-radius: 13px;
    }
    .hero-copy {
        padding: 28px 24px;
        max-width: 100%;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero-lede {
        max-width: 270px;
        font-size: 13px;
    }
    .hero-art {
        object-position: 65% 50%;
    }
    .hero-shade {
        background: linear-gradient(90deg, #122d28e0, #142f2978);
    }
    .page-heading {
        display: block;
        position: relative;
    }
    .page-actions {
        justify-content: flex-start;
        padding-top: 10px;
        gap: 15px;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .overview-card {
        padding: 18px;
    }
    .overview-card h3 {
        margin-bottom: 7px;
    }
    .state-value {
        font-size: 23px;
    }
    .overview-shortcuts,
    .about-grid {
        grid-template-columns: 1fr;
    }
    .record-card {
        padding: 18px;
    }
    .record-card h3 {
        font-size: 21px;
    }
    .timeline-list {
        padding-left: 18px;
    }
    .timeline-list .record-card:before {
        left: -23px;
    }
    .filter-bar {
        padding: 12px;
        gap: 10px;
    }
    .filter-bar label {
        flex-basis: calc(50% - 10px);
    }
    .filter-bar .search-field {
        flex-basis: 100%;
    }
    .filter-bar button {
        width: 100%;
    }
    .article-reader h2 {
        font-size: 28px;
    }
    .article-body {
        font-size: 16px;
    }
    .record-details {
        grid-template-columns: 1fr;
    }
    .contribute-panel {
        padding: 20px;
        gap: 20px;
    }
    .captcha-block {
        padding: 12px;
    }
    .site-footer {
        margin-top: 35px;
    }
    .page-description {
        font-size: 13px;
    }
    .sidebar {
        top: 116px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation: none !important;
        transition: none !important;
    }
}

.public-progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 8px 0;
    accent-color: var(--accent);
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--soft);
}
.public-reading-shell {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}
.public-reading-shell nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.public-reading-shell h1 {
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.article-body p {
    white-space: pre-wrap;
    margin: 1em 0;
}
.article-body h3,
.article-body h4,
.article-body h5 {
    white-space: normal;
    scroll-margin-top: 24px;
    margin-top: 1.5em;
}
.reading-toc {
    white-space: normal;
    font-size: 15px;
    padding: 16px;
    background: var(--soft);
    border-radius: 8px;
}
.public-progress::-webkit-progress-bar {
    background: var(--soft);
}
.public-progress::-webkit-progress-value {
    background: var(--accent);
}
.public-progress::-moz-progress-bar {
    background: var(--accent);
}

/* Runtime public experience: a readable home and a smaller primary navigation. */
.nav-collection {
    margin: 12px 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.nav-collection summary {
    padding: 8px 13px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}
.secondary-navigation {
    display: flex;
    flex-direction: column;
    padding-top: 7px;
}
.secondary-navigation .nav-link {
    font-size: 13px;
    padding-left: 22px;
}
.secondary-navigation .nav-link[aria-current="page"] {
    padding-left: 19px;
}
.sidebar .write-link {
    color: var(--accent);
    border: 1px solid var(--line);
    margin-top: 5px;
}
.hero h1 {
    overflow-wrap: anywhere;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.hero-secondary {
    color: #f2f6ed;
    font-size: 13px;
    text-decoration-thickness: 1px;
    padding: 10px 0;
}
.hero-actions .primary-action {
    margin-top: 0;
}
.overview-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
}
.overview-card {
    padding: 16px 19px;
}
.overview-card h3 {
    margin-bottom: 7px;
    letter-spacing: 0;
}
.overview-card .state-value {
    font-size: 22px;
}
.overview-card small,
.overview-card time,
.overview-card a {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}
.overview-card a {
    display: block;
    color: var(--accent);
    margin-top: 10px;
}
.home-entrypoints {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 8px;
}
.home-entrypoints > a {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 20px 30px 20px 0;
    color: var(--ink);
    border-top: 1px solid var(--line);
    text-decoration: none;
    min-width: 0;
    overflow-wrap: anywhere;
}
.home-entrypoints > a:hover strong {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.home-entrypoints strong {
    font-size: 16px;
    font-weight: 550;
}
.home-entrypoints span:not(.entry-arrow) {
    font-size: 12px;
    color: var(--muted);
}
.home-entrypoints .entry-index {
    font-size: 11px;
    letter-spacing: 1px;
}
.entry-arrow {
    position: absolute;
    right: 6px;
    top: 43px;
    font-size: 18px;
    color: var(--accent);
}
.featured-record {
    border-left: 3px solid var(--accent);
    padding: 28px 30px;
}
.featured-record h3 {
    font-size: clamp(23px, 3vw, 31px);
    margin: 16px 0;
}
.featured-record .record-summary {
    font-size: 16px;
    line-height: 1.9;
    max-width: 65ch;
}
.home-record h3 {
    font-size: 20px;
}
.home-record .record-meta {
    font-size: 11px;
}
.home-record .record-summary {
    font-size: 14px;
}
.overview-shortcuts:has(> section:only-child) {
    grid-template-columns: 1fr;
}
.home-invitation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    margin: 30px 0 10px;
}
.home-invitation h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 550;
}
.home-invitation p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--muted);
}
.home-invitation a {
    text-decoration: none;
}
@media (max-width: 1000px) {
    .home-entrypoints {
        gap: 12px;
    }
    .home-entrypoints strong {
        font-size: 14px;
    }
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .overview-presence {
        grid-column: 1 / -1;
    }
}
@media (max-width: 620px) {
    .overview-shortcuts {
        grid-template-columns: 1fr;
    }
    .home-entrypoints {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .home-entrypoints > a {
        grid-template-columns: 26px 1fr;
        padding: 15px 28px 15px 0;
        gap: 3px 10px;
    }
    .home-entrypoints strong {
        font-size: 16px;
    }
    .home-entrypoints > a > span:nth-last-child(2) {
        grid-column: 2;
    }
    .entry-arrow {
        top: 24px;
    }
    .home-invitation {
        flex-direction: column;
        align-items: start;
        padding: 20px;
    }
    .featured-record {
        padding: 22px;
    }
    .mobile-nav a,
    .mobile-nav button {
        padding-inline: 10px;
    }
    .brand small {
        letter-spacing: 0.5px;
    }
}

.participant-panel {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.participant-panel .message-form {
    margin: 20px 0;
}
.participant-panel button {
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--accent);
}
.participant-panel button.submit-action {
    background: var(--accent);
    color: var(--surface);
}
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.account-secret {
    padding: 18px;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: var(--soft);
    margin-top: 20px;
}
.account-secret input {
    width: 100%;
    font-family: monospace;
}
.account-secret p {
    font-size: 14px;
}
.participant-panel details {
    margin: 18px 0;
}
.participant-panel summary {
    cursor: pointer;
}
#registration-captcha img {
    display: block;
    max-width: 100%;
    height: auto;
}
@media (max-width: 800px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}
