html, body {
    font-family: "Figtree", "Segoe UI", sans-serif;
    font-size: 15px;
    color: #243447;
    background: #eef2f5;
}

/* ——— Layout / meni (v app.css, NE samo scoped — na gostovanju scoped CSS včasih ne naloži) ——— */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    background-color: #123240;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 28%),
        linear-gradient(165deg, #1a4558 0%, #123240 42%, #0e2a36 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-menu-panel.nav-menu-collapsed {
    display: none;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 220px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex: 0 0 220px;
    }

    .sidebar .navbar-toggler {
        display: none !important;
    }

    .nav-menu-panel,
    .nav-menu-panel.nav-menu-collapsed {
        display: block !important;
    }

    .nav-scrollable {
        height: calc(100vh - 3.75rem);
        overflow-y: auto;
        padding-bottom: 1rem;
    }
}

h1:focus { outline: none; }

a, .btn-link { color: #1a6b8a; }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #1f7a9c, #1a6b8a);
    border-color: #155a74;
}
.btn-primary:hover {
    background: linear-gradient(180deg, #2286ab, #1b7394);
    border-color: #155a74;
}

.btn-outline-primary {
    color: #1a6b8a;
    border-color: #1a6b8a;
}
.btn-outline-primary:hover {
    background: #1a6b8a;
    border-color: #1a6b8a;
    color: #fff;
}

.form-control, .form-select {
    border-color: #d5dde3;
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    border-color: #1a6b8a;
    box-shadow: 0 0 0 0.2rem rgba(26, 107, 138, 0.18);
}

.content { padding-top: 0.6rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIzLjMwNjEgMC45NDMwMDFMMS4zNTc4MSA0MC41NDk0QzAuNDcwMzQzIDQyLjE1NjEgMS42MzEwMSA0NC4xNjM2IDMuNTI5NjkgNDQuMTYzNkg0Ny4zMjY5QzQ5LjIyNTYgNDQuMTYzNiA1MC4zODYyIDQyLjE1NjEgNDkuNDk4NyA0MC41NDk0TDI3LjU1MDQgMC45NDMwMDJDMjYuNjc5IC0wLjMxNDMzNCAyNC4xNzc1IC0wLjMxNDMzNCAyMy4zMDYxIDAuOTQzMDAxWiIgZmlsbD0iI0Y2QTUyQiIvPgo8cGF0aCBkPSJNMjUuOTg5MyAyMC4zNzhMMjUuOTg5MyAzMS45MTRNMjUuOTg5MyAzNy45MzFMMjUuOTg5MyAzOC4wMDEiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: #d5dde3;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #1a6b8a;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    font-family: "Syne", sans-serif;
    letter-spacing: 0.06em;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ——— Login ——— */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(26, 107, 138, 0.18), transparent 45%),
        radial-gradient(ellipse at 90% 90%, rgba(196, 92, 38, 0.14), transparent 40%),
        linear-gradient(160deg, #123240 0%, #1a4558 45%, #0e2a36 100%);
}

.login-wrap {
    width: 100%;
    max-width: 22.5rem;
    margin: 0;
    padding: 1.75rem 1.6rem 1.6rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(8, 20, 28, 0.35);
    animation: login-rise 0.45s ease-out;
}

@keyframes login-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(26, 107, 138, 0.28);
}

.login-wrap h1 {
    font-family: "Syne", sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin: 0;
    color: #123240;
}

.login-sub {
    color: #6b7c8a;
    margin-bottom: 1.35rem;
    font-size: 0.92rem;
}

.login-submit {
    margin-top: 0.35rem;
    min-height: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 8px;
}

code {
    color: #1a5f7a;
}

/* ——— Global compact puzzle chrome ——— */
:root {
    --pz-accent: #1a6b8a;
    --pz-accent-2: #c45c26;
    --pz-tool-bg: #f3f6f8;
    --pz-border: #d5dde3;
}

