:root {
    --paper-bg: #fdfbf7;
    --paper-texture: url('assets/parchment.png');
    --ink-color: #2b2b2b;
    --accent-red: #8b0000;
    --sepia-filter: sepia(24%) contrast(108%) brightness(97%);
    --font-heading: 'Cinzel', serif;
    --font-body: 'IM Fell English', serif;
    --font-mono: 'Special Elite', monospace;
    --leather-border: #3d2b1f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: #dcd0c0;
    /* Fallback paper color */
    color: var(--ink-color);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 40%;
    max-width: 600px;
    background-color: var(--paper-bg);
    background-image: var(--paper-texture);
    background-blend-mode: multiply;
    background-size: cover;
    border-right: 8px solid var(--leather-border);
    border-image: linear-gradient(to right, #2b1d0e, #3d2b1f, #2b1d0e) 1;
    overflow-y: auto;
    padding: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
    position: relative;
    transition: width 0.22s ease, max-width 0.22s ease;
    scrollbar-width: thin;
    scrollbar-color: #5a4a3a #dcd0c0;
}

.sidebar.is-half-width {
    width: 50%;
    max-width: none;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #dcd0c0;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #5a4a3a;
    border-radius: 4px;
}

.header {
    background: #2b1d0e;
    color: #dcd0c0;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px double #dcd0c0;
}

.sidebar-width-toggle {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    width: 34px;
    height: 34px;
    border: 1px solid #f7e4bd;
    background: rgba(43, 29, 14, 0.88);
    color: #f7e4bd;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    z-index: 45;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar-width-toggle:hover {
    transform: translateY(-1px);
    background: rgba(43, 29, 14, 0.96);
    border-color: #d4af37;
    color: #d4af37;
}

.sidebar-width-toggle[aria-pressed='true'] {
    background: #d4af37;
    border-color: #f6e5b8;
    color: #2b1d0e;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.8;
}

.separator {
    height: 2px;
    background: #8b7355;
    width: 50%;
    margin: 1rem auto;
}

/* Timeline Entries */
#timeline {
    padding: 2rem;
}

.entry {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #8b7355;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    position: relative;
}

.entry.active {
    opacity: 1;
    transform: translateX(10px);
}

.entry.active::before {
    content: '\2693\FE0E';
    position: absolute;
    left: -44px;
    top: 4px;
    font-size: 2rem;
    line-height: 1;
    font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Apple Symbols', serif;
    color: #7c1d1d;
    text-shadow: 0 1px 0 rgba(253, 251, 247, 0.86), 2px 2px 4px rgba(0, 0, 0, 0.34);
    animation: markerAppear 0.38s ease-out;
}

