Back to Black Site Map Editor
SOURCE / PINNED RELEASE

Made of little things.

Black Site Map Editor

Release
32a57733b7e9…
Author-recorded commit
3f54890f542f…
License
LICENSE
Author’s source reference
nostr://npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr/wss%3A%2F%2Fgit.shakespeare.diy%2F/black-site-map-editor

Archive hash verified: 7a4b1abbac7db5b0…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

src/styles.css
:root {
    font-family: Bahnschrift, 'Arial Narrow', 'Segoe UI', sans-serif;
    color: #e6eadf;
    background: #0b0d0b;
    --acc: #a5d63f;
    --gold: #e8c547;
    --red: #e0402f;
    --dim: #8c978a;
    --line: #ffffff20;
    --panel: #101410;
    --napplet-text-selection: none;
    color-scheme: dark;
}
* {
    box-sizing: border-box;
}
html,
body,
#app {
    height: 100%;
    margin: 0;
}
body {
    overflow: hidden;
}
/* Lit component hosts render in light DOM and must not add layout boxes. */
bs-app,
bs-toolbar,
bs-workspace,
bs-tool-palette,
bs-map-canvas,
bs-inspector,
bs-status,
bs-library-dialog,
bs-settings-dialog,
bs-shortcuts-dialog,
bs-help-dialog,
bs-confirm-dialog {
    display: contents;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button,
input,
select,
textarea {
    border: 1px solid var(--line);
    background: #141914;
    padding: 9px;
    min-height: 38px;
    border-radius: 0;
}
button {
    cursor: pointer;
    letter-spacing: 1px;
}
button:hover:not(:disabled),
button.active {
    border-color: var(--acc);
    background: #28341a;
}
button.primary {
    color: #10140c;
    background: var(--acc);
    font-weight: 700;
}
button.danger {
    color: #ff897d;
}
button:disabled {
    opacity: 0.4;
    cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
input,
select,
textarea {
    width: 100%;
    min-width: 0;
}
input[type='checkbox'] {
    width: auto;
    min-height: 0;
}
textarea {
    resize: vertical;
    user-select: text;
    line-height: 1.5;
}
label {
    display: block;
    color: var(--dim);
    font-size: 12px;
    letter-spacing: 1px;
    margin: 9px 0;
}
label input,
label select,
label textarea {
    margin-top: 5px;
    color: #e6eadf;
    letter-spacing: 0;
}
h2,
h3 {
    color: var(--acc);
    font-size: 13px;
    letter-spacing: 3px;
    margin: 16px 0 10px;
}
p {
    font-size: 13px;
    line-height: 1.5;
}
small {
    color: var(--dim);
    line-height: 1.5;
}
.app-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 65% 10%, #1f2c1b, transparent 65%);
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.toolbar .mission {
    font-weight: 700;
    color: var(--acc);
    letter-spacing: 2px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.identity {
    margin-left: auto;
    font-size: 12px;
    color: var(--dim);
}
.workspace {
    display: grid;
    grid-template-columns: var(--left-w, 174px) minmax(0, 1fr) var(--right-w, 260px);
    flex: 1;
    min-height: 0;
}
.pane {
    padding: 12px;
    overflow: auto;
    background: #0c0f0cf0;
}
.pane.left {
    border-right: 1px solid var(--line);
}
.pane.right {
    border-left: 1px solid var(--line);
}
.pane-resizer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 1;
    display: flex;
    justify-content: center;
    cursor: col-resize;
    touch-action: none;
}
.pane-resizer.left {
    left: 0;
}
.pane-resizer.right {
    right: 0;
}
.pane-resizer::after {
    content: '';
    align-self: center;
    width: 3px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 2px;
}
.pane-resizer:hover::after,
.pane-resizer:focus-visible::after,
.pane-resizer.dragging::after {
    border-color: var(--acc);
    background: #a5d63f2b;
}
.pane-resizer:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
body.pane-resizing,
body.pane-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}
.tool-list {
    display: grid;
    gap: 5px;
}
.tool-list button {
    text-align: left;
    min-height: 36px;
    font-size: 12px;
}
.tool-list button.active {
    border-left: 3px solid var(--acc);
    color: var(--acc);
}
.canvas-pane {
    min-width: 0;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image:
        linear-gradient(#a5d63f09 1px, transparent 1px),
        linear-gradient(90deg, #a5d63f09 1px, transparent 1px);
    background-size: 40px 40px;
}
.canvas-tools {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px;
    background: #0c0f0cee;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.canvas-tools button {
    padding: 6px 10px;
    min-height: 32px;
}
.canvas-tools small {
    margin-left: auto;
}
#map-canvas {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: block;
    touch-action: none;
    cursor: crosshair;
}
.status {
    padding: 7px 12px;
    border-top: 1px solid var(--line);
    background: #0c0f0c;
    min-height: 32px;
    font-size: 12px;
    color: var(--dim);
    max-height: 90px;
    overflow: auto;
}
.status.error {
    color: #ff897d;
}
.status.success {
    color: var(--acc);
}
.row {
    display: flex;
    gap: 7px;
}
.row > * {
    flex: 1;
    min-width: 0;
}
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.buttons button {
    flex: 1;
    font-size: 12px;
}
.section {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 4px;
}
.notice {
    border-left: 3px solid var(--gold);
    padding: 8px 10px;
    background: #e8c5470b;
    font-size: 12px;
    line-height: 1.5;
    color: #c6cbbf;
}
.validation {
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: var(--gold);
    max-height: 200px;
    overflow: auto;
}
.json {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    min-height: 180px;
}
.tabs {
    display: none;
    border-bottom: 1px solid var(--line);
}
.tabs button {
    flex: 1;
    padding: 8px 3px;
    font-size: 12px;
}
.minimum {
    display: none;
    height: 100%;
    padding: 12px;
    background: #101410;
    color: #e6eadf;
    font-size: 13px;
    line-height: 1.4;
    overflow: auto;
}
.minimum b {
    color: var(--acc);
}
dialog {
    background: #0e130e;
    color: #e6eadf;
    border: 1px solid #63734e;
    width: min(850px, 96vw);
    max-height: 92vh;
    padding: 18px;
}
dialog::backdrop {
    background: #000b;
}
.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dialog-head h2 {
    margin: 0;
}
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.map-card {
    border: 1px solid var(--line);
    background: #141a12;
    padding: 12px;
    min-width: 0;
}
.map-card h3 {
    margin: 0 0 8px;
    letter-spacing: 1px;
}
.map-card p {
    margin: 7px 0;
    overflow-wrap: anywhere;
}
.map-card .buttons {
    margin-top: 10px;
}
.map-card small {
    display: block;
    overflow-wrap: anywhere;
}
.library-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.library-controls input {
    flex: 1;
    min-width: 150px;
}
.library-controls button {
    font-size: 12px;
}
.draft-info {
    font-size: 11px;
    color: var(--dim);
    overflow-wrap: anywhere;
}
.object-list {
    max-height: 150px;
    overflow: auto;
    display: grid;
    gap: 4px;
}
.object-list button {
    text-align: left;
    font-size: 11px;
}
.publish-details {
    word-break: break-all;
    font:
        11px/1.5 ui-monospace,
        monospace;
    white-space: pre-wrap;
}
.mobile-only {
    display: none;
}
details > summary {
    cursor: pointer;
    color: var(--acc);
    font-size: 12px;
    letter-spacing: 1px;
    padding: 12px 0;
}
.file-import {
    width: 100%;
    font-size: 12px;
}
.selection-label {
    color: var(--gold);
    font-size: 12px;
}
.confirm-dialog {
    width: min(440px, 96vw);
}
@media (max-width: 760px) {
    .workspace {
        grid-template-columns: var(--left-w, 140px) minmax(0, 1fr);
    }
    .pane.right {
        display: none;
    }
    .pane-resizer.right {
        display: none;
    }
    .workspace[data-tab='details'] {
        display: block;
    }
    .workspace[data-tab='details'] .pane.right {
        display: block;
        height: 100%;
    }
    .workspace[data-tab='details'] .pane.left,
    .workspace[data-tab='details'] .canvas-pane {
        display: none;
    }
    .tabs {
        display: flex;
    }
    .toolbar .mission {
        display: none;
    }
    .toolbar {
        gap: 4px;
    }
    .toolbar button {
        font-size: 11px;
    }
    .identity {
        font-size: 11px;
    }
    .mobile-only {
        display: inline-block;
    }
}
@media (max-width: 480px) {
    .workspace {
        display: block;
    }
    .pane-resizer {
        display: none;
    }
    .workspace .pane,
    .workspace .canvas-pane {
        height: 100%;
    }
    .workspace[data-tab='map'] .pane {
        display: none;
    }
    .workspace[data-tab='tools'] .canvas-pane,
    .workspace[data-tab='tools'] .pane.right {
        display: none;
    }
    .workspace[data-tab='tools'] .pane.left {
        display: block;
    }
    .tool-list {
        grid-template-columns: 1fr 1fr;
    }
    .toolbar {
        padding: 5px;
    }
    .toolbar button {
        padding: 8px 6px;
    }
    .identity {
        width: 100%;
        margin: 0;
    }
    .canvas-tools small {
        font-size: 10px;
    }
    .pane {
        padding: 12px;
    }
    .status {
        max-height: 66px;
    }
}
@media (pointer: coarse) {
    button,
    input,
    select {
        min-height: 44px;
    }
    .pane-resizer {
        width: 16px;
    }
    .tool-list button,
    .canvas-tools button {
        min-height: 44px;
    }
    .canvas-tools {
        gap: 4px;
    }
    .toolbar button {
        min-height: 44px;
    }
    .tabs button {
        min-height: 44px;
    }
}
@media (max-width: 279px), (max-height: 239px) {
    .app-shell {
        display: none;
    }
    .minimum {
        display: block;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }
}

[hidden] {
    display: none !important;
}
.tool-category {
    border-top: 1px solid var(--line);
    margin-top: 8px;
}
.tool-category > summary {
    padding: 12px 2px;
    color: var(--gold);
    letter-spacing: 1px;
}
.tool-category .tool-list {
    padding-bottom: 6px;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.settings-grid > section {
    min-width: 0;
}
#settings .dialog-head {
    position: sticky;
    top: -18px;
    background: #0e130e;
    padding: 10px 0;
    z-index: 1;
}
@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
.shortcuts-dialog {
    width: min(620px, 96vw);
}
.shortcuts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 4px 22px;
}
.shortcuts-list section {
    min-width: 0;
}
.shortcuts-list dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    margin: 0;
    font-size: 12px;
    align-items: center;
}
.shortcuts-list dt {
    color: #c6cbbf;
    overflow-wrap: anywhere;
}
.shortcuts-list dd {
    margin: 0;
    color: var(--dim);
    text-align: right;
}
kbd {
    font:
        11px/1 ui-monospace,
        monospace;
    color: var(--acc);
    border: 1px solid #63734e;
    background: #141914;
    padding: 3px 6px;
    white-space: nowrap;
}
@media (pointer: coarse) and (hover: none) {
    .keys-button {
        display: none;
    }
}
.help-dialog {
    width: min(1120px, 96vw);
    height: min(820px, 94vh);
    max-height: 94vh;
    padding: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.help-dialog[open] {
    display: flex;
}
.help-dialog > .dialog-head {
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.help-dialog h2 {
    margin: 6px 0;
    font-size: 16px;
}
.help-dialog .dialog-head button {
    font-size: 15px;
}
.help-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}
.help-tabs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    background: var(--panel);
}
.help-tabs button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-color: transparent;
    border-left: 3px solid transparent;
    background: none;
    font-size: 15px;
    letter-spacing: 0.5px;
    min-height: 44px;
    padding: 8px 10px;
    flex-shrink: 0;
}
.help-tabs button.active {
    border-left-color: var(--acc);
    color: var(--acc);
    background: #28341a;
}
.help-step-number {
    color: var(--gold);
    font-weight: 700;
    min-width: 1.5em;
    text-align: right;
}
.help-panels {
    overflow-y: auto;
    padding: 6px 28px 20px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.6;
}
.help-panel {
    outline: none;
    max-width: 760px;
}
.help-panel h3 {
    margin: 6px 0 14px;
    font-size: 22px;
    letter-spacing: 2px;
}
.help-panel p {
    font-size: 16px;
    line-height: 1.6;
}
.help-progress {
    display: block;
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--gold);
}
.help-panel ul,
.help-panel ol {
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.6;
}
.help-panel li {
    margin: 8px 0;
}
.help-panel .notice {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.6;
    padding: 10px 14px;
}
.ui-chip {
    display: inline-block;
    border: 1px solid #63734e;
    padding: 0 7px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #e6eadf;
    background: #141914;
    white-space: nowrap;
    line-height: 1.6;
}
.help-panel kbd {
    display: inline-block;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    padding: 0 6px;
    font:
        14px/1.6 ui-monospace,
        monospace;
    color: var(--gold);
    background: #141914;
}
.help-legend {
    list-style: none;
    padding-left: 0 !important;
}
.help-legend li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.help-marker {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--marker);
    background: #171e17;
    color: var(--marker);
    font: 700 15px/26px sans-serif;
    text-align: center;
}
.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.help-table th {
    color: var(--acc);
    text-align: left;
    letter-spacing: 1px;
    font-weight: 400;
}
.help-table th,
.help-table td {
    border-bottom: 1px solid var(--line);
    padding: 9px 8px;
    vertical-align: top;
}
.help-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    background: #0e130e;
}
.help-footer button {
    min-width: 140px;
    min-height: 44px;
    font-size: 15px;
}
@media (max-width: 600px) {
    .help-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border: 0;
    }
    .help-layout {
        grid-template-columns: 56px minmax(0, 1fr);
    }
    .help-tabs {
        padding: 6px 4px;
    }
    .help-tabs button {
        justify-content: center;
        padding: 6px 0;
    }
    .help-step-title {
        display: none;
    }
    .help-step-number {
        min-width: 0;
        text-align: center;
        font-size: 16px;
    }
    .help-panels {
        padding: 4px 14px 14px;
    }
    .help-panel h3 {
        font-size: 19px;
    }
    .help-table th:nth-child(3),
    .help-table td:nth-child(3) {
        display: none;
    }
    .help-footer {
        padding: 8px 12px;
    }
    .help-footer button {
        flex: 1;
        min-width: 0;
    }
}
@media (max-height: 480px) {
    .help-dialog {
        height: 100vh;
        max-height: 100vh;
    }
    .help-dialog > .dialog-head {
        padding: 4px 14px;
    }
    .help-progress {
        margin-top: 8px;
    }
    .help-footer {
        padding: 6px 14px;
    }
}

