:root {
    --sea-950: #061a26;
    --sea-900: #082437;
    --sea-800: #0e344b;
    --sea-700: #174c64;
    --sea-600: #24677d;

    --pine-900: #183326;
    --pine-800: #244832;
    --pine-700: #315d43;

    --gold-700: #9b7134;
    --gold-600: #b88942;
    --gold-500: #c9a45c;
    --gold-300: #e6cf95;

    --paper-50: #fbf6e9;
    --paper-100: #f4ecd8;
    --paper-200: #eadbbd;
    --paper-300: #d9c49b;

    --ink: #162233;
    --text: #162233;
    --muted: #6f6657;
    --line: rgba(97, 75, 43, 0.22);

    --danger: #a32020;
    --success: #2f6b45;

    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 45px rgba(6, 26, 38, 0.14);
    --shadow-soft: 0 8px 24px rgba(6, 26, 38, 0.10);

    --font-body: Arial, Helvetica, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper-100);
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 12% 8%, rgba(201, 164, 92, 0.20), transparent 26%),
        radial-gradient(circle at 90% 12%, rgba(36, 103, 125, 0.16), transparent 28%),
        linear-gradient(180deg, #f9f1dd 0%, #efe0bf 52%, #e5d1aa 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(22,34,51,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,34,51,0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* Header */

.vh-header {
    position: relative;
    background: #061a26;
    color: #f8eed7;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    border-bottom: 1px solid rgba(201,164,92,0.45);
}

.vh-hero-strip {
    position: relative;
    min-height: 104px;
    padding: 18px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(6,26,38,0.92) 0%,
            rgba(6,26,38,0.58) 34%,
            rgba(6,26,38,0.28) 58%,
            rgba(6,26,38,0.86) 100%
        ),
        url("/assets/images/header-panorama.png");

    background-size: cover;
  background-position: center 75%;
    background-repeat: no-repeat;
}

.vh-hero-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.06),
            rgba(0,0,0,0.28)
        );
}

.vh-logo,
.vh-login-card {
    position: relative;
    z-index: 1;
}

.vh-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #f8eed7;
    text-decoration: none;
}

.vh-logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(201,164,92,0.82);
    color: #f0d79b;

    font-size: 2rem;

    background: rgba(6,26,38,0.56);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.14),
        0 4px 16px rgba(0,0,0,0.36);
}

.vh-logo-title {
    display: block;

    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;

    color: #fff6df;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.75),
        0 0 20px rgba(0,0,0,0.45);
}

.vh-logo-subtitle {
    display: block;
    margin-top: 6px;

    color: #f0d79b;

    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.7);
}

.vh-login-card {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #fff6df;

    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;

    padding: 10px 12px;
    border-radius: 16px;

    background: rgba(6,26,38,0.42);
    border: 1px solid rgba(201,164,92,0.28);

    backdrop-filter: blur(6px);
}

.vh-login-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;

    border: 1px solid rgba(201,164,92,0.75);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(6,26,38,0.64);
}

.vh-login-card strong {
    display: block;
    font-weight: 700;
}

.vh-login-card a {
    display: inline-block;
    margin-top: 2px;

    color: #f0d79b;

    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.vh-main-nav {
    min-height: 38px;
    padding: 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;

    background:
        linear-gradient(
            180deg,
            rgba(9,37,55,0.88),
            rgba(5,22,34,0.94)
        );

    border-top: 1px solid rgba(201,164,92,0.32);

    backdrop-filter: blur(10px);
}

.vh-main-nav a {
    position: relative;

    color: #f8eed7;
    text-decoration: none;

    padding: 11px 18px 10px;

    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;

    border-left: 1px solid rgba(255,255,255,0.07);
}

.vh-main-nav a:last-child {
    border-right: 1px solid rgba(255,255,255,0.07);
}

.vh-main-nav a:hover {
    background: rgba(201,164,92,0.15);
}

.vh-main-nav a.active {
    color: #f0d79b;
    background: rgba(201,164,92,0.18);
}

.vh-main-nav a.active::after {
    content: "";
    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 4px;

    height: 2px;

    background: #c9a45c;
    border-radius: 99px;
}

/* Layout */

.page-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 34px auto 56px;
}

