:root {
    --bg-0: #07090f;
    --bg-1: #0d1119;
    --bg-2: #131826;
    --panel: rgba(20, 25, 38, 0.72);
    --panel-strong: rgba(20, 25, 38, 0.88);
    --panel-border: rgba(255, 255, 255, 0.07);
    --text: #e8ecf5;
    --text-dim: #8b94a8;
    --accent: #6ee7ff;
    --accent-2: #a78bfa;
    --green: #4ade80;
    --red: #f87171;
    --yellow: #fbbf24;
    --orange: #fb923c;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 800px at 80% -10%, rgba(110, 231, 255, 0.10), transparent 60%),
        radial-gradient(900px 700px at -10% 110%, rgba(167, 139, 250, 0.10), transparent 60%),
        var(--bg-0);
    overflow: hidden;
}

.app {
    height: 100vh;
    display: grid;
    grid-template-rows: 56px 1fr;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    background: rgba(7, 9, 15, 0.55);
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.input-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: rgba(20, 25, 38, 0.6);
    color: var(--text);
    font-family: inherit;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
    user-select: none;
}

.input-mode-btn:hover {
    transform: translateY(-1px);
}

.input-mode-btn .input-mode-icon {
    transition: opacity 0.15s, transform 0.15s;
}

.input-mode-btn[data-mode="hand"] {
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.16), rgba(167, 139, 250, 0.12));
    border-color: rgba(110, 231, 255, 0.45);
    color: #cffafe;
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.18);
}

.input-mode-btn[data-mode="hand"] .icon-hand { display: inline-block; }
.input-mode-btn[data-mode="hand"] .icon-mouse { display: none; }

.input-mode-btn[data-mode="mouse"] {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.16), rgba(249, 115, 22, 0.12));
    border-color: rgba(251, 191, 36, 0.55);
    color: #fde68a;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
}

.input-mode-btn[data-mode="mouse"] .icon-hand { display: none; }
.input-mode-btn[data-mode="mouse"] .icon-mouse { display: inline-block; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 10px currentColor;
    transition: background 0.25s;
}

.status-dot.ready { background: var(--green); }
.status-dot.error { background: var(--red); }

.main {
    padding: 12px;
    min-height: 0;
}

.stage {
    height: 100%;
    min-height: 0;
}

.video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

#video,
#canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The webcam frame is required for MediaPipe to compute landmarks, but we
   don't want the user to actually see it. We hide it visually (opacity:0) so
   the underlying decoder keeps producing frames. */
#video {
    transform: scaleX(-1);
    opacity: 0;
    pointer-events: none;
}

#video.no-mirror {
    transform: none;
}

#canvas {
    pointer-events: none;
    /* Hand pins + temporary ink trail must always sit above any board
       content (PDFs, web iframes, post-its, drawings). z-index is below
       cursors (200) and below modals (1500+) so those still occlude. */
    z-index: 100;
}

