.logistics-wiki {
    --lw-bg: #090c0a;
    --lw-panel: #0e1310;
    --lw-panel-soft: #111713;
    --lw-line: rgba(196, 205, 196, 0.16);
    --lw-line-strong: rgba(197, 160, 89, 0.4);
    --lw-gold: #c5a059;
    --lw-gold-bright: #e0c47e;
    --lw-text: #edf1eb;
    --lw-muted: #8f9a91;
    --lw-green: #65b873;
    --lw-red: #db6868;
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 60% -10%, rgba(197, 160, 89, 0.08), transparent 34%),
        var(--lw-bg);
    background-size: 32px 32px, 32px 32px, auto, auto;
    color: var(--lw-text);
    font-family: Inter, "Noto Sans Thai", system-ui, sans-serif;
    padding: clamp(18px, 3vw, 44px);
}

.storm-admin-page-body:has(.logistics-wiki) {
    padding: 0;
}

.logistics-wiki *,
.logistics-wiki *::before,
.logistics-wiki *::after {
    box-sizing: border-box;
}

.logistics-wiki button,
.logistics-wiki input,
.logistics-wiki textarea {
    font: inherit;
}

.logistics-wiki__masthead,
.logistics-article__header,
.logistics-editor__header {
    position: static;
    inset: auto;
    width: auto;
    z-index: auto;
}

.logistics-article__header {
    display: block;
    height: auto;
    background: transparent;
}

.logistics-article__footer,
.logistics-editor__footer {
    position: static;
    width: auto;
    z-index: auto;
}

.logistics-wiki .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;
}

.logistics-wiki__shell {
    width: min(1680px, 100%);
    margin: 0 auto;
    border: 1px solid var(--lw-line);
    background: rgba(9, 12, 10, 0.92);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.logistics-wiki__classification {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--lw-line-strong);
    color: var(--lw-gold);
    font: 600 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.14em;
}

.logistics-wiki__classification i {
    color: var(--lw-green);
    font-size: 6px;
    margin-right: 7px;
    vertical-align: 2px;
}

.logistics-wiki__masthead {
    display: grid;
    grid-template-columns: 116px minmax(300px, 1fr) auto minmax(190px, 240px);
    min-height: 178px;
    padding: 0;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-wiki__index {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--lw-line);
    color: rgba(197, 160, 89, 0.2);
    font: 700 clamp(54px, 5vw, 80px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.logistics-wiki__title-block {
    align-self: center;
    padding: 28px clamp(22px, 2.25vw, 36px);
}

.logistics-wiki__eyebrow {
    margin: 0 0 8px;
    color: var(--lw-gold);
    font: 600 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.13em;
}

.logistics-wiki__title-block h1 {
    margin: 0;
    color: var(--lw-text);
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.logistics-wiki__title-block h1 span {
    color: var(--lw-gold);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 500;
}

.logistics-wiki__title-block > p:last-child {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--lw-muted);
    font-size: 14px;
    line-height: 1.7;
}

.logistics-wiki__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    border-left: 1px solid var(--lw-line);
}

.logistics-wiki__stats div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    border-right: 1px solid var(--lw-line);
}

.logistics-wiki__stats strong {
    color: var(--lw-text);
    font: 500 28px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.logistics-wiki__stats span,
.logistics-wiki__masthead-action > span {
    color: var(--lw-muted);
    font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logistics-wiki__masthead-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 22px;
}

.logistics-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--lw-line);
    border-radius: 2px;
    padding: 10px 14px;
    color: var(--lw-text);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 160ms ease;
}

.logistics-button:hover,
.logistics-button:focus-visible {
    border-color: var(--lw-gold);
    color: var(--lw-gold-bright);
    outline: none;
}

.logistics-button--primary {
    border-color: var(--lw-gold);
    background: var(--lw-gold);
    color: #11130e;
}

.logistics-button--primary:hover,
.logistics-button--primary:focus-visible {
    background: var(--lw-gold-bright);
    color: #11130e;
}

.logistics-button--danger {
    width: 100%;
    border-color: rgba(219, 104, 104, 0.45);
    color: #e68a8a;
}

.logistics-wiki__workspace {
    position: relative;
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    align-items: start;
    transition: opacity 140ms ease;
}

.logistics-wiki.is-document-loading .logistics-wiki__workspace {
    pointer-events: none;
    opacity: 0.58;
}

.logistics-wiki.is-document-loading .logistics-wiki__workspace::before {
    content: "";
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 28%;
    height: 2px;
    background: var(--lw-gold-bright);
    animation: logistics-document-loading 900ms ease-in-out infinite;
}

@keyframes logistics-document-loading {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(180%);
    }
    100% {
        transform: translateX(0);
    }
}

.logistics-library {
    position: static;
    top: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
}

.logistics-library {
    border-right: 1px solid var(--lw-line);
}