.card,
.toolbar,
.admin-panel,
.person-info-card,
.person-section,
.people-intro,
.stat-card,
.person-card-list,
.person-card,
.relation-card,
.mention-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(251,246,233,0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card,
.toolbar,
.admin-panel,
.person-info-card,
.person-section {
    padding: 26px;
}

.card::before,
.person-info-card::before,
.person-section::before,
.people-intro::before,
.person-card-list::before,
.person-card::before,
.relation-card::before,
.mention-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201,164,92,0.20);
    border-radius: calc(var(--radius) - 7px);
    pointer-events: none;
}

.page-title,
.people-intro h1,
.person-hero h1,
.book-title {
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.page-title {
    margin: 0 0 20px;
    font-size: 2.15rem;
}

/* Forms/buttons */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--sea-900);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(97,75,43,0.30);
    border-radius: 12px;
    background: rgba(255,252,244,0.94);
    color: var(--ink);
    font: inherit;
    font-size: 0.96rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(201,164,92,0.42);
    border-color: var(--gold-600);
}

textarea {
    resize: vertical;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201,164,92,0.45);
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--sea-800);
    color: #fff7e6;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(6,26,38,0.12);
}

button:hover,
.btn:hover {
    background: var(--sea-700);
}

.btn-secondary {
    background: #6f6657;
}

.btn-green {
    background: var(--pine-800);
}

.danger,
.delete-person {
    background: var(--danger) !important;
    border-color: rgba(255,255,255,0.20) !important;
    color: #fff !important;
}

/* Messages */

.message {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.error {
    background: #ffe1e1;
    border: 1px solid #cc7777;
}

.success {
    background: #e1ffe7;
    border: 1px solid #77aa77;
}

.muted,
.empty {
    color: var(--muted);
}

.empty {
    font-style: italic;
}

/* Book */

.book-card {
    background:
        linear-gradient(180deg, rgba(255,252,244,0.96), rgba(244,236,216,0.96));
    font-family: var(--font-serif);
    line-height: 1.68;
}

.book-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin: 0 0 36px;
}

.chapter-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin: 42px 0 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--sea-900);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin: 34px 0 18px;
    color: var(--pine-800);
}

.paragraph {
    position: relative;
    padding: 0 0 18px;
}

.paragraph.admin {
    border-bottom: 1px dashed rgba(97,75,43,0.30);
    margin-bottom: 18px;
}

.paragraph-text {
    white-space: normal;
    font-size: 1.08rem;
    line-height: 1.68;
    max-width: 780px;
}

.paragraph-text p {
    margin: 0 0 1.1em;
}

.paragraph textarea {
    min-height: 180px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.55;
}

.admin-tools {
    font-family: var(--font-body);
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.status,
.save-state {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
}

/* People */

.people-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
}

.people-intro {
    padding: 26px;
}

.people-intro h1 {
    margin: 0 0 10px;
    font-size: 2.35rem;
}

.people-intro p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.55;
}

.people-stats {
    display: grid;
    gap: 12px;
}

.stat-card {
    padding: 20px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sea-900);
    line-height: 1;
}

.stat-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.people-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.people-toolbar input[type="search"] {
    flex: 1;
    min-width: 220px;
}

.people-toolbar .btn,
.people-toolbar button {
    white-space: nowrap;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.person-card-list {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.person-card-list:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.person-card-list h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.28rem;
}

.person-card-list h2 a,
.person-name,
.relation-name {
    color: var(--sea-900);
    text-decoration: none;
}

.person-card-list h2 a:hover,
.person-name:hover,
.relation-name:hover {
    text-decoration: underline;
}

.person-years,
.person-meta,
.relation-type,
.relation-years,
.mention-context {
    color: var(--muted);
    font-size: 0.92rem;
}

.person-card-actions,
.person-actions,
.relation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.person-card-actions a,
.person-card-actions button,
.person-actions a,
.relation-actions a {
    border: 1px solid rgba(97,75,43,0.22);
    background: rgba(255,252,244,0.72);
    color: var(--sea-900);
    border-radius: 999px;
    padding: 7px 10px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    box-shadow: none;
}

.person-card-actions a:hover,
.person-card-actions button:hover,
.person-actions a:hover,
.relation-actions a:hover {
    background: var(--paper-200);
}

/* Person page */

.person-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(201,164,92,0.22), transparent 30%),
        linear-gradient(135deg, rgba(255,252,244,0.92), rgba(234,219,189,0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.person-hero h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.3vw, 2.5rem);
    line-height: 1;
}

