:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --primary: #e94560;
    --secondary: #0f3460;
    --text: #eaeaea;
    --text-muted: #a0a0a0;
    --text-primary: #f5f5f5;
    --border: #2a2a4a;
    --border-light: #3a3a5a;
    --sidebar-width: 300px;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.zoom-level {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.fit-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fit-btn:hover {
    background: var(--primary);
}

/* Main Layout */
.app-container {
    display: flex;
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

/* Main Map Area */
.main-area {
    flex: 1;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--header-height));
    overflow: auto;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.map-container {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background:
        linear-gradient(90deg, var(--border) 1px, transparent 1px),
        linear-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: var(--surface);
    transition: width 0.2s ease, height 0.2s ease;
}

.map-container.has-map {
    border-style: solid;
    border-color: var(--secondary);
    background: none;
    overflow: visible;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
    pointer-events: none;
    min-width: 400px;
    min-height: 300px;
}

.map-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

/* Watermark */
.watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    user-select: none;
    z-index: 5;
    white-space: nowrap;
}

.map-container.has-map .map-placeholder {
    display: none;
}

.map-image {
    display: block;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

/* Sidebar - Right Side */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    height: 100%;
    position: fixed;
    right: 0;
    top: var(--header-height);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.file-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Marker Settings */
.marker-settings {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--secondary);
    border-radius: 8px;
}

.marker-settings.visible {
    display: flex;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-row label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.color-picker-row input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.shape-picker {
    display: flex;
    gap: 8px;
}

.shape-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shape-btn:hover {
    border-color: var(--text-muted);
}

.shape-btn.active {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.2);
}

.shape-preview {
    width: 14px;
    height: 14px;
    background: var(--text);
}

.shape-preview.circle {
    border-radius: 50%;
}

.shape-preview.square {
    border-radius: 2px;
}

.shape-preview.none {
    background: transparent;
    border: 2px dashed var(--text-muted);
}

/* Photo Drop Zone */
.photo-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.photo-drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.1);
}

.drop-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.delete-marker-btn {
    background: #c0392b;
    color: white;
    margin-top: 4px;
}

.delete-marker-btn:hover {
    background: #e74c3c;
}

/* Thumbnail Grid */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.thumbnail-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary);
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumbnail-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

.thumbnail-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.thumbnail-card .delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.thumbnail-card:hover .delete-btn {
    opacity: 1;
}

.thumbnail-card .delete-btn:hover {
    background: var(--primary);
}

.thumbnail-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 0.65rem;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px;
    grid-column: 1 / -1;
}

/* Placed Markers */
.marker {
    position: absolute;
    overflow: hidden;
    cursor: move;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, border 0.2s ease;
    z-index: 10;
    transform: translate(-50%, -50%);
    border: 3px solid #e94560;
    animation: markerAppear 0.3s ease;
    touch-action: none;
}