@keyframes markerAppear {
    from {
        opacity: 0;
        transform: translateX(-8px) scale(0.45) rotate(-18deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.text-english p::first-letter {
    font-size: 3rem;
    float: left;
    margin: 0.1rem 0.5rem 0.1rem 0;
    font-family: var(--font-heading);
    color: var(--accent-red);
    line-height: 1;
    initial-letter: 2;
}

.date-header {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 0.2rem;
}

.entry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.text-group {
    background: rgba(255, 255, 255, 0.4);
    padding: 1rem;
    border: 1px solid #cbbba9;
    border-radius: 2px;
    height: 100%;
    /* Equal height */
    margin-bottom: 0.5rem;
}

.text-german p {
    font-family: 'Special Elite', monospace;
    /* Typewriter feel */
    font-size: 0.85rem;
    color: #5a4a3a;
    line-height: 1.4;
    border-left: 2px solid var(--accent-red);
    padding-left: 0.5rem;
}

.text-english p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

.glossary-term {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    text-decoration-color: rgba(43, 29, 14, 0.78);
    cursor: help;
}

.glossary-term:focus-visible {
    outline: 1px solid rgba(124, 29, 29, 0.9);
    outline-offset: 2px;
    border-radius: 2px;
}

.glossary-tooltip {
    --tooltip-arrow-left: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 140;
    max-width: min(360px, calc(100vw - 20px));
    padding: 0.52rem 0.62rem;
    border: 1px solid #2b1d0e;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(253, 251, 247, 0.98), rgba(241, 233, 218, 0.97));
    color: #1f1a13;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.34;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity 60ms linear, transform 60ms ease-out;
}

.glossary-tooltip::after {
    content: '';
    position: absolute;
    left: var(--tooltip-arrow-left);
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: rgba(241, 233, 218, 0.98);
    border-right: 1px solid #2b1d0e;
    border-bottom: 1px solid #2b1d0e;
    transform: translateX(-50%) rotate(45deg);
}

.glossary-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glossary-tooltip.is-below::after {
    top: -7px;
    bottom: auto;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #2b1d0e;
    border-top: 1px solid #2b1d0e;
}

/* Location tags should span full width or sit below? */
/* Current structure appends location div to content, which is now grid. */
/* We should make location span 2 columns */
.location-container {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.location-tag {
    display: inline-block;
    background: #2b1d0e;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.footer {
    padding: 0 2rem 1.25rem;
    background: rgba(253, 251, 247, 0.72);
    border-top: 1px solid #cbbba9;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #5a4a3a;
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

.timeline-scrubber {
    width: 38px;
    min-width: 38px;
    background: linear-gradient(to bottom, #f6efe2, #efe4d2);
    border-left: 1px solid #3d2b1f;
    border-right: 1px solid #3d2b1f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    position: relative;
    z-index: 16;
    padding: 0.85rem 0;
}

.time-bound {
    font-family: var(--font-mono);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #5a4a3a;
    font-size: 0.5rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.78;
    user-select: none;
}

.time-slider-track-wrap {
    position: relative;
    flex: 1;
    width: 22px;
    min-height: 180px;
    margin-top: 1.6rem;
    margin-bottom: 0.25rem;
}

.time-slider-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #b8ad9d;
    z-index: 1;
}

.time-slider-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 0%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #5a4a3a;
    z-index: 2;
}

.time-slider-knob {
    position: absolute;
    top: 0;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #f6efe2;
    background: #d4af37;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 4;
}

.time-slider-current {
    position: absolute;
    top: 0;
    left: calc(100% + 6px);
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    color: #2b1d0e;
    font-weight: 600;
    text-align: left;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.02em;
    background: rgba(253, 251, 247, 0.94);
    border: 1px solid #cbbba9;
    border-radius: 8px;
    padding: 0.24rem 0.2rem;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 5;
}

#time-slider {
    position: absolute;
    inset: 0;
    width: 22px;
    height: 100%;
    writing-mode: vertical-lr;
    direction: ltr;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    cursor: ns-resize;
    background: transparent;
    outline: none;
    opacity: 0;
    z-index: 6;
}

#time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 1px;
    height: 1px;
    border: none;
    background: transparent;
    cursor: pointer;
}

#time-slider::-webkit-slider-runnable-track {
    width: 4px;
    background: transparent;
    border-radius: 999px;
}

#time-slider::-moz-range-thumb {
    width: 1px;
    height: 1px;
    border: none;
    background: transparent;
    cursor: pointer;
}

#time-slider::-moz-range-track {
    width: 4px;
    background: transparent;
    border-radius: 999px;
}

/* Map Styling */
.map-container {
    flex-grow: 1;
    position: relative;
    background-color: #a59c8d;
    /* Ocean color fallback */
}

#map {
    height: 100%;
    width: 100%;
    filter: var(--sepia-filter);
    /* WW1 Map Look */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.6);
    background:
        radial-gradient(circle, transparent 44%, rgba(43, 29, 14, 0.22)),
        url('https://www.transparenttextures.com/patterns/stardust.png');
    /* Light grain */
    z-index: 20;
}

.crew-overlay-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 1px solid #f6e5b8;
    background: rgba(43, 29, 14, 0.92);
    color: #f6e5b8;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.45rem 0.68rem;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.36);
    z-index: 46;
    transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.crew-overlay-toggle:hover {
    transform: translateY(-1px);
    color: #d4af37;
    border-color: #d4af37;
}