#settings {
    width: min(680px, 96vw);
    height: min(680px, 92vh);
    padding: 0;
    overflow: hidden;
}
#settings[open] {
    display: flex;
    flex-direction: column;
}
#settings > .dialog-head {
    position: static;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
#settings .settings-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    background: #101410;
}
#settings .settings-tabs button {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    letter-spacing: 0;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
}
#settings .settings-tabs button[aria-selected='true'] {
    border-bottom-color: var(--acc);
    color: var(--acc);
    background: #28341a;
}
#settings .settings-grid {
    display: block;
    overflow-y: auto;
    padding: 8px 20px 20px;
    min-height: 0;
    flex: 1;
}
#settings .settings-panel {
    max-width: 540px;
    margin: 0 auto;
}
#settings .settings-panel h3 {
    margin: 12px 0 16px;
}
#settings .settings-panel > button {
    min-height: 44px;
    margin: 8px 0;
}
#settings .settings-panel p {
    color: #c6cbbf;
}
#settings .settings-panel input[type='color'] {
    height: 44px;
}
@media (max-width: 480px) {
    #settings > .dialog-head {
        padding: 8px 12px;
    }
    #settings .settings-tabs {
        padding: 0 4px;
    }
    #settings .settings-tabs button {
        padding: 10px 11px;
        flex: 0 0 auto;
    }
    #settings .settings-grid {
        padding: 4px 14px 16px;
    }
}
@media (max-height: 420px) {
    #settings {
        height: 96vh;
        max-height: 96vh;
    }
    #settings > .dialog-head {
        padding: 4px 12px;
    }
    #settings .settings-tabs button {
        min-height: 40px;
        padding: 6px 12px;
    }
}
@media (max-width: 480px) {
    #settings .settings-tabs button {
        flex: 1;
        padding: 10px 5px;
        font-size: 11px;
    }
}
button.primary:hover:not(:disabled) {
    background: #b8e85a;
    color: #10140c;
}

