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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #fffdf7;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --nb-ink: #111111;
    --nb-paper: #ffffff;
    --nb-bg: #fffdf7;
    --nb-shadow: 4px 4px 0 var(--nb-ink);
    --nb-shadow-hover: 5px 5px 0 var(--nb-ink);
    --nb-border: 3px solid var(--nb-ink);
    --nb-radius: 9px;
    --nb-accent: #ffd400;
    --nb-accent-2: #00d4ff;
    --nb-accent-3: #ff4d6d;
}

.toolbar {
    position: fixed;
    top: 16px;
    left: 12px;
    background: var(--nb-paper);
    padding: 6px 12px;
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
    border: var(--nb-border);
    flex-wrap: wrap;
}

.btn {
    padding: 6px 12px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: var(--nb-paper);
    color: var(--nb-ink);
    box-shadow: 3px 3px 0 var(--nb-ink);
}

.btn:hover {
    box-shadow: var(--nb-shadow-hover);
    transform: translate(-1px, -1px);
}

.btn:active {
    transform: translate(0px, 0px);
    box-shadow: 2px 2px 0 var(--nb-ink);
}

.btn-primary {
    background: var(--nb-paper);
    color: var(--nb-ink);
}

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

#createSectionBtn .section-icon {
    vertical-align: middle;
    margin-right: 6px;
    object-fit: contain;
}

#createBtn .postit-icon {
    vertical-align: middle;
    margin-right: 6px;
    object-fit: contain;
}

.shortcut-hint {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.7;
}

.edit-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-icon {
    padding: 4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-zoom {
    padding: 4px 8px;
    min-width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-level-input {
    width: 48px;
    height: 24px;
    padding: 0 6px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.zoom-level-input::-webkit-outer-spin-button,
.zoom-level-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.zoom-level-input:focus {
    background: #f9fafb;
    border-radius: 4px;
}

.btn-danger {
    background: var(--nb-paper);
    color: var(--nb-ink);
}

.btn-danger:hover {
    background: var(--nb-accent-3);
}

.whiteboard {
    width: 100vw;
    height: calc(100vh - 80px);
    position: fixed;
    left: 0;
    top: 80px;
    overflow: hidden;
    cursor: grab;
    background: #fffdf7;
    border: var(--nb-border);
    box-shadow: inset 0 0 0 2px var(--nb-ink);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Keep grid behind content */
    z-index: 0;
    background-color: #fffdf7;
    background-image: 
        linear-gradient(to right, rgba(17, 17, 17, 0.18) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(17, 17, 17, 0.18) 2px, transparent 2px);
    background-size: 40px 40px;
}

.arrows-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Empty area passes through; paths use pointer-events: stroke */
    z-index: 0; /* Behind whiteboard-content so post-its appear in front */
}

.shapes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* lines capture stroke only */
    z-index: 1; /* above arrows so line clicks hit lines; whiteboard-content (z-index 2) stays on top */
}

.shapes-overlay line.board-line {
    pointer-events: stroke;
    stroke: rgba(17, 17, 17, 0.55);
    stroke-width: 8;
    stroke-linecap: round;
}

.shapes-overlay line.board-line.dashed {
    stroke-dasharray: 10 8;
}

.shapes-overlay line.board-line:hover {
    stroke: rgba(37, 99, 235, 0.75);
    stroke-width: 10;
}

.shapes-overlay line.board-line.selected {
    stroke: rgba(37, 99, 235, 0.9);
    stroke-width: 10;
}

.arrows-overlay path {
    cursor: pointer;
    pointer-events: stroke; /* Only the stroke is clickable; rest passes through */
    transition: stroke-width 0.15s ease;
    stroke-width: 6; /* Slightly wider for easier selection */
}

.arrows-overlay path:hover {
    stroke-width: 8;
    stroke: #2563eb;
}

.arrows-overlay path.selected {
    stroke-width: 8;
    stroke: #2563eb;
}

.whiteboard-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 50000px;
    height: 50000px;
    transform-origin: 0 0;
    transition: transform 0s;
    min-width: 100%;
    min-height: 100%;
    /* Ensure post-its/sections render above grid, arrows, and shapes (lines) */
    z-index: 2;
    /* Let clicks pass through empty area so connectors (behind) can receive them */
    pointer-events: none;
}

