:root {
    /* Colors */
    --color-teal: #14b8a6;
    --color-hover-bg: #f0f2f5;
    --color-border: #ddd;

    /* Spacing scale */
    --spacing-xs: 4px;
    --spacing-sm: 6px;
    --spacing-md: 8px;
    --spacing-lg: 12px;
    --spacing-xl: 16px;
    --spacing-2xl: 24px;

    /* Shadows */
    --shadow-card: 1px 1px 3px rgba(0, 0, 0, 0.12), 2px 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 2px 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-modal: 0 4px 24px rgba(0, 0, 0, 0.15);

    /* Sizing */
    --card-width: 180px;
    --label-width: 80px;
    --border-radius: 6px;
    --border-radius-sm: 4px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    color: var(--color-teal);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.board-name {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.board-name:hover {
    background-color: var(--color-hover-bg);
}

.board-name:focus {
    outline: none;
    border-color: #5eead4;
    background-color: #fff;
}

.board-name::placeholder {
    color: #aaa;
    font-weight: 400;
}

.board-name.hidden {
    visibility: hidden;
    pointer-events: none;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.viewer-count {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.viewer-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.viewer-count.visible {
    display: flex;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: var(--shadow-dropdown);
    min-width: 200px;
    padding: 6px 0;
    z-index: 100;
    display: none;
    white-space: nowrap;
}

.dropdown-menu.visible {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.dropdown-item:hover:not(:disabled):not(.disabled) {
    background-color: var(--color-hover-bg);
}

.dropdown-item:disabled,
.dropdown-item.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 6px 0;
}

.dropdown-submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-submenu-trigger::after {
    content: '›';
    margin-left: 8px;
    transition: transform 0.15s ease;
}

.dropdown-submenu-trigger.expanded::after {
    transform: rotate(90deg);
}

.dropdown-submenu-content {
    display: none;
    padding-left: 12px;
    background: #f9fafb;
}

.dropdown-submenu-content.visible {
    display: block;
}

.dropdown-submenu-content .dropdown-item {
    font-size: 13px;
}

.menu-badge {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    background-color: var(--color-teal);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn:hover {
    background-color: #0d9488;
}

.btn-secondary {
    background-color: #fff;
    color: #0f766e;
    border: 1px solid #5eead4;
}

.btn-secondary:hover {
    background-color: #f0fdfa;
}

.btn-icon {
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1;
}

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

/* Zoom Controls */
.story-map-wrapper {
    display: none;
    overflow: auto;
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%; /* Fix Safari alignment */

    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Webkit (Chrome, Safari, Edge) */
.story-map-wrapper::-webkit-scrollbar {
    display: none;
}

.story-map-wrapper.visible {
    display: block;
}

.story-map-wrapper.panning {
    cursor: grabbing;
    user-select: none;
}

.story-map-wrapper.pan-enabled {
    cursor: grab;
}

/* Right-side controls stack (legend + notes) */
.controls-right {
    position: fixed;
    bottom: 72px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.controls-right.hidden {
    display: none;
}

/* Legend Panel */
.legend-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.legend-toggle {
    width: 84px;
    height: 36px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.legend-toggle::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(135deg, #fef08a 25%, #93c5fd 25%, #93c5fd 50%, #86efac 50%, #86efac 75%, #f0abfc 75%);
}

.legend-toggle:hover {
    background-color: var(--color-hover-bg);
    color: #333;
}

.legend-toggle:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.legend-panel.open .legend-toggle {
    color: #333;
    border-color: #bbb;
}

.legend-body {
    display: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-bottom: 6px;
    width: 218px;
}

.legend-panel.open .legend-body {
    display: block;
}

.legend-entries {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-entry {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

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

.legend-label {
    flex: 1;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    color: #333;
    min-width: 0;
}

.legend-label:focus {
    outline: none;
    border-color: #93c5fd;
    background: white;
}

.legend-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
    line-height: 1;
}

.legend-remove:hover {
    color: #e11d48;
}

.legend-add-btn {
    width: 100%;
    background: none;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 4px;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all 0.15s ease;
}

.legend-add-btn:hover {
    border-color: #93c5fd;
    color: #333;
}

.legend-color-picker {
    padding: 8px;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

/* Notes Panel */
.notes-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.notes-toggle {
    width: 84px;
    height: 36px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.notes-toggle::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M2 2h12v12H2V2zm1 1v10h10V3H3zm1 2h8v1H4V5zm0 3h8v1H4V8zm0 3h5v1H4v-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.notes-toggle:hover {
    background-color: var(--color-hover-bg);
    color: #333;
}

.notes-panel.open .notes-toggle {
    color: #333;
    border-color: #bbb;
}

.notes-body {
    display: none;
    width: min(540px, calc(100vw - 48px));
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}

.notes-panel.open .notes-body {
    display: block;
    animation: notes-reveal 0.15s ease;
}

@keyframes notes-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.notes-header {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
    border-radius: 10px 10px 0 0;
}

.notes-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
}


.notes-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    padding: 0 0 0 8px;
    line-height: 1;
    transition: color 0.15s ease;
}

.notes-close:hover {
    color: #666;
}

.notes-editor {
    width: 100%;
    min-height: min(620px, calc(100vh - 200px));
    min-height: min(620px, calc(100dvh - 200px));
    border: none;
    border-left: 2px solid transparent;
    box-sizing: border-box;
    background: white;
    background-image: repeating-linear-gradient(
        transparent,
        transparent calc(25px - 1px),
        #ededee calc(25px - 1px),
        #ededee 25px
    );
    background-size: 100% 25px;
    background-position: 0 10px;
    transition: border-color 0.15s ease;
}

.notes-editor:focus-within {
    border-left-color: var(--color-teal);
}

.notes-editor .cm-editor {
    height: 100%;
    background: transparent;
}

.notes-editor .cm-scroller {
    overflow: auto;
}

.notes-editor .cm-content {
    min-height: min(600px, calc(100vh - 220px));
    min-height: min(600px, calc(100dvh - 220px));
}

.notes-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.04) 50%);
    border-radius: 0 0 10px 0;
    pointer-events: none;
}

/* Legend: tablet */
@media (max-width: 900px) {
}

/* Legend & Notes: mobile */
@media (max-width: 600px) {
    .controls-right {
        right: 12px;
        bottom: 56px;
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .legend-toggle {
        width: 76px;
        height: 32px;
        font-size: 11px;
        padding: 0 8px;
    }

    .legend-toggle::before {
        width: 8px;
        height: 8px;
    }

    .legend-body {
        width: 182px;
        padding: 6px;
    }

    .legend-swatch {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .legend-label {
        font-size: 12px;
    }

    .notes-toggle {
        width: 76px;
        height: 32px;
        font-size: 11px;
        padding: 0 8px;
    }

    .notes-toggle::before {
        width: 8px;
        height: 8px;
    }

    .notes-body {
        width: calc(100vw - 32px);
    }

    .notes-editor {
        min-height: min(400px, calc(100vh - 180px));
        min-height: min(400px, calc(100dvh - 180px));
    }

    .notes-editor .cm-content {
        min-height: min(380px, calc(100vh - 200px));
        min-height: min(380px, calc(100dvh - 200px));
    }

    .notes-header {
        padding: 6px 10px;
    }
}

.zoom-controls {
    position: fixed;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    display: flex;
    gap: 4px;
    background: white;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.zoom-controls.hidden {
    display: none;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.15s ease;
}

.zoom-btn:hover {
    background-color: var(--color-hover-bg);
}

.zoom-btn.zoom-level {
    width: auto;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
}

.zoom-btn.magnifier-toggle {
    font-size: 14px;
    display: none;
}

.zoom-btn.magnifier-toggle.visible {
    display: flex;
}

/* Magnifier Lens (desktop only) */
.magnifier {
    position: fixed;
    width: 500px;
    height: 400px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    pointer-events: none;
    z-index: 2000;
    display: none;
    background: #f8fafc;
}

.magnifier.active {
    display: block;
}

.magnifier-content {
    position: absolute;
    transform-origin: top left;
}

/* Story Map Container */
.story-map {
    position: relative; /* Required for cursor positioning */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 4px; /* Space for highlight glow on top cards */
    transform-origin: top left;
    transition: transform 0.15s ease;
}

/* Steps Row (Backbone) */
.steps-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.steps-row-spacer {
    width: var(--label-width);
    flex-shrink: 0;
    padding-right: 12px;
    display: flex;
    align-items: center;
}

/* Step Card (Backbone) */
.step {
    background-color: #86efac;
    padding: 12px 14px;
    border-radius: 2px;
    min-height: 100px;
    width: var(--card-width);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    position: relative;
}

.step-drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    cursor: grab;
    color: #16a34a;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 2px;
    transition: color 0.15s ease, background-color 0.15s ease;
    user-select: none;
    opacity: 0.6;
}

.step-drag-handle:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Column being dragged - elevate and follow step */
.step.column-being-dragged,
.story-card.column-being-dragged {
    z-index: 100;
    position: relative;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.8), var(--shadow-card);
    pointer-events: none;
}

.step::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.06) 50%);
    border-radius: 0 0 2px 0;
}

.step-text {
    color: #0f3d3a;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    font-family: inherit;
    cursor: text;
    caret-color: #134e4a;
}

.step-text::placeholder {
    color: rgba(19, 78, 74, 0.5);
}

/* Step Placeholder (hidden header) - click to show */
.step-placeholder {
    width: var(--card-width);
    min-height: 100px;
    flex-shrink: 0;
    border: 1px dashed transparent;
    border-radius: 2px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.step-placeholder:hover {
    border-color: #ccc;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Add Step Button (inline) */
.btn-add-step-inline {
    width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px dashed #ccc;
    border-radius: 2px;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-add-step-inline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #aaa;
    color: #666;
}

/* Slice Container */
.slice-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-top: 2px solid #d0d0d0;
    margin-top: 12px;
    padding-top: 12px;
    width: fit-content;
    min-width: 100%;
}

.slice-container:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Backbone rows (Users, Activities) */
.users-row,
.activities-row,
.backbone-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 8px;
}

/* Empty backbone rows (placeholder state) */
.empty-backbone-row .row-type-label {
    color: #ccc;
}

.empty-backbone-row:hover .row-type-label {
    color: #999;
}

.empty-backbone-row .story-column {
    min-height: 40px;
    border: 1px dashed transparent;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.empty-backbone-row .story-column:hover {
    border-color: #ccc;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Slice Label on Left */
.slice-label-container {
    width: var(--label-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 8px;
    padding-right: 16px;
    border-right: 1px solid #ddd;
    position: relative;
    cursor: default;
}

.slice-label {
    background: transparent;
    border: none;
    outline: none;
    overflow: hidden;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
    border-radius: 3px;
    width: 100%;
    text-align: left;
    resize: none;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
    cursor: text;
    caret-color: #888;
    min-height: 100px;
}

.slice-label:focus {
    background-color: #fff;
    padding: 4px;
    margin: -4px;
    margin-bottom: 0;
    width: calc(100% + 8px);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}

.slice-label::placeholder {
    color: #bbb;
    text-transform: none;
    letter-spacing: 0;
}

/* Slice Progress Bar */
.slice-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: auto 0;
}

.slice-progress-track {
    flex: 1;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.slice-progress-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.slice-progress-text {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

/* Undo/Redo highlight animation */
@keyframes undo-highlight {
    0% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.8); }
    100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0); }
}

.undo-highlight {
    animation: undo-highlight 1.5s ease-out forwards;
}

/* Slice Stories Area */
.slice-stories-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Row label container (for backbone rows) */
.row-label-container {
    width: var(--label-width);
    flex-shrink: 0;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.row-label-container .btn-delete {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    width: 20px;
    height: 20px;
    font-size: 12px;
}

.users-row:hover .row-label-container .btn-delete,
.activities-row:hover .row-label-container .btn-delete,
.backbone-row:hover .row-label-container .btn-delete {
    opacity: 1;
}

/* Row type label */
.row-type-label {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stories Row */
.stories-row {
    display: flex;
    gap: 10px;
}

/* Story Column */
.story-column {
    width: var(--card-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}

/* Story Card (Tasks) */
.story-card {
    background-color: #fef08a;
    padding: 10px 12px;
    border-radius: 2px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.story-card:hover {
    transform: translateY(-1px) rotate(0.3deg);
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.15),
        3px 4px 12px rgba(0, 0, 0, 0.1);
}

/* Disable hover effects when main menu is open (prevents print artifacts) */
body.main-menu-open .story-card:hover,
body.main-menu-open .step:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

/* Sortable drag styles */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

.sortable-drag {
    opacity: 1;
}

/* Prevent hover effects from firing on items being dragged */
.story-card.sortable-chosen:hover,
.step.sortable-chosen:hover {
    transform: none;
    transition: none;
}

/* SortableJS fallback clone (used on Safari) */
.sortable-fallback {
    opacity: 1 !important;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

.story-card.sortable-ghost {
    background-color: rgba(20, 184, 166, 0.2);
}

.slice-container.sortable-ghost {
    background-color: rgba(20, 184, 166, 0.1);
    border: 2px dashed var(--color-teal);
    border-radius: 4px;
}

.story-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.05) 50%);
    border-radius: 0 0 2px 0;
}

.story-text {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.4;
    cursor: text;
    caret-color: #1a1a1a;
}

.story-text::placeholder {
    color: rgba(51, 51, 51, 0.5);
}

/* Add Story Button */
.btn-add-story {
    background-color: rgba(254, 240, 138, 0.3);
    border: 2px dashed rgba(250, 204, 21, 0.5);
    color: rgba(161, 98, 7, 0.6);
    padding: 8px;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 40px;
}

.btn-add-story:hover {
    background-color: rgba(254, 240, 138, 0.5);
    border-color: rgba(250, 204, 21, 0.8);
    color: #a16207;
}

/* Slim add buttons for backbone rows */
.users-row .btn-add-story,
.activities-row .btn-add-story,
.backbone-row .btn-add-story {
    min-height: 15px;
    padding: 2px 8px;
    font-size: 11px;
    border-width: 1px;
    border-style: solid;
}

.users-row .btn-add-story {
    background-color: rgba(253, 164, 175, 0.3);
    border-color: rgba(253, 164, 175, 0.6);
    color: #9f1239;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.users-row .btn-add-story:hover {
    background-color: rgba(253, 164, 175, 0.5);
    border-color: #fda4af;
}

.activities-row .btn-add-story {
    background-color: rgba(147, 197, 253, 0.3);
    border-color: rgba(147, 197, 253, 0.6);
    color: #1e40af;
}

.activities-row .btn-add-story:hover {
    background-color: rgba(147, 197, 253, 0.5);
    border-color: #93c5fd;
}

/* Empty columns in backbone rows - clickable to add card */
.empty-backbone-column {
    min-height: 40px;
    border: 1px dashed transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.empty-backbone-column:hover {
    border-color: #ccc;
    background-color: rgba(0, 0, 0, 0.02);
}

/* Add Column Button for backbone rows */
.btn-add-column-inline {
    width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px dashed #ccc;
    border-radius: 2px;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
    margin-top: 4px;
}

.btn-add-column-inline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #aaa;
    color: #666;
}

.btn-add-slice {
    background: transparent;
    border: 1px dashed #ccc;
    color: #999;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    margin-top: 8px;
}

.btn-add-slice:hover {
    border-color: var(--color-teal);
    color: #0d9488;
    background-color: rgba(20, 184, 166, 0.1);
}

/* Delete Button */
.btn-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-delete:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.step:hover .btn-delete,
.story-card:hover .btn-delete,
.slice-label-container:hover .btn-delete {
    opacity: 1;
}

/* Slice delete button - static positioning */
.slice-label-container .btn-delete {
    position: static;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 12px;
}

/* Slice controls row (drag handle + delete) */
.slice-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    cursor: default;
}

/* Slice drag handle */
.slice-drag-handle {
    cursor: grab;
    color: #bbb;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 2px;
    transition: color 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

.slice-drag-handle:hover {
    color: #888;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Slice Menu */
.slice-menu {
    position: relative;
}

.btn-slice-menu {
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.btn-slice-menu:hover {
    background: #e5e5e5;
}

.slice-menu-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 100;
    padding: 4px 0;
    margin-left: 4px;
}

.slice-menu-dropdown.visible {
    display: block;
}

.slice-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.slice-menu-item:hover {
    background-color: #f5f5f5;
}

.slice-menu-item-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.slice-menu-icon {
    font-size: 14px;
}

/* Collapsed Slice */
.slice-collapsed {
    min-height: auto;
}

.slice-collapsed .slice-label-container {
    min-height: 36px;
}

.slice-completed-row {
    position: relative;
    min-height: 36px;
}

.collapsed-column-placeholder {
    min-height: 36px;
    visibility: hidden;
}

.slice-completed-banner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 4px;
    padding: 6px 16px;
    z-index: 1;
}

.slice-completed-text {
    font-size: 11px;
    font-weight: 500;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Options Menu */
.card-options {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
}

.btn-options {
    width: 24px;
    height: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.btn-options:hover {
    background-color: #f0f0f0;
}

.step:hover .btn-options,
.story-card:hover .btn-options {
    opacity: 1;
}

.step.menu-open,
.story-card.menu-open {
    z-index: 50;
}

.options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    padding: 6px 0;
    display: none;
    z-index: 100;
}

.options-menu.visible {
    display: block;
}

.options-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.options-item:hover {
    background-color: #f5f5f5;
}

.options-color {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: default;
}

.options-color:hover {
    background-color: transparent;
}

.options-color span {
    font-size: 13px;
    color: #333;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 182px;
}

.color-swatch {
    width: 22px;
    height: 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

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

.color-swatch.selected {
    border-color: #333;
}

/* Status swatches in options menu */
.options-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.status-swatches {
    display: flex;
    gap: 4px;
}

.status-swatch {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.status-swatch:hover {
    transform: scale(1.15);
}

.status-swatch.selected {
    border-color: #333;
}

.status-swatch.status-none {
    background-color: #e5e5e5;
    color: #999;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
}

/* Status indicator on cards */
.status-indicator {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 5;
}

.options-delete {
    color: #dc2626;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 10px;
}

.options-delete:hover {
    background-color: #fef2f2;
}

.options-delete-column {
    color: #dc2626;
    font-weight: 500;
}

.options-delete-column:hover {
    background-color: #fef2f2;
}

/* URL Indicator */
.url-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 14px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.url-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Welcome Screen */
.welcome-screen {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 40px 20px 20px;
    overflow-y: auto;
}

.welcome-screen.visible {
    display: flex;
}

.welcome-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.welcome-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 28px;
}

.welcome-subtitle .inline-logo {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
}

.nowrap {
    white-space: nowrap;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.welcome-counter {
    display: none;
    font-size: 13px;
    color: #555;
}

.welcome-counter.visible {
    display: block;
}

.welcome-counter .count {
    font-weight: 600;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.welcome-divider {
    color: #999;
    font-size: 14px;
}

.welcome-samples {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.welcome-samples-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.welcome-samples-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.btn-sample {
    font-size: 13px;
    padding: 8px 14px;
}

.welcome-learn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.welcome-learn-groups {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.welcome-learn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.welcome-learn-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.welcome-learn-group-cards {
    display: flex;
    gap: 8px;
}

.welcome-learn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    min-width: 90px;
    height: 90px;
}

.welcome-learn-card:hover {
    border-color: var(--color-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.welcome-learn-icon {
    width: 36px;
    height: 36px;
}

.welcome-learn-book {
    height: 36px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.welcome-footer {
    margin-top: auto;
    padding-top: 20px;
    max-width: none;
}

/* Footer */
.footer {
    max-width: 1400px;
    width: 100%;
    margin: 24px auto 0;
    padding: 16px 0;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.footer-text {
    text-align: center;
}

.footer-support {
    display: flex;
    align-items: center;
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFDD00;
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
}

.bmc-btn:hover {
    opacity: 0.85;
}

.bmc-btn svg {
    height: 32px;
    width: auto;
}


.footer a {
    color: var(--color-teal);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.mobile-only {
    display: none;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    body.welcome-visible {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .steps-row-spacer,
    .slice-label-container {
        width: 60px;
        padding-right: 12px;
    }

    .slice-label {
        font-size: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .step,
    .step-placeholder {
        width: 140px;
        min-height: 80px;
    }

    .step {
        padding: 10px 10px;
    }

    .step-text {
        font-size: 12px;
    }

    .story-column {
        width: 140px;
    }

    .story-card {
        min-height: 75px;
        padding: 8px 8px;
    }

    .story-text {
        font-size: 12px;
    }

    .btn-add-step-inline {
        width: 28px;
        min-height: 28px;
        font-size: 14px;
    }

    .btn-add-column-inline {
        width: 28px;
        min-height: 28px;
        font-size: 14px;
    }

    .row-label-container {
        width: 60px;
        padding-right: 8px;
    }

    .row-type-label {
        font-size: 9px;
    }

    .footer {
        flex-wrap: wrap;
    }

    .story-map-wrapper {
        padding-bottom: 60px;
    }

    .welcome-screen {
        padding: 16px 20px 20px;
        -webkit-overflow-scrolling: touch;
        flex: none;
    }

    .welcome-content h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .welcome-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .welcome-actions {
        gap: 10px;
    }

    .welcome-samples-list {
        gap: 6px;
    }

    .btn-sample {
        font-size: 12px;
        padding: 6px 10px;
    }

    .btn-large {
        padding: 10px 24px;
        font-size: 14px;
        min-width: 200px;
    }

    .welcome-divider {
        font-size: 12px;
    }

    .welcome-samples-label {
        font-size: 12px;
    }

    .welcome-learn-groups {
        gap: 16px;
    }

    .welcome-learn-group-cards {
        gap: 6px;
    }

    .welcome-learn-group-label {
        font-size: 10px;
    }

    .welcome-learn-card {
        padding: 10px 12px;
        font-size: 11px;
        min-width: 80px;
        height: 80px;
    }

    .welcome-learn-icon {
        width: 28px;
        height: 28px;
    }

    .welcome-learn-book {
        height: 32px;
    }

    .welcome-footer {
        margin-top: 24px;
        padding-top: 10px;
        font-size: 11px;
    }

}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .mobile-only {
        display: inline;
    }

    body {
        padding: 12px;
    }

    .header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
        margin-bottom: 16px;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        gap: 6px;
    }

    .board-name {
        order: 3;
        flex: 0 0 100%; /* Reset flex and force full width */
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 6px 10px;
        font-size: 14px;
    }

    .board-name.hidden {
        display: none;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .story-map-wrapper {
        margin: 0 -12px;
        padding: 0 12px 60px;
        width: calc(100% + 24px);
    }

    .story-map {
        max-width: none;
    }

    /* Welcome screen mobile fixes */
    .welcome-screen {
        padding: 16px 12px 20px;
    }

    .welcome-content {
        max-width: 100%;
    }

    .welcome-learn-groups {
        flex-wrap: wrap;
        gap: 12px;
    }

    .welcome-learn-group-cards {
        gap: 4px;
    }

    .welcome-learn-group-label {
        font-size: 9px;
    }

    .welcome-learn-card {
        padding: 8px 10px;
        font-size: 10px;
        min-width: 70px;
        height: 68px;
    }

    .welcome-learn-icon {
        width: 24px;
        height: 24px;
    }

    .welcome-learn-book {
        height: 26px;
    }

    .steps-row-spacer,
    .slice-label-container,
    .row-label-container {
        width: 50px;
        padding-right: 8px;
    }

    .slice-label,
    .row-type-label {
        font-size: 9px;
    }

    .step,
    .step-placeholder {
        width: 120px;
        min-height: 70px;
    }

    .step {
        padding: 8px 8px;
    }

    .step-text {
        font-size: 11px;
    }

    .story-column {
        width: 120px;
    }

    .story-card {
        min-height: 65px;
        padding: 6px 6px;
    }

    .story-text {
        font-size: 11px;
    }

    .zoom-controls {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        padding: 4px;
    }

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

    .zoom-btn.zoom-level {
        padding: 0 8px;
        font-size: 12px;
    }

    .footer {
        margin-top: 16px;
        padding: 10px 0;
        font-size: 11px;
        flex-wrap: wrap;
    }

    .nav-arrow {
        display: none !important;
    }

    .viewer-count {
        display: none !important;
    }

    .magnifier-toggle,
    .magnifier {
        display: none !important;
    }

    .welcome-screen {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .welcome-screen {
        padding-bottom: 20px;
    }

    .welcome-screen::-webkit-scrollbar {
        display: none;
    }

    .welcome-footer {
        margin-top: 16px;
    }

    .loading-indicator {
        padding: 20px 24px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        max-width: 90vw;
    }

    .loading-indicator span {
        white-space: nowrap !important;
    }

    /* Touch-friendly drag handles - always visible since no hover on touch */
    .step-drag-handle {
        opacity: 1;
        padding: 4px 6px;
    }

    .slice-drag-handle {
        color: #999;
        padding: 4px 6px;
    }

    /* Show delete buttons on mobile (no hover) */
    .step .btn-delete,
    .story-card .btn-delete,
    .slice-label-container .btn-delete {
        opacity: 1;
    }

    /* Larger touch target for slice controls */
    .slice-controls-row {
        padding-top: 12px;
    }

    /* Adjust slice gutter width for narrower screens */
    .slice-label-container {
        min-width: 50px;
    }

    .btn-add-slice {
        font-size: 11px;
        padding: 3px 6px;
    }

}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    padding: 32px 48px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-modal);
    z-index: 3000;
    font-size: 14px;
    color: #666;
}

.loading-indicator.visible {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--color-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Import Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-modal);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.import-modal-body {
    display: flex;
    gap: 24px;
    min-height: 400px;
}

.import-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.import-column h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.import-column p {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
}

.import-column-json {
    flex: 1.2;
}

.import-textarea {
    flex: 1;
    min-height: 280px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    margin-bottom: 12px;
    background: #f9fafb;
    color: #333;
}

.import-textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    background: #fff;
}

.import-textarea::placeholder {
    color: #999;
}

.import-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.import-divider span {
    color: #999;
    font-size: 13px;
    background: #fff;
    padding: 8px 0;
}

.import-column-file {
    flex: 0.8;
}

.import-file-dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    padding: 24px;
    text-align: center;
}

.import-file-dropzone:hover,
.import-file-dropzone.dragover {
    border-color: var(--color-teal);
    background: rgba(20, 184, 166, 0.05);
}

.import-file-icon {
    color: #999;
    transition: color 0.15s ease;
}

.import-file-dropzone:hover .import-file-icon,
.import-file-dropzone.dragover .import-file-icon {
    color: var(--color-teal);
}

.import-file-dropzone span {
    font-size: 13px;
    color: #666;
}

/* Export Modal */
.export-modal-body {
    display: flex;
    gap: 24px;
    min-height: 400px;
}

.export-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.export-column h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.export-column p {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
}

.export-column-json {
    flex: 1.2;
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.export-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.export-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-teal);
}

.export-textarea {
    flex: 1;
    min-height: 280px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    margin-bottom: 12px;
    background: #f9fafb;
    color: #333;
}

.export-textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}

.export-actions {
    display: flex;
    gap: 8px;
}

.export-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.export-divider span {
    color: #999;
    font-size: 13px;
    background: #fff;
    padding: 8px 0;
}

.export-column-file {
    flex: 0.8;
    justify-content: flex-start;
}

.export-file-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.export-filename-row {
    display: flex;
    align-items: center;
}

.export-filename {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.export-filename:focus {
    outline: none;
    border-color: var(--color-teal);
}

.export-filename::placeholder {
    color: #999;
}

.export-filename-ext {
    padding: 10px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive - Modal */
@media (max-width: 700px) {
    .import-modal-body,
    .export-modal-body {
        flex-direction: column;
        min-height: auto;
    }

    .import-column-json,
    .import-column-file,
    .export-column-json,
    .export-column-file {
        flex: none;
    }

    .import-textarea,
    .export-textarea {
        min-height: 200px;
    }

    .import-divider,
    .export-divider {
        padding: 8px 0;
    }

    .import-file-dropzone {
        min-height: 150px;
    }
}

/* Jira Export Modal */
.jira-export-modal {
    max-width: 900px;
}

.jira-export-help-link {
    font-size: 13px;
    font-weight: 400;
    color: #0052CC;
    text-decoration: none;
}

.jira-export-help-link:hover {
    text-decoration: underline;
}

.jira-export-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.jira-csv-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.jira-csv-warning a {
    color: #991b1b;
    font-weight: 600;
    text-decoration: underline;
}

.jira-csv-warning a:hover {
    color: #7f1d1d;
}

.jira-export-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jira-project-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jira-project-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.jira-project-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.jira-project-input:focus {
    outline: none;
    border-color: var(--color-teal);
}

.jira-space-name {
    width: 180px;
}

.jira-space-key {
    width: 100px;
    text-transform: uppercase;
}

.jira-project-type {
    width: 110px;
    cursor: pointer;
    background: #fff;
}

.jira-project-input:focus {
    outline: none;
    border-color: var(--color-teal);
}

.jira-export-filters {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.jira-export-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jira-export-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jira-export-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.jira-export-count {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

.jira-export-section-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Slice checkboxes */
.jira-export-slices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jira-slice-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jira-slice-checkbox:hover {
    background: #e5e7eb;
}

.jira-slice-checkbox.checked {
    background: #dbeafe;
    border-color: #3b82f6;
}

.jira-slice-checkbox input {
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.jira-slice-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.jira-slice-count {
    color: #666;
    font-size: 12px;
    margin-left: 2px;
}

/* Status mapping */
.jira-export-status-mapping {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jira-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jira-status-label {
    font-size: 13px;
    color: #666;
    min-width: 50px;
}

.jira-status-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    width: 120px;
    color: #333;
}

.jira-status-input:focus {
    outline: none;
    border-color: var(--color-teal);
}

/* Epics list */
.jira-export-epics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jira-export-epic {
    background: #f9fafb;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    transition: opacity 0.15s ease;
}

.jira-export-epic.excluded {
    opacity: 0.5;
}

.jira-export-epic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.jira-export-epic-checkbox {
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-teal);
    width: 18px;
    height: 18px;
}

.jira-export-epic-name {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
}

.jira-export-epic-name:focus {
    outline: none;
    border-color: var(--color-teal);
}

.jira-export-epic-type {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.jira-export-epic-type:focus {
    outline: none;
    border-color: var(--color-teal);
}

.jira-export-epic-description {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 12px;
}

.jira-export-epic-description:focus {
    outline: none;
    border-color: var(--color-teal);
}

.jira-export-epic-description::placeholder {
    color: #999;
}

.jira-export-tasks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    border-left: 2px solid #e5e5e5;
    margin-left: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.jira-export-task {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.jira-export-task:hover .jira-export-task-name {
    color: #000;
}

.jira-export-task.excluded {
    opacity: 0.5;
}

.jira-export-task-checkbox {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-teal);
}

.jira-export-task-name {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jira-export-task-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

.jira-export-task-status.done {
    background: #dcfce7;
    color: #166534;
}

.jira-export-task-status.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.jira-export-task-status.planned {
    background: #e5e7eb;
    color: #4b5563;
}

.jira-export-task-status.none {
    background: #f3f4f6;
    color: #6b7280;
}

.jira-export-task-count {
    font-size: 12px;
    color: #999;
    font-style: italic;
    padding: 2px 0;
}

.jira-export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    position: sticky;
    bottom: -24px;
    background: #fff;
    margin: 0 -24px -24px;
    padding: 16px 24px;
}

/* Phabricator Export Modal */
.phab-export-modal {
    max-width: 900px;
}

.phab-export-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.phab-export-stage.hidden {
    display: none;
}

.phab-export-filters {
    display: flex;
    column-gap: 32px;
    row-gap: 12px;
    flex-wrap: wrap;
}

.phab-export-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phab-export-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phab-export-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.phab-export-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 12px 0 0 0;
}

.phab-export-section:first-child .phab-export-section-title {
    margin-top: 0;
}

.phab-export-count {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

.phab-export-slices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.phab-slice-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.phab-slice-checkbox:hover {
    background: #e5e7eb;
}

.phab-slice-checkbox.checked {
    background: #dbeafe;
    border-color: #3b82f6;
}

.phab-slice-checkbox input {
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.phab-slice-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.phab-slice-count {
    color: #666;
    font-size: 12px;
    margin-left: 2px;
}

.phab-export-epics {
    max-height: 300px;
    overflow-y: auto;
}

.phab-export-epic {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.phab-export-epic.excluded {
    opacity: 0.5;
}

.phab-export-epic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.phab-export-epic-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.phab-export-epic-name {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.phab-export-epic-name:focus {
    outline: none;
    border-color: var(--color-teal);
}

.phab-export-epic-type {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.phab-export-epic-type:focus {
    outline: none;
    border-color: var(--color-teal);
}

.phab-export-epic-description {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
    min-height: 40px;
    font-family: inherit;
    margin-bottom: 8px;
}

.phab-export-epic-description:focus {
    outline: none;
    border-color: var(--color-teal);
}

.phab-export-epic-description::placeholder {
    color: #999;
}

.phab-export-tasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 30px;
}

.phab-export-task {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.phab-export-task:hover .phab-export-task-name {
    color: #000;
}

.phab-export-task.excluded {
    opacity: 0.5;
}

.phab-export-task-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.phab-export-task-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phab-export-task-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.phab-export-task-status.done {
    background: #dcfce7;
    color: #166534;
}

.phab-export-task-status.in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.phab-export-task-status.planned {
    background: #e5e7eb;
    color: #4b5563;
}

.phab-export-task-status.none {
    background: #f3f4f6;
    color: #6b7280;
}

.phab-export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    position: sticky;
    bottom: -24px;
    background: #fff;
    margin: 0 -24px -24px;
    padding: 16px 24px;
}

/* Phabricator Instructions Stage */
.phab-instructions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phab-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phab-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phab-step-number {
    width: 28px;
    height: 28px;
    background: var(--color-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.phab-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.phab-step-content {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phab-step-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding-left: 40px;
}

.phab-fields-row {
    display: flex;
    gap: 20px;
}

.phab-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phab-field-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.phab-token-help {
    font-weight: 400;
    color: #94a3b8;
}

.phab-token-help a {
    color: #3b82f6;
    text-decoration: none;
}

.phab-token-help a:hover {
    text-decoration: underline;
}

.phab-field-tags {
    max-width: 100%;
}

.phab-field-tags .phab-field-input {
    width: 100%;
    max-width: 400px;
}

.phab-field-recommended {
    font-weight: 600;
    color: #059669;
}

.phab-field-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.phab-info-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 10px;
    border-radius: 5px;
    max-width: fit-content;
}

.phab-info-icon {
    width: 14px;
    height: 14px;
    color: #10b981;
    flex-shrink: 0;
}

.phab-field-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    width: 340px;
}

.phab-field-input:focus {
    outline: none;
    border-color: var(--color-teal);
}


.phab-code-block {
    position: relative;
    margin-left: 40px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.phab-code-block pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.phab-copy-btn {
    position: absolute;
    top: 16px;
    right: 24px;
    padding: 4px 12px;
    font-size: 12px;
}

/* Remote Cursor Presence */
.cursor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: visible;
}

.remote-cursor {
    position: absolute;
    pointer-events: none;
    transform: translate(-2px, -2px);
    transition: left 0.05s linear, top 0.05s linear;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.remote-cursor svg {
    display: block;
}

/* Print Styles */
@media print {
    body {
        padding: 0;
        background: white;
        display: block; /* Reset flex for Safari print */
        height: auto;
        overflow: visible;
    }

    .header {
        padding: 12px 0;
        margin-bottom: 16px;
    }

    .header-actions,
    .btn-add-story,
    .btn-add-slice,
    .btn-add-column-inline,
    .btn-add-step-inline,
    .btn-delete,
    .btn-options,
    .step-drag-handle,
    .slice-drag-handle,
    .slice-controls-row,
    .slice-menu,
    .options-menu,
    .empty-backbone-row,
    .zoom-controls,
    .controls-right,
    .magnifier,
    .loading-indicator,
    .cursor-overlay,
    footer {
        display: none !important;
    }

    .story-map-wrapper {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
    }

    .story-map {
        max-width: none;
        transform: none !important;
    }

    .story-column {
        break-inside: avoid;
    }

    .slice-container {
        break-inside: avoid;
    }

    .step,
    .story-card {
        box-shadow: none;
        border: 1px solid #ccc;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .step::before,
    .story-card::before {
        display: none;
    }

    .status-indicator {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* =============================================================================
   Lock Feature Styles
   ============================================================================= */

/* Lock Menu Item */
#lockMapBtn,
#relockBtn,
#updatePasswordBtn,
#removeLockBtn {
    display: none;
}

#lockMapBtn.visible,
#relockBtn.visible,
#updatePasswordBtn.visible,
#removeLockBtn.visible {
    display: block;
}

#lockDivider {
    display: none;
}

#lockDivider.visible {
    display: block;
}

.menu-icon,
.lock-menu-icon,
.cursor-toggle-icon {
    margin-right: 6px;
}

/* Read-Only Banner */
.read-only-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fef3c7;
    border-bottom: 1px solid #f59e0b;
    padding: 6px 12px;
    text-align: center;
    z-index: 1500;
    font-size: 12px;
    font-weight: 500;
    color: #92400e;
}

.read-only-banner.visible {
    display: block;
}

.read-only-banner-text {
    display: inline-block;
}

/* Adjust body when banner is visible */
body.read-only-mode {
    padding-top: calc(24px + 32px);
}

/* Lock Modal */
.lock-modal {
    max-width: 400px;
}

.lock-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lock-modal-body p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.lock-password-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lock-password-field label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.lock-password-field input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.lock-password-field input:focus {
    outline: none;
    border-color: var(--color-teal);
}

.lock-modal-note {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 10px 12px;
    border-radius: 4px;
    line-height: 1.5;
}

.lock-modal-note strong {
    color: #666;
}

.lock-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

/* Read-Only State - Disable editing UI */
body.read-only-mode .story-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}

body.read-only-mode .card-options,
body.read-only-mode .btn-delete,
body.read-only-mode .btn-add-story,
body.read-only-mode .btn-add-slice,
body.read-only-mode .btn-add-step-inline,
body.read-only-mode .btn-add-column-inline,
body.read-only-mode .step-drag-handle,
body.read-only-mode .slice-drag-handle,
body.read-only-mode .slice-controls-row,
body.read-only-mode .slice-menu {
    display: none !important;
}

body.read-only-mode .story-text,
body.read-only-mode .step-text,
body.read-only-mode .slice-label,
body.read-only-mode .board-name {
    pointer-events: none;
    cursor: default;
}

body.read-only-mode .step-placeholder,
body.read-only-mode .empty-backbone-column {
    pointer-events: none;
    cursor: default;
}


/* Mobile adjustments for lock */
@media (max-width: 600px) {
    .read-only-banner {
        font-size: 11px;
        padding: 5px 10px;
    }

    body.read-only-mode {
        padding-top: calc(12px + 28px);
    }
}

/* Print: hide lock UI */
@media print {
    #lockMapBtn,
    #lockDivider,
    .read-only-banner,
    .lock-modal {
        display: none !important;
    }

}
