.mappressor-map-wrapper {
    position: relative;
}

.mappressor-map {
    width: 100%;
    height: 400px;
    min-height: 240px;
}

.mappressor-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 240px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    background: #0b1120;
}

.mappressor-map-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.mappressor-map-type-btn {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.35);
    color: inherit;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.mappressor-map-type-btn.is-active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-color: transparent;
}

.mappressor-query-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.mappressor-query-row[hidden] {
    display: none !important;
}

.mappressor-attribution {
    position: absolute;
    right: 8px;
    bottom: 4px;
    background: rgba(0,0,0,0.6);
    color: #e5e7eb;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 5;
}

.mappressor-viewer-module {
    border: 2px solid rgba(99, 102, 241, 0.55);
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}

.mappressor-viewer-panel .mappressor-viewer-module {
    border-width: 2px;
}

.mappressor-chrome-btn--maximize {
    font-size: 11px;
}

/* Map params module — TaskPressor-style side tabs */
.mappressor-params-tabs {
    display: flex;
    flex-direction: row;
    min-height: 0;
    flex: 1 1 auto;
    width: 100%;
    align-self: stretch;
    padding: 0;
}

.mappressor-params-tabs .mappressor-params-tabs__nav {
    flex-shrink: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.4);
}

.mappressor-params-tabs .mappressor-params-tabs__main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    overflow: auto;
}

.mappressor-params-tabs .pressor-task-panel {
    display: none;
}

.mappressor-params-tabs .pressor-task-panel.is-active {
    display: block;
}

.mappressor-params-tabs .pressor-subsection-title {
    margin-top: 0;
}

.mappressor-tile-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
}

.mappressor-tile-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 8px;
}

.mappressor-tile-url-row .pressor-input {
    flex: 1;
    min-width: 0;
}

.mappressor-tile-url-row .pressor-btn-inline {
    flex-shrink: 0;
    white-space: nowrap;
}

.mappressor-tile-browse-modal {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
}

.mappressor-tile-browse-modal[hidden] {
    display: none !important;
}

.mappressor-tile-browse-inner {
    width: min(420px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.mappressor-tile-browse-inner h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.mappressor-tile-browse-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.mappressor-tile-browse-list li {
    margin: 0 0 6px;
}

.mappressor-tile-browse-list button {
    width: 100%;
    text-align: left;
    font-size: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
}

.mappressor-tile-browse-list button:hover {
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.45);
}

.mappressor-tile-browse-url {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #475569;
    word-break: break-all;
    margin-top: 2px;
}

.mappressor-tile-browse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mappressor-tile-preset-btn {
    font-size: 11px;
    padding: 4px 8px;
}

.mappressor-tile-zoom-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px 10px;
    align-items: center;
    margin: 8px 0;
}

.mappressor-tile-zoom-input {
    max-width: 5rem;
}

.mappressor-tile-status {
    min-height: 1.2em;
    margin-top: 8px;
}

.mappressor-tile-preview {
    display: block;
    max-width: 256px;
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 6px;
}

.mappressor-tile-preview.is-error {
    opacity: 0.45;
    border-color: #f87171;
}

.mappressor-share-panel {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.mappressor-share-panel__title {
    margin: 0 0 6px;
    font-size: 13px;
}

.mappressor-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 10px;
}

.mappressor-share-token-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
}

.mappressor-share-token-row .pressor-input {
    flex: 1;
    min-width: 0;
}

.mappressor-share-import {
    width: 100%;
    min-height: 72px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    margin-bottom: 8px;
}

.mappressor-share-merge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}

.mappressor-share-status {
    min-height: 1.2em;
    margin-top: 6px;
}

.mappressor-boundary-legend[hidden] {
    display: none !important;
}

.mappressor-boundary-legend {
    position: absolute;
    left: 10px;
    bottom: 30px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4338ca;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    pointer-events: none;
}

.mappressor-boundary-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.32);
    border: 2px solid #4338ca;
}