.whiteboard-content > .post-it,
.whiteboard-content > .section,
.whiteboard-content > .board-label {
    pointer-events: auto;
}

/* Labels (match post-it UX: header + name + reference btn, resize in corner) */
.board-label {
    position: absolute;
    z-index: 7;
    min-width: 120px;
    min-height: 36px;
    padding: 10px 12px;
    padding-bottom: 28px;
    background: #fff3a6;
    box-shadow: var(--nb-shadow);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    cursor: grab;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.board-label.referenced {
    outline: 4px solid var(--nb-accent-2);
}

.board-label.selected {
    outline: 2px solid rgba(17, 17, 17, 0.65);
    outline-offset: 2px;
}

.board-label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    cursor: grab;
}

.board-label.dragging,
.board-label.dragging .board-label-header {
    cursor: grabbing;
}

.board-label.dragging {
    user-select: none;
    z-index: 100;
    transition: none !important;
    will-change: transform, left, top;
}

.board-label.dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.board-label-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    outline: none;
    user-select: text;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: text;
}

.board-label-name:empty:before {
    content: attr(data-placeholder);
    color: rgba(17, 17, 17, 0.5);
}

.board-label-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.board-label:hover .board-label-actions {
    opacity: 1;
}

.board-label-actions .reference-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #666;
    border-radius: 2px;
}

.board-label-actions .reference-btn:hover {
    color: var(--nb-ink);
    background: rgba(0, 0, 0, 0.06);
}

.board-label-resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    cursor: nwse-resize;
    background: #d0d0d0;
    border: 1px solid #999;
    border-radius: 0 0 4px 0;
    opacity: 0;
}

.board-label:hover .board-label-resize-handle {
    opacity: 1;
}

.board-label.resizing .board-label-resize-handle {
    opacity: 1;
}

/* Minimap (Miro-style) */
.minimap-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 320px;
    height: 260px;
    z-index: 100;
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    background: var(--nb-paper);
    overflow: hidden;
    cursor: pointer;
}

.minimap-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.chat-panel {
    width: 380px;
    height: 100vh;
    background: var(--nb-paper);
    border-left: 1px solid var(--nb-ink);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    box-shadow: -6px 0 0 var(--nb-ink);
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--nb-ink);
    background: var(--nb-accent-2);
    position: relative;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.chat-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid var(--nb-ink);
    background: var(--nb-paper);
    color: var(--nb-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 3px 3px 0 var(--nb-ink);
}