.crew-overlay-toggle:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.crew-overlay-toggle[aria-expanded='true'] {
    background: rgba(67, 48, 25, 0.95);
    color: #d4af37;
    border-color: #d4af37;
}

.crew-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.crew-overlay.is-open {
    pointer-events: auto;
}

.crew-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(12, 8, 5, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    cursor: pointer;
}

.crew-overlay.is-open .crew-overlay-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.crew-dialog {
    position: absolute;
    top: 58px;
    right: 14px;
    width: min(460px, calc(100% - 28px));
    max-height: min(78vh, 760px);
    overflow-y: auto;
    background: rgba(253, 251, 247, 0.98);
    background-image: var(--paper-texture);
    border: 2px solid #2b1d0e;
    border-radius: 3px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
    padding: 0.88rem 0.92rem 0.94rem;
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.crew-overlay.is-open .crew-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.crew-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #cbbba9;
    padding-bottom: 0.32rem;
    margin-bottom: 0.36rem;
}

.crew-dialog-header h2 {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3b2817;
    font-size: 1.03rem;
}

.crew-dialog-close {
    border: 1px solid #8a7457;
    background: rgba(253, 251, 247, 0.95);
    color: #3b2817;
    font-size: 1.12rem;
    width: 30px;
    height: 30px;
    border-radius: 2px;
    line-height: 1;
    cursor: pointer;
}

.crew-dialog-close:hover {
    border-color: #7c1d1d;
    color: #7c1d1d;
}

.crew-dialog-close:focus-visible {
    outline: 2px solid #7c1d1d;
    outline-offset: 1px;
}

.crew-as-of {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #5a4a3a;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.crew-section {
    margin-bottom: 0.66rem;
}

.crew-section:last-of-type {
    margin-bottom: 0;
}

.crew-section h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #3b2817;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.34rem;
}

.crew-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
}

.crew-list li {
    border: 1px solid #d8ccb9;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    padding: 0.32rem 0.42rem;
    font-size: 0.76rem;
    line-height: 1.32;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.crew-left-list li {
    color: #4b331f;
}

.crew-empty {
    border: 1px dashed #bda78f;
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    color: #5a4a3a;
    padding: 0.34rem 0.42rem;
}

.coordinates-display {
    position: absolute;
    bottom: 40px;
    right: 120px;
    background: rgba(253, 251, 247, 0.8);
    background-image: var(--paper-texture);
    border: 1px solid #2b1d0e;
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #2b1d0e;
    z-index: 35;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#map .maplibregl-marker.ww1-event-marker {
    z-index: 82;
    width: 28px;
    height: 28px;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #fdfbf7;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffd88a 0%, #c22424 60%, #6c0e0e 100%);
    color: #fff7e7;
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#map .maplibregl-marker.ww1-event-marker:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.52);
}

#map .maplibregl-marker.ww1-event-marker.is-recent {
    animation: ww1EventPulse 2.2s ease-out infinite;
}

@keyframes ww1EventPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(194, 36, 36, 0.55), 0 2px 6px rgba(0, 0, 0, 0.45);
    }

    70% {
        box-shadow: 0 0 0 13px rgba(194, 36, 36, 0), 0 2px 6px rgba(0, 0, 0, 0.45);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(194, 36, 36, 0), 0 2px 6px rgba(0, 0, 0, 0.45);
    }
}

#map .maplibregl-control-container {
    z-index: 80;
}

#map .maplibregl-popup {
    z-index: 85;
}

#map .maplibregl-ctrl-group {
    background: rgba(253, 251, 247, 0.9);
    border: 1px solid #2b1d0e;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

#map .maplibregl-ctrl button {
    width: 34px;
    height: 34px;
}

#map .maplibregl-ctrl button:hover {
    background-color: rgba(43, 29, 14, 0.08);
}

/* Map Popup Override */
.diary-popup .maplibregl-popup-content {
    background: #fdfbf7;
    border-radius: 2px;
    border: 2px solid #2b1d0e;
    font-family: var(--font-body);
    margin: 10px;
    width: min(460px, 70vw);
    padding: 0.5rem;
}

