.fln-hllv {
    --fln-map-bg: #070907;
    --fln-map-panel: #10120f;
    --fln-map-panel-2: #171914;
    --fln-map-border: rgba(218, 174, 88, 0.26);
    --fln-map-border-soft: rgba(237, 229, 215, 0.12);
    --fln-map-gold: #dbae58;
    --fln-map-gold-bright: #efc46d;
    --fln-map-cream: #ede5d7;
    --fln-map-muted: #aba69d;
    --fln-map-us: #78aeea;
    --fln-map-nva: #c98a4b;
    --fln-map-green: #58c87b;
    color: var(--fln-map-cream);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 64px) clamp(12px, 2vw, 30px);
}

.fln-hllv *,
.fln-hllv *::before,
.fln-hllv *::after {
    box-sizing: border-box;
}

.fln-hllv [hidden] {
    display: none !important;
}

.fln-hllv button,
.fln-hllv select,
.fln-hllv input {
    font: inherit;
}

.fln-hllv__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 20px 48px;
    align-items: end;
    margin-bottom: 28px;
}

.fln-hllv__eyebrow {
    grid-column: 1 / -1;
    margin: 0 0 -8px;
    color: var(--fln-map-gold-bright);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fln-hllv__intro h2 {
    margin: 0;
    color: var(--fln-map-cream);
    font-family: Impact, "Arial Narrow", "Roboto Condensed", sans-serif;
    font-size: clamp(40px, 5.2vw, 76px);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .96;
    text-transform: uppercase;
}

.fln-hllv__intro > p:last-of-type {
    margin: 0;
    color: var(--fln-map-muted);
    font-size: 16px;
    line-height: 1.65;
}

.fln-hllv__shell {
    overflow: hidden;
    border: 1px solid var(--fln-map-border);
    background:
        linear-gradient(135deg, rgba(219, 174, 88, .045), transparent 30%),
        var(--fln-map-panel);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.fln-hllv__controls {
    padding: clamp(16px, 2.5vw, 30px);
    border-bottom: 1px solid var(--fln-map-border-soft);
}

.fln-hllv__readonly {
    padding: 12px 20px;
    border-bottom: 1px solid var(--fln-map-border);
    background: rgba(219, 174, 88, .12);
    color: var(--fln-map-cream);
    font-size: 14px;
}

.fln-hllv__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: end;
}

.fln-hllv__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 210px;
    margin: 0;
}

.fln-hllv__field > span {
    color: var(--fln-map-gold-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fln-hllv__field--grow {
    flex: 1 1 340px;
}

.fln-hllv select,
.fln-hllv input[type="text"] {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--fln-map-border-soft);
    border-radius: 0;
    outline: none;
    background: #090b09;
    color: var(--fln-map-cream);
    padding: 10px 13px;
}

.fln-hllv select:focus,
.fln-hllv input[type="text"]:focus {
    border-color: var(--fln-map-gold);
    box-shadow: 0 0 0 2px rgba(219, 174, 88, .18);
}

.fln-hllv__toggles {
    display: flex;
    flex: 1 1 390px;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    min-height: 46px;
}

.fln-hllv__toggles label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    color: #d2ccc1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.fln-hllv input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--fln-map-gold);
}