.person-years-large {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 8px;
}

.person-actions-large {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.person-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 22px;
    margin-bottom: 24px;
}

.person-info-card h2,
.person-section h2 {
    margin-top: 0;
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.person-detail-list {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 9px 14px;
    margin: 0;
}

.person-detail-list dt {
    color: var(--muted);
    font-weight: 800;
}

.person-detail-list dd {
    margin: 0;
}

.relation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.relation-card,
.mention-card {
    padding: 16px;
}

.relation-name {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.08rem;
}

.mention-list {
    display: grid;
    gap: 14px;
}

.mention-text {
    line-height: 1.62;
}

/* Local family tree */

.tree-layout {
    display: grid;
    gap: 24px;
}

.tree-row {
    text-align: center;
}

.tree-title {
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.tree-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.person-card {
    min-width: 210px;
    max-width: 280px;
    padding: 16px;
}

.person-card.main {
    background:
        linear-gradient(180deg, rgba(230,207,149,0.38), rgba(255,252,244,0.96));
    border-color: rgba(155,113,52,0.38);
    transform: scale(1.04);
}

/* Selection panel */

.selection-panel {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 390px;
    max-width: calc(100% - 44px);
    background: #fffaf0;
    border: 1px solid rgba(97,75,43,0.34);
    box-shadow: 0 18px 45px rgba(0,0,0,0.24);
    border-radius: 20px;
    padding: 18px;
    z-index: 9999;
    font-family: var(--font-body);
}

.selection-panel h3 {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.selection-panel hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.search-result {
    padding: 9px;
    border: 1px solid var(--line);
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 12px;
    background: rgba(255,252,244,0.82);
}

.search-result:hover,
.search-result.selected {
    background: #efe0bf;
    border-color: var(--gold-600);
}

.search-meta {
    color: var(--muted);
    font-size: 0.85em;
}

/* Full tree page */

#network {
    background:
        radial-gradient(circle at 20% 20%, rgba(201,164,92,0.14), transparent 30%),
        linear-gradient(180deg, rgba(255,252,244,0.94), rgba(234,219,189,0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.familytree-all-page {
    height: calc(100vh - 132px);
    overflow: hidden;
}

.familytree-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    height: 100%;
    gap: 18px;
}

.familytree-sidebar {
    overflow-y: auto;
    min-height: 0;
}

#network {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.tree-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-name {
    font-family: var(--font-serif);
    font-weight: 800;
    color: var(--sea-900);
}

/* Responsive */

@media (max-width: 950px) {
    .people-hero,
    .person-hero,
    .person-layout {
        grid-template-columns: 1fr;
    }

    .person-actions-large {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .vh-hero-strip {
        min-height: 82px;
        padding: 14px 16px;
        align-items: flex-start;
        gap: 12px;
    }

    .vh-logo-mark {
        width: 46px;
        height: 46px;
        font-size: 1.55rem;
    }

    .vh-logo-title {
        font-size: 1.15rem;
        letter-spacing: 0.05em;
    }

    .vh-logo-subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.11em;
    }

    .vh-login-card {
        display: none;
    }

    .vh-main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10px;
    }

    .vh-main-nav a {
        flex: 0 0 auto;
        padding: 10px 12px 9px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .page-shell {
        width: 100%;
        margin: 0 auto 34px;
        padding: 0 12px;
    }

    .card,
    .toolbar,
    .admin-panel,
    .person-info-card,
    .person-section,
    .people-intro,
    .stat-card {
        padding: 18px;
        border-radius: 16px;
    }

    .form-grid,
    .person-detail-list {
        grid-template-columns: 1fr;
    }

    .people-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .person-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .selection-panel {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }
}
/* Archive/person layout */

.person-page {
    margin-top: 28px;
}

.archive-title-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: 24px;
    border: 1px solid rgba(97,75,43,0.26);
    background:
        radial-gradient(circle at 12% 18%, rgba(201,164,92,0.22), transparent 30%),
        linear-gradient(135deg, rgba(255,252,244,0.94), rgba(234,219,189,0.94));
    box-shadow: var(--shadow);
}

.archive-kicker {
    color: var(--gold-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.archive-title-card h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.05;
    color: var(--sea-900);
}

.archive-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.person-former-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
}

.person-name-history-kicker {
    margin-top: 8px;
}

.person-name-history {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.person-name-history-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(201, 164, 92, 0.1);
    border: 1px solid rgba(201, 164, 92, 0.22);
}

.person-name-history-headline {
    font-weight: 600;
    color: var(--sea-900);
    line-height: 1.45;
}

.person-name-history-detail {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.person-former-name {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(201, 164, 92, 0.18);
    color: #5c3d1c;
    font-size: 0.9rem;
}

.archive-title-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.archive-main {
    display: grid;
    gap: 22px;
}

.archive-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.archive-card,
.archive-tag-card,
.archive-illustration-card,
.archive-mini-menu {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(97,75,43,0.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(251,246,233,0.97));
    box-shadow: var(--shadow-soft);
}

.archive-card {
    padding: 24px;
}

.archive-card::before,
.archive-tag-card::before,
.archive-illustration-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 15px;
    border: 1px solid rgba(201,164,92,0.20);
    pointer-events: none;
}

.archive-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(97,75,43,0.18);
}

.archive-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sea-900);
    color: var(--gold-300);
    border: 1px solid rgba(201,164,92,0.42);
}