.chat-close-btn:hover {
    background: var(--nb-accent-3);
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.message.user {
    background: #f0f0f0;
    color: #333;
    align-self: flex-end;
}

.message.assistant {
    background: #f8f8f8;
    color: #333;
    align-self: flex-start;
    border: 1px solid #e8e8e8;
}

/* AI working indicator – visible while waiting for response/tools */
.message.assistant.ai-working {
    color: #666;
    font-style: italic;
}
.message.assistant.ai-working .ai-working-dots span {
    animation: ai-working-blink 0.6s ease-in-out infinite;
}
.message.assistant.ai-working .ai-working-dots span:nth-child(2) { animation-delay: 0.2s; }
.message.assistant.ai-working .ai-working-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-working-blink {
    0%, 60% { opacity: 0.3; }
    100% { opacity: 1; }
}

.message.assistant .markdown-content {
    line-height: 1.6;
}

.message.assistant .markdown-content h1,
.message.assistant .markdown-content h2,
.message.assistant .markdown-content h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.message.assistant .markdown-content h1 {
    font-size: 1.5em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
}

.message.assistant .markdown-content h2 {
    font-size: 1.3em;
}

.message.assistant .markdown-content h3 {
    font-size: 1.1em;
}

.message.assistant .markdown-content p {
    margin: 8px 0;
}

.message.assistant .markdown-content ul,
.message.assistant .markdown-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.message.assistant .markdown-content li {
    margin: 4px 0;
}

.message.assistant .markdown-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message.assistant .markdown-content pre {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 8px 0;
}

.message.assistant .markdown-content pre code {
    background: none;
    padding: 0;
}

.message.assistant .markdown-content blockquote {
    border-left: 3px solid #d0d0d0;
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
    font-style: italic;
}

.message.assistant .markdown-content a {
    color: #333;
    text-decoration: underline;
}

.message.assistant .markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.message.assistant .markdown-content th,
.message.assistant .markdown-content td {
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    text-align: left;
}

.message.assistant .markdown-content th {
    background: #f0f0f0;
    font-weight: 600;
}

.chat-input-container {
    padding: 16px;
    border-top: var(--nb-border);
    background: var(--nb-paper);
}

.chat-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
    resize: none;
    font-family: inherit;
    min-height: 60px;
    max-height: 150px;
    transition: all 0.2s;
    background: var(--nb-paper);
    color: var(--nb-ink);
    box-shadow: 3px 3px 0 var(--nb-ink);
}

.chat-input:focus {
    outline: none;
    background: #ffffff;
}

.chat-send-btn {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: var(--nb-accent);
    color: var(--nb-ink);
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 var(--nb-ink);
}

.chat-send-btn:hover {
    background: var(--nb-accent-2);
    box-shadow: var(--nb-shadow-hover);
    transform: translate(-1px, -1px);
}

.chat-send-btn:disabled {
    background: #e5e5e5;
    cursor: not-allowed;
    box-shadow: 2px 2px 0 var(--nb-ink);
}

.whiteboard.dragging {
    cursor: grabbing;
}

.post-it {
    position: absolute;
    width: 250px;
    min-height: 200px;
    padding: 16px;
    padding-bottom: 30px;
    background: #fff3a6;
    box-shadow: var(--nb-shadow);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    cursor: move;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Voting merge grid: post-its flow in a 5-column grid instead of absolute positioning */
.voting-merge-grid {
    z-index: 10;
}
.voting-merge-grid .post-it.voting-merge-post-it {
    position: relative;
    left: auto;
    top: auto;
    flex-shrink: 0;
    pointer-events: auto;
}

.post-it.referenced {
    outline: 4px solid var(--nb-accent-2);
}

.section.referenced {
    border: 2px solid #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.selection-mode .post-it,
.selection-mode .section,
.selection-mode .board-label {
    cursor: pointer;
}

.selection-mode .post-it:hover,
.selection-mode .section:hover,
.selection-mode .board-label:hover {
    box-shadow: var(--nb-shadow-hover);
    transform: translate(-2px, -2px);
}

.post-it.dragging {
    user-select: none;
}

.post-it.dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.post-it-resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    border: 1px solid #999;
    border-radius: 2px;
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 11;
}

.post-it:hover .post-it-resize-handle {
    opacity: 1;
}

.post-it.resizing .post-it-resize-handle {
    opacity: 1;
}

.section-resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    border: 1px solid #999;
    border-radius: 2px;
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    pointer-events: all;
}

.section:hover .section-resize-handle {
    opacity: 1;
}

.section.resizing .section-resize-handle {
    opacity: 1;
}

.post-it-section-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: #999;
    font-style: italic;
    pointer-events: none;
    z-index: 12;
    flex-shrink: 0;
}

/* Prevent browser focus ring (grey outline) when clicking inside post-it content/name */
.post-it:focus-within {
    outline: none !important;
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
}

.post-it:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: var(--nb-ink);
    transform: translateY(-1px);
}

/* When post-it has focus inside, keep default border (don't use hover grey) */
.post-it:focus-within:hover {
    border: var(--nb-border);
}