.logistics-panel-heading {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-panel-heading span,
.logistics-admin-control > span {
    display: block;
    margin-bottom: 4px;
    color: var(--lw-gold);
    font: 600 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.1em;
}

.logistics-panel-heading h2 {
    margin: 0;
    color: var(--lw-text);
    font-size: 14px;
    letter-spacing: -0.01em;
}

.logistics-panel-heading .logistics-count {
    min-width: 28px;
    min-height: 28px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid var(--lw-line-strong);
    color: var(--lw-gold-bright);
    font-size: 10px;
}

.logistics-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    margin: 14px;
    border: 1px solid var(--lw-line);
    background: rgba(255, 255, 255, 0.02);
}

.logistics-search i {
    margin-left: 13px;
    color: var(--lw-muted);
    font-size: 11px;
}

.logistics-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 10px;
    color: var(--lw-text);
    background: transparent;
    font-size: 11px;
}

.logistics-search input::placeholder {
    color: #667068;
}

.logistics-search:focus-within {
    border-color: var(--lw-gold);
}

.logistics-search kbd {
    margin-right: 10px;
    border: 1px solid var(--lw-line);
    padding: 2px 6px;
    color: var(--lw-muted);
    background: transparent;
    font: 9px ui-monospace, monospace;
}

.logistics-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 14px 10px;
}

.logistics-filters button {
    flex: 0 0 auto;
    border: 1px solid var(--lw-line);
    border-radius: 1px;
    padding: 6px 8px;
    color: var(--lw-muted);
    background: transparent;
    font: 600 8px ui-monospace, monospace;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.logistics-filters button:hover,
.logistics-filters button:focus-visible,
.logistics-filters button.is-active {
    border-color: var(--lw-gold);
    color: #11130e;
    background: var(--lw-gold);
    outline: none;
}

.logistics-library__tools {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 10px;
    color: var(--lw-muted);
    font: 600 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.07em;
}

.logistics-library__tools > div {
    display: flex;
    gap: 4px;
}

.logistics-library__tools button {
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 3px 2px;
    color: var(--lw-muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.logistics-library__tools button:hover,
.logistics-library__tools button:focus-visible {
    border-bottom-color: var(--lw-gold);
    color: var(--lw-gold-bright);
    outline: none;
}

.logistics-document-list {
    display: block;
    border-top: 1px solid var(--lw-line);
}

.logistics-document-group {
    border-bottom: 1px solid var(--lw-line);
}

.logistics-document-group__toggle {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    gap: 10px;
    align-items: start;
    width: 100%;
    min-height: 78px;
    padding: 13px 14px;
    border: 0;
    color: var(--lw-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: 160ms ease;
}

.logistics-document-group__toggle:hover {
    background: rgba(197, 160, 89, 0.055);
}

.logistics-document-group.is-active > .logistics-document-group__toggle {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.12), transparent);
    box-shadow: inset 3px 0 var(--lw-gold);
}

.logistics-document-group__toggle strong {
    display: block;
    margin: 5px 0 6px;
    color: var(--lw-text);
    font-size: 12px;
    line-height: 1.4;
}

.logistics-document-group__toggle small {
    color: var(--lw-muted);
    font: 8px ui-monospace, monospace;
}

.logistics-document-group__toggle > i {
    align-self: center;
    color: #707970;
    font-size: 9px;
    transition: transform 160ms ease, color 160ms ease;
}

.logistics-document-group.is-open > .logistics-document-group__toggle > i {
    color: var(--lw-gold);
    transform: rotate(180deg);
}

.logistics-document-group__children {
    border-top: 1px solid rgba(197, 160, 89, 0.18);
    background: rgba(4, 8, 6, 0.42);
}

.logistics-document-group__children[hidden] {
    display: none;
}

.logistics-document-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    gap: 10px;
    align-items: start;
    min-height: 78px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--lw-line);
    color: var(--lw-text);
    text-decoration: none;
    transition: 160ms ease;
}

.logistics-document-card--child {
    grid-template-columns: 24px minmax(0, 1fr) 12px;
    min-height: 68px;
    margin-left: 20px;
    padding: 12px 14px 12px 12px;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
}

.logistics-document-card--child:last-child {
    border-bottom: 0;
}

.logistics-document-card--child .logistics-document-card__number {
    color: var(--lw-gold);
}

.logistics-document-card:hover {
    background: rgba(197, 160, 89, 0.055);
}

.logistics-document-card.is-active {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.12), transparent);
    box-shadow: inset 3px 0 var(--lw-gold);
}

.logistics-document-card.is-archived {
    opacity: 0.58;
}

.logistics-document-card__number {
    color: #59625b;
    font: 500 10px ui-monospace, monospace;
}

.logistics-document-card__body {
    min-width: 0;
}

.logistics-document-card__meta {
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--lw-gold);
    font: 600 8px ui-monospace, monospace;
    letter-spacing: 0.09em;
}

.logistics-document-card__meta em {
    border: 1px solid rgba(219, 104, 104, 0.4);
    padding: 2px 4px;
    color: #e68a8a;
    font-style: normal;
}