.archive-card-header h2 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--sea-900);
    font-size: 1.45rem;
}

.archive-text {
    line-height: 1.7;
    font-size: 1.02rem;
}

.archive-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 4px solid var(--gold-500);
    background: rgba(234,219,189,0.36);
    line-height: 1.6;
}

.archive-tag-card {
    padding: 42px 22px 24px;
    background:
        linear-gradient(180deg, #f8ecd1, #e9d2a5);
    transform: rotate(1.2deg);
}

.tag-hole {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--paper-100);
    border: 1px solid rgba(97,75,43,0.35);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.18);
}

.archive-tag-label {
    color: var(--gold-700);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.archive-tag-card h2 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--sea-900);
    font-size: 1.5rem;
}

.archive-tag-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.archive-stamp {
    display: inline-block;
    margin-top: 22px;
    padding: 6px 12px;
    border: 2px solid rgba(163,32,32,0.58);
    color: rgba(163,32,32,0.70);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    transform: rotate(-6deg);
}

.archive-illustration-card {
    padding: 24px;
    text-align: center;
}

.archive-compass {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 2px solid rgba(201,164,92,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-700);
    font-size: 3rem;
    background: rgba(255,252,244,0.78);
}

.archive-illustration-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.archive-illustration-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.archive-mini-menu {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.archive-mini-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--sea-900);
    background: rgba(255,252,244,0.72);
    border: 1px solid rgba(97,75,43,0.18);
    font-weight: 700;
}

.archive-mini-menu a:hover {
    background: var(--paper-200);
}

.relation-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 950px) {
    .archive-title-card,
    .archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-title-actions {
        justify-content: flex-start;
    }

    .archive-side {
        position: static;
    }
}
/* People archive page */

.people-page {
    margin-top: 28px;
}

.people-title-card h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.people-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.people-archive-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.people-archive-main {
    display: grid;
    gap: 22px;
}

.people-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.people-search-card {
    margin-bottom: 0;
}

.people-search-form label {
    margin-bottom: 8px;
}

.people-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.people-search-status {
    margin: 14px 0 0;
    color: var(--muted);
}

.people-archive-grid {
    align-items: stretch;
}

.person-archive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(97,75,43,0.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(251,246,233,0.97));
    box-shadow: var(--shadow-soft);
}

.person-archive-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 13px;
    border: 1px solid rgba(201,164,92,0.18);
    pointer-events: none;
}

.person-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gold-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.person-archive-card h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.15;
    color: var(--sea-900);
}

.person-archive-card h2 a {
    color: inherit;
    text-decoration: none;
}

.person-archive-card h2 a:hover {
    text-decoration: underline;
}

.person-list-notes {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.48;
}

.person-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(234,219,189,0.52);
    border: 1px solid rgba(97,75,43,0.18);
    color: var(--sea-900);
    font-size: 0.78rem;
    font-weight: 700;
}

.person-archive-card .person-card-actions {
    margin-top: auto;
    padding-top: 14px;
}

.person-archive-card .person-card-actions a,
.person-archive-card .person-card-actions button {
    position: relative;
    z-index: 1;
}