@keyframes markerAppear {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.marker.no-frame {
    border-width: 0;
}

.marker.no-frame .resize-handle {
    display: none;
}

/* Special marker shapes */
.marker.shape-pin {
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.marker.shape-star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}

.marker.shape-heart {
    clip-path: path("M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35");
    border-radius: 0;
}

.marker.shape-rounded {
    border-radius: 12px;
}

.marker.selected {
    z-index: 50;
    box-shadow: 0 0 0 3px white, 0 4px 20px rgba(233, 69, 96, 0.5);
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.marker.dragging {
    opacity: 0.8;
    z-index: 100;
}

.marker.resizing {
    z-index: 101;
    cursor: se-resize;
}

.marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.marker .resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    cursor: se-resize;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.marker .resize-handle::before {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 2px;
}

.marker:hover .resize-handle,
.marker.selected .resize-handle,
.marker.resizing .resize-handle {
    opacity: 1;
}

/* Hidden file inputs */
.hidden-input {
    display: none;
}

/* Export Section */
#exportSection {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.export-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin: 6px 0 12px;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--secondary);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Drag over state */
.map-container.drag-over {
    border-color: var(--primary);
    background-color: rgba(233, 69, 96, 0.1);
}

/* Help section - Professional UX */
.help-section {
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.help-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #d63d56 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.help-header svg {
    opacity: 0.9;
}

.help-content {
    padding: 8px 12px 12px;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.help-item:last-child {
    border-bottom: none;
}

.help-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 6px;
    color: var(--primary);
}

.help-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.help-text-wrapper strong {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.help-text-wrapper span {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Selected marker info */
.selected-info {
    display: none;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.selected-info.visible {
    display: flex;
}

/* ============================================
   FLOATING MARKER POPOVER
   ============================================ */
.marker-popover {
    position: absolute;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 16px;
    z-index: 200;
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: popoverAppear 0.2s ease;
}

.marker-popover.visible {
    display: flex;
}

@keyframes popoverAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popover-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popover-close:hover {
    background: var(--secondary);
    color: var(--text);
}

.popover-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popover-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popover-toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Preset Grid */
.preset-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-btn:hover {
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.preset-btn.active {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.15);
}

.preset-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
}

.preset-preview.classic {
    border: 3px solid #e94560;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.preset-preview.subtle {
    border: 2px solid #a0a0a0;
    opacity: 0.8;
}

.preset-preview.bold {
    border: 5px solid #e94560;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.preset-preview.minimal {
    border: none;
    background: transparent;
}

.preset-preview.polaroid {
    border: 4px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.preset-preview.glow {
    border: 3px solid #e94560;
    box-shadow: 0 0 12px #e94560, 0 2px 8px rgba(0,0,0,0.3);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--primary);
}

.custom-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.custom-color-row label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.custom-color-row input[type="color"] {
    width: 32px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

/* Shape Grid */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.shape-btn {
    aspect-ratio: 1;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.shape-btn:hover {
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.shape-btn.active {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.15);
}

.shape-icon {
    display: block;
    background: var(--text);
}

.shape-icon.circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.shape-icon.square {
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

.shape-icon.rounded {
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

.shape-icon.pin {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid var(--text);
    background: transparent;
}

.shape-icon.star {
    font-size: 18px;
    line-height: 1;
    color: var(--text);
    background: transparent;
}

.shape-icon.heart {
    font-size: 16px;
    line-height: 1;
    color: var(--text);
    background: transparent;
}

/* Sliders */
.popover-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg);
    appearance: none;
    cursor: pointer;
}

.popover-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(233, 69, 96, 0.4);
    transition: transform 0.2s ease;
}

.popover-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.popover-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Toggle Button */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-btn.active .toggle-track {
    background: var(--primary);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-btn.active .toggle-thumb {
    transform: translateX(20px);
}

/* Popover Actions */
.popover-actions {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Mobile Popover - show as bottom sheet */
@media (max-width: 768px) {
    .marker-popover {
        position: fixed;
        width: calc(100% - 24px);
        max-width: 320px;
        left: 12px !important;
        right: 12px;
        bottom: 12px;
        top: auto !important;
        max-height: 60vh;
        overflow-y: auto;
        padding: 14px;
        gap: 12px;
    }

    .marker-popover.visible {
        display: flex;
    }

    .preset-grid {
        justify-content: center;
    }

    .color-swatches {
        justify-content: center;
    }

    .shape-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .popover-slider {
        height: 8px;
    }

    .popover-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
}

/* On mobile, ensure selected marker panel is always visible */
@media (max-width: 768px) {
    .selected-info.visible {
        order: -1;
    }

    .selected-info.visible {
        display: flex !important;
    }
}

.selected-info .section-title {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 50px;
        --sidebar-width: 100%;
    }

    header {
        padding: 0 12px;
    }

    header h1 {
        font-size: 1rem;
    }

    .zoom-controls {
        gap: 4px;
    }

    .zoom-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .zoom-level {
        font-size: 0.75rem;
        min-width: 40px;
    }

    .fit-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .app-container {
        flex-direction: column;
    }

    .main-area {
        height: 60vh;
        padding: 12px;
        order: 1;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 12px;
        gap: 12px;
        order: 2;
        height: auto;
        max-height: 50vh;
        overflow-y: auto;
    }

    .section-title {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .help-text {
        font-size: 0.65rem;
        padding: 6px;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .thumbnail-card {
        aspect-ratio: 1;
    }

    .thumbnail-name {
        font-size: 0.55rem;
    }

    .map-placeholder {
        min-width: 250px;
        min-height: 200px;
    }

    .map-placeholder svg {
        width: 48px;
        height: 48px;
    }

    .map-placeholder span {
        font-size: 0.8rem;
    }

    .desktop-help {
        display: none;
    }
    .mobile-help {
        display: inline !important;
    }
}

@media (min-width: 769px) {
    .desktop-help {
        display: inline;
    }
    .mobile-help {
        display: none;
    }
}

@media (max-width: 480px) {
    header h1::before {
        width: 6px;
        height: 6px;
    }

    .main-area {
        height: 50vh;
    }

    .sidebar {
        max-height: 50vh;
    }

    .thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .shape-picker {
        flex-wrap: wrap;
    }

    .shape-btn {
        flex: 1 1 45%;
        min-width: 70px;
    }
}