.logistics-document-card strong {
    display: -webkit-box;
    margin: 5px 0 6px;
    overflow: hidden;
    color: var(--lw-text);
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.logistics-document-card small {
    color: var(--lw-muted);
    font: 8px ui-monospace, monospace;
}

.logistics-document-card > i {
    align-self: center;
    color: #515a53;
    font-size: 8px;
}

.logistics-document-outline {
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid var(--lw-line);
    background: rgba(4, 8, 6, 0.7);
}

.logistics-document-group__children .logistics-document-outline {
    margin-left: 20px;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
}

.logistics-document-outline[hidden],
.logistics-document-outline [hidden] {
    display: none;
}

.logistics-document-outline__toggle {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px 12px;
    align-items: center;
    gap: 9px;
    border: 0;
    padding: 9px 14px 9px 20px;
    color: var(--lw-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.logistics-document-outline__toggle:hover,
.logistics-document-outline__toggle:focus-visible {
    color: var(--lw-gold-bright);
    background: rgba(197, 160, 89, 0.055);
    outline: none;
}

.logistics-document-outline__toggle small,
.logistics-document-outline__toggle strong {
    display: block;
}

.logistics-document-outline__toggle small {
    margin-bottom: 3px;
    color: var(--lw-gold);
    font: 600 7px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.11em;
}

.logistics-document-outline__toggle strong {
    font-size: 11px;
}

.logistics-document-outline__count {
    color: var(--lw-muted);
    font: 9px ui-monospace, SFMono-Regular, Consolas, monospace;
    text-align: center;
}

.logistics-document-outline__toggle > i {
    color: var(--lw-muted);
    font-size: 8px;
    transition: transform 160ms ease, color 160ms ease;
}

.logistics-document-outline.is-open .logistics-document-outline__toggle > i {
    color: var(--lw-gold);
    transform: rotate(180deg);
}

.logistics-document-list__empty {
    padding: 30px 18px;
    color: var(--lw-muted);
    font-size: 11px;
    text-align: center;
}

.logistics-article {
    min-width: 0;
}

.logistics-article__control {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(18px, 3vw, 42px);
    border-bottom: 1px solid var(--lw-line);
}

.logistics-article__control > div {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--lw-muted);
    font: 600 9px ui-monospace, monospace;
    letter-spacing: 0.1em;
}

.logistics-article__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.logistics-article__actions .logistics-button--danger {
    width: auto;
}

.logistics-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid rgba(101, 184, 115, 0.28);
    color: var(--lw-green);
    font-size: 8px;
}

.logistics-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.logistics-status--archived {
    border-color: rgba(219, 104, 104, 0.35);
    color: var(--lw-red);
}

.logistics-article__header {
    padding: clamp(34px, 6vw, 76px) clamp(24px, 6vw, 90px) 36px;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-article__header > p:first-child {
    margin: 0 0 12px;
    color: var(--lw-gold);
    font: 600 9px ui-monospace, monospace;
    letter-spacing: 0.12em;
}

.logistics-article__header h2 {
    max-width: 920px;
    margin: 0;
    color: var(--lw-text);
    font-size: clamp(30px, 4.4vw, 62px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.logistics-article__summary {
    max-width: 760px;
    margin: 20px 0 0;
    color: #b6beb7;
    font-size: 15px;
    line-height: 1.8;
}

.logistics-article__byline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 30px;
    padding-top: 17px;
    border-top: 1px solid var(--lw-line);
    color: var(--lw-muted);
    font: 9px ui-monospace, monospace;
    letter-spacing: 0.04em;
}

.logistics-article__byline strong {
    color: var(--lw-text);
}

.wiki-content {
    color: #cbd1cb;
    font-size: 15px;
    line-height: 1.9;
}

.logistics-article__content {
    min-height: 470px;
    padding: 36px clamp(24px, 6vw, 104px) 76px;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3 {
    scroll-margin-top: 40px;
    color: var(--lw-text);
    letter-spacing: -0.025em;
}

.wiki-content h1 {
    margin: 10px 0 24px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.15;
}

.wiki-content h2 {
    margin: 46px 0 18px;
    padding-top: 18px;
    border-top: 1px solid var(--lw-line);
    font-size: 23px;
}

.wiki-content h2::before {
    content: "// ";
    color: var(--lw-gold);
    font: 500 13px ui-monospace, monospace;
}

.wiki-content h3 {
    margin: 32px 0 14px;
    font-size: 18px;
}

.wiki-content .wiki-item-reference {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    margin: 0 5px 0 2px;
    border: 1px solid var(--lw-line-strong);
    padding: 0;
    color: inherit;
    vertical-align: -6px;
    text-decoration: none;
    cursor: zoom-in;
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.08), transparent 58%),
        #080b09;
    font: inherit;
    transition:
        border-color 120ms ease,
        background-color 120ms ease,
        transform 120ms ease;
}

.wiki-content .wiki-item-reference:hover,
.wiki-content .wiki-item-reference:focus-visible {
    border-color: var(--lw-gold);
    outline: none;
    background-color: rgba(197, 160, 89, 0.12);
    transform: translateY(-1px);
}

.wiki-content .wiki-item-reference img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
}

.wiki-content p {
    max-width: 960px;
    margin: 0 0 18px;
}

.wiki-content .wiki-timeline {
    max-width: 1040px;
    margin: 46px 0 54px;
    border: 1px solid var(--lw-line-strong);
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.045), transparent 42%),
        rgba(7, 11, 8, 0.78);
}