@media (max-width: 950px) {
    .people-archive-layout {
        grid-template-columns: 1fr;
    }

    .people-archive-side {
        position: static;
    }
}

@media (max-width: 700px) {
    .people-search-row {
        grid-template-columns: 1fr;
    }

    .people-stat-grid {
        grid-template-columns: 1fr;
    }

    .person-archive-card {
        min-height: 0;
    }
}
/* Book archive page */

.book-page {
    margin-top: 28px;
}

.book-title-card h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.book-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.book-archive-main {
    display: grid;
    gap: 22px;
}

.book-archive-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.book-chapter-card {
    font-family: var(--font-serif);
}

.book-section {
    margin-top: 26px;
}

.book-section:first-of-type {
    margin-top: 0;
}

.book-section h3 {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(97,75,43,0.18);
    color: var(--pine-800);
    font-family: var(--font-serif);
    font-size: 1.35rem;
}

.book-paragraph {
    margin-bottom: 18px;
}

.book-paragraph:last-child {
    margin-bottom: 0;
}

.book-paragraph .paragraph-text {
    max-width: 820px;
    font-size: 1.08rem;
    line-height: 1.72;
    color: var(--ink);
}

.paragraph-edit-form textarea {
    min-height: 180px;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.6;
}

.book-mini-menu {
    max-height: 420px;
    overflow: auto;
}

.book-mini-menu a {
    border-radius: 14px;
    line-height: 1.3;
}

@media (max-width: 950px) {
    .book-archive-layout {
        grid-template-columns: 1fr;
    }

    .book-archive-side {
        position: static;
    }
}
/* Book editor */

.paragraph-status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.paragraph-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(97,75,43,0.22);
    background: rgba(234,219,189,0.45);
}

.status-ferdig {
    background: rgba(47,95,70,0.14);
    color: var(--pine-800);
}

.status-under_arbeid {
    background: rgba(201,164,92,0.18);
    color: var(--gold-700);
}

.status-ocr {
    background: rgba(14,43,57,0.10);
    color: var(--sea-900);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.editor-toolbar button {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(97,75,43,0.28);
    background: rgba(255,255,255,0.72);
    color: var(--sea-900);
    font-weight: 700;
    cursor: pointer;
}

.html-editor {
    min-height: 180px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(97,75,43,0.28);
    background: rgba(255,255,255,0.82);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.65;
    outline: none;
}

.html-editor:focus {
    border-color: rgba(14,43,57,0.55);
    box-shadow: 0 0 0 3px rgba(14,43,57,0.08);
}

.book-layout-heading .paragraph-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--sea-900);
}

.book-layout-quote .paragraph-text {
    padding-left: 18px;
    border-left: 4px solid rgba(201,164,92,0.75);
    font-style: italic;
    color: var(--pine-800);
}
/* Book images */

.book-image-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.book-image-item {
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(97,75,43,0.18);
    background: rgba(255,255,255,0.55);
}

.book-image-item img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
}

.book-image-item figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.image-upload-box {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(97,75,43,0.35);
    background: rgba(234,219,189,0.22);
}

.image-upload-box input[type="file"] {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(97,75,43,0.18);
}
/* Book image placement */

.image-size-small {
    max-width: 260px;
}

.image-size-medium {
    max-width: 520px;
}

.image-size-large {
    max-width: 780px;
}

.image-size-full {
    max-width: 100%;
}

.image-position-before_text,
.image-position-after_text,
.image-position-inline {
    margin-left: 0;
    margin-right: auto;
}

.image-position-left {
    float: left;
    width: 42%;
    margin: 6px 22px 14px 0;
}

.image-position-right {
    float: right;
    width: 42%;
    margin: 6px 0 14px 22px;
}

.image-position-left img,
.image-position-right img {
    max-height: 360px;
}

.book-paragraph::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 700px) {
    .image-position-left,
    .image-position-right {
        float: none;
        width: 100%;
        margin: 14px 0;
    }
}
/* Book image code panel */

.book-image-code-panel {
    display: grid;
    gap: 12px;
}

.book-image-code-panel h3 {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.book-image-code-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(97,75,43,0.18);
    background: rgba(255,255,255,0.55);
}

