.nav-form {
    margin: 0;
}

.nav-form button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #b6c2c7;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.nav-form button:hover {
    color: var(--gold2);
}

.check-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.panel .check-row input {
    accent-color: var(--gold);
    height: 18px;
    width: 18px;
}

.account-heading {
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 28px;
}

.account-heading h1 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 400;
    margin: 0;
}

.account-heading p {
    color: var(--muted);
    margin: 12px 0 0;
}

.account-state,
.card-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.account-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.character-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 30px;
}

.character-card h2 {
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    margin: 12px 0 24px;
}

.character-card dl {
    margin: 0;
}

.character-card dl div {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
}

.character-card dt {
    color: var(--muted);
}

.character-card dd {
    margin: 0;
}

@media (max-width: 760px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
}

.admin-intro {
    color: var(--muted);
    max-width: 680px;
}

.admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
}

.admin-grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 26px;
}

.admin-grid span {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-grid small {
    color: var(--muted);
}

.news-list,
.article-list {
    display: grid;
    gap: 22px;
}

.article-list {
    margin-top: 40px;
}

.article-list article {
    border-top: 1px solid var(--line);
    padding: 24px 0;
}

.article-list time,
.news-article time {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.article-list h2,
.news-article h1 {
    font-family: Georgia, serif;
    font-weight: 400;
}

.article-list p,
.news-summary,
.news-body {
    color: var(--muted);
    line-height: 1.75;
}

.admin-title-row {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-title-row h1,
.admin-editor h1 {
    font-family: Georgia, serif;
    font-size: 54px;
    font-weight: 400;
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 16px;
    text-align: left;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-table td small {
    color: var(--muted);
    display: block;
    margin-top: 5px;
}

.admin-table td a {
    color: var(--gold2);
}

.admin-editor {
    max-width: 880px;
}

.admin-editor form {
    display: flex;
    flex-direction: column;
    margin-top: 35px;
}

.admin-editor label {
    font-size: 13px;
    font-weight: 700;
    margin: 18px 0 8px;
}

.admin-editor input,
.admin-editor select,
.admin-editor textarea {
    background: #0b1115;
    border: 1px solid #30414b;
    color: var(--text);
    font: inherit;
    padding: 13px;
}

.admin-editor input,
.admin-editor select {
    min-height: 48px;
}

.admin-editor textarea {
    line-height: 1.55;
    resize: vertical;
}

.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus {
    border-color: var(--gold);
    outline: 2px solid #dfa94a66;
}

.editor-row {
    align-items: end;
    display: flex;
    gap: 28px;
}

.editor-row > div {
    display: flex;
    flex-direction: column;
}

.admin-editor .editor-row .check-row {
    margin-bottom: 14px;
}

.admin-editor .check-row input {
    accent-color: var(--gold);
    min-height: auto;
    width: 18px;
}

.editor-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

.admin-search {
    margin: 30px 0;
    max-width: 720px;
}

.admin-search label,
.moderation-card label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-search > div {
    display: flex;
    gap: 10px;
}

.admin-search input,
.moderation-card input,
.moderation-card textarea {
    background: #0b1115;
    border: 1px solid #30414b;
    color: var(--text);
    font: inherit;
    min-height: 48px;
    padding: 12px;
    width: 100%;
}

.moderation-card form {
    display: flex;
    flex-direction: column;
}

.moderation-card label:not(:first-child) {
    margin-top: 16px;
}

.danger {
    background: #972f39;
    border-color: #bd4651;
    color: #fff;
}

@media (max-width: 760px) {
    .admin-title-row,
    .editor-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.news-article {
    max-width: 820px;
}

.news-article h1 {
    font-size: clamp(44px, 7vw, 72px);
    line-height: 1.05;
}

.news-summary {
    font-size: 20px;
}

.news-body {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 30px;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}