.wiki-content .wiki-timeline__header {
    border-bottom: 1px solid var(--lw-line);
    padding: 5px 0 20px;
}

.wiki-content .wiki-timeline__header > span {
    display: block;
    margin-bottom: 8px;
    color: var(--lw-gold);
    font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.16em;
}

.wiki-content .wiki-timeline__header h2 {
    scroll-margin-top: 88px;
    margin: 0 0 9px;
    border: 0;
    padding: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.wiki-content .wiki-timeline__header h2::before {
    display: none;
}

.wiki-content .wiki-timeline__header p {
    max-width: 780px;
    margin: 0;
    color: var(--lw-muted);
    font-size: 13px;
    line-height: 1.75;
}

.wiki-content .wiki-timeline__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-top: 14px;
}

.wiki-content .wiki-timeline__card {
    min-width: 0;
    min-height: 178px;
    border: 1px solid var(--lw-line);
    padding: 15px 14px 17px;
    background: rgba(14, 19, 16, 0.88);
}

.wiki-content .wiki-timeline__phase {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--lw-gold-bright);
    font: 600 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.12em;
}

.wiki-content .wiki-timeline__phase i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 1px solid var(--lw-gold-bright);
    border-radius: 50%;
    background: var(--lw-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.08);
}

.wiki-content .wiki-timeline__card h3 {
    margin: 13px 0 8px;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.wiki-content .wiki-timeline__card p {
    max-width: none;
    margin: 0;
    color: #aeb7af;
    font-size: 12px;
    line-height: 1.7;
}

.wiki-content ul,
.wiki-content ol {
    max-width: 940px;
    margin: 8px 0 24px;
    padding-left: 24px;
}

.wiki-content li {
    margin: 6px 0;
    padding-left: 5px;
}

.wiki-content li::marker {
    color: var(--lw-gold);
}

.wiki-content blockquote {
    max-width: 820px;
    margin: 28px 0;
    border-left: 3px solid var(--lw-gold);
    padding: 16px 20px;
    color: #d7dcd7;
    background: rgba(197, 160, 89, 0.07);
}

.wiki-content code {
    border: 1px solid var(--lw-line);
    padding: 2px 5px;
    color: var(--lw-gold-bright);
    background: #080a08;
    font: 0.86em ui-monospace, SFMono-Regular, Consolas, monospace;
}

.wiki-content pre {
    max-width: 100%;
    overflow: auto;
    margin: 24px 0;
    border: 1px solid var(--lw-line);
    border-left: 3px solid var(--lw-gold);
    padding: 18px;
    background: #080a08;
}

.wiki-content pre code {
    border: 0;
    padding: 0;
    color: #cbd1cb;
    background: transparent;
}

.wiki-content a {
    color: var(--lw-gold-bright);
    text-underline-offset: 3px;
}

.wiki-content .wiki-image {
    max-width: 920px;
    margin: 30px 0;
    border: 1px solid var(--lw-line);
    padding: 8px;
    background:
        linear-gradient(rgba(197, 160, 89, 0.025), rgba(197, 160, 89, 0.025)),
        #080b09;
}

.wiki-content .wiki-image__asset {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 720px;
    margin: 0 auto;
    object-fit: contain;
}

.wiki-content .wiki-image__asset.is-zoomable {
    cursor: zoom-in;
    transition: opacity 140ms ease, outline-color 140ms ease;
}

.wiki-content .wiki-image__asset.is-zoomable:hover {
    opacity: 0.88;
}

.wiki-content .wiki-image__asset.is-zoomable:focus-visible {
    outline: 2px solid var(--lw-gold-bright);
    outline-offset: 5px;
}

.wiki-content .wiki-image__asset[src$="cas-5-line-example.png"],
.wiki-content .wiki-image__asset[src$="cas-9-line-example.png"],
.wiki-content .wiki-image__asset[src$="medevac-9-line-reference.png"],
.wiki-content .wiki-image__asset[src$="lz-brief-7-reference.png"] {
    max-height: 1200px;
    filter: invert(1) hue-rotate(180deg);
}

.wiki-content .wiki-image__asset[src$="communication-risk-estimate-distances-infographic-transparent.png"] {
    width: 100%;
    max-height: none;
}

.wiki-content .wiki-image__asset--inline {
    display: inline-block;
    max-height: 360px;
    margin: 4px;
    vertical-align: middle;
}

.wiki-content .wiki-image figcaption {
    border-top: 1px solid var(--lw-line);
    margin-top: 8px;
    padding: 9px 10px 3px;
    color: var(--lw-muted);
    font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.03em;
}

.logistics-article__footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px clamp(18px, 3vw, 42px);
    border-top: 1px solid var(--lw-line);
    color: #687169;
    font: 8px ui-monospace, monospace;
    letter-spacing: 0.1em;
}