.book-image-code-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.book-image-code-text {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.book-image-code-text strong {
    font-size: 0.82rem;
    line-height: 1.25;
    color: var(--sea-900);
}

.book-image-code-text code {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(14,43,57,0.08);
    font-size: 0.78rem;
    word-break: break-all;
}

.copy-image-code {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(97,75,43,0.25);
    background: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}
.copy-image-code {
    color: var(--sea-900);
}

.copy-image-code:hover {
    color: var(--sea-900);
}
.html-editor {
    white-space: pre-wrap;
}

.html-editor .image-code-token {
    color: #b42318;
    background: rgba(180, 35, 24, 0.08);
    border: 1px solid rgba(180, 35, 24, 0.25);
    border-radius: 6px;
    padding: 1px 4px;
    font-weight: 800;
}
.paragraph-text .book-image-item {
    margin-top: 4px;
    margin-bottom: 12px;
}

.paragraph-text .image-position-left {
    float: left;
    margin: 4px 18px 12px 0;
}

.paragraph-text .image-position-right {
    float: right;
    margin: 4px 0 12px 18px;
}

.paragraph-text .image-size-small {
    width: 180px;
}

.paragraph-text .image-size-medium {
    width: 300px;
}

.paragraph-text .image-size-large {
    width: 430px;
}

.paragraph-text .image-size-full {
    width: 100%;
    float: none;
    margin: 16px 0;
}

.paragraph-text::after {
    content: "";
    display: block;
    clear: both;
}
/* Book right side scroll */

.book-archive-side {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding-right: 6px;
}

.book-archive-side::-webkit-scrollbar {
    width: 8px;
}

.book-archive-side::-webkit-scrollbar-thumb {
    background: rgba(97,75,43,0.28);
    border-radius: 999px;
}

.book-archive-side::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.25);
}
.book-image-code-item {
    cursor: pointer;
}

.book-image-code-item:hover {
    background: rgba(255,255,255,0.82);
}
/* Image edit modal */

.image-edit-modal-backdrop[hidden] {
    display: none;
}

.image-edit-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(14, 43, 57, 0.72);
    backdrop-filter: blur(3px);
}

.image-edit-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 22px;
    background: rgba(250, 246, 235, 0.98);
    box-shadow: 0 28px 90px rgba(0,0,0,0.38);
    border: 1px solid rgba(97,75,43,0.35);
}

.image-edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(97,75,43,0.18);
}

.image-edit-modal-header h2 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.image-edit-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(97,75,43,0.25);
    background: rgba(255,255,255,0.75);
    color: var(--sea-900);
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
}

.image-edit-modal-body {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.image-edit-modal-body img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(14,43,57,0.06);
    border: 1px solid rgba(97,75,43,0.18);
}

.image-edit-modal-body label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--sea-900);
}

.image-edit-modal-body input,
.image-edit-modal-body select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(97,75,43,0.25);
    background: rgba(255,255,255,0.85);
    color: var(--sea-900);
}

.image-edit-modal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

#imageEditModalState {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--sea-900);
}
/* Audit log */

.audit-log-table-wrap {
    overflow-x: auto;
}

.audit-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.audit-log-table th,
.audit-log-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(97,75,43,0.16);
    vertical-align: top;
    text-align: left;
}

.audit-log-table th {
    color: var(--sea-900);
    font-weight: 900;
    background: rgba(255,255,255,0.45);
}

.audit-log-table td {
    color: var(--sea-900);
}

.audit-action {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
}

.audit-action-create {
    background: rgba(24, 128, 56, 0.12);
    color: #176b32;
}

.audit-action-update {
    background: rgba(20, 80, 120, 0.12);
    color: #164f78;
}

.audit-action-delete {
    background: rgba(180, 35, 24, 0.12);
    color: #9f2419;
}

.audit-value {
    display: inline-block;
    max-width: 260px;
    padding: 5px 7px;
    border-radius: 8px;
    cursor: help;
    line-height: 1.35;
}

.audit-old {
    background: rgba(180, 35, 24, 0.08);
    border: 1px solid rgba(180, 35, 24, 0.18);
}

.audit-new {
    background: rgba(24, 128, 56, 0.08);
    border: 1px solid rgba(24, 128, 56, 0.18);
}

.audit-tooltip[hidden] {
    display: none;
}