/* The map browser occupies the entire app frame; editing stays intact behind it. */
#library {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}
#library[open] {
    display: flex;
    flex-direction: column;
}
#library > .dialog-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}
#library .dialog-head p {
    margin: 4px 0 0;
}
#library button {
    min-height: 44px;
}
.map-browser-scroll {
    overflow: auto;
    padding: 16px 24px 32px;
    flex: 1;
    min-height: 0;
}
#library .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 18px;
}
#library .library-controls {
    margin-top: 0;
}
#library .library-controls button {
    font-size: 14px;
}
.library-utilities {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
#library .map-card {
    padding: 0;
    overflow: hidden;
}
.map-card-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    letter-spacing: normal;
    border: 0;
}
.map-card-copy {
    padding: 16px;
}
.map-card-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
bs-map-preview {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #080b08;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--dim);
}
bs-map-preview img,
bs-map-preview canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
bs-map-preview canvas[hidden] {
    display: none;
}
.map-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 32px;
    margin-top: 16px;
}
.map-detail-main,
.map-detail-social {
    min-width: 0;
}
.map-detail h1 {
    font-size: clamp(24px, 3vw, 40px);
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.map-detail section {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 12px;
}
.map-detail h2 {
    font-size: 18px;
}
.map-detail p,
.map-detail dd {
    overflow-wrap: anywhere;
}
.map-notes,
.map-comment p,
.map-briefing {
    white-space: pre-wrap;
}
.map-detail dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
}
.map-detail dd {
    margin: 0;
}
.map-detail dt {
    color: var(--dim);
}
.map-tags,
.reaction-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.map-tags span,
.reaction-counts span {
    border: 1px solid var(--line);
    padding: 6px 10px;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.map-actions {
    margin-top: 20px;
    flex-wrap: wrap;
}
.map-comment {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.map-comment small {
    display: block;
    color: var(--dim);
    overflow-wrap: anywhere;
}
#map-comment {
    width: 100%;
    display: block;
    margin: 8px 0;
}
#library .template-card {
    padding: 20px;
}
@media (max-width: 700px) {
    .map-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    #library > .dialog-head {
        padding: 12px;
    }
    .map-browser-scroll {
        padding: 12px;
    }
    #library .dialog-head p {
        display: none;
    }
    #library .dialog-head h2 {
        font-size: 18px;
    }
    #library-close {
        max-width: 130px;
    }
}