.fln-hllv__button,
.fln-hllv__icon-button,
.fln-hllv__text-button,
.fln-hllv__tool {
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.fln-hllv__button {
    min-height: 46px;
    border: 1px solid var(--fln-map-border);
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: .06em;
    background: transparent;
    color: var(--fln-map-cream);
}

.fln-hllv .fln-hllv__button, .fln-hllv .fln-hllv__text-button { font-size: 12px; font-weight: 800; }
.fln-hllv .fln-hllv__button:hover { border-color: var(--fln-map-gold-bright); }

.fln-hllv__button--primary {
    border-color: var(--fln-map-gold-bright);
    background: linear-gradient(135deg, #edc26e, #c9953d);
    color: #15120c;
}

.fln-hllv__button--primary:hover {
    background: linear-gradient(135deg, #f4d083, #d4a64f);
}

.fln-hllv__button--secondary,
.fln-hllv__icon-button {
    background: transparent;
    color: var(--fln-map-cream);
}

.fln-hllv__button--secondary:hover,
.fln-hllv__icon-button:hover {
    border-color: var(--fln-map-gold);
    color: var(--fln-map-gold-bright);
}

.fln-hllv__button:disabled,
.fln-hllv__icon-button:disabled,
.fln-hllv__tool:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.fln-hllv__checkpoint-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--fln-map-border-soft);
    background: rgba(0, 0, 0, .18);
}

.fln-hllv__checkpoint-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.fln-hllv__checkpoint-head strong {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.fln-hllv__checkpoint-head p {
    margin: 3px 0 0;
    color: var(--fln-map-muted);
    font-size: 12px;
}

.fln-hllv__text-button {
    border: 0;
    background: transparent;
    color: var(--fln-map-gold-bright);
    padding: 6px 8px;
    font-size: 11px;
}

.fln-hllv__checkpoint-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.fln-hllv__sector {
    padding: 10px;
    border-left: 2px solid var(--fln-map-gold);
    background: var(--fln-map-panel-2);
}

.fln-hllv__sector-title {
    display: block;
    margin-bottom: 7px;
    color: var(--fln-map-gold-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fln-hllv__checkpoint {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: 6px 0;
    color: #cbc5ba;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.3;
}

.fln-hllv__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 16px 0 12px;
    color: var(--fln-map-muted);
    font-size: 11px;
}

.fln-hllv__legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
}

.fln-hllv__legend-dot--build { background: var(--fln-map-gold); }
.fln-hllv__legend-dot--hostile { background: #de6f6f; }
.fln-hllv__legend-dot--friendly { background: var(--fln-map-green); }

.fln-hllv__palette {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.fln-hllv__tool-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.fln-hllv__tool-group-title {
    flex-basis: 100%;
    color: var(--fln-map-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fln-hllv__tool {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--fln-map-border-soft);
    background: #0b0d0b;
    color: var(--fln-map-cream);
    padding: 7px;
}

.fln-hllv__tool:hover,
.fln-hllv__tool.is-active {
    border-color: var(--fln-map-gold);
    background: rgba(219, 174, 88, .14);
    color: var(--fln-map-gold-bright);
}

.fln-hllv__tool.is-active {
    box-shadow: inset 0 -2px 0 var(--fln-map-gold);
}

.fln-hllv__tool img,
.fln-hllv__tool .fln-hllv__icon-mask {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fln-hllv__icon-mask,
.fln-hllv__hq-icon {
    display: block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.fln-hllv__tool-tooltip {
    display: none;
    position: absolute;
    z-index: 40;
    bottom: calc(100% + 7px);
    left: 50%;
    width: max-content;
    max-width: 220px;
    transform: translateX(-50%);
    border: 1px solid var(--fln-map-border);
    background: #050605;
    color: var(--fln-map-cream);
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    font-size: 10px;
    letter-spacing: .02em;
    pointer-events: none;
    text-transform: none;
}

.fln-hllv__tool:hover .fln-hllv__tool-tooltip,
.fln-hllv__tool:focus-visible .fln-hllv__tool-tooltip {
    display: block;
}

.fln-hllv__tool--draw::before,
.fln-hllv__tool--enemy::before {
    color: currentColor;
    font-size: 21px;
    line-height: 1;
}

.fln-hllv__tool--draw::before { content: "↝"; }
.fln-hllv__tool--enemy::before { content: "◇"; }

.fln-hllv__hint,
.fln-hllv__status {
    margin: 9px 0 0;
    min-height: 20px;
    color: var(--fln-map-muted);
    font-size: 12px;
}

.fln-hllv__status.is-error { color: #e98686; }
.fln-hllv details { border: 1px solid var(--fln-map-border); padding: 12px; margin-bottom: 14px; }
.fln-hllv summary { cursor: pointer; color: var(--fln-map-gold-bright); font-weight: 800; margin-bottom: 8px; }
.fln-hllv__library .fln-hllv__toolbar { margin-top: 10px; }
.fln-hllv__elements { margin-top: 12px; }
.fln-hllv__elements select { max-width: 100%; }
.fln-hllv__elements fieldset { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; border: 0; padding: 12px 0 0; }
.fln-hllv__elements legend { font-size: 12px; color: var(--fln-map-muted); padding-top: 8px; }
.fln-hllv__exports { margin-top: 14px; }
.fln-hllv [data-role="coordinates"] { font-size: 12px; color: var(--fln-map-muted); }
.fln-hllv [data-role="measure"][aria-pressed="true"] { outline: 2px solid var(--fln-map-gold-bright); }
.fln-hllv__marker.is-selected { outline: 3px solid #fff; outline-offset: 3px; z-index: 5; }
.fln-hllv__marker-label { position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; white-space: nowrap; padding: 2px 4px; background: #101510e8; color: inherit; pointer-events: none; }
.fln-hllv__drawing-label { fill: #ede5d7; stroke: #0b0d0b; stroke-width: 3px; paint-order: stroke; font: bold 13px sans-serif; }
.fln-hllv button:disabled { opacity: .45; cursor: default; }
.fln-hllv a { color: var(--fln-map-gold-bright); }
.fln-hllv :focus-visible { outline: 2px solid #efc46d; outline-offset: 3px; }
@media (max-width: 640px) {
    .fln-hllv__library .fln-hllv__field, .fln-hllv__library select { width: 100%; min-width: 0; }
    .fln-hllv__marker-label { font-size: 10px; }
}
.fln-hllv__status.is-success { color: var(--fln-map-green); }

.fln-hllv__actionbar,
.fln-hllv__zoom-controls,
.fln-hllv__edit-controls,
.fln-hllv__save,
.fln-hllv__share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

.fln-hllv__actionbar {
    justify-content: space-between;
    margin-top: 15px;
}

.fln-hllv__icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--fln-map-border);
    font-size: 22px;
}

.fln-hllv__save,
.fln-hllv__share {
    margin-top: 16px;
}

.fln-hllv__viewport {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: auto;
    overscroll-behavior: contain;
    background: #050605;
    touch-action: none;
}

.fln-hllv__map {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transform-origin: top left;
    cursor: grab;
    user-select: none;
}

.fln-hllv__map.is-panning { cursor: grabbing; }
.fln-hllv__map.is-placing,
.fln-hllv__map.is-drawing { cursor: crosshair; }

.fln-hllv__map-image,
.fln-hllv__static-layer,
.fln-hllv__range-layer,
.fln-hllv__drawing-layer,
.fln-hllv__marker-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fln-hllv__map-image {
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.fln-hllv__static-layer,
.fln-hllv__range-layer,
.fln-hllv__drawing-layer {
    pointer-events: none;
}

.fln-hllv__dead-zone,
.fln-hllv__playable-border,
.fln-hllv__grid-v,
.fln-hllv__grid-h,
.fln-hllv__grid-label,
.fln-hllv__hardcap,
.fln-hllv__location,
.fln-hllv__hq,
.fln-hllv__range,
.fln-hllv__marker {
    position: absolute;
}

.fln-hllv__dead-zone { background: rgba(0, 0, 0, .62); }
.fln-hllv__playable-border { border: 2px solid rgba(22, 29, 24, .8); }
.fln-hllv__grid-v { width: 2px; background: rgba(22, 29, 24, .7); box-shadow: 0 0 0 1px rgba(250, 245, 228, .35); }
.fln-hllv__grid-h { height: 2px; background: rgba(22, 29, 24, .7); box-shadow: 0 0 0 1px rgba(250, 245, 228, .35); }

.fln-hllv__grid-label {
    transform: translate(4px, 3px);
    color: #182019;
    background: rgba(246, 239, 218, .92);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: clamp(10px, .9vw, 13px);
    font-weight: 900;
    text-shadow: none;
}

.fln-hllv__hardcap {
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.fln-hllv__location,
.fln-hllv__hq {
    width: 0;
    height: 0;
}

.fln-hllv__location-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
}

.fln-hllv__location-name,
.fln-hllv__hq-name {
    position: absolute;
    left: 7px;
    top: 0;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .82);
    font-size: clamp(6px, .68vw, 10px);
    font-weight: 800;
    letter-spacing: .025em;
    text-shadow: 0 1px 3px #000, 0 0 5px #000;
    white-space: nowrap;
}

.fln-hllv__hq-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background-color: currentColor;
    filter: drop-shadow(0 1px 3px #000);
}

.fln-hllv__hq--us { color: var(--fln-map-us); }
.fln-hllv__hq--nva { color: var(--fln-map-nva); }
.fln-hllv__hq .fln-hllv__hq-name { color: currentColor; }

.fln-hllv__range {
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    border-width: 1px;
    border-style: dashed;
    border-radius: 50%;
}

.fln-hllv__range--build { border-color: rgba(219, 174, 88, .72); }
.fln-hllv__range--hostile { border-color: rgba(222, 111, 111, .75); }
.fln-hllv__range--friendly { border-color: rgba(88, 200, 123, .75); }

.fln-hllv__drawing-layer polyline,
.fln-hllv__drawing-layer path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.fln-hllv__marker {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -72%);
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--fln-map-gold-bright);
    cursor: pointer;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .85));
}

.fln-hllv__marker:hover { transform: translate(-50%, -72%) scale(1.14); }
.fln-hllv__marker:disabled { cursor: default; }
.fln-hllv__marker:disabled:hover { transform: translate(-50%, -72%); }
.fln-hllv__marker.is-connection-start { filter: drop-shadow(0 0 7px var(--fln-map-gold-bright)); }
.fln-hllv__marker img,
.fln-hllv__marker .fln-hllv__icon-mask { width: 100%; height: 100%; object-fit: contain; }
.fln-hllv__marker--us { color: var(--fln-map-us); }
.fln-hllv__marker--nva { color: var(--fln-map-nva); }
.fln-hllv__marker--enemy::before { content: "◇"; font-size: 30px; }

.fln-hllv__disclaimer {
    margin: 13px 0 0;
    color: #7f7b73;
    font-size: 11px;
}

/* Workspace: independent controls and a camera surface without scrollbars. */
.fln-hllv { max-width: none; width: 100%; padding: 12px; }
.fln-hllv__intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 16px; }
.fln-hllv__intro .fln-hllv__eyebrow { display: none; }
.fln-hllv__intro h2 { font-size: 28px; line-height: 1.1; }
.fln-hllv .fln-hllv__intro h2 { font-size: 28px; line-height: 1.1; margin: 0; }
.fln-hllv__controls > .fln-hllv__zoom-controls { margin-bottom: 10px; }
.fln-hllv__controls > [data-role="pan"] { margin-bottom: 12px; }
.fln-hllv__intro > p:last-of-type { font-size: 12px; max-width: 460px; }
.fln-hllv__shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); height: var(--fln-map-height, 78vh); min-height: 400px; }
.fln-hllv__controls { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; border-bottom: 0; border-right: 1px solid var(--fln-map-border); }
.fln-hllv__controls .fln-hllv__toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.fln-hllv__controls .fln-hllv__field { flex: initial; min-width: 0; width: 100%; }
.fln-hllv__controls .fln-hllv__toggles { flex: initial; }
.fln-hllv__palette { gap: 12px; margin-bottom: 12px; }
.fln-hllv__checkpoint-grid { grid-template-columns: 1fr; }
.fln-hllv__viewport { position: relative; overflow: hidden; width: 100%; height: 100%; aspect-ratio: auto; cursor: grab; }
.fln-hllv__map { position: absolute; left: 50%; top: 50%; margin: 0; }
.fln-hllv [data-role="pan"][aria-pressed="true"] { outline: 2px solid var(--fln-map-gold); }
.fln-hllv__disclaimer { padding: 0 12px; }
/* Scope the Frontline theme's article-width override to planner pages only. */
body.fln-hllv-page .fln-site-main > .fln-section { padding: 0; }
body.fln-hllv-page .fln-default-page { width: 100%; max-width: none; padding: 0; }
body.fln-hllv-page .fln-entry-content > .fln-hllv { width: 100%; max-width: none; margin: 0; padding: 0; }
body.fln-hllv-page .fln-default-page > nav,
body.fln-hllv-page .fln-default-page article > h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.fln-hllv:is(:fullscreen, .is-expanded) { max-width: none; width: 100%; height: 100dvh; padding: 0; background: var(--fln-map-bg); }
.fln-hllv:is(:fullscreen, .is-expanded) .fln-hllv__intro,
.fln-hllv:is(:fullscreen, .is-expanded) .fln-hllv__disclaimer { display: none; }
.fln-hllv:is(:fullscreen, .is-expanded) .fln-hllv__shell { height: 100%; min-height: 0; border: 0; }
.fln-hllv.is-expanded { position: fixed; inset: 0; z-index: 999999; margin: 0; }
@media (max-width: 650px) {
    .fln-hllv { padding: 0; }
    .fln-hllv__intro { padding: 10px; }
    .fln-hllv__intro h2 { font-size: 23px; }
    .fln-hllv__intro > p:last-of-type { display: none; }
    .fln-hllv__shell { grid-template-columns: 1fr; grid-template-rows: minmax(120px, 30%) minmax(0, 1fr); }
    .fln-hllv__controls { border-right: 0; border-bottom: 1px solid var(--fln-map-border); }
}
@media (prefers-reduced-motion: reduce) {
    .fln-hllv * { transition: none !important; }
}

/* Sidebar navigation keeps frequent actions in place and separates tasks. */
.fln-hllv__shell { grid-template-columns: 350px minmax(0, 1fr); }
.fln-hllv .fln-hllv__controls { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: #111510; }
.fln-hllv__sidebar-head { flex: none; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 16px; border-bottom: 1px solid var(--fln-map-border-soft); }
.fln-hllv .fln-hllv__sidebar-head > label:last-child { flex-direction: row; align-items: center; gap: 10px; }
.fln-hllv__sidebar-head > label:last-child > span { flex: 0 0 52px; }
.fln-hllv__sidebar-head > label:last-child > select { min-width: 0; }
.fln-hllv .fln-hllv__field > span,
.fln-hllv__search > span { font: 600 12px/1.3 Inter, "Segoe UI", sans-serif; letter-spacing: .02em; text-transform: none; color: #c4c8be; }
.fln-hllv .fln-hllv__controls :is(button,input,select) { font-family: Inter, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; }
.fln-hllv .fln-hllv__controls :is(select,input[type="text"],input[type="search"]) { min-height: 42px; height: auto; padding: 9px 10px; font-size: 13px; border: 1px solid #42483c; border-radius: 5px; background: #080c08; color: #f2f1e9; }
.fln-hllv .fln-hllv__controls button { min-height: 42px; border-radius: 5px; }
.fln-hllv .fln-hllv__controls .fln-hllv__button { font-size: 12px; font-weight: 650; padding: 10px 12px; line-height: 1.3; }
.fln-hllv__tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); flex: none; padding: 0 12px; gap: 4px; background: #171d15; border-bottom: 1px solid #42483c; }
.fln-hllv .fln-hllv__tabs .fln-hllv__tab { min-height: 46px; padding: 10px 3px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #bac0b4; font-size: 13px; font-weight: 700; }
.fln-hllv .fln-hllv__tab[aria-selected="true"] { border-bottom-color: #efc46d; color: #ffe2a2; background: #222a1e; }
.fln-hllv .fln-hllv__tab:hover { color: #fff4da; background: #283022; }
.fln-hllv__sidebar-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #647052 #111510; }
.fln-hllv__panel { padding: 16px; }
.fln-hllv__navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.fln-hllv .fln-hllv__navigation button { background: #20291c; border: 1px solid #4c5841; color: #ecf0e5; }
.fln-hllv .fln-hllv__navigation button[aria-pressed="true"] { background: #e6bd68; color: #141a10; border-color: #ffe3a4; outline: 0; box-shadow: inset 0 -3px 0 #977329; }
.fln-hllv__search { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.fln-hllv__search input { width: 100%; }
.fln-hllv__palette { display: block; margin-bottom: 12px; }
.fln-hllv .fln-hllv__tool-group { display: block; border: 0; border-top: 1px solid #343d2d; padding: 0; margin: 0; }
.fln-hllv .fln-hllv__tool-group > summary { padding: 14px 0; margin: 0; color: #d5dbc9; font: 700 12px/1.4 Inter,"Segoe UI",sans-serif; text-transform: none; letter-spacing: .025em; }
.fln-hllv__tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding-bottom: 14px; }
.fln-hllv .fln-hllv__tool { width: 100%; height: auto; min-height: 64px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; justify-items: start; gap: 8px; padding: 9px; border: 1px solid #3c4832; background: #1b2317; color: #eaeede; text-align: left; }
.fln-hllv .fln-hllv__tool :is(img,.fln-hllv__icon-mask) { width: 28px; height: 28px; }
.fln-hllv__tool-name { white-space: normal; overflow-wrap: anywhere; font: 600 11px/1.35 Inter,"Segoe UI",sans-serif; }
.fln-hllv .fln-hllv__controls button.fln-hllv__tool { min-height: 64px; }
.fln-hllv__tool-name { font-size: 12px; }
.fln-hllv .fln-hllv__controls input::placeholder { color: #a5b09b; opacity: 1; }
.fln-hllv .fln-hllv__tool:hover { background: #2b3822; border-color: #b0bf96; color: #fff; }
.fln-hllv .fln-hllv__tool.is-active { background: #e6bd68; border-color: #fff0c4; color: #161e10; box-shadow: inset 0 -3px 0 #927128; }
.fln-hllv .fln-hllv__tool[data-tool="garrison"] { border-color: #a98c50; }
.fln-hllv .fln-hllv__elements { background: #171e13; border: 1px solid #38442e; padding: 10px; margin: 14px 0; border-radius: 5px; }
.fln-hllv .fln-hllv__elements summary { color: #ced7c0; font: 600 12px/1.5 Inter,"Segoe UI",sans-serif; margin: 0; }
.fln-hllv .fln-hllv__elements[open] summary { margin-bottom: 10px; }
.fln-hllv .fln-hllv__elements [data-role="element-count"] { display: block; font-size: 10px; color: #a9b49a; }
.fln-hllv .fln-hllv__elements fieldset { flex-direction: column; align-items: stretch; }
.fln-hllv .fln-hllv__section-title { font: 700 13px/1.4 Inter,"Segoe UI",sans-serif; color: #e3e8dc; margin: 0 0 14px; text-transform: none; letter-spacing: 0; }
.fln-hllv [data-panel="layers"] > .fln-hllv__field { margin-bottom: 20px; }
.fln-hllv [data-panel="plans"] > .fln-hllv__share { margin: 0 0 18px; padding: 12px; background: #222d19; border: 1px solid #6a8050; border-radius: 5px; }
.fln-hllv .fln-hllv__toggles { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 16px; }
.fln-hllv .fln-hllv__toggles label { display: flex; min-height: 44px; padding: 8px 10px; gap: 12px; border-bottom: 1px solid #30392b; font-size: 13px; color: #e1e6d9; }
.fln-hllv .fln-hllv__toggles input { width: 18px; height: 18px; margin: 0; accent-color: #efc46d; }
.fln-hllv .fln-hllv__legend { display: grid; gap: 10px; padding: 14px 0; font-size: 12px; color: #bdc7af; }
.fln-hllv .fln-hllv__legend > span:first-child { display: none; }
.fln-hllv .fln-hllv__checkpoint-panel { padding: 10px; margin: 12px 0; }
.fln-hllv .fln-hllv__checkpoint-head { flex-wrap: wrap; gap: 8px; }
.fln-hllv .fln-hllv__checkpoint-head strong { font: 700 13px/1.4 Inter,"Segoe UI",sans-serif; }
.fln-hllv .fln-hllv__checkpoint-item { min-height: 36px; font-size: 12px; }
.fln-hllv .fln-hllv__library { padding: 12px; border: 1px solid #38442e; border-radius: 5px; background: #171e13; }
.fln-hllv .fln-hllv__library summary { font-size: 13px; color: #e3e8dc; }
.fln-hllv .fln-hllv__help,.fln-hllv .fln-hllv__empty,.fln-hllv .fln-hllv__hint { font: 12px/1.55 Inter,"Segoe UI",sans-serif; color: #b2bca5; margin: 12px 0; }
.fln-hllv .fln-hllv__danger { color: #efb4ab; background: transparent; border-color: #674138; }
.fln-hllv .fln-hllv__danger:hover { background: #48241f; color: #ffe6e1; }
.fln-hllv__sidebar-footer { flex: none; padding: 12px 16px; border-top: 1px solid #4b513c; background: #1a2115; box-shadow: 0 -8px 20px #0003; }
.fln-hllv .fln-hllv__sidebar-footer .fln-hllv__save { display: grid; gap: 8px; margin: 0; }
.fln-hllv .fln-hllv__sidebar-footer .fln-hllv__button--primary { width: 100%; background: #e6bd68; color: #171b10; border-color: #efcf8e; font-size: 13px; font-weight: 750; }
.fln-hllv .fln-hllv__sidebar-footer .fln-hllv__status { margin: 7px 0 0; min-height: 16px; font-size: 11px; line-height: 1.4; }
.fln-hllv__viewport > .fln-hllv__zoom-controls { position: absolute; z-index: 20; top: 12px; right: 12px; display: flex; flex-wrap: nowrap; gap: 4px; padding: 5px; border: 1px solid #62694e; border-radius: 7px; background: #10160fee; box-shadow: 0 3px 16px #0005; }
.fln-hllv__viewport > .fln-hllv__zoom-controls button { min-height: 40px; height: 40px; padding: 7px 10px; border: 0; border-radius: 4px; font: 600 12px/1.2 Inter,"Segoe UI",sans-serif; text-transform: none; letter-spacing: 0; }
.fln-hllv__viewport > .fln-hllv__zoom-controls .fln-hllv__icon-button { width: 40px; font-size: 22px; }
.fln-hllv__map-help { position: absolute; z-index: 10; bottom: 12px; left: 12px; padding: 7px 10px; border-radius: 5px; background: #10160fee; color: #d4dcc8; display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; pointer-events: none; }
.fln-hllv .fln-hllv__map-help [data-role="coordinates"] { color: #ffdda0; font-weight: 700; }
/* Markers use a dark badge and a light symbol, independent of terrain color. */
.fln-hllv .fln-hllv__marker { width: 26px; height: 26px; padding: 4px; border: 2px solid currentColor; border-radius: 50%; background: #10180f; transform: translate(-50%,-50%); box-shadow: 0 0 0 1px #f6f2dc,0 2px 4px #0008; filter: none; }
.fln-hllv .fln-hllv__marker[data-marker-type="garrison"] { width: 28px; height: 28px; padding: 4px; border-width: 2px; }
.fln-hllv .fln-hllv__marker .fln-hllv__icon-mask { background-color: #fff6dc; }
.fln-hllv .fln-hllv__marker--enemy::before { color: #fff6dc; font-size: 18px; }
.fln-hllv .fln-hllv__marker:hover { transform: translate(-50%,-50%) scale(1.08); z-index: 6; }
.fln-hllv .fln-hllv__marker.is-selected { outline: 2px solid #fff; outline-offset: 3px; z-index: 7; box-shadow: 0 0 0 3px #182611,0 2px 6px #0009; }
.fln-hllv .fln-hllv__marker-label { top: calc(100% + 3px); left: 50%; transform: translateX(-50%); color: #fff6dc; background: #10180ff2; padding: 2px 4px; border: 1px solid #d2c598; border-radius: 3px; font: 700 10px/1.2 Inter,"Segoe UI",sans-serif; box-shadow: 0 1px 3px #0008; }
.fln-hllv .fln-hllv__range { border-width: 2px; box-shadow: 0 0 0 1px #10180f80; }
.fln-hllv .fln-hllv__range--build { border-color: #8e660e; border-style: solid; }
.fln-hllv .fln-hllv__range--hostile { border-color: #bd4743; }
.fln-hllv .fln-hllv__range--friendly { border-color: #287d43; }
.fln-hllv .fln-hllv__location-name,.fln-hllv .fln-hllv__hq-name { font-size: clamp(9px,.7vw,11px); }
.fln-hllv .fln-hllv__hardcap { border: 2px solid #fff3c4; box-shadow: 0 0 0 2px #252b20, inset 0 0 0 1px #252b20; background: rgba(239,196,109,.12); }
.fln-hllv__route-settings { margin: 12px 0; padding: 12px; border: 1px solid #6a8050; border-radius: 5px; background: #1c2717; }
.fln-hllv__route-settings legend { color: #efc46d; font-size: 13px; font-weight: 700; padding: 0 5px; }
.fln-hllv__route-preview { width: 100%; height: 60px; display: block; background: #090d08; border-radius: 3px; }
.fln-hllv__shape-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fln-hllv__marker-layer { pointer-events: none; }
.fln-hllv__marker-layer button { pointer-events: auto; }
.fln-hllv__shape { vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: all; cursor: pointer; }
.fln-hllv__drawing-hit { pointer-events: stroke; cursor: pointer; }
.fln-hllv__context-menu { position: absolute; z-index: 50; min-width: 180px; max-width: 260px; padding: 6px; background: #151d12; border: 1px solid #7b8965; border-radius: 6px; box-shadow: 0 5px 22px #0009; }
.fln-hllv__context-menu > span { display: block; padding: 5px 8px; color: #d9dfcd; font-size: 12px; overflow-wrap: anywhere; }
.fln-hllv .fln-hllv__context-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; padding: 8px; border: 0; background: #37201c; color: #ffd5ca; font: 600 13px Inter,"Segoe UI",sans-serif; }
.fln-hllv__context-menu kbd { background: transparent; border: 0; color: #c3b5a6; font: 11px Inter,"Segoe UI",sans-serif; }
.fln-hllv__shape.is-selected { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #000); }
.fln-hllv__shape-icon { width: 28px; height: 28px; flex: 0 0 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.fln-hllv [data-role="select-tool"] { grid-column: 1 / -1; }
.fln-hllv__watermark-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.fln-hllv__watermark-layer g { opacity: .3; }
.fln-hllv__watermark-layer text { font: 800 32px Inter,"Segoe UI",sans-serif; fill: #182018; stroke: #fff6dc; stroke-width: 2px; paint-order: stroke; text-anchor: middle; }
.fln-hllv__map-brand { position: absolute; left: 16px; top: 18px; z-index: 10; padding: 4px 8px; border-radius: 3px; background: #10180f99; color: #fff6dc; opacity: .65; font: 800 18px/1.2 Inter,"Segoe UI",sans-serif; pointer-events: none; user-select: none; }
.fln-hllv__language { flex: 0 0 64px; margin: 0; }
.fln-hllv .fln-hllv__language select { width: 64px; min-height: 36px; padding: 6px; color: #fff0c4; background: #151d12; border: 1px solid #6a7759; border-radius: 4px; font: 600 13px Inter,"Segoe UI",sans-serif; }
.fln-hllv__mobile-dock,.fln-hllv__mobile-close,.fln-hllv__mobile-draw,.fln-hllv__mobile-status { display: none; }
@media (max-width: 650px) {
    .fln-hllv__shell { grid-template-columns: 1fr; grid-template-rows: minmax(190px,35%) minmax(0,1fr); }
    .fln-hllv .fln-hllv__controls { display: block; overflow-y: auto; }
    .fln-hllv__sidebar-head { grid-template-columns: 1fr 1fr; padding: 10px; }
    .fln-hllv .fln-hllv__sidebar-head > label:last-child { flex-direction: column; align-items: stretch; gap: 7px; }
    .fln-hllv__sidebar-head > label:last-child > span { flex: none; }
    .fln-hllv__tabs { position: sticky; top: 0; z-index: 20; }
    .fln-hllv__sidebar-scroll { overflow: visible; }
    .fln-hllv__panel { padding: 12px; }
    .fln-hllv__map-help > span { display: none; }
    .fln-hllv__viewport > .fln-hllv__zoom-controls { top: 8px; right: 8px; }
}
/* Phone workspace: independent of the desktop grid and sidebar. */
.fln-hllv.is-mobile { position: fixed; inset: 0; z-index: 100000; width: 100%; max-width: none; height: 100vh; height: 100dvh; margin: 0; padding: 0; box-sizing: border-box; border: 0; border-radius: 0; background: #090d08; overflow: hidden; }
html:has(.fln-hllv.is-mobile),body:has(.fln-hllv.is-mobile) { overflow: hidden; }
.fln-hllv.is-mobile .fln-hllv__intro { position: absolute; inset: 0 0 auto; height: calc(52px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) 12px 8px; display: flex; align-items: center; gap: 8px; justify-content: space-between; box-sizing: border-box; }
.fln-hllv.is-mobile .fln-hllv__intro h2 { min-width: 0; font-size: 15px; line-height: 1.2; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fln-hllv.is-mobile .fln-hllv__intro p { display: none; }
.fln-hllv.is-mobile .fln-hllv__language select { min-height: 40px; font-size: 16px; }
.fln-hllv.is-mobile .fln-hllv__shell { position: absolute; inset: calc(52px + env(safe-area-inset-top)) 0 calc(62px + env(safe-area-inset-bottom)); width: 100%; height: auto; min-height: 0; display: block; border: 0; }
.fln-hllv.is-mobile .fln-hllv__viewport { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; touch-action: none; }
.fln-hllv.is-mobile .fln-hllv__controls { position: absolute; z-index: 40; inset: auto 0 0; width: 100%; height: 86%; max-height: 86%; padding: 0; display: flex; flex-direction: column; background: #12190f; border: 1px solid #5e7050; border-radius: 16px 16px 0 0; overflow: hidden; visibility: hidden; transform: translateY(100%); box-shadow: 0 -8px 30px #0008; }
.fln-hllv.is-mobile.is-mobile-open .fln-hllv__controls { visibility: visible; transform: none; }
.fln-hllv.is-mobile .fln-hllv__mobile-close { display: block; flex: none; width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid #36452e; background: #283721; color: #fff0c4; font-size: 14px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-head > label:last-child { flex-direction: column; align-items: stretch; gap: 7px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-head > label:last-child > span { flex: none; }
.fln-hllv.is-mobile .fln-hllv__tabs { display: none; }
.fln-hllv.is-mobile .fln-hllv__sidebar-scroll { min-height: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fln-hllv.is-mobile .fln-hllv__panel { padding: 12px; }
.fln-hllv.is-mobile .fln-hllv__controls :is(input[type="text"],input[type="search"],select) { font-size: 16px; min-height: 44px; }
.fln-hllv.is-mobile .fln-hllv__controls button { min-height: 44px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-footer { padding: 8px 12px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-footer .fln-hllv__status { display: block; min-height: 0; font-size: 12px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-footer .fln-hllv__status:empty { display: none; }
.fln-hllv.is-mobile .fln-hllv__sidebar-footer [data-role="save-row"] { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: end; gap: 8px; }
.fln-hllv.is-mobile .fln-hllv__sidebar-footer label { margin: 0; }
.fln-hllv.is-mobile .fln-hllv__mobile-draw { display: block; width: 100%; margin-top: 12px; color: #11180d; background: #e6bd68; border: 1px solid #fff0c4; }
.fln-hllv.is-mobile .fln-hllv__mobile-dock { position: absolute; inset: auto 0 0; height: calc(62px + env(safe-area-inset-bottom)); padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; background: #131d10; border-top: 1px solid #65724e; box-sizing: border-box; }
.fln-hllv.is-mobile .fln-hllv__mobile-dock button { padding: 6px 2px; min-height: 48px; border: 1px solid transparent; border-radius: 6px; color: #dde4d4; background: transparent; font: 700 12px/1.2 Inter,"Segoe UI",sans-serif; text-transform: none; letter-spacing: 0; }
.fln-hllv.is-mobile .fln-hllv__mobile-dock button.is-active { background: #35472a; border-color: #b4b787; color: #ffe1a0; }
.fln-hllv.is-mobile .fln-hllv__mobile-status { display: block; position: absolute; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); max-height: 44px; overflow: hidden; pointer-events: none; padding: 6px 8px; background: #111a0eeb; color: #eee8cf; font: 12px/1.35 Inter,"Segoe UI",sans-serif; border-radius: 4px; }
.fln-hllv.is-mobile.is-mobile-open .fln-hllv__mobile-status { display: none; }
.fln-hllv.is-mobile .fln-hllv__map-help { bottom: 54px; left: 8px; padding: 4px 6px; }
.fln-hllv.is-mobile .fln-hllv__map-help > span,.fln-hllv.is-mobile .fln-hllv__disclaimer { display: none; }
.fln-hllv.is-mobile .fln-hllv__zoom-controls { top: 8px; right: 8px; padding: 2px; gap: 1px; }
.fln-hllv.is-mobile .fln-hllv__zoom-controls button { min-width: 40px; min-height: 44px; height: 44px; padding: 6px; }
.fln-hllv.is-mobile .fln-hllv__zoom-controls [data-role="fullscreen"] { display: none; }
.fln-hllv.is-mobile .fln-hllv__map-brand { top: 18px; left: 8px; font-size: 14px; }
@media (max-height: 500px) {
    .fln-hllv.is-mobile .fln-hllv__controls { height: 100%; max-height: 100%; width: min(420px,90%); right: auto; border-radius: 0 12px 12px 0; display: block; overflow-y: auto; overscroll-behavior: contain; }
    .fln-hllv.is-mobile .fln-hllv__mobile-close { position: sticky; top: 0; z-index: 2; }
    .fln-hllv.is-mobile .fln-hllv__sidebar-scroll { overflow: visible; }
}