.post-it.dragging {
    cursor: grabbing;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(0deg) scale(1.02);
    transition: none !important; /* Disable transitions during drag for instant response */
    will-change: transform, left, top; /* Optimize for frequent position updates */
}

/* During multi-drag, all selected items move with no transition so they stay in sync */
body.multi-drag-active .post-it.selected,
body.multi-drag-active .section.selected,
body.multi-drag-active .board-label.selected {
    transition: none !important;
}

.post-it-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.post-it-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-it:hover .post-it-actions {
    opacity: 1;
}

.pin-btn,
.unpin-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #666;
    border-radius: 2px;
}

.pin-btn:hover,
.unpin-btn:hover {
    color: var(--nb-ink);
    background: rgba(0, 0, 0, 0.06);
}

.pin-btn.pinned {
    color: var(--nb-ink);
}

.pin-btn.pinned .pin-icon,
.pin-btn .pin-icon,
.unpin-btn .pin-icon {
    display: block;
    object-fit: contain;
}

.post-it-react-wrap {
    position: relative;
}

.post-it-react-wrap .post-it-react-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 2px;
    opacity: 0.7;
}

.post-it-react-wrap .post-it-react-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.06);
}

.post-it-name {
    font-weight: 500;
    color: #666;
    font-size: 12px;
    cursor: text;
    outline: none;
    flex: 1;
    min-width: 0;
}

.post-it-name:focus {
    color: #333;
    background: #f8f8f8;
    padding: 2px 4px;
    border-radius: 2px;
}

.post-it-name:empty:before {
    content: attr(data-placeholder);
    color: #999;
}

.post-it-content {
    width: 100%;
    flex: 1;
    min-height: 80px;
    border: none;
    background: transparent;
    resize: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    outline: none;
    cursor: text;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 8px;
}

.post-it-content:empty:before {
    content: attr(placeholder);
    color: #999;
    pointer-events: none;
}

/* Reactions bar: same row as section indicator (bottom), left-aligned; section name is right-aligned */
.post-it-reactions-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    z-index: 12;
}

.post-it-reactions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

.post-it-reactions-bar .post-it-reaction-chip {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 999px;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.post-it-reactions-bar .post-it-reaction-chip:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.post-it-reaction-picker {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--nb-paper);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 20;
}

.post-it-reaction-chip,
.post-it-picker-emoji {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.post-it-reaction-chip:hover,
.post-it-picker-emoji:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.post-it-content:focus {
    outline: none;
}

.post-it-formatting-toolbar {
    display: none;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: center;
    flex-wrap: nowrap;
}

.format-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s;
}

.format-btn:hover {
    background: #f3f4f6;
}

.format-btn:active {
    background: #e5e7eb;
}

.format-font-size {
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    background: #ffffff;
    cursor: pointer;
    outline: none;
}

.format-font-size:focus {
    border-color: #2563eb;
}

/* Selection: very visible so single and multi-select are always obvious */
.post-it.selected,
.section.selected {
    border: 3px solid #2563eb !important;
    box-shadow: var(--nb-shadow), 0 0 0 4px rgba(37, 99, 235, 0.5) !important;
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Section body shows selection when the section (header layer) is selected */
.section-wrapper:has(.section.selected) .section-body {
    border: 3px solid #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.5) !important;
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.reference-btn {
    background: transparent;
    color: #999;
    border: 1px solid #e0e0e0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.reference-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #333;
}

.reference-btn.active {
    background: #333;
    border-color: #333;
    color: white;
}

.reference-btn svg {
    width: 14px;
    height: 14px;
}

.delete-btn {
    background: transparent;
    color: #999;
    border: 1px solid #e0e0e0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #666;
}

/* Wrapper holds position/size; body is behind post-its, header layer is above */
.section-wrapper {
    position: absolute;
    pointer-events: auto;
}

.section-body {
    position: absolute;
    inset: 0;
    border: 3px dashed var(--nb-ink);
    background: rgba(0, 212, 255, 0.10);
    border-radius: var(--nb-radius);
    z-index: 5;
    pointer-events: none; /* inner area: selection box / post-its; use border strips to move/select section */
}

.section {
    position: absolute;
    inset: 0;
    cursor: default;
    z-index: 15; /* header and resize handle above post-its (z-index 10) */
    pointer-events: none;
    border: none;
    background: transparent;
}

.section .section-header,
.section .section-resize-handle {
    pointer-events: auto;
}

/* Border grab: move/select section by clicking or dragging the border only */
.section-border-grab {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
}

.section-border-grab .section-border-strip {
    position: absolute;
    pointer-events: auto;
    cursor: grab;
    /* ~12px hit area along each edge */
}

.section-border-grab .section-border-top {
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
}

.section-border-grab .section-border-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 12px;
}

.section-border-grab .section-border-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
}