/* ====================== Board viewport with pan / zoom ====================== */
.board-viewport {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.board-transform {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    pointer-events: none;
    will-change: transform;
}

.postit-board {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pdf-board {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pdf-board-item {
    position: absolute;
    pointer-events: auto;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.15s ease, transform 0.15s ease, outline-color 0.15s ease;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    outline: 0 solid rgba(110, 231, 255, 0);
}

.pdf-board-item.hover {
    outline: 2px solid rgba(110, 231, 255, 0.55);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.32),
        0 0 24px rgba(110, 231, 255, 0.25);
    transform: translateY(-1px);
}

.pdf-board-item.dragging {
    cursor: grabbing;
    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(110, 231, 255, 0.35);
    transform: scale(1.01);
}

.pdf-board-item img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pdf-board-item .pdf-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(20, 25, 38, 0.78);
    color: #fde68a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* ====================== Web (iframe) viewers on the board ====================== */
.web-board {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.web-board-item {
    position: absolute;
    pointer-events: auto;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.32),
        0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease, outline-color 0.15s ease;
    outline: 0 solid rgba(110, 231, 255, 0);
    display: flex;
    flex-direction: column;
}

.web-board-item.hover {
    outline: 2px solid rgba(110, 231, 255, 0.55);
    box-shadow:
        0 12px 44px rgba(0, 0, 0, 0.35),
        0 0 28px rgba(110, 231, 255, 0.28);
    transform: translateY(-1px);
}

.web-board-item.dragging {
    box-shadow:
        0 18px 56px rgba(0, 0, 0, 0.45),
        0 0 44px rgba(110, 231, 255, 0.38);
    transform: scale(1.005);
}

.web-frame-header {
    flex: 0 0 auto;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    background: linear-gradient(180deg, rgba(20, 25, 38, 0.95), rgba(15, 20, 30, 0.95));
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: grab;
    user-select: none;
}

.web-board-item.dragging .web-frame-header {
    cursor: grabbing;
}

.web-frame-dots {
    display: flex;
    gap: 5px;
    flex: 0 0 auto;
}

.web-frame-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.web-frame-dots span:nth-child(1) { background: #ef4444; }
.web-frame-dots span:nth-child(2) { background: #f59e0b; }
.web-frame-dots span:nth-child(3) { background: #22c55e; }

.web-frame-url {
    flex: 1 1 auto;
    font-size: 11px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.web-frame-close {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
    padding: 0;
}

.web-frame-close.hover,
.web-frame-close:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.08);
}

.web-frame-close svg {
    pointer-events: none;
}

.web-frame-body {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.web-frame-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    transform-origin: top left;
    border: 0;
    display: block;
    background: #ffffff;
}

.web-frame-body .web-frame-blocked {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
}

.web-frame-body .web-frame-blocked strong {
    color: #ef4444;
    font-size: 14px;
}

.tool-btn.web-add-btn {
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.30);
    background: rgba(18, 35, 45, 0.55);
}

.tool-btn.web-add-btn .tool-label {
    color: #a5f3fc;
}

.tool-btn.web-add-btn.hover {
    background: rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.32);
    transform: scale(1.04);
    color: #cffafe;
}

.tool-btn.web-add-btn.hover .tool-label {
    color: #cffafe;
}

.connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.drawings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.drawings .stroke {
    fill: none;
    stroke: #0a0a0a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    paint-order: stroke;
}

.drawings .stroke.live {
    stroke: #111;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.drawings .stroke.erasing {
    stroke: rgba(248, 113, 113, 0.6) !important;
    transition: opacity 0.18s ease;
    opacity: 0.35;
}

/* ====================== Board title ====================== */
.board-title {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 10px 16px 12px;
    max-width: 38vw;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.board-title.hover {
    border-color: rgba(110, 231, 255, 0.5);
    background: rgba(20, 25, 38, 0.92);
    box-shadow: var(--shadow), 0 0 30px rgba(110, 231, 255, 0.18);
}

.board-title-label {
    font-size: 9px;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    font-weight: 700;
}

.board-title-name {
    margin: 2px 0 0;
    font-family: "Caveat", cursive;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.05;
    color: var(--text);
    word-break: break-word;
}

.board-title.editing .board-title-name::after {
    content: "▍";
    color: var(--yellow);
    animation: blink 0.8s steps(2, end) infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ====================== Mini stats ====================== */
.mini-stats {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.mini-stat.dim { color: var(--text-dim); }

/* ====================== Sidebar with 3 colored sources ====================== */
.sidebar {
    position: absolute;
    /* Anchor near the top, leaving room for the "+ LAVAGNA" / cestino
       buttons that live at the bottom-right of the viewport. */
    top: 14px;
    right: 14px;
    bottom: 110px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 14px;
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    align-items: center;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-header {
    font-size: 10px;
    letter-spacing: 2.4px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.sidebar-section-label {
    font-size: 8px;
    letter-spacing: 1.6px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    align-self: center;
    margin-top: -2px;
}

.sidebar-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
    margin: 4px 0 2px;
}

.tool-btn {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: rgba(20, 25, 38, 0.6);
    border: 1px solid var(--panel-border);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s, color 0.15s;
    appearance: none;
    font-family: inherit;
    padding: 0;
}

.tool-btn .tool-label {
    font-size: 9px;
    letter-spacing: 1.4px;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
}

.tool-btn.hover {
    background: rgba(110, 231, 255, 0.14);
    border-color: rgba(110, 231, 255, 0.5);
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.18);
    transform: scale(1.04);
    color: var(--accent);
}

.tool-btn.hover .tool-label {
    color: var(--accent);
}

.tool-btn.active {
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.28), rgba(167, 139, 250, 0.22));
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 24px rgba(110, 231, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tool-btn.pdf-upload-btn {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.30);
    background: rgba(40, 32, 18, 0.55);
}

.tool-btn.pdf-upload-btn .tool-label {
    color: #fde68a;
}

.tool-btn.pdf-upload-btn.hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.32);
    transform: scale(1.04);
    color: #fef3c7;
}

.tool-btn.pdf-upload-btn.hover .tool-label {
    color: #fef3c7;
}

.tool-btn.pdf-upload-btn.loading {
    pointer-events: none;
    opacity: 0.65;
    animation: pdf-btn-pulse 1s ease-in-out infinite;
}

@keyframes pdf-btn-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 22px rgba(251, 191, 36, 0.65); }
}