.browser-minimum {
    display: none;
}
@media (max-width: 279px), (max-height: 239px) {
    #library > .dialog-head,
    #library > .map-browser-scroll {
        display: none;
    }
    #library > .browser-minimum {
        display: block;
        padding: 12px;
        overflow: auto;
    }
}

/* Keep the connected account at the upper right in both editor and browser. */
.toolbar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 12px;
}
.toolbar-heading .identity {
    width: auto;
    margin-left: auto;
}
.toolbar-heading .mission {
    max-width: min(50vw, 420px);
}
bs-account {
    display: block;
    min-width: 0;
    max-width: 220px;
}
.account-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    background: #28341a;
    color: var(--acc);
    font-size: 12px;
    overflow: hidden;
    border-radius: 50%;
}
.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e6eadf;
    font-size: 13px;
}
.account-status {
    color: var(--dim);
    font-size: 12px;
}
.library-account {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 45%;
}
@media (max-width: 600px) {
    bs-account {
        max-width: 160px;
    }
}
bs-publish-dialog {
    display: contents;
}
#publication {
    width: min(560px, 96vw);
}
#publication h2 {
    font-size: 22px;
}
#publication progress {
    width: 100%;
    accent-color: var(--acc);
}
#publication .buttons {
    flex-wrap: wrap;
    margin-top: 20px;
}
#publication button {
    min-height: 44px;
}
#publication-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.publish-stages {
    padding: 0;
    display: flex;
    gap: 12px;
    list-style: none;
    font-size: 13px;
    color: var(--dim);
    flex-wrap: wrap;
}
.publish-stages .current {
    color: var(--gold);
}
.publish-stages .complete {
    color: var(--acc);
}
.publish-error pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 180px;
    overflow: auto;
    font-size: 12px;
}