* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #f7f7f5;
    color: #30302e;
    font:
        15px/1.8 Arial,
        "Microsoft YaHei",
        sans-serif;
    --accent: #8b181b;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    border: 1px solid #bdbdb6;
    background: #fff;
    border-radius: 2px;
}
button {
    cursor: pointer;
    padding: 6px 13px;
}
button:hover {
    background: #eeeee8;
}
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
input,
select {
    padding: 7px 10px;
    min-width: 0;
}
textarea {
    padding: 13px;
    resize: vertical;
    line-height: 1.85;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a,
button,
input,
select,
textarea {
    outline-offset: 4px;
}
h1,
h2,
h3 {
    line-height: 1.4;
}
h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 20px;
}
h2 {
    font-size: 21px;
    margin: 27px 0 13px;
}
h3 {
    font-size: 17px;
    margin: 20px 0 12px;
}
p {
    margin: 0 0 17px;
}
small,
.muted {
    font-size: 12px;
    color: #84827a;
}
hr {
    border: 0;
    border-top: 1px solid #d0cec7;
    margin: 25px 0;
}
code,
pre,
.mono {
    font-family: Consolas, "Liberation Mono", monospace;
}
code {
    background: #eeeee8;
    padding: 2px 4px;
    overflow-wrap: anywhere;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border: 1px solid #bdbdb6;
    background: #fff;
    color: #3b3b36;
    border-radius: 2px;
    gap: 6px;
    font-size: 13px;
}
.btn:hover {
    text-decoration: none;
    background: #eeeee8;
}
.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.primary:hover {
    background: var(--accent);
    filter: brightness(0.9);
}
.danger {
    color: #a82825;
}
.row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.spread {
    justify-content: space-between;
}
.grow {
    flex: 1;
}
.stack {
    display: grid;
    gap: 15px;
}
.hidden {
    display: none !important;
}
.text-btn {
    border: 0;
    background: transparent;
    padding: 2px 0;
    font-size: 12px;
    color: var(--accent);
}
.text-btn:hover {
    background: transparent;
    text-decoration: underline;
}
.utility {
    height: 37px;
    background: #eeeee9;
    border-bottom: 1px solid #cccac2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(calc((100vw - 1150px) / 2), 22px);
    font-size: 12px;
    gap: 10px;
}
.worlds {
    display: flex;
    height: 100%;
    align-items: stretch;
}
.worlds a {
    padding: 6px 15px;
    color: #777;
}
.worlds a.on {
    color: #333;
    background: #fff;
    border-left: 1px solid #cccac2;
    border-right: 1px solid #cccac2;
    font-weight: bold;
}
.utility-right {
    display: flex;
    gap: 15px;
    align-items: center;
    white-space: nowrap;
}
.utility-right a {
    color: #666;
}
.site-head {
    height: 145px;
    background: #650f16;
    color: #f4ece3;
}
.head-inner {
    max-width: 1150px;
    padding: 21px 22px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
}
.emblem {
    width: 88px;
    height: 88px;
    min-width: 88px;
}
.brand h1 {
    font-size: 37px;
    letter-spacing: 3px;
    font-weight: bold;
    margin: 0 0 1px;
    text-shadow: 0 2px 2px #0006;
}
.brand p {
    font-size: 13px;
    letter-spacing: 5px;
    margin: 0;
    opacity: 0.75;
}
.head-note {
    margin-left: auto;
    text-align: right;
    font:
        11px/2 Consolas,
        monospace;
    letter-spacing: 1px;
    opacity: 0.6;
}
.site-nav {
    background: #3e1217;
    border-top: 1px solid #9a4548;
    color: #eee;
}
.nav-inner {
    max-width: 1150px;
    min-height: 41px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 23px;
    padding: 0 22px;
}
.nav-inner a {
    color: inherit;
    font-size: 13px;
    padding: 9px 0;
}
.nav-search {
    margin-left: auto;
    display: flex;
    padding: 5px 0;
}
.nav-search input {
    width: 173px;
    padding: 3px 9px;
    background: #ffffff12;
    color: inherit;
    border: 1px solid #ffffff50;
    border-radius: 0;
    font-size: 12px;
}
.nav-search input::placeholder {
    color: #bbb;
}
.nav-search button {
    padding: 3px 8px;
    border: 1px solid #ffffff50;
    border-left: 0;
    background: #ffffff18;
    color: inherit;
    font-size: 12px;
}
.menu {
    display: none;
    border: 0;
    background: none;
    color: inherit;
    padding: 0;
    font-size: 20px;
}
.layout {
    max-width: 1150px;
    margin: auto;
    padding: 32px 22px 60px;
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 37px;
    min-height: calc(100vh - 223px);
}
.side {
    font-size: 13px;
}
.side-block {
    margin-bottom: 25px;
}
.side-title {
    font-weight: bold;
    color: var(--accent);
    border-bottom: 1px solid #c6c0b7;
    padding-bottom: 6px;
    margin-bottom: 7px;
    font-size: 12px;
}
.side a {
    display: block;
    color: #61594f;
    padding: 4px 0 4px 12px;
}
.side a:before {
    content: "·";
    margin-left: -11px;
    margin-right: 8px;
}
.side .current {
    font-weight: bold;
    color: var(--accent);
}
.content {
    min-width: 0;
}
.crumb {
    font-size: 12px;
    color: #939086;
    margin: 0 0 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.heading {
    border-bottom: 1px solid #c8c4ba;
    padding-bottom: 14px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    justify-content: space-between;
}
.heading h1 {
    margin: 0;
    color: var(--accent);
    font-size: 28px;
}
.heading p {
    color: #8c877c;
    font-size: 12px;
    margin: 7px 0 0;
}
.kicker {
    font:
        10px/1.8 Consolas,
        monospace;
    letter-spacing: 2px;
    color: #979185;
    margin-bottom: 5px;
}
.intro {
    max-width: 620px;
}
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.archive-row {
    display: grid;
    grid-template-columns: 127px minmax(0, 1fr) auto;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #dfdcd3;
    align-items: baseline;
}
.archive-number {
    font:
        12px/1.7 Consolas,
        monospace;
    color: #8f887c;
}
.archive-title {
    font-size: 16px;
}
.archive-summary {
    font-size: 12px;
    color: #918b80;
    margin-top: 4px;
}
.archive-date {
    font-size: 11px;
    color: #9e978a;
}
.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}
.section-title {
    font-size: 17px;
    border-bottom: 1px solid #d0cbbf;
    padding-bottom: 9px;
    margin-top: 28px;
}
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.simple-list li {
    border-bottom: 1px solid #dfdcd3;
    padding: 10px 0;
    display: flex;
    gap: 13px;
    align-items: baseline;
}
.simple-list small {
    margin-left: auto;
}
.tags {
    display: flex;
    gap: 7px 13px;
    flex-wrap: wrap;
}
.tag {
    font-size: 12px;
    border-bottom: 1px dotted #b7ac9a;
}
.badge {
    font-size: 11px;
    line-height: 1.8;
    padding: 0 7px;
    background: #e9e8e2;
    color: #817a6d;
    border-radius: 2px;
    white-space: nowrap;
    display: inline-block;
}
.badge.live {
    background: #e4ece2;
    color: #4e6e44;
}
.badge.draft {
    background: #f2ead6;
    color: #8c6c31;
}
.badge.reserved {
    background: #eae4ee;
    color: #76617f;
}
.format-tabs {
    display: flex;
    gap: 0;
}
.format-tabs button {
    padding: 7px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #928b7d;
    font-size: 12px;
}
.format-tabs button.active {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: bold;
}
.doc-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #dbd6cb;
    margin: 0 0 25px;
    gap: 10px;
}
.stamp {
    font-size: 11px;
    color: #9b9387;
}
.article {
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}
.article p {
    margin: 0 0 19px;
}
.article h2 {
    font-size: 21px;
}
.article blockquote {
    border: 1px dashed #aaa496;
    background: #f0eee7;
    padding: 16px 22px;
    margin: 23px 0;
}
.article blockquote p:last-child {
    margin: 0;
}
.article details {
    border: 1px solid #c7c0b3;
    background: #f3f1eb;
    margin: 22px 0;
}
.article summary {
    padding: 9px 15px;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
}
.article details > div {
    padding: 18px;
    border-top: 1px solid #d5cec1;
}
.article table {
    border-collapse: collapse;
    width: 100%;
    margin: 18px 0;
}
.article td,
.article th {
    border: 1px solid #c0b8a8;
    padding: 7px 12px;
}
.article th {
    background: #ebe6d9;
}
.article .plain {
    white-space: pre-wrap;
    font:
        15px/1.95 Consolas,
        "Microsoft YaHei",
        monospace;
}
.article .component {
    border: 1px solid #c7c1b5;
    background: #eceae3;
    padding: 15px 21px;
    margin: 0 0 25px;
}
.article .component strong {
    font-size: 19px;
    display: block;
}
.article .difficulty {
    border-left: 9px solid #b29b4c;
    background: #e7ddba;
    display: flex;
    gap: 22px;
    align-items: center;
}
.difficulty .grade {
    font:
        48px/1 Georgia,
        serif;
}
.article .rpc-class {
    display: flex;
    gap: 25px;
    align-items: center;
    background: #e9ecee;
}
.rpc-class .symbol {
    font:
        40px/1 Georgia,
        serif;
}
.tabs-box {
    border: 1px solid #c7c1b5;
    margin: 20px 0;
}
.inner-tabs {
    display: flex;
    border-bottom: 1px solid #c7c1b5;
    background: #ebe7dd;
}
.inner-tabs button {
    border: 0;
    border-right: 1px solid #c7c1b5;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
}
.inner-tabs button.active {
    background: #fff;
    font-weight: bold;
}
.inner-panel {
    padding: 18px;
}
.related {
    border: 1px solid #c9c1b2;
    background: #f0ede5;
    margin-top: 40px;
}
.related-title {
    padding: 11px 17px;
    border-bottom: 1px solid #c9c1b2;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.related ol {
    list-style: none;
    margin: 0;
    padding: 9px 17px;
}
.related li {
    display: flex;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    align-items: baseline;
}
.related .role {
    font-size: 11px;
    color: #999080;
    min-width: 60px;
}
.related li.current a {
    font-weight: bold;
    color: #3b3832;
}
.related li.current a:after {
    content: "　当前";
    font-size: 10px;
    color: #aaa08e;
    font-weight: normal;
}
.doc-footer {
    margin-top: 27px;
    border-top: 1px solid #d3ccbf;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.page-foot {
    font-size: 10px;
    color: #aaa291;
    border-top: 1px solid #d8d2c5;
    padding-top: 14px;
    margin-top: 44px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 22px;
}
.filters input {
    flex: 1;
    min-width: 170px;
}
.filters select {
    font-size: 12px;
}
.table-wrap {
    overflow-x: auto;
}
.data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}
.data-table th {
    font-weight: normal;
    text-align: left;
    padding: 10px 11px;
    color: #8c8c80;
    background: #f0f1eb;
    border-bottom: 1px solid #cdd1c2;
    white-space: nowrap;
}
.data-table td {
    padding: 13px 11px;
    border-bottom: 1px solid #dde0d5;
    vertical-align: middle;
}
.data-table th:first-child,
.data-table td:first-child {
    padding-left: 0;
}
.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}
.data-table tbody tr:hover {
    background: #fafbf6;
}
.table-title {
    display: block;
    font-size: 14px;
    color: #384133;
}
.table-sub {
    font:
        11px/1.9 Consolas,
        monospace;
    color: #989d8d;
}
.actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    font-size: 12px;
}
.empty {
    text-align: center;
    border: 1px dashed #c9c6bb;
    padding: 45px 20px;
    color: #9b9385;
}
.empty h3 {
    margin-top: 0;
    color: #706859;
}
.result {
    padding: 19px 0;
    border-bottom: 1px solid #ddd7c8;
}
.result h3 {
    margin: 0 0 5px;
}
.result p {
    font-size: 13px;
    color: #918775;
    margin: 8px 0;
}
.tag-cloud {
    display: flex;
    gap: 16px 24px;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 25px 0;
}
.tag-cloud sup {
    font-size: 10px;
    color: #aaa18e;
    margin-left: 5px;
}
.admin-body {
    --accent: #3b5739;
    background: #f4f5ef;
}
.admin-top {
    height: 58px;
    border-bottom: 1px solid #d4d9ca;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 27px;
    gap: 15px;
}
.admin-brand {
    font-size: 16px;
    font-weight: bold;
    color: #34402d;
}
.admin-brand small {
    font-size: 11px;
    margin-left: 15px;
    font-weight: normal;
}
.admin-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    min-height: calc(100vh - 58px);
}
.admin-side {
    padding: 27px 18px;
    background: #eaece3;
    border-right: 1px solid #d4dac9;
    font-size: 13px;
}
.admin-side a {
    display: block;
    padding: 9px 12px;
    color: #7a8271;
    border-left: 2px solid transparent;
    margin-bottom: 3px;
}
.admin-side a.active {
    border-color: #627a51;
    background: #dde4d3;
    color: #3e5133;
    font-weight: bold;
}
.nav-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: #9aab8a;
    margin: 25px 13px 10px;
}
.admin-main {
    padding: 33px 38px;
    min-width: 0;
    max-width: 1500px;
    width: 100%;
}
.admin-main .heading h1 {
    color: #303e29;
    font-size: 25px;
}
.admin-main .heading {
    border-color: #d2d8c7;
}
.panel {
    border: 1px solid #d5dbcb;
    padding: 23px;
    background: #fff;
}
.panel-title {
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e5d8;
    margin: 0 0 18px;
}
.admin-tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #d0d8c4;
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
}
.admin-tabs a {
    padding: 8px 0;
    color: #8c967f;
    font-size: 13px;
    border-bottom: 2px solid transparent;
}
.admin-tabs a.active {
    border-color: #627b51;
    color: #3a5130;
}
.admin-tabs a:hover {
    text-decoration: none;
}
.field {
    display: grid;
    gap: 6px;
    font-size: 13px;
}
.field > span {
    font-size: 12px;
    color: #7c8570;
}
.field input,
.field select,
.field textarea {
    width: 100%;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 20px;
}
.full {
    grid-column: 1/-1;
}
.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 22px;
}
.toolbar {
    display: flex;
    border: 1px solid #cbd5be;
    border-bottom: 0;
    background: #edf1e7;
    padding: 5px;
    gap: 2px;
    flex-wrap: wrap;
}
.toolbar button {
    border: 0;
    background: transparent;
    font-size: 12px;
    padding: 4px 9px;
}
.toolbar button:hover {
    background: #dce5d1;
}
.source {
    width: 100%;
    display: block;
    min-height: 490px;
    border: 1px solid #cbd5be;
    border-radius: 0;
    font:
        13px/1.9 Consolas,
        "Microsoft YaHei",
        monospace;
    tab-size: 2;
}
.editor-status {
    border: 1px solid #cbd5be;
    border-top: 0;
    font-size: 11px;
    color: #99a18d;
    background: #fff;
    padding: 5px 11px;
    display: flex;
    justify-content: space-between;
}
.editor-aside .panel {
    padding: 17px;
    margin-bottom: 17px;
    font-size: 12px;
}
.editor-aside h3 {
    font-size: 13px;
    margin: 0 0 13px;
}
.format-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e6d7;
}
.format-row:last-child {
    border-bottom: 0;
}
.note {
    font-size: 12px;
    color: #8c977c;
    border-left: 2px solid #bdc9ac;
    padding-left: 12px;
    margin: 15px 0;
}
.savebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 17px;
}
.preview {
    min-height: 490px;
    background: #fff;
    border: 1px solid #cbd5be;
    padding: 25px;
}
.check {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 13px;
    padding: 7px 0;
}
.check input {
    width: 15px;
    height: 15px;
    accent-color: #4f6a3e;
}
.perms {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 18px;
}
.perm-section {
    border-top: 1px solid #e1e6d5;
    padding: 15px 0;
}
.key-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
}
.key-list button {
    display: block;
    text-align: left;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d7ddca;
    background: transparent;
    padding: 15px 12px;
}
.key-list button.selected {
    background: #e0e8d5;
    border-left: 2px solid #6b8457;
}
.key-list strong,
.key-list small {
    display: block;
}
.connection {
    font:
        12px/1.8 Consolas,
        monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid #d4dec6;
    background: #edf2e4;
    padding: 15px;
}
.members {
    list-style: none;
    padding: 0;
    margin: 0;
}
.members li {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e6d5;
}
.members .index {
    font:
        12px Consolas,
        monospace;
    color: #a0ac92;
    min-width: 22px;
}
.members .name {
    flex: 1;
}
.members button {
    padding: 3px 8px;
    font-size: 11px;
}
.history-grid {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 22px;
}
.revision {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d6deca;
    background: transparent;
    padding: 13px 12px;
    text-align: left;
}
.revision.selected {
    background: #e1ead6;
    border-left: 2px solid #708d58;
}
.revision strong {
    font-size: 12px;
}
.revision small {
    display: block;
}
.revision-body {
    background: white;
    border: 1px solid #d4dec6;
    padding: 22px;
    min-height: 350px;
}
.login {
    max-width: 360px;
    margin: 50px auto 90px;
}
.login form {
    display: grid;
    gap: 20px;
}
.login button {
    width: 100%;
}
.login-error {
    font-size: 12px;
    color: #a52924;
    min-height: 18px;
}
.overview {
    display: flex;
    gap: 33px;
    border-bottom: 1px solid #d2dcc5;
    margin-bottom: 23px;
    padding-bottom: 19px;
    flex-wrap: wrap;
}
.overview strong {
    display: block;
    font:
        25px/1.5 Georgia,
        serif;
    color: #4f643d;
}
.overview span {
    font-size: 11px;
    color: #8e9c7e;
}
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 23px;
}
.pagination {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}
.toast-stack {
    position: fixed;
    bottom: 23px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    max-width: calc(100vw - 30px);
    pointer-events: none;
}
.toast {
    background: #303b2a;
    color: white;
    padding: 11px 20px;
    font-size: 13px;
    margin-top: 7px;
    box-shadow: 0 3px 15px #0002;
    border-radius: 3px;
}
.toast.error {
    background: #9a352c;
}
dialog {
    width: min(580px, calc(100vw - 30px));
    max-height: 87vh;
    padding: 0;
    border: 1px solid #bcc9ac;
    color: #303b29;
    box-shadow: 0 12px 50px #0003;
    border-radius: 3px;
}
dialog::backdrop {
    background: #181e1466;
}
.dialog-head {
    padding: 18px 23px;
    border-bottom: 1px solid #dce3d2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dialog-head h2 {
    font-size: 18px;
    margin: 0;
}
.dialog-close {
    border: 0;
    background: transparent;
    font-size: 23px;
    padding: 0 4px;
    color: #969f8c;
}
.dialog-body {
    padding: 23px;
    overflow: auto;
    max-height: 65vh;
}
.dialog-foot {
    padding: 15px 23px;
    border-top: 1px solid #dce3d2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.loading {
    padding: 70px;
    text-align: center;
    color: #aaa;
}
.error-page {
    text-align: center;
    padding: 60px 0;
}
.backdrop {
    display: none;
}
.side-close {
    display: none;
}
.br {
    --accent: #6c592f;
    background: #e8e5d7;
    color: #423c2e;
}
.br .utility {
    background: #d8d1bb;
    border-color: #bfb396;
}
.br .worlds a.on {
    background: #ece8d9;
}
.br .site-head {
    height: 172px;
    background: #c8bb8d;
    color: #423b28;
}
.br .head-inner {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
}
.br .emblem {
    display: none;
}
.br .brand {
    text-align: center;
}
.br .brand h1 {
    font:
        42px/1.4 Georgia,
        "Songti SC",
        serif;
    letter-spacing: 1px;
    text-shadow: none;
}
.br .brand p {
    font-size: 13px;
    letter-spacing: 2px;
}
.br .head-note {
    margin: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 2px;
}
.br .site-nav {
    background: #504b39;
    border: 0;
}
.br .layout {
    background: #f1eee2;
    border: 1px solid #cac0a5;
    margin-top: 24px;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 37px;
}
.br .side-title {
    color: #77623a;
    border-color: #c5b898;
}
.br .side a {
    color: #7c6c4c;
}
.br .heading h1 {
    font:
        30px/1.4 Georgia,
        "Songti SC",
        serif;
    color: #625136;
}
.br .article blockquote {
    background: #e8dfc6;
    border: 1px solid #bcaa7d;
    box-shadow: 2px 2px 0 #d6c8a4;
}
.br .related {
    background: #e9e1cb;
    border-color: #c4b28a;
}
.br .related-title {
    border-color: #c4b28a;
}
.rpc {
    --accent: #38536d;
    background: #e4e7e9;
    color: #353b40;
}
.rpc .utility {
    background: #1e242b;
    border-color: #444d57;
}
.rpc .utility a {
    color: #b8c1c9;
}
.rpc .worlds a.on {
    background: #37404a;
    color: #fff;
    border-color: #4a5662;
}
.rpc .site-head {
    height: 153px;
    background: #303840;
    color: #e8ecef;
}
.rpc .brand h1 {
    font:
        39px/1.4 Georgia,
        serif;
    letter-spacing: 1px;
    text-shadow: none;
}
.rpc .brand p {
    font:
        12px/1.8 Consolas,
        monospace;
    letter-spacing: 2px;
}
.rpc .site-nav {
    background: #202831;
    border-color: #5b6470;
}
.rpc .nav-inner a {
    letter-spacing: 1px;
}
.rpc .layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 33px;
    background: #fafbf9;
    border-left: 1px solid #c6ced4;
    border-right: 1px solid #c6ced4;
}
.rpc .side-title {
    background: #3d4955;
    color: #eee;
    border: 0;
    padding: 6px 10px;
    font:
        11px/1.8 Consolas,
        monospace;
    letter-spacing: 1px;
}
.rpc .side a:before {
    display: none;
}
.rpc .side a {
    padding-left: 10px;
    color: #576a7d;
}
.rpc .heading h1 {
    font-family: Georgia, "Microsoft YaHei", serif;
    color: #384652;
}
.rpc .article blockquote {
    background: #e9eef1;
    border: 1px solid #b7c4ce;
}
.rpc .related {
    background: #e7edf0;
    border-color: #bcc9d2;
}
.rpc .related-title {
    background: #40505e;
    color: #fff;
    border-color: #bcc9d2;
}
.rpc .related-title small {
    color: #b3c2ce;
}
.rpc .article details {
    background: #edf2f5;
    border-color: #becbd4;
}
@media (max-width: 1000px) {
    .head-note {
        display: none;
    }
    .br .head-note {
        display: block;
    }
    .editor-grid {
        grid-template-columns: 1fr;
    }
    .editor-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .editor-aside .panel {
        margin: 0;
    }
    .admin-main {
        padding: 28px 25px;
    }
    .admin-layout {
        grid-template-columns: 175px minmax(0, 1fr);
    }
    .admin-side {
        padding: 25px 10px;
    }
    .perms {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 740px) {
    .utility {
        padding: 0 13px;
        font-size: 11px;
    }
    .worlds a {
        padding: 7px 9px;
    }
    .utility-right {
        gap: 10px;
    }
    .site-head {
        height: 117px;
    }
    .head-inner {
        gap: 15px;
        padding: 17px 20px;
    }
    .emblem {
        width: 66px;
        height: 66px;
        min-width: 66px;
    }
    .brand h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }
    .brand p {
        font-size: 11px;
        letter-spacing: 3px;
    }
    .menu {
        display: block;
    }
    .nav-inner {
        padding: 0 14px;
        gap: 16px;
        min-height: 43px;
    }
    .nav-inner a {
        font-size: 12px;
    }
    .nav-search input {
        width: 94px;
        font-size: 11px;
    }
    .nav-search button {
        padding: 3px 7px;
        font-size: 11px;
    }
    .layout,
    .br .layout,
    .rpc .layout {
        display: block;
        padding: 24px 20px 45px;
        border: 0;
        margin-top: 0;
    }
    .side {
        display: none;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 255px;
        padding: 25px;
        background: #f4f1e8;
        z-index: 40;
        overflow: auto;
        box-shadow: 5px 0 20px #0002;
    }
    .side.open {
        display: block;
    }
    .side-close {
        display: block;
        border: 0;
        background: none;
        float: right;
        font-size: 23px;
        padding: 0;
    }
    .backdrop.visible {
        display: block;
        position: fixed;
        inset: 0;
        background: #0005;
        z-index: 39;
    }
    .heading {
        margin-bottom: 20px;
    }
    .heading h1 {
        font-size: 25px;
    }
    .heading .btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    .archive-row {
        grid-template-columns: 1fr auto;
        gap: 3px 12px;
        padding: 12px 0;
    }
    .archive-number {
        grid-column: 1;
        font-size: 11px;
    }
    .archive-row .title-wrap {
        grid-column: 1;
    }
    .archive-date {
        grid-column: 2;
        grid-row: 1/3;
        font-size: 10px;
    }
    .archive-title {
        font-size: 15px;
    }
    .columns {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .doc-line {
        gap: 5px;
    }
    .format-tabs button {
        font-size: 11px;
        padding: 6px 10px;
    }
    .stamp {
        font-size: 10px;
    }
    .article blockquote {
        padding: 14px 16px;
        margin: 20px 0;
    }
    .related-title {
        padding: 10px 13px;
        font-size: 12px;
    }
    .related-title small {
        font-size: 10px;
    }
    .related ol {
        padding: 8px 13px;
    }
    .related li {
        font-size: 12px;
        gap: 8px;
    }
    .related .role {
        min-width: 48px;
        font-size: 10px;
    }
    .doc-footer {
        flex-direction: column;
        gap: 12px;
    }
    .page-foot {
        font-size: 10px;
    }
    .br .site-head {
        height: 141px;
    }
    .br .brand h1 {
        font-size: 31px;
    }
    .br .brand p {
        font-size: 12px;
    }
    .br .head-note {
        font-size: 9px;
    }
    .br .heading h1 {
        font-size: 26px;
    }
    .rpc .site-head {
        height: 126px;
    }
    .rpc .brand h1 {
        font-size: 28px;
    }
    .rpc .brand p {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .admin-top {
        height: 55px;
        padding: 0 16px;
    }
    .admin-brand {
        font-size: 14px;
    }
    .admin-brand small {
        display: none;
    }
    .admin-layout {
        display: block;
    }
    .admin-side {
        display: flex;
        white-space: nowrap;
        overflow: auto;
        gap: 5px;
        padding: 7px 12px;
        border-right: 0;
        border-bottom: 1px solid #d4dac9;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .admin-side a {
        margin: 0;
        padding: 6px 10px;
        font-size: 12px;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }
    .admin-side a.active {
        border-color: #627a51;
    }
    .nav-label {
        display: none;
    }
    .admin-main {
        padding: 23px 16px;
    }
    .admin-main .heading h1 {
        font-size: 23px;
    }
    .panel {
        padding: 17px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full {
        grid-column: auto;
    }
    .editor-aside {
        grid-template-columns: 1fr;
    }
    .source {
        min-height: 435px;
        font-size: 12px;
    }
    .preview {
        padding: 18px;
    }
    .savebar {
        align-items: flex-start;
        flex-direction: column;
    }
    .savebar .row {
        width: 100%;
        justify-content: flex-end;
    }
    .filters {
        gap: 8px;
    }
    .filters input {
        flex-basis: 100%;
    }
    .filters select {
        flex: 1;
    }
    .data-table {
        min-width: 560px;
    }
    .data-table.compact {
        min-width: 350px;
    }
    .data-table td,
    .data-table th {
        padding: 11px 8px;
    }
    .key-layout,
    .history-grid {
        grid-template-columns: 1fr;
    }
    .key-list,
    .revision-list {
        display: flex;
        overflow: auto;
    }
    .key-list button {
        min-width: 185px;
    }
    .revision {
        min-width: 180px;
        border-right: 1px solid #d6deca;
    }
    .perms {
        gap: 0 10px;
    }
    .check {
        font-size: 12px;
    }
    .login {
        padding: 0 5px;
        margin: 35px auto 70px;
    }
    .members {
        font-size: 12px;
    }
    .members li {
        gap: 8px;
    }
    .members button {
        padding: 3px 6px;
    }
    .members .index {
        min-width: 16px;
    }
    .dialog-body {
        padding: 20px;
    }
    .overview {
        gap: 25px;
    }
}
@media print {
    .utility,
    .site-nav,
    .side,
    .doc-footer,
    .page-foot,
    .admin-side,
    .toast-stack {
        display: none !important;
    }
    .site-head {
        height: 85px !important;
        background: white !important;
        color: black !important;
    }
    .brand h1 {
        font-size: 25px !important;
        text-shadow: none;
    }
    .emblem {
        height: 55px;
        width: 55px;
        min-width: 55px;
    }
    .layout {
        display: block !important;
        padding: 20px !important;
        background: white !important;
        border: 0 !important;
    }
    .doc-line .format-tabs {
        display: none;
    }
    .related {
        break-inside: avoid;
    }
    body {
        background: #fff !important;
    }
}

.contents {
    font-size: 12px;
    border-left: 2px solid #cfc7b7;
    padding: 5px 0 5px 15px;
    margin-bottom: 25px;
}
.contents summary {
    cursor: pointer;
    color: var(--accent);
}
.contents ol {
    margin: 8px 0;
    padding-left: 18px;
}
.contents .text-btn {
    font-size: 12px;
}
.article h1 {
    font-size: 25px;
}
.article h1,
.article h2,
.article h3 {
    scroll-margin-top: 25px;
}
.heading > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}
.article figure {
    margin: 20px 0;
}
.article figcaption {
    font-size: 12px;
    color: #8c8576;
    text-align: center;
}
.footnotes {
    font-size: 12px;
    color: #867c6b;
}

.article .lightblock {
    padding: 16px 20px;
    background: #ece9e0;
    margin: 18px 0;
}
.article .darkblock {
    padding: 16px 20px;
    background: #343b43;
    color: #eee;
    margin: 18px 0;
}
.article .blockquote {
    border: 1px solid #c0b9ab;
    padding: 16px 20px;
    margin: 18px 0;
}
