:root {
    --ink: #2b2c30;
    --muted: #6c6b73;
    --paper: #f0f0f0;
    --primary: #584d82;
    --border: #dedce3;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Arial, 'Segoe UI', sans-serif;
    color-scheme: light;
}
.voice-memory {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.voice-memory audio,
.memory-card audio {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
}
.memory-card {
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-wrap: anywhere;
}
.memory-card h2,
.memory-card h3 {
    margin-top: 0.5rem;
}
.life-timeline {
    list-style: none;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid var(--border);
}
.life-timeline > li {
    position: relative;
    padding: 0 0 2rem 1rem;
    overflow-wrap: anywhere;
}
.life-timeline > li::before {
    content: '';
    position: absolute;
    left: -1.9rem;
    top: 0.4rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--primary);
}
.life-timeline h3 {
    margin: 0.5rem 0 1rem;
}
.life-timeline blockquote {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 3px solid var(--primary);
}
.life-timeline audio,
.life-timeline video {
    max-width: 100%;
}
@media (max-width: 600px) {
    .life-timeline {
        padding-left: 0.8rem;
    }
    .life-timeline > li {
        padding-left: 0.5rem;
    }
    .life-timeline > li::before {
        left: -1.2rem;
    }
}
.creation-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0;
    list-style: none;
    margin: 1.5rem 0;
}
.creation-steps li {
    padding: 0.8rem;
    border-bottom: 3px solid var(--border);
    overflow-wrap: anywhere;
}
.creation-steps [aria-current='step'] {
    border-color: var(--primary);
    font-weight: bold;
}
.creation-portrait {
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}
.creation-workspace details {
    margin: 1rem 0;
}
.creation-workspace summary {
    cursor: pointer;
    padding: 0.8rem 0;
    font-weight: bold;
}
.draft-preview a {
    margin-left: 0.5rem;
}
@media (max-width: 600px) {
    .creation-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .creation-workspace .form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
.editor-page-list {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
}
.editor-page-list .checkbox-label {
    padding: 0.6rem;
    margin: 0;
    border-bottom: 1px solid #eee;
}
.editor-person {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.editor-person h3 {
    margin-bottom: 0.4rem;
}
.editor-person p {
    margin: 0;
    overflow-wrap: anywhere;
}
.editor-person .button-group {
    align-items: center;
}
@media (max-width: 600px) {
    .editor-person {
        flex-direction: column;
        align-items: stretch;
    }
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.6 var(--sans);
}
a {
    color: var(--primary);
    text-underline-offset: 4px;
}
a:hover {
    opacity: 0.85;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a,
input,
textarea,
select {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.5;
    cursor: wait;
}
h1,
h2,
h3,
p {
    margin: 0 0 1rem;
}
h1 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.22;
}
h2 {
    font-size: 1.7rem;
    line-height: 1.3;
}
h3 {
    font-size: 1.15rem;
}
img {
    max-width: 100%;
    height: auto;
}
form {
    margin: 0;
}
fieldset {
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0 0 2rem;
}
legend {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
}
label {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
input:not([type='radio']):not([type='checkbox']):not([type='range']),
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    margin-top: 0.4rem;
    border: 1px solid #c7c5ce;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}
textarea {
    resize: vertical;
}
input[type='file'] {
    max-width: 100%;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid #9183c2;
    outline-offset: 3px;
}
.site-header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem max(5%, calc((100% - 1240px) / 2));
    border-bottom: 1px solid var(--border);
}
.brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #28252c;
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1.25;
}
.brand img {
    width: 42px;
    height: 46px;
    object-fit: contain;
}
.brand small {
    display: block;
    font: 10px var(--sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 5px;
    color: var(--muted);
}
.site-header nav {
    min-width: 0;
    display: flex;
    gap: 1.6rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
}
.site-header nav a:not(.button) {
    text-decoration: none;
    color: var(--ink);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
}
.button-small {
    padding: 0.55rem 1rem;
}
.button-secondary {
    background: #fff;
    color: var(--primary);
    border-color: #c9c4d7;
}
.button-light {
    background: #fff;
    color: #2b2c30;
    border-radius: 0;
    padding: 1rem 1.7rem;
}
.button-danger {
    background: #9d3b3b;
}
.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.danger {
    color: #a62f2f;
}
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.muted,
.help {
    color: var(--muted);
}
.help {
    font-size: 0.85rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.hero {
    min-height: calc(100svh - 90px);
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(#0009, #000b),
        url('/assets/hero.jpg') center/cover;
}
.hero-content {
    max-width: 900px;
    padding: 5rem 1.5rem;
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 4rem);
}
.hero p:not(.eyebrow) {
    max-width: 690px;
    margin: 2rem auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e2dfdf;
}
.section {
    padding: 6rem max(7%, calc((100% - 1120px) / 2));
}
.about-section {
    background: #6b6b6b;
    color: #fff;
    text-align: center;
}
.about-section h2,
.section-heading h2,
.callout h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
}
.about-section > p:last-child {
    max-width: 720px;
    margin: 1.8rem auto 0;
    color: #eee;
    font-size: 1.1rem;
}
.divider {
    width: 55px;
    height: 1px;
    background: #d5d5d5;
    margin: 2rem auto;
}
.features-section {
    background: #fff;
}
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 4rem;
}
.feature {
    display: flex;
    gap: 1.2rem;
}
.feature > span {
    font: 1.5rem var(--serif);
    color: #aaa;
    border-top: 1px solid #aaa;
    padding-top: 0.4rem;
    min-width: 35px;
}
.feature p {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 440px;
}
.callout {
    text-align: center;
    padding: 5rem 1.5rem;
    background: #e7e5e8;
}
.callout h2 {
    max-width: 640px;
    margin: 0 auto 2rem;
}
.site-footer {
    background: #fff;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: 0.8rem;
}
.site-footer > a {
    font: 1.3rem var(--serif);
    color: #343037;
    text-decoration: none;
}
.site-footer p {
    margin: 0.5rem 0 1rem;
}
.workspace {
    max-width: 1240px;
    margin: auto;
    padding: 3rem 2rem 5rem;
    min-height: 65vh;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}
.page-heading .eyebrow {
    color: var(--muted);
}
.page-heading h1 {
    margin-bottom: 0.5rem;
}
.panel {
    background: #fff;
    border: 1px solid #e3e1e7;
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 1px 3px #00000005;
}
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state h1 {
    font-size: 1.6rem;
}
.auth-page {
    display: grid;
    place-items: center;
    min-height: 75vh;
    padding: 3rem 1rem;
}
.auth-card {
    width: min(100%, 440px);
}
.auth-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.auth-logo {
    display: block;
    object-fit: contain;
    margin: 0 auto 1.5rem;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}
.notice,
.error-message {
    padding: 1rem 1.5rem;
    border: 1px solid #c8dbcb;
    background: #eef7ef;
    border-radius: 4px;
    margin: 1rem auto;
    max-width: 1176px;
}
.error-message {
    border-color: #e5c3c3;
    background: #fff2f2;
    color: #8b2d2d;
}
.search-form {
    display: flex;
    gap: 0.8rem;
    max-width: 600px;
    margin-bottom: 2rem;
}
.search-form input {
    margin: 0 !important;
    min-width: 0;
}
.memorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.memorial-card {
    padding: 0;
    overflow: hidden;
}
.card-image {
    display: block;
    background: #e4e2e4;
}
.card-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-body {
    padding: 1.5rem;
}
.card-body h2 {
    font-size: 1.3rem;
    margin: 0.7rem 0;
}
.card-body h2 a {
    color: var(--ink);
    text-decoration: none;
}
.card-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.3rem;
    font-size: 0.86rem;
}
.tag {
    font-size: 0.7rem;
    color: #645b75;
    background: #f1eef7;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}
.life-dates {
    font-family: var(--serif);
    color: var(--muted);
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.form-workspace {
    max-width: 1040px;
}
.editor-form {
    padding: 2.5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.2rem;
}
.two-columns {
    grid-template-columns: 1fr 1fr;
}
.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.3rem;
}
.theme-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}
.theme-choice {
    border: 1px solid #d4c9c5;
    border-radius: 4px;
    padding: 1rem;
    cursor: pointer;
    font-family: var(--memorial-font, var(--serif));
    color: var(--memorial-ink, #3e3030);
    background: var(--memorial-bg, #fff);
    font-size: 0.8rem;
}
.theme-choice input {
    margin-right: 0.4rem;
    accent-color: var(--primary);
}
.theme-choice small {
    display: block;
    font-size: 2rem;
    text-align: center;
    margin-top: 0.5rem;
}
.theme-choice:has(input:checked) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.materials-editor,
.danger-zone {
    margin-top: 2rem;
}
.upload-form {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin: 1.5rem 0;
}
.upload-form label {
    margin: 0;
    flex: 1;
}
.attachment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.attachment {
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 4px;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
}
.attachment > img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.attachment p {
    margin: 0.5rem 0;
}
.attachment small {
    color: var(--muted);
}
.attachment-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.75rem;
}
.danger-zone {
    border-color: #e3cccc;
}
.danger-zone h2 {
    font-size: 1.3rem;
}
.theme-1 {
    --memorial-bg: #fff;
    --memorial-ink: #3e3030;
    --memorial-font: Georgia, 'Times New Roman', serif;
}
.theme-2 {
    --memorial-bg: #f6f6f6;
    --memorial-ink: #3e3030;
    --memorial-font: Arial, sans-serif;
}
.theme-3 {
    --memorial-bg: #f1e6de;
    --memorial-ink: #563b2c;
    --memorial-font: Georgia, serif;
}
.theme-4 {
    --memorial-bg: #e7e9e7;
    --memorial-ink: #33403b;
    --memorial-font: Georgia, serif;
}
.theme-5 {
    --memorial-bg: #cdbcb7;
    --memorial-ink: #391c1c;
    --memorial-font: Georgia, serif;
}
.theme-6 {
    --memorial-bg: #e3d2d2;
    --memorial-ink: #391c1c;
    --memorial-font: Arial, sans-serif;
}
.theme-7 {
    --memorial-bg: #26262a;
    --memorial-ink: #f3eeee;
    --memorial-font: Georgia, serif;
}
.memorial-page {
    background: var(--memorial-bg);
    color: var(--memorial-ink);
    padding: 5rem 2rem;
    font-family: var(--memorial-font);
}
.memorial-content {
    max-width: 1040px;
    margin: auto;
}
.memorial-heading {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 950px;
    margin: auto;
}
.portrait {
    width: 280px;
    height: 340px;
    object-fit: cover;
}
.memorial-heading h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}
.memorial-dates {
    font-size: 1.5rem;
}
.memorial-heading blockquote {
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.15rem;
    white-space: normal;
}
.memorial-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
}
.memorial-page a:not(.button) {
    color: inherit;
}
.memorial-section {
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--memorial-ink) 20%, transparent);
}
.memorial-section h2 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 1.8rem;
}
.biography {
    font: 1rem/1.9 var(--sans);
    overflow-wrap: anywhere;
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.photo-gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}
.media-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.media-gallery figure {
    margin: 0;
}
.media-gallery video {
    width: 100%;
    max-height: 400px;
    background: #171717;
}
.media-gallery audio {
    width: 100%;
}
.media-gallery figcaption {
    font: 0.8rem var(--sans);
    margin-top: 0.5rem;
    overflow-wrap: anywhere;
}
.memorial-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    font: 0.85rem var(--sans);
}
.tree-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.tree-toolbar label {
    margin: 0;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.tree-viewport {
    width: 100%;
    height: 600px;
    overflow: auto;
    background: #e5e4e9;
    border: 1px solid #d0cbdc;
    border-radius: 5px;
}
.tree-stage {
    position: relative;
    transform-origin: top left;
    min-width: 100%;
    min-height: 100%;
}
.tree-stage > svg {
    position: absolute;
    inset: 0;
    overflow: visible;
}
.tree-stage path {
    fill: none;
    stroke: #968da8;
    stroke-width: 2;
}
.tree-stage path.partner-edge {
    stroke-dasharray: 5 4;
}
.tree-node {
    position: absolute;
    width: 190px;
    min-height: 106px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #c9c1d9;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    color: var(--ink);
    text-align: left;
    box-shadow: 0 2px 3px #00000006;
}
.tree-node strong {
    display: block;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.tree-node span {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.6rem;
    color: var(--muted);
}
.tree-empty {
    padding: 3rem;
    color: var(--muted);
}
dialog {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 2rem;
    width: min(900px, 95vw);
    max-height: 90vh;
    overflow: auto;
}
dialog::backdrop {
    background: #18131e88;
}
.tree-workspace {
    max-width: 1400px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 100;
    background: #fff;
    padding: 1rem;
}
[hidden] {
    display: none !important;
}
@media (max-width: 900px) {
    .memorial-grid {
        grid-template-columns: 1fr 1fr;
    }
    .theme-picker {
        grid-template-columns: repeat(3, 1fr);
    }
    .memorial-heading {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
    .portrait {
        width: 220px;
        height: 280px;
    }
    .site-header {
        padding: 1rem 1.5rem;
    }
    .site-header nav {
        gap: 1rem;
        font-size: 0.8rem;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .site-header {
        align-items: start;
        gap: 1rem;
    }
    .brand {
        font-size: 1rem;
    }
    .brand img {
        width: 30px;
        height: 34px;
    }
    .brand small {
        font-size: 8px;
        letter-spacing: 0.1em;
    }
    .site-header nav {
        justify-content: end;
        gap: 0.6rem;
    }
    .site-header nav .button {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    .site-header nav a[href='/#about'] {
        display: none;
    }
    .site-header nav {
        max-width: 200px;
    }
    .hero {
        min-height: 75svh;
    }
    .hero-content {
        padding: 4rem 1.2rem;
    }
    .hero p:not(.eyebrow) {
        font-size: 1rem;
    }
    .section {
        padding: 4rem 1.5rem;
    }
    .features {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .workspace {
        padding: 2rem 1rem 3rem;
    }
    .page-heading {
        align-items: start;
        flex-direction: column;
        gap: 1rem;
    }
    .panel,
    .editor-form {
        padding: 1.3rem;
    }
    .memorial-grid {
        grid-template-columns: 1fr;
    }
    .memorial-card {
        padding: 0;
    }
    .form-grid,
    .two-columns {
        grid-template-columns: 1fr;
    }
    .theme-picker {
        grid-template-columns: 1fr 1fr;
    }
    .attachment-grid {
        grid-template-columns: 1fr 1fr;
    }
    .attachment {
        padding: 0.6rem;
    }
    .attachment > img {
        height: 110px;
    }
    .upload-form {
        align-items: stretch;
        flex-direction: column;
    }
    .memorial-page {
        padding: 3rem 1.3rem;
    }
    .memorial-heading {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .portrait {
        margin: auto;
    }
    .memorial-tabs {
        justify-content: center;
    }
    .photo-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .photo-gallery img {
        height: 170px;
    }
    .media-gallery {
        grid-template-columns: 1fr;
    }
    .memorial-bottom {
        justify-content: center;
    }
    .tree-toolbar {
        align-items: start;
        flex-direction: column;
    }
    dialog {
        padding: 1.2rem;
    }
    .tree-viewport {
        height: 500px;
    }
    .auth-links {
        flex-wrap: wrap;
    }
    .notice {
        margin: 1rem;
    }
    .search-form .button {
        padding: 0.6rem 1rem;
    }
}
@media print {
    .site-header,
    .site-footer,
    .tree-toolbar,
    .page-heading .button-group,
    #tree-status,
    .tree-workspace > p,
    .notice,
    dialog {
        display: none !important;
    }
    .workspace {
        padding: 0;
        max-width: none;
    }
    .tree-viewport {
        border: 0;
        height: auto;
        overflow: visible;
        background: #fff;
    }
    .tree-stage {
        transform: none !important;
    }
    .tree-node {
        break-inside: avoid;
        box-shadow: none;
    }
    .tree-workspace {
        width: max-content;
    }
    .page-heading {
        margin: 0;
    }
    body {
        background: #fff;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
.review-comment {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e1e9;
}
.history-comparison {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.history-comparison pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
    max-height: 30rem;
    overflow: auto;
    padding: 1rem;
    background: #f5f3f7;
}
.history-field {
    margin: 1.5rem 0;
}
.card-body dd {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}
@media (max-width: 700px) {
    .history-comparison {
        grid-template-columns: 1fr;
    }
}
.account-navigation {
    position: relative;
}
.account-navigation summary {
    cursor: pointer;
    padding: 0.5rem 0;
}
.account-navigation-links {
    position: absolute;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-width: 220px;
    max-width: calc(100vw - 32px);
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 24px #28252c14;
    z-index: 30;
}
.collection-photo {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}
.card-body audio,
.card-body video {
    max-width: 100%;
}
.search-form input {
    min-width: 0;
}
