:root {
    --primary:  #5B8DEF;
    --bg:       #F5F7FA;
    --text:     #2D3748;
    --border:   #E2E8F0;
    --radius:   8px;
    --shadow:   0 2px 8px rgba(0,0,0,0.06);
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

header {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

/* Fil d'Ariane */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem 0;
    padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.breadcrumb-item {
    font-size: 0.9rem;
    color: #9aa3b0;
    white-space: nowrap;
    max-width: 20ch;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.breadcrumb-item {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
a.breadcrumb-item:hover { text-decoration: underline; }
.breadcrumb-item--current {
    color: var(--text);
    font-weight: 600;
    max-width: 28ch;
}
.breadcrumb-sep {
    color: #ccc;
    font-size: 0.85rem;
    padding: 0 0.3rem;
    flex-shrink: 0;
}

/* Titre atelier + renommage */
.workshop-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.workshop-title h1 { margin-bottom: 0; }

.btn-rename {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.4;
    padding: 0.2rem;
}
.btn-rename:hover { opacity: 1; }

.rename-input {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    border: none;
    border-bottom: 2px solid var(--primary);
    background: transparent;
    outline: none;
    width: 100%;
    max-width: 400px;
}

/* Menu Actions */
.actions-wrapper {
    position: relative;
    margin-left: auto;
}

.btn--actions {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--actions:hover { background: var(--bg); }

.actions-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 220px;
    z-index: 100;
    padding: 0.4rem 0;
}
.actions-menu--open { display: block; }

.actions-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}
.actions-item:hover { background: var(--bg); }

.actions-item--disabled {
    color: #bbb;
    cursor: not-allowed;
}
.actions-item--disabled:hover { background: none; }

.actions-group {
    padding: 0.5rem 1rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #aaa;
    margin-top: 0.25rem;
}

/* Liste des boards */
.boards-section { margin-top: 2rem; }

.boards-empty {
    color: #aaa;
    font-size: 0.9rem;
}

.boards-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.boards-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.85rem 1rem;
    min-height: 48px;
}

.boards-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.boards-name--link {
    text-decoration: none;
    color: var(--primary);
}
.boards-name--link:hover { text-decoration: underline; }

.board-phase {
    font-size: 0.75rem;
    color: #aaa;
    margin-left: auto;
    margin-right: 0.5rem;
    white-space: nowrap;
}
.btn-rename-board {
    padding: 0 0.2rem;
}
.board-phase--waiting { color: #aaa; }
a.board-phase--link { text-decoration: none; color: var(--primary); }
a.board-phase--link:hover { text-decoration: underline; }
.board-phase--photo   { color: #e6a817; }
.board-phase--cropped { color: #38a169; }
.board-phase--done    { color: #38a169; }

.btn-delete {
    padding: 0 1rem;
    min-height: 48px;
    border: none;
    background: none;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s;
    flex-shrink: 0;
}
.btn-delete:hover { color: #e53e3e; }
.btn-delete--confirm { color: #e53e3e; font-weight: bold; font-size: 1.1rem; }

/* Formulaire de création */
.create-section { margin-bottom: 2.5rem; }

.create-form {
    display: flex;
    gap: 0.75rem;
}

.create-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    background: #fff;
}
.create-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover { opacity: 0.9; }

@media (max-width: 480px) {
    .create-form { flex-direction: column; }
    .btn--primary { width: 100%; }
}

.btn--secondary {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn--secondary:hover { background: var(--bg); }

/* Page Shoot */
.shoot-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.shoot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shoot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.85rem 1rem;
    min-height: 56px;
}

.shoot-item--pending {
    cursor: pointer;
    border-left: 3px solid var(--primary);
}
.shoot-item--pending:hover { background: var(--bg); }

.shoot-item--done {
    opacity: 0.5;
}

.shoot-status {
    font-size: 0.8rem;
    color: #aaa;
}
.shoot-item--pending .shoot-status { color: var(--primary); }

.shoot-camera-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shoot-board-label {
    font-weight: 600;
    font-size: 1rem;
}

.shoot-preview {
    width: 100%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shoot-preview video,
.shoot-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shoot-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.shoot-actions .btn,
.shoot-actions label.btn { width: 100%; text-align: center; cursor: pointer; }

.shoot-sent-msg {
    font-size: 1.1rem;
    font-weight: 600;
    color: #38a169;
    margin-bottom: 1rem;
    text-align: center;
}

/* Liste des ateliers */
.workshops-empty {
    color: #aaa;
    font-size: 0.9rem;
}

.workshops-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.workshops-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.workshops-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    min-height: 48px;
    text-decoration: none;
    color: var(--text);
}
.workshops-link:hover { background: var(--bg); }

.workshops-name { font-weight: 600; font-size: 0.95rem; }
.workshops-date { font-size: 0.8rem; color: #aaa; }



/* Modal QR */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.share-modal-box {
    position: relative;
    background: #fff;
    border-radius: 1.2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 420px;
    width: 90%;
}
.share-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.share-modal-qr-link {
    display: inline-block;
    cursor: pointer;
}
.share-modal-qr {
    width: clamp(160px, 70vw, 300px);
    height: auto;
    display: block;
}
.share-modal-copy-btn,
.share-modal-close {
    width: 100%;
}

/* Page Board */
.board-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}
.btn--back { flex-shrink: 0; }
.board-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}
.board-wip { color: #aaa; font-size: 0.9rem; }

.board-section { margin-top: 2rem; }
.board-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}
.board-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.board-actions .btn { flex: 1; }

.crop-area {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    cursor: crosshair;
}
.crop-area canvas { display: block; width: 100%; }

.board-section--empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}
.board-empty-msg { margin-bottom: 1.5rem; }
.detect-toolbar .board-empty-msg { width: 100%; text-align: center; margin: 0; }

.crop-result { width: 100%; border-radius: var(--radius); overflow: hidden; }
.crop-result-img { display: block; width: 100%; }

.detect-result {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}
.detect-result-img { display: block; width: 100%; }
.detect-box {
    position: absolute;
    border: 2px solid #f6c90e;
    border-radius: 3px;
    box-sizing: border-box;
    pointer-events: none;
}

/* Plein écran détection : masquer header et titre de page */
body.detect-fullscreen header,
body.detect-fullscreen .breadcrumb,
body.detect-fullscreen .board-title,
body.detect-fullscreen .board-section-title { display: none; }
body.detect-fullscreen .container { padding-top: 0; }
body.detect-fullscreen .board-section { margin-top: 0; padding-top: 0; }

.prez-fullscreen {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.prez-fullscreen.panning {
    cursor: grabbing;
}
.prez-photo-wrap {
    display: inline-block;
    line-height: 0;
}
body.prez-fullscreen-mode {
    overflow: hidden;
}
body.prez-fullscreen-mode .container {
    padding: 0;
    max-width: none;
}
.prez-photo {
    max-width: 100vw;
    max-height: 100vh;
    display: block;
    user-select: none;
    pointer-events: none;
}
.prez-toggle-btn {
    position: fixed;
    bottom: 1.5rem;
    z-index: 10;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 1.4rem;
    line-height: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.prez-toggle-btn--right { right: 1.5rem; }
.prez-toggle-btn--left  { left: 1.5rem; }

.prez-menu-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 30;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 1.4rem;
    line-height: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.prez-menu {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 30;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 1rem 1.25rem;
    min-width: 220px;
}
.prez-menu-group + .prez-menu-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
/* #prez-vote-menu contient un .prez-menu-group (Affichage) sans en être un lui-même : le
   sélecteur de fratrie ci-dessus ne le voit pas, donc il ne sépare jamais ce qui le suit. */
#prez-vote-menu:has(.prez-menu-group) {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.prez-menu-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.prez-menu label {
    display: block;
    padding: 0.35rem 0;
    cursor: pointer;
    color: var(--text);
    font-size: 0.95rem;
}

.prez-qr-small {
    position: fixed;
    bottom: 5.5rem;
    left: 1.5rem;
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.prez-qr-large-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prez-qr-large-box {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}
.prez-qr-large-box img {
    width: min(60vh, 60vw);
    height: min(60vh, 60vw);
    display: block;
}
.prez-qr-large-box p {
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.prez-empty-msg {
    color: #fff;
}

.prez-top-wrap {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    padding: 3vh 4vw;
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
}
.prez-top-empty {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 40vh;
}

.prez-postit-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.prez-postit-badge {
    position: absolute;
    transform: translate(-100%, -100%);
    background: #E096A4;
    color: #fff;
    font-weight: 700;
    font-size: clamp(14px, 2.2vw, 34px);
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.prez-postit-current {
    position: absolute;
    border: 4px solid #ffd43b;
    border-radius: 4px;
    box-shadow: 0 0 24px 6px rgba(255, 212, 59, 0.8);
    animation: prez-postit-current-pulse 1.2s ease-in-out infinite;
}
@keyframes prez-postit-current-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}
.prez-postit-clickable {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 4px;
    transition: background 0.15s, box-shadow 0.15s;
}
.prez-postit-clickable:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6) inset;
}
.prez-postit-empty {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}
.prez-top-row {
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.2vh 1.5vw;
}
.prez-top-row-header {
    color: #f6c343;
    font-size: clamp(1.2rem, 3vh, 2.2rem);
    font-weight: 800;
    text-align: center;
}
.prez-top-row-votes {
    color: #2f9e44;
}
.prez-top-row-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1vh 1vw;
}
.prez-top-thumb {
    height: 22vh;
    width: auto;
    max-width: 30vw;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
}
/* Élément à part (pas de position:relative/fixed sur .prez-top-thumb lui-même) : ne fait jamais
   partie du flux de #prez-top-wrap, donc ne peut pas décaler les lignes/vignettes autour. */
.prez-top-zoom-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width/height (pas max-*) : certaines images (groupe composé) sont en basse résolution et
       ne s'agrandiraient pas au-delà de leur taille native avec seulement un plafond max-*. */
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    z-index: 50;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}
.prez-top-title {
    color: #fff;
    font-size: clamp(1rem, 2.6vh, 1.8rem);
    font-weight: 600;
}

.prez-matrix-wrap {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}
.prez-matrix-wrap.panning {
    cursor: grabbing;
}
.prez-matrix-inner {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
}
.prez-matrix-empty {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 40vh;
}
.prez-matrix-plot {
    position: absolute;
    inset: 4vh 4vw 6vh 4vw;
    border-left: 2px solid #555;
    border-bottom: 2px solid #555;
}
.prez-matrix-item {
    position: absolute;
    z-index: 1;
}
.prez-matrix-item:hover {
    z-index: 5;
}
.prez-matrix-thumb {
    height: 10vh;
    width: auto;
    max-width: 12vw;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prez-matrix-item:hover .prez-matrix-thumb {
    transform: scale(1.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.prez-matrix-title {
    display: inline-block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    transition: transform 0.15s ease;
}
.prez-matrix-item:hover .prez-matrix-title {
    transform: scale(1.15);
}
.prez-matrix-axis-label {
    position: absolute;
    color: #888;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.prez-matrix-axis-label--x {
    bottom: 3.2vh;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.prez-matrix-axis-label--y {
    top: 50%;
    left: 2.7vw;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
}
.prez-matrix-tick {
    position: absolute;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}
.prez-matrix-tick--x-min {
    bottom: 3.2vh;
    left: 4vw;
}
.prez-matrix-tick--x-max {
    bottom: 3.2vh;
    right: 4vw;
}
.prez-matrix-tick--y-min {
    bottom: 6vh;
    left: calc(4vw - 0.4em);
    transform: translateX(-100%);
}
.prez-matrix-tick--y-max {
    top: 4vh;
    left: calc(4vw - 0.4em);
    transform: translateX(-100%);
}
.prez-menu-sublabel {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.4rem;
    display: block;
}
.prez-menu-cfg {
    margin: 0.4rem 0 0.6rem 1.6rem;
    padding: 0.6rem 0.7rem;
    background: var(--bg);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
}

.detect-area {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    overflow: hidden;
    background: #000;
    cursor: crosshair;
}
.detect-area canvas { display: block; width: 100%; }

.detect-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(245,247,250,0.95);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(4px);
    z-index: 100;
}
.detect-toolbar .btn { flex: 1; }
.rd-label {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    text-align: center;
    color: var(--text);
}

.group-toolbar {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}
.group-toolbar .btn { flex: 1; }

body.detect-fullscreen .group-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    background: rgba(245,247,250,0.95);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(4px);
    z-index: 100;
}

.group-area {
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 1rem;
    cursor: pointer;
}
.group-area canvas { display: block; width: 100%; }

body.detect-fullscreen .group-area {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    margin-bottom: 0;
}

.shoot-uploading-label { text-align: center; margin-bottom: 0.75rem; color: var(--text); }
.shoot-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0 1rem;
}
.shoot-progress-bar > div {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.1s linear;
    width: 0%;
}

.votables-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.votable-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.votable-img { display: block; width: 100%; }
.votable-fields { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.votable-title, .votable-text {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    resize: vertical;
}
.votable-title { font-weight: 600; }

/* Palettes */
.palette-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.palette-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.palette-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.palette-toggle {
    cursor: pointer;
    user-select: none;
}
.palette-item .btn-delete {
    margin-left: auto;
}
.palette-toggle-arrow {
    display: inline-block;
    width: 1em;
}
.palette-colors-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 0.5rem;
}
.palette-colors {
    list-style: none;
}
.palette-color-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.palette-color-row:last-child { border-bottom: none; }
.palette-color-row:hover { background: var(--bg); }
.palette-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
}
.palette-color-label {
    width: 120px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.palette-color-type {
    font-size: 0.9rem;
    flex: 1;
}
.palette-color-type--empty { color: #bbb; font-style: italic; }
.palette-color-type--set   { color: var(--text); font-weight: 500; }
.palette-type-input {
    font-size: 0.9rem;
    flex: 1;
    padding: 0.2rem 0.4rem;
}

/* Actions board */
.board-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.board-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}
.board-action-card:not(.board-action-card--soon):hover {
    border-color: var(--primary);
    background: #f0f5ff;
}
.board-action-card--soon {
    opacity: 0.45;
    cursor: default;
}
.board-action-icon { font-size: 1.5rem; flex-shrink: 0; }
.board-action-label { font-weight: 700; font-size: 1rem; }
.board-action-desc { font-size: 0.85rem; color: #888; margin-left: auto; }

.voting-link-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}
.voting-big-link {
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius);
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.voting-big-link:hover { opacity: 0.9; }
.voting-link-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.voting-link-block--row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.voting-link-block--row .voting-big-link {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}
.voting-link-block--row .voting-link-actions {
    flex-shrink: 0;
}
#voting-qr-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#voting-qr-zoom-img {
    width: min(80vw, 400px);
    height: min(80vw, 400px);
    border-radius: 6px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    background: #fff;
    padding: 1rem;
}

.vote-round-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.vote-round-select {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.vote-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.vote-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.75rem;
}
.vote-item-thumb {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    cursor: zoom-in;
}
.vote-item-thumb--empty {
    width: 3.5rem;
    height: 3.5rem;
    background: #eee;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.vote-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.vote-item-title { font-weight: 700; }
.vote-item-text { font-size: 0.9rem; color: #555; }

#vote-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.vote-zoom-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 90vw;
}
.vote-zoom-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
#vote-zoom-img {
    align-self: center;
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 6px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.vote-zoom-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-sizing: border-box;
}
/* Champs toujours visibles (bordure + hauteur mini), même vides, avec un placeholder */
.vote-zoom-info #vote-zoom-title,
.vote-zoom-info #vote-zoom-text {
    display: block;
    width: 100%;
    min-height: 1.4em;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
}
.vote-zoom-info #vote-zoom-title:empty::before,
.vote-zoom-info #vote-zoom-text:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
}
.vote-zoom-info [contenteditable="true"] {
    outline: none;
    cursor: text;
}
.vote-zoom-info [contenteditable="true"]:focus {
    background: #f0f5ff;
    box-shadow: 0 0 0 2px var(--primary);
}
.vote-zoom-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Export */
.export-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}
.export-tab {
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.export-tab:hover { color: var(--text); }
.export-tab--active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.export-crop-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #000;
}
.export-crop-img {
    display: block;
    width: 100%;
}
.export-crop-wrap:hover {
    outline: 3px solid var(--primary);
}
.export-crop-wrap:has(.export-postit-overlay:hover) {
    outline: none;
}
#export-postit-overlays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.export-postit-overlay {
    position: absolute;
    pointer-events: all;
    cursor: copy;
    border-radius: 3px;
    transition: outline 0.1s;
}
.export-postit-overlay:hover {
    outline: 3px solid var(--primary);
    background: rgba(91,141,239,0.15);
}