.dict-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    align-items: center;
    background: linear-gradient(90deg, rgba(238, 244, 247, 0.95), rgba(247, 243, 239, 0.95));
    border-bottom: 1px solid var(--pz-border);
    min-height: 2.4rem !important;
    height: auto !important;
    padding: 0.35rem 1rem !important;
    font-size: 0.85rem;
}

.dict-bar-label {
    font-weight: 700;
    font-family: "Syne", sans-serif;
    letter-spacing: 0.04em;
    color: var(--pz-accent);
    margin-right: 0.15rem;
}
.dict-radio { margin: 0; font-weight: 500; cursor: pointer; color: #334; }
.dict-radio input { margin-right: 0.2rem; }

article.content.px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.5rem !important;
}

article.content > h1,
.puzzle-title {
    font-family: "Syne", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #243447;
    margin: 0 0 0.45rem 0;
    line-height: 1.2;
}

article.content > h1::after,
.puzzle-title::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.3rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pz-accent), var(--pz-accent-2));
}

.puzzle-workspace {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: calc(100vh - 6.5rem);
    min-height: calc(100dvh - 6.5rem);
}

.puzzle-controls {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.pz-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

.pz-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--pz-border);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334;
    cursor: pointer;
    user-select: none;
    line-height: 1.35;
    transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s;
}