.logistics-rail__section {
    border-bottom: 1px solid var(--lw-line);
}

.logistics-panel-heading--compact {
    min-height: 68px;
}

.logistics-outline {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
    padding: 13px 0 18px;
    border-top: 1px solid var(--lw-line);
    scrollbar-width: thin;
    scrollbar-color: var(--lw-line-strong) transparent;
}

.logistics-outline a,
.logistics-outline > span {
    position: relative;
    padding: 8px 18px;
    color: var(--lw-muted);
    font-size: 10px;
    line-height: 1.4;
    text-decoration: none;
}

.logistics-outline a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: transparent;
}

.logistics-outline a:hover,
.logistics-outline a.is-active {
    color: var(--lw-text);
    background: rgba(255, 255, 255, 0.02);
}

.logistics-outline a.is-active::before {
    background: var(--lw-gold);
}

.logistics-outline .level-2 {
    padding-left: 27px;
}

.logistics-outline .level-3 {
    padding-left: 39px;
    font-size: 9px;
}

.logistics-history {
    list-style: none;
    margin: 0;
    padding: 0 16px 18px;
}

.logistics-history li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-history li > span {
    color: var(--lw-gold);
    font: 600 9px ui-monospace, monospace;
}

.logistics-history div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.logistics-history strong {
    overflow: hidden;
    color: #cdd3cd;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logistics-history small,
.logistics-history time {
    color: var(--lw-muted);
    font: 8px ui-monospace, monospace;
}

.logistics-admin-control {
    padding: 18px;
}

.logistics-admin-control p {
    margin: 8px 0 14px;
    color: var(--lw-muted);
    font-size: 10px;
    line-height: 1.6;
}

.logistics-empty-state {
    min-height: 600px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 50px;
    text-align: center;
}

.logistics-empty-state > span {
    color: var(--lw-gold);
    font: 9px ui-monospace, monospace;
    letter-spacing: 0.12em;
}

.logistics-empty-state i {
    margin: 28px 0 20px;
    color: #4f5951;
    font-size: 46px;
}

.logistics-empty-state h2 {
    margin: 0 0 10px;
    color: var(--lw-text);
}

.logistics-empty-state p {
    margin: 0;
    color: var(--lw-muted);
}

.wiki-item-preview {
    position: fixed;
    inset: 20px 0;
    z-index: 10020;
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    margin: auto;
    border: 1px solid var(--lw-line-strong);
    border-radius: 2px;
    padding: 0;
    color: var(--lw-text);
    background: #0b0f0c;
    box-shadow: 0 34px 120px #000;
}

.wiki-item-preview.is-fallback-open {
    box-shadow: 0 0 0 100vmax rgba(1, 3, 2, 0.88), 0 34px 120px #000;
}

.wiki-item-preview::backdrop {
    background: rgba(1, 3, 2, 0.84);
    backdrop-filter: blur(4px);
}

.wiki-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10040;
    width: min(1320px, calc(100vw - 48px));
    max-width: none;
    height: min(920px, calc(100dvh - 48px));
    max-height: none;
    margin: auto;
    border: 1px solid var(--lw-line-strong);
    border-radius: 2px;
    padding: 0;
    overflow: hidden;
    color: var(--lw-text);
    background: rgba(7, 10, 8, 0.78);
    box-shadow:
        0 34px 120px rgba(0, 0, 0, 0.74),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    transform-origin: 50% 48%;
    will-change: opacity, transform;
}

.wiki-image-lightbox.is-fallback-open {
    box-shadow:
        0 0 0 100vmax rgba(1, 3, 2, 0.68),
        0 34px 120px rgba(0, 0, 0, 0.74);
}

.wiki-image-lightbox::backdrop {
    background: rgba(1, 3, 2, 0.68);
    backdrop-filter: blur(10px) saturate(82%);
    -webkit-backdrop-filter: blur(10px) saturate(82%);
}

.wiki-image-lightbox.is-entering {
    animation: wiki-image-lightbox-enter 300ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.wiki-image-lightbox.is-entering::backdrop {
    animation: wiki-image-lightbox-backdrop-enter 260ms ease-out both;
}

.wiki-image-lightbox.is-closing {
    pointer-events: none;
    animation: wiki-image-lightbox-exit 210ms cubic-bezier(0.4, 0, 1, 1) both;
}

.wiki-image-lightbox.is-closing::backdrop {
    animation: wiki-image-lightbox-backdrop-exit 210ms ease-in both;
}

@keyframes wiki-image-lightbox-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.972);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wiki-image-lightbox-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
}