/* Vérifier couleurs */
.vc-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: visible;
    background: #000;
}
.vc-img { display: block; width: 100%; border-radius: var(--radius); }
#vc-overlays { position: absolute; inset: 0; }
.vc-overlay {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vc-overlay:hover { opacity: 0.9; }
.vc-overlay-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    background: rgba(255,255,255,0.9);
    padding: 2px 5px 2px 3px;
    border-radius: 3px;
    opacity: 0.9;
    pointer-events: none;
    white-space: nowrap;
}
.vc-overlay-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.vc-picker {
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    width: 310px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vc-picker-catego {
    display: flex;
    gap: 6px;
    align-items: center;
}
.vc-catego-select {
    flex: 1;
    font-size: 0.85rem;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.vc-picker-catego-name {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
.vc-catego-name-label { }
.vc-catego-delete-btn { margin-left: auto; font-size: 0.75rem; }
.vc-catego-delete-btn.btn-delete--confirm { color: #e53e3e; font-size: 0.7rem; }
.vc-colors-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vc-color-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-radius: 4px;
    cursor: default;
}
.vc-color-row--selected { background: #f0f4ff; }
.vc-color-swatch-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.15);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.1s;
}
.vc-color-swatch-btn:hover { border-color: #333; transform: scale(1.15); }
.vc-color-name { font-size: 0.8rem; width: 75px; flex-shrink: 0; }
.vc-color-type {
    flex: 1;
    font-size: 0.78rem;
    cursor: pointer;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-color-type.palette-color-type--empty { color: #aaa; font-style: italic; }
.vc-color-type.palette-color-type--set   { color: #333; font-weight: 500; }
.vc-type-edit-btn { font-size: 0.75rem; padding: 0; background: none; border: none; cursor: pointer; opacity: 0.5; flex-shrink: 0; }
.vc-type-edit-btn:hover { opacity: 1; }
.vc-overlay--selected { outline: 3px solid #fff; outline-offset: 1px; }

.export-table-options { margin-bottom: 0.75rem; }
.export-typage-label { font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.export-typage-label select { font-size: 0.9rem; padding: 0.25rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; }

.export-hint {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
    text-align: center;
}
.export-text-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.export-text-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}
.export-text-num {
    font-size: 0.75rem;
    color: #aaa;
    min-width: 1.5rem;
    flex-shrink: 0;
}
.export-text-content {
    flex: 1;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}
.export-text-content:focus {
    border-bottom: 1px solid var(--primary);
}
.export-text-content--pending {
    color: #aaa;
    font-style: italic;
}
.export-copy-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.export-postit-thumb {
    height: 60px;
    width: auto;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: zoom-in;
    object-fit: cover;
}
.export-postit-thumb--empty {
    width: 40px;
    height: 60px;
    flex-shrink: 0;
}
.group-desc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.group-desc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 0.75rem;
}
.group-desc-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.group-desc-title {
    font-size: 0.9rem;
}
.group-desc-title--pending {
    color: #aaa;
    font-style: italic;
}
#export-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#export-zoom-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.export-table-wrap {
    margin-top: 0.75rem;
    overflow-x: auto;
}
.export-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.export-table th, .export-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
}
.export-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #aaa;
}

.dot-config-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.dot-config-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}
.dot-config-row label { font-weight: 600; min-width: 11rem; flex-shrink: 0; }
.dot-config-row input[type="number"] {
    width: 10rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    text-align: center;
}
.dot-config-row select,
.dot-config-row input[type="text"] {
    flex: 1;
    min-width: 260px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}
.dot-config-stepper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dot-config-stepper-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}
.dot-config-stepper span {
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}
.dot-config-checkbox-label {
    font-weight: 400 !important;
    min-width: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.vote-item-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.vote-stepper-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.vote-stepper-btn:disabled { opacity: 0.35; cursor: default; }
.vote-item-count {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}
.vote-item-total {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vote-floatbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 15;
}
.vote-confirmed-label {
    color: #2f9e44;
    font-weight: 600;
}
.dot-vote-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.dot-vote-bar-row .btn {
    flex-shrink: 0;
}
.dot-vote-bar {
    display: flex;
    flex: 1;
    height: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.dot-vote-bar-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    border-right: 1px solid #fff;
    transition: background 0.3s, color 0.3s;
}
.dot-vote-bar-cell:last-child {
    border-right: none;
}
.dot-vote-bar-cell--done {
    background: #2f9e44;
    color: #fff;
}
.dot-vote-rows {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.75rem;
}
.dot-vote-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.3rem 1.25rem;
}
.dot-vote-pastille {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}
.dot-vote-pastille--filled {
    background: #2f9e44;
}
.dot-vote-check {
    width: 28px;
    height: 28px;
    border: 3px solid #ccc;
    border-radius: 5px;
    flex-shrink: 0;
}
.dot-vote-check--done {
    background: #2f9e44;
    border-color: #2f9e44;
}

.dot-vote-round-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dot-vote-round-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}
.dot-vote-round-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}
.dot-vote-round-item--open .dot-vote-round-header {
    cursor: default;
}
.dot-vote-round-title {
    font-weight: 600;
}
.dot-vote-round-status {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}
.dot-vote-round-item--open .dot-vote-round-status {
    color: var(--primary);
    font-weight: 700;
}
.dot-vote-round-results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.75rem;
}
.dot-vote-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-top: 1px solid var(--border);
}
.dot-vote-result-rank {
    font-weight: 700;
    color: #888;
    width: 1.5em;
    flex-shrink: 0;
    text-align: center;
}
.dot-vote-result-thumb {
    height: 40px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.dot-vote-result-title {
    flex: 1;
    font-size: 0.9rem;
}
.dot-vote-result-score {
    font-weight: 700;
    color: #2f9e44;
    flex-shrink: 0;
}

/* Poker : choix du type de vote, sélection d'item, cartes, résultats */
.dot-config-type-choice {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.dot-config-type-choice label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    min-width: 0;
    cursor: pointer;
}

.poker-item-picker {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}
.poker-item-picker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.poker-item-picker-item:hover {
    border-color: var(--primary);
    background: #f0f5ff;
}
.poker-item-picker-item--done {
    opacity: 0.6;
}
.poker-item-picker-thumb {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.poker-item-picker-title {
    flex: 1;
    font-weight: 700;
}
.poker-item-picker-badge {
    font-size: 0.8rem;
    color: #2f9e44;
    font-weight: 600;
    flex-shrink: 0;
}

.poker-current-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1rem;
}
.poker-current-item-thumb {
    width: 100%;
    max-width: 480px;
    max-height: 65vh;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
}
.poker-current-item-title {
    font-weight: 700;
    text-align: center;
}
.poker-current-item-text {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.card-btn {
    min-width: 4.5rem;
    padding: 1rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.card-btn:hover {
    border-color: var(--primary);
}
.card-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
.card-btn--preview {
    opacity: 0.5;
    cursor: default;
}
.card-btn--excluded {
    text-decoration: line-through;
}

.poker-result-summary {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.poker-result-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.poker-result-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.votes-table {
    width: 100%;
    border-collapse: collapse;
}
.votes-table th {
    text-align: left;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border);
}
.votes-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.votes-table tr.no-votes td {
    color: #aaa;
}
.votes-table tr.has-votes td {
    font-weight: 600;
}