.pz-chip input { display: none; }
.pz-chip:hover { border-color: #9bb5c4; transform: translateY(-1px); }
.pz-chip.active, .pz-chip:has(input:checked) {
    background: var(--pz-accent);
    border-color: var(--pz-accent);
    color: #fff;
}

.pz-chip.tool-letter.active, .pz-chip.tool-letter:has(input:checked) { background: #2f6fed; border-color: #2f6fed; }
.pz-chip.tool-clue.active, .pz-chip.tool-clue:has(input:checked) { background: #6b7280; border-color: #6b7280; }
.pz-chip.tool-picture.active, .pz-chip.tool-picture:has(input:checked) { background: #0ea5e9; border-color: #0ea5e9; }
.pz-chip.tool-dead.active, .pz-chip.tool-dead:has(input:checked) { background: #374151; border-color: #374151; }
.pz-chip.tool-geslo.active, .pz-chip.tool-geslo:has(input:checked) { background: #d4a017; border-color: #d4a017; color: #1a1a1a; }

.pz-select, .pz-input {
    height: 1.7rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.78rem;
    border-radius: 6px;
    border: 1px solid var(--pz-border);
    background: #fff;
}

.pz-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7c8a;
    margin: 0 0.15rem 0 0;
}

.pz-btn {
    height: 1.7rem;
    padding: 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    transition: filter 0.12s, background 0.12s;
}

.pz-btn-primary {
    background: linear-gradient(180deg, #1f7a9c, var(--pz-accent));
    color: #fff;
}
.pz-btn-primary:hover { filter: brightness(1.06); }
.pz-btn-primary:disabled { opacity: 0.55; cursor: default; }

.pz-btn-ghost {
    background: #fff;
    border-color: var(--pz-border);
    color: #334;
}
.pz-btn-ghost:hover { background: var(--pz-tool-bg); }

.pz-btn-accent {
    background: linear-gradient(180deg, #e07a3a, var(--pz-accent-2));
    color: #fff;
}

.pz-panel {
    background: var(--pz-tool-bg);
    border: 1px solid var(--pz-border);
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
}

.pz-status {
    font-size: 0.8rem;
    color: var(--pz-accent);
    margin: 0;
}

.pz-error {
    font-size: 0.82rem;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    margin: 0;
}

.grid-stage {
    flex: 1 1 auto;
    min-height: 280px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    background:
        radial-gradient(circle at 10% 0%, #f7fafc 0%, transparent 45%),
        linear-gradient(180deg, #fafbfc, #f3f5f7);
    border: 1px solid var(--pz-border);
    border-radius: 10px;
    padding: 0.5rem;
}

.grid-wrap {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 14rem);
    min-height: calc(100dvh - 14rem);
}

.bw-grid, .puzzle-grid {
    display: inline-grid;
    gap: 0;
    border: 2px solid #4a5568;
    user-select: none;
    touch-action: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(36, 52, 71, 0.08);
}

.bw-cell, .puzzle-cell {
    box-sizing: border-box;
    border: 1px solid #9aa3ad;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
}

.bw-black, .puzzle-black { background: #111; color: #111; }
.bw-white, .puzzle-white { background: #fff; color: #111; }
.bw-highlight { background: #ffe28a !important; }
.puzzle-picture { background: #b8e0f5; color: #0b4f6c; }
.puzzle-cell.puzzle-clue,
.puzzle-clue {
    background: linear-gradient(160deg, #eceff3, #dfe3ea);
    color: #1f2933;
    white-space: normal;
    text-align: center !important;
    font-family: "Segoe UI Condensed", "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", "Franklin Gothic Medium", sans-serif;
    font-stretch: condensed;
    font-weight: 500;
    letter-spacing: -0.02em;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: stretch;
    position: relative;
    padding: 0 !important;
    line-height: 1.05 !important;
}
.puzzle-clue .dir {
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 1;
    color: #c45c26;
    font-weight: 800;
    font-size: 0.72em;
    line-height: 1;
    margin: 0;
    pointer-events: none;
}
.puzzle-clue .clue-half {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    padding: 1px 2px 1px 2px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
    text-align: center !important;
    box-sizing: border-box;
}
.puzzle-clue.clue-split .clue-half.h {
    border-bottom: 1px solid #5b6570;
}
.puzzle-clue.clue-split .clue-half {
    /* Vsaka polovica: prostor za 3 vrstice besedila (ikona smeri je v kotu) */
    padding-top: 2px;
}
.puzzle-clue .clue-mid {
    display: block;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    text-align: center !important;
    margin: 0 auto;
}
.puzzle-clue .clue-txt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center !important;
    text-overflow: clip;
    hyphens: none;
    line-height: 1.08;
    max-height: 6.48em; /* 6 × line-height — celotno opisno polje */
    font-size: 1em; /* enaka velikost kot izračun za 6 vrstic v celici */
}
.puzzle-clue.clue-split .clue-txt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: 3.24em; /* polovica = 3 od 6 vrstic */
    font-size: 1em;
}
.puzzle-clue .clue-alt {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 1;
    font-size: 0.85em;
    line-height: 1;
    color: #1a6b8a;
    background: #fff;
    border: 1px solid #9bb5c4;
    border-radius: 2px;
    padding: 0 2px;
    cursor: pointer;
    font-weight: 800;
}
.puzzle-clue.selected-clue {
    outline: 2px solid #1a6b8a;
    outline-offset: -2px;
    background: #e8f4fa;
}

.pz-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 30, 40, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}
.pz-busy-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    min-width: 16rem;
    max-width: 28rem;
    text-align: center;
}
.pz-busy-spinner {
    width: 2.2rem;
    height: 2.2rem;
    border: 3px solid #d5dde3;
    border-top-color: #1a6b8a;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    animation: pz-spin 0.8s linear infinite;
}
@keyframes pz-spin { to { transform: rotate(360deg); } }
.pz-busy-msg { font-size: 0.9rem; color: #243447; font-weight: 600; }
.puzzle-dead {
    background: linear-gradient(160deg, #eceff3, #dfe3ea);
    color: #111;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.puzzle-dead::after {
    content: "";
    width: 22%;
    height: 22%;
    min-width: 5px;
    min-height: 5px;
    max-width: 10px;
    max-height: 10px;
    border-radius: 50%;
    background: #111;
}
.puzzle-dead.has-content::after { display: none; }
.puzzle-dead .dead-txt {
    display: block;
    padding: 2px 3px;
    font-size: clamp(7px, 0.28em, 14px);
    line-height: 1.05;
    font-weight: 600;
    overflow: hidden;
    max-height: 100%;
    word-break: break-word;
}
.skandi-key-catcher {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 5;
}
.puzzle-geslo { box-shadow: inset 0 0 0 2px #d4a017; }
.puzzle-letter-focus {
    outline: 2px solid #0b4f6c;
    outline-offset: -2px;
    z-index: 1;
}
.skandi-letter-ok { color: #1a5f2a; font-weight: 600; }
.puzzle-wall-r { box-shadow: inset -3px 0 0 #000; }
.puzzle-wall-b { box-shadow: inset 0 -3px 0 #000; }
.puzzle-wall-rb { box-shadow: inset -3px 0 0 #000, inset 0 -3px 0 #000; }
.puzzle-letter-empty { background: #f3f6f8 !important; }
/* Separator: samo črtkana črta (brez polne obrobe na tem robu). */
.puzzle-sep-r { border-right: 2px dashed #222 !important; }
.puzzle-sep-l { border-left: none !important; }
.puzzle-sep-b { border-bottom: 2px dashed #222 !important; }
.puzzle-sep-t { border-top: none !important; }
.puzzle-sep-rb {
    border-right: 2px dashed #222 !important;
    border-bottom: 2px dashed #222 !important;
}
.puzzle-sep-r.puzzle-sep-t { border-top: none !important; }
.puzzle-sep-r.puzzle-sep-l { border-left: none !important; }
.puzzle-sep-b.puzzle-sep-l { border-left: none !important; }
.puzzle-sep-b.puzzle-sep-t { border-top: none !important; }

.puzzle-cell.has-num {
    position: relative;
    line-height: normal;
}
.cell-num {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 0.28em;
    line-height: 1;
    font-weight: 600;
    z-index: 1;
}
.cell-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.55em;
    font-weight: 700;
    line-height: 1;
}
.grid-with-pic {
    position: relative;
    display: inline-block;
}
.pic-overlay {
    position: absolute;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}
.puzzle-geslo.puzzle-sep-r,
.puzzle-geslo.puzzle-sep-b,
.puzzle-geslo.puzzle-sep-rb,
.puzzle-geslo.puzzle-sep-l,
.puzzle-geslo.puzzle-sep-t {
    box-shadow: inset 0 0 0 2px #d4a017;
}

.clue-editor {
    background: #fff;
    border: 1px solid var(--pz-border);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    max-width: 36rem;
}

.clue-editor textarea {
    width: 100%;
    min-height: 2.4rem;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid var(--pz-border);
    padding: 0.3rem 0.45rem;
}

/* ——— Popup: uredi opis ——— */
.pz-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(14, 32, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: login-rise 0.18s ease-out;
}

.pz-modal {
    width: min(34rem, 100%);
    max-height: min(88vh, 40rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pz-border);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(8, 20, 28, 0.28);
    overflow: hidden;
}

.pz-modal-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--pz-border);
    background: linear-gradient(180deg, #f7fafc, #eef3f6);
}

.pz-modal-title {
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
    color: #123240;
}

.pz-modal-close {
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5b6570;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.pz-modal-close:hover {
    background: #e8eef2;
    color: #123240;
}

.pz-modal-body {
    padding: 0.85rem 0.95rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pz-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    border-top: 1px solid var(--pz-border);
    background: #f7fafc;
}

.clue-edit-block .pz-label {
    display: block;
    margin-bottom: 0.3rem;
}

.clue-edit-ta {
    width: 100%;
    min-height: 3.2rem;
    font-size: 0.9rem;
    line-height: 1.35;
    border-radius: 8px;
    border: 1px solid var(--pz-border);
    padding: 0.45rem 0.55rem;
    resize: vertical;
}
.clue-edit-ta:focus {
    outline: none;
    border-color: var(--pz-accent);
    box-shadow: 0 0 0 0.15rem rgba(26, 107, 138, 0.18);
}

.clue-alt-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 11rem;
    overflow: auto;
    padding: 0.15rem;
}

.clue-alt-item {
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.3;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--pz-border);
    background: #fff;
    color: #243447;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.clue-alt-item:hover {
    border-color: #9bb5c4;
    background: #f3f8fb;
}
.clue-alt-item.active {
    border-color: var(--pz-accent);
    background: #e8f4fa;
    box-shadow: inset 3px 0 0 var(--pz-accent);
    font-weight: 600;
}

.word-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.word-chip {
    background: #eef4ff;
    border: 1px solid #b8c9e8;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.78rem;
}

.clue-list { max-height: 220px; overflow: auto; font-size: 0.82rem; }
.radio-inline { margin-right: 0.5rem; font-size: 0.8rem; }
.tool-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.35rem; }

.pz-meta {
    font-size: 0.75rem;
    color: #6b7c8a;
}

.skandi-board-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}
.skandi-board-main {
    flex: 1 1 18rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 14rem);
    min-height: calc(100dvh - 14rem);
}
.skandi-board-main .grid-stage {
    flex: 1 1 auto;
    min-height: calc(100vh - 14rem);
    min-height: calc(100dvh - 14rem);
}
.skandi-side-stats,
.skandi-side-clues {
    box-sizing: border-box;
    overflow: auto;
    font-size: 0.82rem;
    padding: 0.75rem 0.85rem;
    /* ista preostala višina okna kot .grid-wrap / mreža */
    height: calc(100vh - 14rem);
    height: calc(100dvh - 14rem);
    max-height: calc(100vh - 14rem);
    max-height: calc(100dvh - 14rem);
}
.skandi-side-stats {
    flex: 0 1 16.5rem;
    width: 16.5rem;
}
.skandi-side-clues {
    flex: 0 1 18rem;
    width: 18rem;
}
.skandi-side-clues .clue-list {
    max-height: none;
}
.skandi-side-clues .word-list {
    margin-bottom: 0.35rem;
}
.skandi-side-clues .skandi-word-list {
    max-height: none;
}

.axis-board {
    display: grid;
    grid-template-columns: 1.4rem auto;
    grid-template-rows: 1.4rem auto;
    width: max-content;
    max-width: 100%;
}
.axis-corner { grid-column: 1; grid-row: 1; }
.axis-cols {
    grid-column: 2;
    grid-row: 1;
    display: flex;
}
.axis-col {
    box-sizing: border-box;
    width: var(--cell, 28px);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 650;
    color: #2c4a5a;
    line-height: 1.4rem;
    user-select: none;
}
.axis-rows {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
}
.axis-row {
    box-sizing: border-box;
    height: var(--cell, 28px);
    width: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 650;
    color: #2c4a5a;
    user-select: none;
}
.axis-grid {
    grid-column: 2;
    grid-row: 2;
}
.skandi-side-title {
    font-size: 0.95rem;
    font-weight: 650;
    color: #2c4a5a;
    margin-bottom: 0.55rem;
}
.skandi-side-kv {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.skandi-side-note {
    margin-bottom: 0.45rem;
}
.skandi-side-section {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-weight: 650;
    color: #3d6f8c;
    font-size: 0.8rem;
}
.skandi-word-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    line-height: 1.4;
    max-height: 14rem;
    overflow: auto;
    columns: 2;
    column-gap: 0.75rem;
}
.skandi-word-list li {
    break-inside: avoid;
}
.skandi-side-stats .skandi-word-list,
.skandi-side-stats .skandi-trigram-list {
    max-height: none;
    overflow: visible;
}
.skandi-trigram-list {
    margin: 0;
    padding-left: 1rem;
    max-height: 12rem;
    overflow: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.72rem;
    line-height: 1.35;
}
@media (max-width: 720px) {
    .skandi-board-row {
        min-height: 0;
    }
    .skandi-board-main {
        min-height: 0;
    }
    .skandi-board-main .grid-stage {
        min-height: 280px;
    }
    .skandi-side-stats,
    .skandi-side-clues {
        flex: 1 1 100%;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
    }
}