.tool-btn.active .tool-label {
    color: var(--text);
}

.postit-source {
    width: 70px;
    height: 70px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.postit-source-card {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(var(--src-tilt, -2deg));
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.postit-source:nth-child(2) .postit-source-card { --src-tilt: -3deg; }
.postit-source:nth-child(3) .postit-source-card { --src-tilt: 2deg; }
.postit-source:nth-child(4) .postit-source-card { --src-tilt: -1deg; }

.color-yellow { background: linear-gradient(160deg, #fde68a, #fbbf24); }
.color-green  { background: linear-gradient(160deg, #c4f1d9, #86efac); }
.color-pink   { background: linear-gradient(160deg, #fbcfe8, #f9a8d4); }
.color-blue   { background: linear-gradient(160deg, #bae6fd, #7dd3fc); }
.color-purple { background: linear-gradient(160deg, #ddd6fe, #c4b5fd); }

.postit-source-plus {
    font-size: 28px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.5);
}

.postit-source.hover .postit-source-card {
    transform: rotate(var(--src-tilt, -2deg)) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(110, 231, 255, 0.5);
}

/* ====================== Boards sidebar (collapsible) ====================== */
.boards-sidebar {
    position: absolute;
    top: 92px;
    left: 14px;
    bottom: 130px;
    width: 240px;
    z-index: 6;
    display: flex;
    align-items: stretch;
    transform: translateX(-252px);
    transition: transform 0.25s ease;
}

.boards-sidebar.open {
    transform: translateX(0);
}

.boards-toggle {
    position: absolute;
    top: 50%;
    right: -76px;
    transform: translateY(-50%);
    width: 72px;
    height: 132px;
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.18), rgba(167, 139, 250, 0.14));
    backdrop-filter: blur(14px);
    border: 1px solid rgba(110, 231, 255, 0.45);
    border-left: none;
    border-radius: 0 16px 16px 0;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    z-index: 2;
    appearance: none;
    font-family: inherit;
    padding: 8px;
    box-shadow: -6px 0 24px rgba(110, 231, 255, 0.18), inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

.boards-toggle-label {
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.boards-toggle-icon {
    color: var(--accent);
}

.boards-toggle-chevron {
    transition: transform 0.25s ease;
    color: var(--accent);
}

.boards-sidebar.open .boards-toggle-chevron {
    transform: rotate(180deg);
}

.boards-toggle.hover {
    color: var(--accent);
    background: rgba(110, 231, 255, 0.14);
    box-shadow: 8px 0 24px rgba(110, 231, 255, 0.2);
    transform: translateY(-50%) translateX(4px);
}

.boards-toggle.hover .boards-toggle-label,
.boards-toggle.hover .boards-toggle-chevron {
    color: var(--accent);
}

.boards-inner {
    flex: 1;
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 14px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: var(--shadow);
}

.boards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 8px;
    padding-left: 4px;
}

.boards-export {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    font-family: inherit;
    appearance: none;
}

.boards-export.hover {
    color: var(--accent);
    background: rgba(110, 231, 255, 0.12);
    border-color: rgba(110, 231, 255, 0.4);
}

.boards-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boards-list::-webkit-scrollbar { width: 6px; }
.boards-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }

.board-item {
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-item .board-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
}

.board-item.active {
    background: rgba(110, 231, 255, 0.12);
    border-color: rgba(110, 231, 255, 0.35);
}

.board-item.active .board-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.board-item.hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.board-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item-count {
    font-size: 10px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

/* ====================== Bottom-right actions ====================== */
.actions {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.action-btn {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
    appearance: none;
    font-family: inherit;
}

.action-btn .action-label {
    font-size: 8px;
    letter-spacing: 1.4px;
    font-weight: 700;
}

.action-btn.add.hover {
    color: var(--accent);
    border-color: rgba(110, 231, 255, 0.5);
    background: rgba(110, 231, 255, 0.08);
    box-shadow: 0 0 24px rgba(110, 231, 255, 0.25);
    transform: scale(1.06);
}

.action-btn.trash.hover {
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(80, 20, 20, 0.55);
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(248, 113, 113, 0.35);
}

.action-btn.trash.armed {
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
    animation: trash-bob 1.1s ease-in-out infinite;
}

@keyframes trash-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Bottom-left tutorial button — always visible, accessible to either hand. */
.action-btn.tutorial-btn {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 6;
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(40, 32, 18, 0.78);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.18);
}

.action-btn.tutorial-btn.hover {
    color: #fef3c7;
    border-color: rgba(251, 191, 36, 0.7);
    background: rgba(60, 46, 18, 0.85);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
    transform: scale(1.06);
}

/* ====================== Tutorial modal ====================== */
.tutorial-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 11, 22, 0.72);
    backdrop-filter: blur(8px);
    animation: tutorial-fade 0.18s ease;
}

.tutorial-modal[hidden] {
    display: none;
}

@keyframes tutorial-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tutorial-card {
    width: min(880px, 100%);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(20, 25, 38, 0.98), rgba(14, 17, 28, 0.98));
    border: 1px solid rgba(110, 231, 255, 0.18);
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(110, 231, 255, 0.08);
    overflow: hidden;
    color: var(--text);
}

.tutorial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tutorial-eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 4px;
}

.tutorial-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tutorial-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.tutorial-close.hover,
.tutorial-close:hover {
    color: var(--text);
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.12);
    transform: scale(1.05);
}

.tutorial-body {
    padding: 16px 26px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tutorial-section {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tutorial-section[data-side="R"] {
    border-color: rgba(251, 191, 36, 0.18);
    background: rgba(251, 191, 36, 0.04);
}

.tutorial-section[data-side="L"] {
    border-color: rgba(167, 139, 250, 0.22);
    background: rgba(167, 139, 250, 0.05);
}

.tutorial-section[data-side="BOTH"] {
    border-color: rgba(110, 231, 255, 0.22);
    background: rgba(110, 231, 255, 0.04);
}

.tutorial-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tutorial-section-head h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.tutorial-section-head p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-dim);
}

.tutorial-hand-icon {
    width: 56px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}

.tutorial-hand-icon[data-side="R"] {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.10);
    border: 1px solid rgba(251, 191, 36, 0.30);
}

.tutorial-hand-icon[data-side="L"] {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.30);
}

.tutorial-hand-icon[data-side="BOTH"] {
    color: #67e8f9;
    background: rgba(110, 231, 255, 0.10);
    border: 1px solid rgba(110, 231, 255, 0.30);
}

.tutorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 720px) {
    .tutorial-list {
        grid-template-columns: 1fr 1fr;
    }
}

.tutorial-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tutorial-illu {
    flex-shrink: 0;
    width: 76px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0.92;
}

.tutorial-section[data-side="R"] .tutorial-illu { color: #fde68a; }
.tutorial-section[data-side="L"] .tutorial-illu { color: #c4b5fd; }
.tutorial-section[data-side="BOTH"] .tutorial-illu { color: #67e8f9; }

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

.tutorial-text strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text);
}

.tutorial-text span {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.42;
}

.tutorial-text em {
    color: #fde68a;
    font-style: normal;
    font-weight: 600;
}

.tutorial-footer {
    padding: 12px 26px 18px;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ====================== Mic indicator ====================== */
.mic-indicator {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 7;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 999px;
    color: #fecaca;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    transition: opacity 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

/* (boards-sidebar is now on the left; mic-indicator stays at top-right) */

.mic-indicator.active { display: flex; }

.mic-indicator.linger {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fde68a;
}

.mic-indicator.warning {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fde68a;
}

.mic-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: mic-pulse 1.2s ease-out infinite;
}

.mic-indicator.linger .mic-pulse,
.mic-indicator.warning .mic-pulse {
    background: #fbbf24;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
}

@keyframes mic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
    100% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ====================== Gesture hint ====================== */
.gesture-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 8px 16px;
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 11px;
    text-align: center;
    pointer-events: none;
    max-width: 50vw;
    opacity: 0.85;
    transition: opacity 0.4s;
}

.gesture-hint.hidden {
    opacity: 0;
}

/* ====================== Post-it ====================== */
.postit {
    position: absolute;
    width: 170px;
    min-height: 170px;
    padding: 14px 14px 16px;
    border-radius: 6px;
    background: linear-gradient(160deg, #fde68a, #fbbf24);
    color: #1a1a1a;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
    transform-origin: top left;
    transform: translate(-50%, -10px) rotate(var(--tilt, -2deg));
    font-family: "Caveat", "Comic Sans MS", "Marker Felt", cursive;
    font-size: 18px;
    line-height: 1.25;
    pointer-events: auto;
    user-select: none;
    transition: box-shadow 0.18s ease, outline-color 0.18s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.postit::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 60px;
    height: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.postit.color-yellow { background: linear-gradient(160deg, #fde68a, #fbbf24); }
.postit.color-green  { background: linear-gradient(160deg, #c4f1d9, #86efac); }
.postit.color-pink   { background: linear-gradient(160deg, #fbcfe8, #f9a8d4); }
.postit.color-blue   { background: linear-gradient(160deg, #bae6fd, #7dd3fc); }
.postit.color-purple { background: linear-gradient(160deg, #ddd6fe, #c4b5fd); }

.postit.hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(110, 231, 255, 0.4);
}

.postit.dragging {
    pointer-events: none;
    cursor: grabbing;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(110, 231, 255, 0.6);
    transition: none;
    z-index: 50;
}

.postit.selected {
    outline-color: rgba(110, 231, 255, 0.9);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(110, 231, 255, 0.7), 0 0 24px rgba(110, 231, 255, 0.45);
}

.postit.dictating {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(251, 191, 36, 0.9), 0 0 28px rgba(251, 191, 36, 0.55);
}

.postit-content {
    flex: 1;
    white-space: pre-wrap;
    overflow: hidden;
    word-break: break-word;
}

.postit-content .interim {
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.postit.dictating .postit-content.empty::before {
    content: "Inizia a parlare…";
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
}

.postit:not(.dictating) .postit-content.empty::before {
    content: "Vuoto";
    color: rgba(0, 0, 0, 0.3);
    font-style: italic;
    font-size: 14px;
}

.postit-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.postit-mic-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: mic-pulse 1.2s ease-out infinite;
    opacity: 0;
}

.postit.dictating .postit-mic-dot { opacity: 1; }

/* ====================== Hand cursor ====================== */
.cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transform: translate(-9999px, -9999px);
    pointer-events: none;
    z-index: 200;
}

.cursor-side-badge {
    position: absolute;
    left: 16px;
    top: -28px;
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: var(--text);
    background: rgba(20, 25, 38, 0.85);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 2px 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}

.cursor.visible .cursor-side-badge {
    opacity: 0.85;
    transform: translateY(0);
}

.cursor-side-badge[data-side="R"] {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.5);
}

.cursor-side-badge[data-side="L"] {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.5);
}

.cursor-tool-badge {
    position: absolute;
    left: -32px;
    top: -32px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(20, 25, 38, 0.92);
    border: 1px solid var(--accent);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(110, 231, 255, 0.4);
}

.cursor.tool-pen .cursor-tool-badge,
.cursor.tool-eraser .cursor-tool-badge {
    display: flex;
}

.cursor.tool-pen .cursor-ring,
.cursor.tool-eraser .cursor-ring {
    border-color: #fde68a;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

.cursor.tool-pen.pinching .cursor-ring {
    background: rgba(255, 255, 255, 0.15);
}

.cursor.tool-eraser .cursor-ring {
    border-color: #f87171;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.55);
}

.cursor-ring {
    position: absolute;
    left: -22px;
    top: -22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 18px var(--accent);
    transition: transform 0.12s ease, border-color 0.12s, box-shadow 0.12s;
}

.cursor-dot {
    position: absolute;
    left: -3px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.cursor.visible {
    transform: translate(0, 0);
}

.cursor.pinching .cursor-ring {
    transform: scale(0.55);
    border-color: var(--green);
    box-shadow: 0 0 22px var(--green);
}

.cursor.dragging .cursor-ring {
    border-color: var(--yellow);
    box-shadow: 0 0 22px var(--yellow);
}

.cursor.over-interactive .cursor-ring {
    border-color: #fde68a;
    box-shadow: 0 0 22px rgba(253, 230, 138, 0.8);
}

/* "Temporary ink" pointing pose — red glow, smaller ring (precise tip). */
.cursor.pointing .cursor-ring {
    border-color: #f87171;
    box-shadow: 0 0 22px rgba(248, 113, 113, 0.85), 0 0 60px rgba(248, 113, 113, 0.45);
    transform: scale(0.7);
}

.cursor.pointing .cursor-dot {
    background: #fef2f2;
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.9);
}

.cursor-progress {
    position: absolute;
    left: -22px;
    top: -22px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.cursor.long-holding .cursor-progress {
    opacity: 1;
}

.cursor-secondary .cursor-ring {
    border-color: var(--accent-2);
    box-shadow: 0 0 18px var(--accent-2);
}

.cursor-secondary .cursor-dot {
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.cursor-secondary.pinching .cursor-ring {
    border-color: var(--green);
    box-shadow: 0 0 22px var(--green);
}

/* ====================== Flash & overlay ====================== */
.flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(110, 231, 255, 0.35), transparent 30%);
    transition: opacity 0.4s ease;
    z-index: 3;
}

.flash.active {
    opacity: 1;
    transition: opacity 0.04s;
}

.overlay-message {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 30%, rgba(110, 231, 255, 0.05), transparent 60%), rgba(7, 9, 15, 0.65);
    backdrop-filter: blur(10px);
    z-index: 50;
    transition: opacity 0.25s ease;
}

.overlay-message.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-card {
    text-align: center;
    padding: 32px 36px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    max-width: 420px;
}

.overlay-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.overlay-card p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 0 0 16px;
}

.overlay-card .small {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-dim);
}

.btn {
    appearance: none;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.btn:hover { background: rgba(255, 255, 255, 0.08); }
.btn:active { transform: translateY(1px); }

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07090f;
    border: none;
    box-shadow: 0 6px 24px rgba(110, 231, 255, 0.25);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.overlay-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

/* Pinch zoom indicator (two hands gesture) */
.zoom-gesture-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 90;
}

.zoom-gesture-line {
    stroke: rgba(167, 139, 250, 0.6);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

/* ====================== Name modal ====================== */
.name-modal {
    position: absolute;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(7, 9, 15, 0.55);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease;
}

.name-modal[hidden] {
    display: none !important;
}

.name-modal-card {
    background: var(--panel-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 28px 28px 22px;
    width: min(520px, 70vw);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(110, 231, 255, 0.2);
    text-align: center;
}

.name-modal-label {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 14px;
}

.name-modal-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: "Caveat", cursive;
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    padding: 6px 0;
    border-bottom: 2px solid rgba(110, 231, 255, 0.4);
    transition: border-color 0.2s;
}

.name-modal-input:focus {
    border-bottom-color: var(--accent);
}

.name-modal-mic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1.2px;
}

.name-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: mic-pulse 1.2s ease-out infinite;
}

.name-modal.linger .name-modal-dot {
    background: #fbbf24;
}

.name-modal-hint {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.7;
}

/* ====================== Print sheet (PDF export) ====================== */
.print-sheet {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 24px 28px;
    color: #0a0a0a;
}

body.printing .print-sheet { display: flex; }

body.printing .app { display: none !important; }

.print-title {
    font-family: "Caveat", cursive;
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    color: #0a0a0a;
    margin: 0 0 16px;
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 12px;
}

.print-svg {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
}

@media print {
    @page { size: A4 landscape; margin: 10mm; }
    html, body {
        background: #ffffff !important;
        color: #0a0a0a !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }
    body > * { display: none !important; }
    .print-sheet {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        height: 100vh !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    .print-title { display: block !important; }
    .print-svg { display: block !important; flex: 1; max-height: calc(100vh - 80px); }
}