.diary-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    border-top-color: #2b1d0e;
}

.diary-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    border-bottom-color: #2b1d0e;
}

.diary-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
    border-right-color: #2b1d0e;
}

.diary-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
    border-left-color: #2b1d0e;
}

.diary-popup .maplibregl-popup-close-button {
    color: #2b1d0e;
    font-size: 1.1rem;
    padding: 0.2rem 0.45rem;
}

.popup-entry {
    max-height: 56vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.popup-date {
    font-family: var(--font-mono);
    color: var(--accent-red);
    font-size: 0.92rem;
    border-bottom: 1px solid #cbbba9;
    padding-bottom: 0.2rem;
}

.popup-location {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #2b1d0e;
}

.popup-block {
    border: 1px solid #cbbba9;
    background: rgba(255, 255, 255, 0.45);
    padding: 0.5rem;
}

.popup-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: #5a4a3a;
    margin-bottom: 0.2rem;
}

.popup-text {
    font-size: 0.82rem;
    line-height: 1.38;
    max-height: 10rem;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.popup-text-de {
    font-family: var(--font-mono);
}

.popup-text-en {
    font-family: var(--font-body);
}

.ww1-event-popup-entry .popup-location {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #711010;
    letter-spacing: 0.01em;
}

@media (max-width: 1100px) {
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        max-width: none;
        max-height: 55vh;
        border-right: none;
    }

    .sidebar.is-half-width {
        width: 100%;
        max-width: none;
    }

    .sidebar-width-toggle {
        display: none;
    }

    .timeline-scrubber {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        border-left: none;
        border-right: none;
        border-top: 1px solid #3d2b1f;
        border-bottom: 1px solid #3d2b1f;
        flex-direction: row;
        gap: 0.7rem;
        padding: 0.65rem 0.85rem;
    }

    .time-bound {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.52rem;
        letter-spacing: 0.08em;
    }

    .time-slider-track-wrap {
        width: auto;
        min-height: 0;
        height: 22px;
        flex: 1;
        margin: 0;
    }

    .time-slider-rail {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: auto;
        height: 4px;
        transform: translateY(-50%);
    }

    .time-slider-progress {
        top: 50%;
        left: 0;
        width: 0%;
        height: 4px;
        transform: translateY(-50%);
    }

    .time-slider-knob {
        top: 50%;
        left: 0;
        transform: translate(-50%, -50%);
    }

    #time-slider {
        width: 100%;
        min-height: 0;
        height: 22px;
        margin: 0;
        writing-mode: horizontal-tb;
        direction: ltr;
        appearance: none;
        -webkit-appearance: none;
        cursor: ew-resize;
    }

    #time-slider::-webkit-slider-runnable-track {
        height: 4px;
        width: 100%;
        background: transparent;
    }

    #time-slider::-moz-range-track {
        height: 4px;
        width: 100%;
        background: transparent;
    }

    .time-slider-current {
        top: auto;
        left: 50%;
        bottom: calc(100% + 0.35rem);
        transform: translateX(-50%);
        writing-mode: horizontal-tb;
        max-height: none;
        max-width: min(70vw, 320px);
        white-space: nowrap;
    }

    .map-container {
        min-height: 44vh;
    }

    .crew-overlay-toggle {
        top: 10px;
        right: 10px;
        font-size: 0.74rem;
        padding: 0.38rem 0.56rem;
    }

    .crew-dialog {
        top: 48px;
        right: 10px;
        width: min(430px, calc(100% - 20px));
        max-height: min(72vh, 700px);
    }

    .entry-content {
        grid-template-columns: 1fr;
    }

    .coordinates-display {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 720px) {
    #timeline {
        padding: 1.25rem;
    }

    .crew-dialog {
        top: 46px;
        right: 8px;
        width: calc(100% - 16px);
        max-height: min(68vh, 620px);
        padding: 0.78rem 0.72rem 0.82rem;
    }

    .crew-list li {
        font-size: 0.72rem;
    }

    .header h1 {
        font-size: 1.45rem;
    }
}