@keyframes wiki-image-lightbox-backdrop-enter {
    from {
        background: rgba(1, 3, 2, 0);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
    to {
        background: rgba(1, 3, 2, 0.68);
        backdrop-filter: blur(10px) saturate(82%);
        -webkit-backdrop-filter: blur(10px) saturate(82%);
    }
}

@keyframes wiki-image-lightbox-backdrop-exit {
    from {
        background: rgba(1, 3, 2, 0.68);
        backdrop-filter: blur(10px) saturate(82%);
        -webkit-backdrop-filter: blur(10px) saturate(82%);
    }
    to {
        background: rgba(1, 3, 2, 0);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
}

.wiki-image-lightbox__frame {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.wiki-image-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    border-bottom: 1px solid var(--lw-line);
    padding: 14px 16px 14px 20px;
    background: rgba(9, 13, 10, 0.72);
}

.wiki-image-lightbox__header span {
    display: block;
    margin-bottom: 5px;
    color: var(--lw-gold);
    font: 600 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.14em;
}

.wiki-image-lightbox__header h2 {
    max-width: min(1000px, calc(100vw - 150px));
    margin: 0;
    overflow: hidden;
    color: var(--lw-text);
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-image-lightbox__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--lw-line-strong);
    border-radius: 0;
    padding: 0;
    color: var(--lw-text);
    cursor: pointer;
    background: transparent;
}

.wiki-image-lightbox__close:hover,
.wiki-image-lightbox__close:focus-visible {
    border-color: var(--lw-gold-bright);
    outline: none;
    color: var(--lw-gold-bright);
    background: rgba(197, 160, 89, 0.08);
}

.wiki-image-lightbox__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
    overflow: auto;
    background:
        linear-gradient(rgba(197, 160, 89, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.025) 1px, transparent 1px),
        rgba(5, 8, 6, 0.58);
    background-size: 48px 48px;
}

.wiki-image-lightbox__stage img {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: none;
    display: block;
    object-fit: contain;
}

.wiki-image-lightbox__stage img[src$="cas-5-line-example.png"],
.wiki-image-lightbox__stage img[src$="cas-9-line-example.png"],
.wiki-image-lightbox__stage img[src$="medevac-9-line-reference.png"],
.wiki-image-lightbox__stage img[src$="lz-brief-7-reference.png"] {
    filter: invert(1) hue-rotate(180deg);
}

.wiki-image-lightbox__stage figcaption {
    width: 100%;
    margin-top: 16px;
    border-top: 1px solid var(--lw-line);
    padding-top: 10px;
    color: var(--lw-muted);
    font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.04em;
    text-align: center;
}

html.wiki-image-lightbox-open {
    overflow: hidden;
}

.wiki-item-preview__frame {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 42px);
}

.wiki-item-preview__header {
    position: static;
    inset: auto;
    width: auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lw-line);
}

.wiki-item-preview__header span {
    display: block;
    margin-bottom: 5px;
    color: var(--lw-gold);
    font: 600 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.12em;
}

.wiki-item-preview__header h2 {
    margin: 0;
    color: var(--lw-text);
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.15;
}

.wiki-item-preview__body {
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
    overflow: auto;
}

.wiki-item-preview__media {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 28px;
    border-right: 1px solid var(--lw-line);
    background:
        linear-gradient(rgba(197, 160, 89, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.025) 1px, transparent 1px),
        #080b09;
    background-size: 24px 24px;
}

.wiki-item-preview__media.is-multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wiki-item-preview__media img {
    display: block;
    width: 100%;
    max-width: 340px;
    max-height: 360px;
    object-fit: contain;
}

.wiki-item-preview__media.is-multiple img {
    max-height: 170px;
}

.wiki-item-preview__details {
    overflow: auto;
    padding: 24px 26px;
    font-size: 13px;
    line-height: 1.7;
}

.wiki-item-preview__details p,
.wiki-item-preview__details ul,
.wiki-item-preview__details ol,
.wiki-item-preview__details blockquote {
    max-width: none;
}

.wiki-item-preview__details ul,
.wiki-item-preview__details ol {
    margin-bottom: 14px;
}

.wiki-item-preview__footer {
    position: static;
    inset: auto;
    width: auto;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px 12px 20px;
    border-top: 1px solid var(--lw-line);
}

.wiki-item-preview__footer > span {
    color: var(--lw-muted);
    font: 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.06em;
}

.logistics-editor {
    position: fixed;
    inset: 16px 0;
    z-index: 10000;
    width: min(1180px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    border: 1px solid var(--lw-line-strong);
    border-radius: 2px;
    padding: 0;
    color: var(--lw-text);
    background: #0b0f0c;
    box-shadow: 0 34px 120px #000;
}

.logistics-editor.is-fallback-open {
    box-shadow: 0 0 0 100vmax rgba(1, 3, 2, 0.88), 0 34px 120px #000;
}

.logistics-editor::backdrop {
    background: rgba(1, 3, 2, 0.84);
    backdrop-filter: blur(4px);
}

.logistics-editor__frame {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 34px);
}

.logistics-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-editor__header span {
    color: var(--lw-gold);
    font: 600 9px ui-monospace, monospace;
    letter-spacing: 0.12em;
}

.logistics-editor__header h2 {
    margin: 4px 0 0;
    color: var(--lw-text);
    font-size: 20px;
}

.logistics-icon-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--lw-line);
    color: var(--lw-muted);
    background: transparent;
    cursor: pointer;
}

.logistics-icon-button:hover {
    border-color: var(--lw-gold);
    color: var(--lw-gold);
}