.section-border-grab .section-border-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 12px;
}

.section-wrapper:has(.section.dragging) .section-border-grab .section-border-strip {
    cursor: grabbing;
}

.section.dragging {
    cursor: grabbing;
    transition: none !important; /* Disable transitions during drag for instant response */
    will-change: transform, left, top; /* Optimize for frequent position updates */
}

.section.active {
    background: rgba(255, 212, 0, 0.12);
}

.section-header {
    position: absolute;
    top: -34px;
    left: 0;
    background: var(--nb-paper);
    padding: 6px 12px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--nb-ink);
    min-width: 100px;
    cursor: text; /* treat header like an editable text area by default */
    pointer-events: all;
    box-shadow: 4px 4px 0 var(--nb-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.section-header:active {
    cursor: grabbing;
}

.section-name {
    flex: 1;
    outline: none;
    cursor: text; /* text cursor for the editable name */
}

.section-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.section:hover .section-actions {
    opacity: 1;
}

.section-header.editing {
    border-color: #2563eb;
    background: #e0ebff;
    outline: none;
}

.section-delete-btn {
    position: absolute;
    top: -28px;
    right: 0;
    background: transparent;
    color: #999;
    border: 1px solid #e0e0e0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: all;
}

.section-delete-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #666;
}

.section-preview {
    position: absolute;
    border: 2px dashed #999;
    background: rgba(240, 240, 240, 0.3);
    pointer-events: none;
    z-index: 1000;
}

/* In-section: keep default border (no gray outline); use left accent to indicate section */
.post-it.in-section {
    border: var(--nb-border);
    border-left: 4px solid #666;
}

/* Blue guiding prompts (AI facilitator / brainstorming) */
.post-it.guiding {
    background: #cce5ff;
}
.post-it.guiding:hover {
    background: #b3d7ff;
}

.board-menu {
    position: relative;
}

.board-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    z-index: 1001;
}

.board-menu-dropdown.show {
    display: flex;
}

