body.furreality.friend-map-page.public-header-enabled > .main {
    --map-header-height: var(--bh-measured-height, var(--bh-header-height, 76px));
    padding-top: var(--map-header-height);
    min-height: 0;
}
.friend-map-frame {
    --map-inset: clamp(10px, 1.5vw, 22px);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template: "graph" minmax(0, 1fr) / minmax(0, 1fr);
    height: calc(100dvh - var(--map-header-height));
    min-height: 280px;
    background:
        radial-gradient(ellipse 62% 78% at 0% 0%, #f3dfb9, transparent),
        radial-gradient(ellipse 60% 68% at 100% 88%, #e3dfee, transparent),
        radial-gradient(ellipse 48% 64% at 88% 0%, #dce9df, transparent),
        var(--paper);
}
.friend-map-frame::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgb(89 72 62 / 12%) .8px, transparent 1.2px) 0 0 / 7px 7px;
    mask-image: linear-gradient(120deg, #000, transparent 23%, transparent 77%, #000);
}
.friend-map-panel {
    position: absolute; z-index: 1;
    inset-inline: var(--map-inset); bottom: max(var(--map-inset), env(safe-area-inset-bottom));
    display: grid; grid-template: "info choose zoom channel" auto / minmax(0, 1fr) auto auto auto;
    align-items: end; gap: 8px; pointer-events: none;
}
.friend-map-panel :is(button, select, a), .friend-map-info { pointer-events: auto; }
.friend-map-head {
    position: absolute; z-index: 1; top: var(--map-inset); left: var(--map-inset);
    pointer-events: none;
}
.friend-map-head a { pointer-events: auto; }
.friend-map .friend-map-attendance-key {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 8px 0 0;
    padding: 3px 7px 3px 5px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: 750 12px/1.2 var(--f-body);
}
.friend-map-attendance-key span {
    width: 13px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#fecb39 0 36%, #010101 36% 44%, #e7334f 44% 80%, #010101 80% 88%, #fefdfd 88% 94%, #010101 94%);
    box-shadow: inset 0 0 0 1px #010101;
}
.furreality .friend-map-head a { display: table; padding: 1px 4px; font-size: 13px; font-weight: 700; background: var(--paper); }
.furreality .friend-map-head h1 {
    width: fit-content;
    margin-top: 5px; padding: 2px 12px 5px;
    border: 2px solid var(--ink); border-radius: 4px 11px 4px 4px;
    background: var(--yellow); box-shadow: 3px 3px var(--ink);
    font-family: var(--f-display) !important; font-size: clamp(24px, 1.8vw, 30px);
    letter-spacing: -.05em; font-weight: 900; line-height: 1;
}
.friend-map-controls { grid-area: choose; display: flex; align-items: center; gap: 6px; min-width: 0; }
.furreality .friend-map-controls :is(select, button, a),
.furreality .friend-map-zoom button,
.furreality .friend-map-info-actions button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
    padding: 6px 11px; border: 2px solid var(--ink); border-radius: 8px;
    color: var(--ink); background: var(--white); font: 700 14px/1.25 var(--f-body); text-decoration: none; cursor: pointer;
}
.friend-map-controls select { width: clamp(150px, 16vw, 215px); min-width: 0; }
.friend-map-controls span { max-width: 19ch; background: var(--paper); font-size: 13px; line-height: 1.2; }
.furreality .friend-map :is(.friend-map-me, .friend-map-info-actions button) { background: var(--yellow-2); }
.furreality .friend-map button.friend-map-add { background: var(--yellow); }
.furreality .friend-map :is(button, a.friend-map-me):hover { background: var(--yellow); }
.friend-map-viewport {
    grid-area: graph; min-width: 0; min-height: 0;
    overflow: hidden; overflow-anchor: none; cursor: grab; touch-action: pinch-zoom; user-select: none;
}
.friend-map-world { position: relative; overflow: hidden; }
.friend-map-world > canvas {
    position: absolute; top: 0; left: 0; max-width: none; pointer-events: none;
    transform-origin: 0 0; transform: var(--map-layer-transform);
}
[data-map-base] { font-family: var(--f-body); color: var(--ink); }
.friend-map-frame.has-focus :is(.friend-map-world > canvas, [data-map-detail]) { opacity: .25; }
.friend-map-world.has-detail > canvas,
.friend-map-world.hide-base-labels [data-map-labels] { visibility: hidden; }
.friend-map-overlay {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none;
}
.friend-map-attendance-status { color: #9d193b; font: 800 12px/1.3 var(--f-body); }
.friend-map-info {
    grid-area: info; justify-self: start; min-width: 0; max-width: min(100%, 440px);
    max-height: 18dvh; overflow: auto; overflow-wrap: anywhere;
    border-left: 4px solid var(--blue); padding: 6px 10px; background: rgb(255 248 234 / 92%);
}
.friend-map-info strong { font-size: 16px; font-weight: 800; }
.furreality .friend-map-info p, .friend-map-info a { margin: 0; font-size: 13px; line-height: 1.35; }
.friend-map-info a { font-weight: 750; }
.friend-map-info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.friend-map-friend-status { font-size: 13px; font-weight: 800; }
.friend-map-zoom {
    grid-area: zoom; justify-self: start; display: flex; border: 2px solid var(--ink); border-radius: 9px; background: var(--white); overflow: hidden;
}
.friend-map-channel { grid-area: channel; justify-self: end; display: flex; gap: 8px; }
.friend-map-page:has(iframe[src*="/debug-kit/toolbar/"]) .friend-map-channel { margin-right: 38px; }
.friend-map-channel:empty { display: none; }
.friend-map-channel button.channel-control { position: static; width: 40px; height: 40px; }
.friend-map-channel :is(.channel-tv__icon, .channel-control > svg) { transform: none; }
.furreality .friend-map-zoom button { min-width: 40px; padding-inline: 8px; border: 0; border-radius: 0; }
.furreality .friend-map-zoom button + button { border-left: 1px solid var(--ink); }
.furreality .friend-map-zoom button:focus-visible { outline-offset: -4px; }
.friend-map-empty { grid-area: graph; align-self: center; justify-self: center; padding: 16px; }

@media (max-width: 950px) {
    .friend-map-panel {
        grid-template: "info choose choose" auto "info zoom channel" auto / minmax(0, 1fr) auto auto;
    }
}
@media (max-width: 600px) {
    .friend-map-frame { min-height: 360px; }
    .friend-map-panel {
        grid-template: "info info" auto "choose choose" auto "zoom channel" auto / minmax(0, 1fr) auto;
        gap: 5px 8px;
    }
    .furreality .friend-map-head h1 { padding-inline: 8px; font-size: clamp(21px, 5.4vw, 30px); white-space: nowrap; }
    .friend-map-controls select { flex: 1 1 8em; width: 0; min-width: 0; }
    .furreality .friend-map-zoom button { min-width: 34px; padding-inline: 6px; }
    .friend-map-info { padding: 2px 6px; max-height: min(23dvh, 145px); }
}
@media (max-width: 350px) {
    .furreality .friend-map-head h1 { padding-inline: 5px; font-size: 19px; }
    .furreality .friend-map-zoom button { min-width: 32px; padding-inline: 5px; }
}