.logistics-editor__meta {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-editor__meta label,
.logistics-editor__footer > label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 13px 18px;
    border-right: 1px solid var(--lw-line);
}

.logistics-editor__meta label > span,
.logistics-editor__footer label > span {
    color: var(--lw-muted);
    font: 600 9px ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logistics-editor__meta input,
.logistics-editor__footer input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    color: var(--lw-text);
    background: transparent;
    font-size: 12px;
}

.logistics-editor__summary {
    grid-column: 1 / -1;
    border-top: 1px solid var(--lw-line);
}

.logistics-editor__toolbar {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--lw-line);
}

.logistics-editor__toolbar button {
    width: 32px;
    height: 30px;
    border: 0;
    border-right: 1px solid var(--lw-line);
    color: var(--lw-muted);
    background: transparent;
    font: 600 10px ui-monospace, monospace;
    cursor: pointer;
}

.logistics-editor__toolbar button:hover,
.logistics-editor__toolbar button.is-active {
    color: var(--lw-gold);
    background: rgba(197, 160, 89, 0.08);
}

.logistics-editor__toolbar > span {
    margin-left: 12px;
    color: #5f6861;
    font: 8px ui-monospace, monospace;
}

.logistics-editor__toolbar .logistics-preview-toggle {
    width: auto;
    margin-left: auto;
    border: 1px solid var(--lw-line);
    padding: 0 12px;
}

.logistics-editor__image-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(250px, 1.4fr) auto auto auto;
    align-items: end;
    gap: 10px;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--lw-line-strong);
    padding: 13px 16px 15px;
    background:
        linear-gradient(90deg, rgba(197, 160, 89, 0.055), transparent 45%),
        #090d0a;
}

.logistics-editor__image-panel[hidden] {
    display: none;
}

.logistics-editor__image-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    border-bottom: 1px solid var(--lw-line);
    padding-bottom: 9px;
}