.board-menu-item {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

/* Board selector styled like other neubrutalist controls */
.board-selector {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    background: var(--nb-paper);
    color: var(--nb-ink);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 3px 3px 0 var(--nb-ink);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.board-selector:hover {
    background: var(--nb-accent);
    box-shadow: var(--nb-shadow-hover);
    transform: translate(-1px, -1px);
}

.board-selector:active {
    transform: translate(0px, 0px);
    box-shadow: 2px 2px 0 var(--nb-ink);
}


.chat-panel.collapsed {
    transform: translateX(100%);
}

.sparkle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* old toolbar-ai-toggle no longer used */
.toolbar-ai-toggle {
    display: none;
}

.ai-chat-buttons {
    position: fixed;
    top: 22px;
    right: 80px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-chat-buttons .ai-chat-floating-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-interjections-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-interjections-toggle.off {
    opacity: 0.6;
    background: var(--nb-paper);
    color: #666;
}

.ai-interjections-toggle.off:hover {
    opacity: 0.85;
}

.pinned-postits-container {
    position: fixed;
    top: 95px;
    left: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    max-height: calc(100vh - 90px);
    padding: 10px;
    overflow-y: auto;
    overflow-x: auto;
    pointer-events: auto;
}

.pinned-postits-container > .post-it {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    cursor: default;
    flex-shrink: 0;
    overflow: visible;
}

.pinned-postits-container .post-it-resize-handle {
    display: none;
}

.selection-box {
    position: absolute;
    border: 2px solid var(--nb-ink);
    background: transparent;
    pointer-events: none;
    z-index: 100;
    display: none;
}

.referenced-items {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.referenced-item {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-right: 4px;
    cursor: pointer;
    text-decoration: none;
}
.referenced-item:hover {
    background: #e0e0e0;
    text-decoration: underline;
}

/* Facilitator / private mode */
.facilitator-private-wrap {
    position: relative;
}
.facilitator-private-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    padding: 12px;
    min-width: 420px;
    background: var(--nb-paper);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    z-index: 1001;
}
.facilitator-private-panel.open {
    display: block;
}
.facilitator-private-panel label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 4px;
}
.facilitator-private-panel label:first-child {
    margin-top: 0;
}
.facilitator-private-panel textarea,
.facilitator-private-panel input[type="text"],
.facilitator-private-panel input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
}
/* Vote type inputs: sizes by class, not flex position */
.facilitator-private-panel .voting-vote-name {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    box-sizing: border-box;
}
.facilitator-private-panel .voting-vote-count {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    box-sizing: border-box;
}
.facilitator-scale-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}
.facilitator-scale-toggle input[type="checkbox"] {
    flex-shrink: 0;
}
.facilitator-scale-toggle label {
    margin: 0;
    font-weight: normal;
    font-size: 13px;
}
.facilitator-private-panel .anchor-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.facilitator-private-panel .anchor-row input[type="number"] {
    width: 70px;
}
.facilitator-private-panel .anchor-row input[type="number"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--nb-bg-muted, #f3f4f6);
}
.facilitator-private-panel .anchor-row input[type="text"] {
    flex: 1;
}
.facilitator-hint {
    font-size: 11px;
    color: #6b7280;
    margin: 8px 0;
}
.facilitator-private-panel #startPrivateModeBtn {
    margin-top: 8px;
    width: 100%;
}

/* Voting form: vote types */
.voting-vote-types {
    margin: 8px 0;
}
.voting-vote-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.voting-vote-color-palette {
    position: relative;
    flex-shrink: 0;
}
.voting-vote-color-trigger {
    width: 40px;
    height: 32px;
    padding: 0;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--nb-ink);
    box-sizing: border-box;
    display: block;
}
.voting-vote-color-trigger:hover {
    opacity: 0.9;
}
.voting-vote-color-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding: 8px;
    background: #fff;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    box-shadow: 2px 2px 0 var(--nb-ink);
    flex-wrap: wrap;
    gap: 6px;
    z-index: 100;
}
.voting-vote-color-palette.open .voting-vote-color-dropdown {
    display: flex;
}
.voting-vote-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--nb-ink);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
}
.voting-vote-swatch:hover {
    transform: scale(1.1);
}
.voting-vote-swatch.selected {
    border-width: 3px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nb-ink);
    outline: none;
}
.voting-vote-type-row .voting-vote-name {
    flex: none;
    padding: 6px 8px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
}
.voting-vote-type-row .voting-vote-count {
    flex: none;
    padding: 6px 8px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
}
.voting-vote-type-row .voting-vote-remove {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.voting-vote-type-row .voting-vote-remove:hover {
    background: transparent;
}
.voting-vote-type-row .voting-vote-remove:hover .voting-vote-remove-icon {
    transform: scale(1.15);
}
.voting-vote-type-row .voting-vote-remove-icon {
    display: block;
    pointer-events: none;
    transition: transform 0.15s ease;
}
#votingAddVoteTypeBtn {
    margin-bottom: 10px;
}
.btn-secondary {
    background: var(--nb-bg-muted, #f3f4f6);
    color: var(--nb-ink);
    border: 2px solid var(--nb-border);
}
.btn-secondary:hover {
    background: #e5e7eb;
}

/* Group activities sub-menu */
.group-activities-list {
    padding: 0;
}
.group-activities-list-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--nb-ink);
    margin: 0 0 10px 0;
}
.group-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: 2px solid var(--nb-border);
    border-radius: var(--nb-radius);
    background: var(--nb-paper);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.group-activity-item:hover {
    background: var(--nb-bg-muted, #f3f4f6);
    border-color: var(--nb-ink);
}
.group-activity-label {
    flex: 1;
}
.group-activity-info {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #6b7280;
    cursor: help;
}
.group-activity-info:hover {
    color: var(--nb-ink);
}
.group-activity-info svg,
.group-activity-info img {
    display: block;
}
.group-activity-info img.group-activity-info-icon {
    object-fit: contain;
}
.group-activity-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    width: 220px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    color: var(--nb-paper);
    background: var(--nb-ink);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
    z-index: 1002;
}
.group-activity-info:hover .group-activity-tooltip {
    opacity: 1;
    visibility: visible;
}
.group-activity-form-wrap {
    padding: 0;
}
.group-activity-back {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    text-decoration: none;
}
.group-activity-back:hover {
    color: var(--nb-ink);
    text-decoration: underline;
}