.audit-tooltip {
    position: fixed;
    z-index: 10000;
    width: min(520px, calc(100vw - 32px));
    max-height: 340px;
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(250, 246, 235, 0.98);
    border: 1px solid rgba(97,75,43,0.32);
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    color: var(--sea-900);
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.audit-revert-button {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.muted {
    color: rgba(14,43,57,0.48);
    font-size: 0.84rem;
}
/* Image upload modal */

.image-upload-modal-backdrop[hidden] {
    display: none;
}

.image-upload-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(14, 43, 57, 0.72);
    backdrop-filter: blur(3px);
}
.audit-action-revert {
    background: rgba(97, 75, 43, 0.14);
    color: #614b2b;
}
/* Text edit modal */

.text-edit-modal-backdrop[hidden] {
    display: none;
}

.text-edit-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(14, 43, 57, 0.72);
    backdrop-filter: blur(3px);
}

.text-edit-modal {
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 22px;
    background: rgba(250, 246, 235, 0.98);
    box-shadow: 0 28px 90px rgba(0,0,0,0.38);
    border: 1px solid rgba(97,75,43,0.35);
}

.text-edit-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    padding: 20px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.text-edit-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

#textEditContent {
    width: 100%;
    min-height: 420px;
    resize: vertical;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(97,75,43,0.28);
    background: rgba(255,255,255,0.9);
    color: var(--sea-900);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.55;
}

.text-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.text-edit-row label,
.text-edit-main label {
    display: grid;
    gap: 6px;
    font-weight: 800;
    color: var(--sea-900);
}

.text-edit-row select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(97,75,43,0.25);
    background: rgba(255,255,255,0.85);
    color: var(--sea-900);
}

.text-edit-image-codes {
    display: grid;
    gap: 10px;
    align-content: start;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    padding-right: 6px;
}

.text-edit-image-codes h3 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--sea-900);
}

.text-edit-image-code {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(97,75,43,0.18);
    background: rgba(255,255,255,0.65);
    color: var(--sea-900);
    text-align: left;
    cursor: pointer;
}

.text-edit-image-code img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.text-edit-image-code span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.text-edit-image-code code {
    font-size: 0.78rem;
    background: rgba(14,43,57,0.08);
    border-radius: 8px;
    padding: 4px 6px;
}

@media (max-width: 850px) {
    .text-edit-modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .text-edit-image-codes {
        max-height: 260px;
    }
}
body.modal-open {
    overflow: hidden;
}

.text-edit-modal-backdrop {
    overflow-y: auto;
}
/* Person link modal */

.person-link-modal[hidden] {
    display: none;
}

.person-link-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(14, 43, 57, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.person-link-box {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(250, 246, 235, 0.98);
    border: 1px solid rgba(97,75,43,0.35);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.person-link-results {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.person-link-result {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(14,43,57,0.14);
    background: #ffffff;
    color: var(--sea-900);
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
}

.person-link-result:hover {
    background: #f3ead8;
}
.mention-link {
    display: block;
    color: var(--sea-900);
    text-decoration: none;
}

.mention-link:hover {
    text-decoration: underline;
}
.book-person-popup-backdrop[hidden] {
    display: none;
}

.book-person-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(14, 43, 57, 0.58);
    padding: 28px;
    overflow-y: auto;
}

.book-person-popup-box {
    position: relative;
    width: min(1100px, calc(100vw - 56px));
    margin: 0 auto;
    background: #f8f1df;
    border: 1px solid rgba(97, 75, 43, 0.35);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.38);
}

.book-person-popup-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(14,43,57,0.2);
    border-radius: 999px;
    background: #fffaf0;
    color: #0e2b39;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.book-person-popup-content .archive-layout {
    margin-top: 18px;
}

.book-person-popup-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.book-person-popup-frame {
    display: block;
    width: 100%;
    min-height: min(70vh, 620px);
    border: 1px solid rgba(97, 75, 43, 0.22);
    border-radius: 16px;
    background: #fffaf0;
}

body.familytree-embed {
    background: #f8f1df;
}

body.familytree-embed::before {
    display: none;
}

.familytree-embed-shell {
    margin-top: 0;
    padding: 12px;
}

.familytree-embed-shell .card {
    box-shadow: none;
    border: 0;
    padding: 0;
}

.book-person-popup-content .archive-side {
    display: none;
}

.book-person-popup-content .archive-layout {
    grid-template-columns: 1fr;
}
.audit-action-link_person {
    background: rgba(155, 113, 52, 0.16);
    color: #7a5424;
}