.logistics-editor__image-heading div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logistics-editor__image-heading span,
.logistics-editor__image-panel label > span,
.logistics-editor__image-panel > small {
    color: var(--lw-muted);
    font: 600 8px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logistics-editor__image-heading span {
    color: var(--lw-gold);
}

.logistics-editor__image-heading strong {
    color: var(--lw-text);
    font-size: 12px;
}

.logistics-editor__image-heading .logistics-icon-button {
    width: 28px;
    height: 28px;
}

.logistics-editor__image-panel label:not(.logistics-editor__upload) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.logistics-editor__image-panel input[type="text"],
.logistics-editor__image-panel input[type="url"] {
    width: 100%;
    height: 36px;
    border: 1px solid var(--lw-line);
    border-radius: 0;
    outline: 0;
    padding: 0 10px;
    color: var(--lw-text);
    background: #070a08;
    font-size: 11px;
}

.logistics-editor__image-panel input:focus {
    border-color: var(--lw-gold);
}

.logistics-editor__image-panel .logistics-button {
    min-height: 36px;
    white-space: nowrap;
}

.logistics-editor__image-or {
    align-self: center;
    color: #566057;
    font: 600 8px ui-monospace, monospace;
}

.logistics-editor__upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.logistics-editor__image-panel > small {
    grid-column: 1 / -1;
}

.logistics-editor__image-panel > p {
    grid-column: 1 / -1;
    min-height: 14px;
    margin: -2px 0 0;
    color: var(--lw-gold-bright);
    font-size: 10px;
}

.logistics-editor__image-panel > p:empty {
    display: none;
}

.logistics-editor__image-panel > p.is-error {
    color: var(--lw-red);
}

.logistics-editor__workspace {
    display: grid;
    grid-template-columns: 1fr;
    flex: 1 1 350px;
    min-height: 350px;
    overflow: auto;
}

.logistics-editor__image-panel:not([hidden]) + .logistics-editor__workspace {
    flex-basis: 210px;
    min-height: 210px;
}

.logistics-editor__image-panel:not([hidden]) + .logistics-editor__workspace .logistics-editor__content,
.logistics-editor__image-panel:not([hidden]) + .logistics-editor__workspace .logistics-editor__content textarea {
    min-height: 210px;
}

.logistics-editor__workspace.is-previewing {
    grid-template-columns: 1fr 1fr;
}

.logistics-editor__content {
    min-height: 350px;
}

.logistics-editor__content textarea {
    display: block;
    width: 100%;
    min-height: 350px;
    height: 100%;
    resize: none;
    border: 0;
    outline: 0;
    padding: 24px;
    color: #d5dbd5;
    background: #0b0f0c;
    font: 13px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.logistics-editor__preview {
    overflow: auto;
    border-left: 1px solid var(--lw-line);
    padding: 24px;
    background: var(--lw-panel);
}

.logistics-editor__footer {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    border-top: 1px solid var(--lw-line);
}

.logistics-editor__footer > p {
    max-width: 260px;
    margin: 0 18px;
    color: var(--lw-muted);
    font-size: 10px;
}

.logistics-editor__footer > p.is-error {
    color: var(--lw-red);
}

.logistics-editor__footer > div {
    display: flex;
    gap: 8px;
    padding: 12px;
}

@media (max-width: 1280px) {
    .logistics-wiki__masthead {
        grid-template-columns: 90px minmax(280px, 1fr) auto;
    }

    .logistics-wiki__masthead-action {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        border-top: 1px solid var(--lw-line);
    }

    .logistics-wiki__workspace {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    .wiki-content .wiki-timeline__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .logistics-wiki {
        padding: 10px;
    }

    .wiki-content h1,
    .wiki-content h2,
    .wiki-content h3 {
        scroll-margin-top: 116px;
    }

    .logistics-wiki__classification span:last-child {
        display: none;
    }

    .logistics-wiki__masthead {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .logistics-wiki__index {
        font-size: 38px;
    }

    .logistics-wiki__title-block {
        padding: 24px 18px;
    }

    .logistics-wiki__stats {
        grid-column: 1 / -1;
        border-top: 1px solid var(--lw-line);
        border-left: 0;
    }

    .logistics-wiki__stats div {
        padding: 14px 18px;
    }

    .logistics-wiki__stats strong {
        font-size: 22px;
    }

    .logistics-wiki__masthead-action {
        align-items: stretch;
        flex-direction: column;
    }

    .logistics-wiki__workspace {
        display: flex;
        flex-direction: column;
    }

    .logistics-library {
        position: static;
        top: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
        border-right: 0;
        border-bottom: 1px solid var(--lw-line);
    }

    .logistics-article {
        width: 100%;
    }

    .logistics-article__control {
        align-items: flex-start;
        flex-direction: column;
    }

    .logistics-article__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .logistics-article__actions .logistics-button {
        flex: 1 1 150px;
    }

    .logistics-article__header {
        padding: 38px 20px 28px;
    }

    .logistics-article__content {
        min-height: auto;
        padding: 28px 20px 50px;
    }

    .wiki-content .wiki-timeline {
        margin: 36px 0 42px;
        padding: 14px 14px 14px 22px;
    }

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

    .wiki-content .wiki-timeline__card {
        min-height: 0;
    }

    .wiki-content .wiki-item-reference {
        width: 22px;
        height: 22px;
        margin-right: 4px;
        vertical-align: -5px;
    }

    .wiki-item-preview {
        inset: 10px 0;
        width: min(calc(100% - 20px), 620px);
        max-height: calc(100vh - 20px);
    }

    .wiki-item-preview__frame {
        max-height: calc(100vh - 22px);
    }

    .wiki-item-preview__body {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .wiki-item-preview__media {
        min-height: 220px;
        max-height: 38vh;
        border-right: 0;
        border-bottom: 1px solid var(--lw-line);
        padding: 20px;
    }

    .wiki-item-preview__media img {
        max-height: 30vh;
    }

    .wiki-item-preview__media.is-multiple img {
        max-height: 14vh;
    }

    .wiki-item-preview__details {
        padding: 20px;
    }

    .wiki-item-preview__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .wiki-item-preview__footer .logistics-button {
        justify-content: center;
    }

    .wiki-image-lightbox {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
    }

    .wiki-image-lightbox__header {
        min-height: 64px;
        gap: 12px;
        padding: 10px;
    }

    .wiki-image-lightbox__header h2 {
        max-width: calc(100vw - 100px);
        font-size: 14px;
    }

    .wiki-image-lightbox__stage {
        padding: 12px;
        background-size: 32px 32px;
    }

    .wiki-image-lightbox__stage figcaption {
        margin-top: 10px;
        padding-top: 8px;
        font-size: 9px;
    }

    .logistics-rail {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .logistics-article__footer {
        flex-direction: column;
    }

    .logistics-editor__meta,
    .logistics-editor__footer {
        grid-template-columns: 1fr;
    }

    .logistics-editor {
        zoom: 1.25;
    }

    .logistics-editor__meta label,
    .logistics-editor__footer > label {
        border-right: 0;
        border-bottom: 1px solid var(--lw-line);
    }

    .logistics-editor__workspace.is-previewing {
        grid-template-columns: 1fr;
    }

    .logistics-editor__image-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
        max-height: 42vh;
        overflow-y: auto;
    }

    .logistics-editor__image-heading,
    .logistics-editor__image-panel > small,
    .logistics-editor__image-panel > p {
        grid-column: 1;
    }

    .logistics-editor__image-or {
        justify-self: center;
    }

    .logistics-editor__workspace.is-previewing .logistics-editor__content {
        display: none;
    }

    .logistics-editor__preview {
        border-left: 0;
    }

    .logistics-editor__footer > p {
        max-width: none;
        min-height: 18px;
        margin: 8px 18px 0;
    }

    .logistics-editor__footer > div {
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logistics-wiki *,
    .logistics-wiki *::before,
    .logistics-wiki *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .logistics-wiki.is-document-loading .logistics-wiki__workspace::before {
        width: 100%;
        animation: none;
    }

    .wiki-image-lightbox,
    .wiki-image-lightbox::backdrop {
        animation: none !important;
    }
}