/* Empty slot placeholder in numeric ranking output (when more slots than objects) */
.ranking-empty-slot {
    background: rgba(0, 0, 0, 0.04);
}

/* Private view overlay */
.private-view-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--nb-bg);
    z-index: 2000;
    overflow: auto;
}
.private-view-overlay.visible {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}
.private-view-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 100px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.private-view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.private-view-instructions {
    flex: 1;
    font-size: 16px;
    padding: 12px;
    background: var(--nb-paper);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    white-space: pre-wrap;
}
.private-view-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.private-view-scale-wrap {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 8px;
}
.private-view-scale {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    min-width: min-content;
    width: max-content;
    margin: 0 auto;
}
.private-view-scale .scale-anchor {
    flex-shrink: 0;
    padding: 8px 12px;
    background: var(--nb-accent);
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    font-weight: 600;
    white-space: nowrap;
}
.private-view-scale .scale-slot {
    flex-shrink: 0;
    width: 212px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}
.private-view-scale .scale-slot-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--nb-ink);
    margin-bottom: 6px;
    min-height: 22px;
}
.private-view-scale .scale-slot-drop {
    width: 212px;
    height: 290px;
    padding: 0 2px 0 0;
    box-sizing: border-box;
    border: 2px dashed var(--nb-ink);
    border-radius: var(--nb-radius);
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}
.private-view-scale .scale-slot-drop.scale-slot-drop-stacked {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0 2px 0 0;
    box-sizing: border-box;
    min-height: 290px;
    height: 290px;
    width: 212px;
    overflow: hidden;
}
.private-view-scale .scale-slot-drop.drag-over {
    background: rgba(255, 212, 0, 0.3);
}
.private-view-scale .scale-slot-drop-stacked .private-view-card-title-only {
    width: 100%;
    min-height: 36px;
    height: 36px;
    padding: 6px 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: var(--nb-radius) var(--nb-radius) 0 0;
    border-bottom: none;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.08);
}
.private-view-scale .scale-slot-drop-stacked .private-view-card-title-only .card-name {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.private-view-scale .scale-slot-drop-stacked .private-view-card-title-only .card-content.card-content-hidden {
    display: none;
}
.private-view-scale .scale-slot-drop-stacked .private-view-card-stack-front {
    flex: 1;
    min-height: 0;
    margin-top: 0;
}
.private-view-card-title-only .card-content.card-content-hidden {
    display: none;
}
.private-view-card .card-drag-handle {
    cursor: grab;
    user-select: none;
}
.private-view-card .card-drag-handle:active {
    cursor: grabbing;
}
.private-view-cards.drag-over {
    background: rgba(255, 212, 0, 0.15);
    border-radius: var(--nb-radius);
}
.private-view-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 24px;
}
.private-view-card {
    width: 210px;
    height: 290px;
    padding: 12px;
    box-sizing: border-box;
    background: #fff3a6;
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: 3px 3px 0 var(--nb-ink);
    cursor: grab;
    user-select: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.private-view-card:active {
    cursor: grabbing;
}
.private-view-card .card-name {
    font-weight: 600;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.private-view-card .card-content {
    font-size: 12px;
    color: #374151;
    flex: 1;
    overflow: auto;
    word-break: break-word;
}
.private-done-btn,
.private-cancel-btn {
    font-size: 16px;
    padding: 10px 24px;
}

/* Private view: voting (grid + vote pool) */
.private-view-voting-body {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 24px;
    padding: 16px;
    align-items: flex-start;
}
.private-view-voting-main {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-content: start;
}
.private-view-voting-pool {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--nb-radius);
    border: 2px dashed var(--nb-border);
}
.private-view-voting-pool-legend {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.private-view-voting-pool-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.private-view-voting-pool-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
}
.private-view-voting-pool-circle:active {
    cursor: grabbing;
}
.private-view-voting-pool-circle.dragging-source {
    opacity: 0.5;
}
.private-view-voting-pool-label {
    font-size: 16px;
    color: var(--nb-ink);
}
.private-view-voting-card {
    position: relative;
    width: 100%;
    min-height: 140px;
    padding: 12px;
    box-sizing: border-box;
    background: #fff3a6;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    box-shadow: 3px 3px 0 var(--nb-ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.private-view-voting-card.drag-over-votes {
    background: rgba(255, 212, 0, 0.4);
}
.private-view-voting-card .voting-card-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.private-view-voting-card .voting-card-content {
    font-size: 12px;
    color: #374151;
    flex: 1;
    overflow: auto;
    word-break: break-word;
}
.private-view-voting-card-votes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.private-view-voting-card-votes > * {
    pointer-events: auto;
}
.private-view-vote-dot {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #000;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.private-view-vote-dot:active {
    cursor: grabbing;
}
.private-view-vote-dot.dragging {
    opacity: 0.8;
    z-index: 10;
}
.private-view-vote-dot-remove {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    cursor: pointer;
    background: rgba(0,0,0,0.15);
    border-radius: 50%;
    pointer-events: auto;
    box-sizing: border-box;
}
.private-view-vote-dot-remove .private-view-vote-dot-x {
    line-height: 1;
    margin-top: -0.06em;
    display: block;
}
.private-view-vote-dot:hover .private-view-vote-dot-remove {
    display: flex;
}

/* Multiplayer session (board menu) */
.board-menu-divider {
    height: 1px;
    background: rgba(17, 17, 17, 0.2);
    margin: 8px 0;
}
.multiplayer-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}
.multiplayer-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--nb-ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.session-nickname-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.session-nickname-label {
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
    flex-shrink: 0;
}
.session-nickname-input {
    flex: 1;
    min-width: 100px;
    max-width: 160px;
    padding: 6px 8px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
    background: var(--nb-paper);
}
.session-nickname-input:focus {
    outline: none;
    background: #f9fafb;
}
.session-code-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.session-code-label {
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
}
.session-code {
    font-size: 13px;
    font-weight: 700;
    padding: 2px 6px;
    border: 2px solid var(--nb-ink);
    border-radius: 6px;
    background: var(--nb-paper);
}
.session-copy-btn {
    flex-shrink: 0;
}
.session-join-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.session-code-input {
    flex: 1;
    min-width: 120px;
    padding: 6px 8px;
    border: 2px solid var(--nb-ink);
    border-radius: var(--nb-radius);
    font-size: 14px;
    background: var(--nb-paper);
}
.session-code-input:focus {
    outline: none;
    background: #f9fafb;
}
.session-join-btn {
    padding: 6px 10px;
}
.session-status {
    font-size: 12px;
    color: #374151;
    min-height: 1.2em;
}