/* NikoSoftRes - vizual "ladova Horda" podla loga Druziny Severu:
   nocna modra, ladove akcenty, sklenene panely, krvava cervena pre nebezpecne akcie */
:root {
    --bg: #060912;
    --glass: rgba(12, 19, 34, 0.74);
    --glass-2: rgba(18, 28, 50, 0.72);
    --glass-3: rgba(255, 255, 255, 0.035);
    --line: rgba(140, 180, 255, 0.13);
    --line-strong: rgba(150, 200, 255, 0.3);
    --text: #e6edf7;
    --muted: #8a99b2;
    --ice: #9ad6ff;
    --ice-2: #4aa3ff;
    --ice-3: #2462d4;
    --ice-glow: rgba(74, 163, 255, 0.45);
    --blood: #d63c43;
    --blood-2: #8c1b22;
    --ok: #55d394;
    --warn: #ffb347;
    --radius: 16px;
    --radius-sm: 10px;
    --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #3d8bff; --q4: #b764ff; --q5: #ff8000;
    --font-display: "Cinzel", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }

/* Atribut hidden musi vyhrat aj nad display:flex z tried */
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Pozadie: rozmazane logo + ladova ziara a polarna ziara */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url(/img/bg.webp) center 20% / cover no-repeat;
    opacity: 0.8;
}
.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(74, 163, 255, 0.22), transparent 60%),
        radial-gradient(700px 400px at 95% 0%, rgba(70, 230, 210, 0.12), transparent 60%),
        radial-gradient(1200px 800px at 50% 120%, rgba(140, 27, 34, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(6, 9, 18, 0.35) 0%, rgba(6, 9, 18, 0.88) 75%);
}

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0 0 0.6em;
    color: #dcefff;
    line-height: 1.2;
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; color: var(--ice); }

.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.sep { color: rgba(140, 180, 255, 0.3); margin: 0 8px; }

/* --- Horna lista --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(6, 10, 20, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    flex-shrink: 0;
}
.brand-emblem {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 0 0 1px var(--line-strong), 0 6px 22px -6px var(--ice-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #e8f4ff; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.68rem; color: var(--ice); text-transform: uppercase; letter-spacing: 0.22em; margin-top: 3px; }

.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--text); background: var(--glass-3); }
.nav a.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(74, 163, 255, 0.28), rgba(36, 98, 212, 0.22));
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.userbox { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 0.92rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line-strong); }
.badge-officer {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd7d9;
    background: linear-gradient(180deg, rgba(214, 60, 67, 0.35), rgba(140, 27, 34, 0.35));
    border: 1px solid rgba(214, 60, 67, 0.55);
    border-radius: 999px;
    padding: 2px 8px;
}
.lang-select { padding: 6px 8px; font-size: 0.82rem; border-radius: 999px; }

/* --- Rozlozenie --- */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 20px 48px; flex: 1; }
.page.narrow { max-width: 620px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
@media (max-width: 900px) {
    .grid-2, .grid-side { grid-template-columns: minmax(0, 1fr); }
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* --- Panely (sklo) --- */
.box {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    min-width: 0;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* Zvyrazneny panel: ladovy okraj a jemna ziara */
.box-gold {
    border-color: rgba(154, 214, 255, 0.32);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85), 0 0 40px -18px var(--ice-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.box-gold::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    opacity: 0.8;
}
.box-blue { border-color: rgba(140, 180, 255, 0.18); }
.box > h1:first-child, .box > h2:first-child, .box > h3:first-child { margin-top: 0; }

/* --- Tlacidla --- */
.btn, button {
    font: 600 0.88rem/1.3 var(--font-body);
    color: #fff;
    background: linear-gradient(180deg, var(--ice-2), var(--ice-3));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    box-shadow: 0 8px 22px -10px var(--ice-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
}
.btn:hover, button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active, button:active { transform: translateY(0); }
button:disabled { opacity: 0.4; cursor: default; filter: none; transform: none; box-shadow: none; }
button.secondary, .btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text);
    box-shadow: none;
}
button.secondary:hover, .btn.secondary:hover { background: rgba(154, 214, 255, 0.1); }
button.danger {
    background: linear-gradient(180deg, var(--blood), var(--blood-2));
    border-color: rgba(255, 120, 120, 0.25);
    box-shadow: 0 8px 22px -10px rgba(214, 60, 67, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
button.ghost {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 8px;
}
button.ghost:hover { color: #ff9b9f; background: rgba(214, 60, 67, 0.12); transform: none; filter: none; }
.btn-discord {
    background: linear-gradient(180deg, #6974ff, #4752e0);
    box-shadow: 0 10px 28px -10px rgba(88, 101, 242, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    padding: 11px 22px;
}

/* --- Formulare --- */
input, select, textarea {
    font: 0.92rem var(--font-body);
    color: var(--text);
    background: rgba(4, 8, 18, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    max-width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(154, 214, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.18);
}
select option, select optgroup { background: #0d1626; }
textarea { width: 100%; min-height: 90px; font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; resize: vertical; }
label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .help { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }
.datetime { display: flex; align-items: center; gap: 6px; max-width: 340px; }
.datetime .date-field { flex: 1 1 140px; min-width: 0; }

/* Vlastny kalendar (tyzden od pondelka) */
.date-field { position: relative; }
.date-btn {
    width: 100%; justify-content: flex-start; text-align: left; font: 0.92rem/1.3 var(--font-body); font-variant-numeric: tabular-nums;
    color: var(--text); background: rgba(4, 8, 18, 0.65); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; box-shadow: none; transform: none;
}
.date-btn:hover { border-color: var(--line-strong); filter: none; transform: none; }
.date-btn.empty { color: var(--muted); }
.date-pop {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 272px; max-width: calc(100vw - 32px);
    padding: 12px; background: #0d1626; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-weight: 600; }
.dp-nav, .dp-day, .dp-link {
    background: none; border: 0; box-shadow: none; transform: none; color: var(--text); cursor: pointer; font: inherit;
}
.dp-nav { width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; line-height: 1; padding: 0; }
.dp-nav:hover, .dp-day:hover { background: rgba(154, 214, 255, 0.1); transform: none; filter: none; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-wd { font-size: 0.72rem; color: var(--muted); padding: 4px 0; text-transform: none; }
.dp-day { height: 34px; border-radius: 8px; font-size: 0.88rem; padding: 0; font-variant-numeric: tabular-nums; }
.dp-day.other { color: var(--muted); opacity: 0.55; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--ice-2); }
.dp-day.selected { background: var(--ice-3); color: #fff; font-weight: 600; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.dp-link { color: var(--ice); padding: 4px 6px; font-size: 0.85rem; border-radius: 6px; }
.dp-link:hover { background: rgba(154, 214, 255, 0.1); color: var(--ice); transform: none; filter: none; }
.datetime select { width: auto; padding-right: 8px; font-variant-numeric: tabular-nums; }
.datetime-sep { color: var(--muted); font-weight: 600; }
.cat-checks { display: grid; gap: 8px; }
.cat-checks .check span { margin-left: 2px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.92rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ice-2); }

/* --- Tabulky --- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(154, 214, 255, 0.04); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Stavy a odznaky --- */
.status {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
}
.status-open { color: #7ff0b6; border-color: rgba(85, 211, 148, 0.45); background: rgba(85, 211, 148, 0.1); }
.status-locked { color: var(--ice); border-color: rgba(154, 214, 255, 0.45); background: rgba(74, 163, 255, 0.1); }
.status-finalized { color: var(--muted); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.bonus {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, var(--ice-2), var(--ice-3));
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 6px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 12px -2px var(--ice-glow);
}
.bonus.zero { background: rgba(255, 255, 255, 0.06); color: var(--muted); font-weight: 600; box-shadow: none; }
.tag {
    font-size: 0.66rem;
    font-weight: 600;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    border-radius: 6px;
    padding: 1px 6px;
    margin-left: 6px;
    white-space: nowrap;
}
.tag-h { color: #ffc27a; border-color: rgba(255, 179, 71, 0.45); background: rgba(255, 179, 71, 0.08); }
.tag-bis { color: #ffd100; border-color: rgba(255, 209, 0, 0.5); background: rgba(255, 209, 0, 0.1); }
.tag-locked { color: #ff9b9f; border-color: rgba(214, 60, 67, 0.5); background: rgba(214, 60, 67, 0.1); }

.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); }
.q3 { color: var(--q3); } .q4 { color: var(--q4); } .q5 { color: var(--q5); }

/* --- Karty raidov --- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
    position: relative;
    display: block;
    background: var(--glass-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 16px 14px;
    color: var(--text);
    text-decoration: none !important;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ice), var(--ice-3));
    opacity: 0.8;
}
.card:hover {
    border-color: rgba(154, 214, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -22px var(--ice-glow);
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: #eaf5ff; }
.card .meta { font-size: 0.84rem; color: var(--muted); }

/* --- Vyber itemov --- */
.picker-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.picker-tools input[type=search] { flex: 1; min-width: 180px; }
.picker-tools .bis-only { margin: 0; white-space: nowrap; }
.bis-note { margin: -6px 0 12px; }
.boss { border-top: 1px solid var(--line); }
.boss summary {
    cursor: pointer;
    padding: 12px 6px;
    font-family: var(--font-display);
    font-weight: 600;
    color: #dcefff;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: background 0.12s;
}
.boss summary:hover { background: rgba(154, 214, 255, 0.04); }
.boss summary::-webkit-details-marker { display: none; }
.boss summary::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--ice);
    border-bottom: 2px solid var(--ice);
    transform: rotate(-45deg);
    transition: transform 0.15s;
    flex-shrink: 0;
}
.boss[open] summary::before { transform: rotate(45deg); }
.boss summary .count { color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; margin-left: auto; }
.items { list-style: none; margin: 0 0 10px; padding: 0; }
.item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.12s, border-color 0.12s;
}
.item:hover { background: rgba(154, 214, 255, 0.06); }
.item.selected {
    background: linear-gradient(90deg, rgba(74, 163, 255, 0.16), rgba(74, 163, 255, 0.04));
    border-color: rgba(154, 214, 255, 0.45);
    box-shadow: inset 3px 0 0 var(--ice);
}
.item.disabled { opacity: 0.4; cursor: not-allowed; }
.item .name { flex: 1; min-width: 0; }
.item .slot { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.item .grp { font-size: 0.74rem; color: var(--muted); }
.item a { text-decoration: none; }

.selected-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.selected-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(74, 163, 255, 0.08);
    border: 1px solid rgba(154, 214, 255, 0.3);
}
.selected-list li .name { flex: 1; min-width: 0; }
.selected-list li.empty-slot {
    background: none;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    font-style: italic;
    font-size: 0.88rem;
}

/* --- Taby (segmentovany prepinac) --- */
.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 14px;
}
.tabs button {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 9px;
    font-weight: 600;
}
.tabs button:hover { transform: none; color: var(--text); }
/* viac zaloziek (analyza logu) sa na uzkej obrazovke zalomi */
.tabs { flex-wrap: wrap; max-width: 100%; }
.tabs button.active { background: linear-gradient(180deg, var(--ice-2), var(--ice-3)); color: #fff; box-shadow: 0 6px 16px -8px var(--ice-glow); }

/* --- Chips (dochadzka, zamknute itemy) --- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 2px 4px 2px 12px;
}
.chip.unknown { border-style: dashed; color: var(--muted); background: none; }
.chip button { padding: 0 6px; }

.diff-up { color: var(--ok); font-weight: 600; }
.diff-down { color: #ff8a8f; font-weight: 600; }

/* --- Toasty --- */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 50; max-width: calc(100vw - 36px); }
.toast {
    background: rgba(12, 19, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--ice-2);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
    animation: slide 0.22s ease-out;
}
.toast.error { border-left-color: var(--blood); }
.toast.ok { border-left-color: var(--ok); }
@keyframes slide { from { transform: translateY(12px); opacity: 0; } }

/* --- Uvodna stranka --- */
.hero { text-align: center; padding: 18px 16px 34px; }
.hero-logo {
    width: min(400px, 78vw);
    height: auto;
    aspect-ratio: 1;
    border-radius: 28px;
    box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -20px var(--ice-glow);
    animation: glow 6s ease-in-out infinite;
}
@keyframes glow {
    50% { box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 120px -10px var(--ice-glow); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero-eyebrow {
    margin: 26px 0 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ice);
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff, #9ad6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 1.02rem; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 8px; }
.rules li::marker { color: var(--ice); }

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    padding: 20px 16px;
    border-top: 1px solid var(--line);
    background: rgba(6, 9, 18, 0.6);
}

@media (max-width: 720px) {
    .topbar-inner { flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; }
    .nav { order: 3; flex-basis: 100%; }
    .brand-sub { display: none; }
    .page { padding: 20px 16px 40px; }
    .box { padding: 18px; }
    h1 { font-size: 1.5rem; }
}

/* Prihlasenie na raid */
.signup-state { margin: 0 0 14px; opacity: 0.8; }
.signup-state.on { color: #8fe3a1; font-weight: 600; opacity: 1; }
.signup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
button.status-btn.active { outline: 2px solid #f0c75e; outline-offset: 2px; }
.limits { display: flex; gap: 12px; flex-wrap: wrap; }
.limits .limit { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.limits input { width: 90px; }
button.small-btn { padding: 3px 8px; font-size: 12px; }
button.ghost.danger-text { color: #ff9b9f; }

/* Zostava ako Raid-Helper: suhrn roli, skupina Tank + classy */
.wow-icon { border-radius: 4px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); vertical-align: middle; }
.role-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.role-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 0.88rem; }
.role-chip b { font-variant-numeric: tabular-nums; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 14px; margin-top: 14px; }
.roster-group { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; min-width: 0; }
.roster-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.roster-head .muted { font-weight: 500; margin-left: auto; }
.roster-row { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 6px; min-height: 26px; }
.roster-row:hover { background: rgba(154, 214, 255, 0.06); }
.roster-no { font-size: 0.72rem; color: var(--muted); min-width: 22px; text-align: center; padding: 1px 4px;
    border-radius: 5px; background: rgba(255, 255, 255, 0.06); font-variant-numeric: tabular-nums; }
.roster-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.roster-late { font-size: 0.8rem; }
.roster-actions { display: inline-flex; gap: 2px; margin-left: auto; flex-shrink: 0; opacity: 0.35; transition: opacity 0.15s; }
.roster-row:hover .roster-actions, .roster-chip:hover .roster-actions, .roster-actions:focus-within { opacity: 1; }
.roster-actions button.small-btn { padding: 1px 6px; }
.roster-extra { margin-top: 14px; display: grid; gap: 8px; }
.roster-extra-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.roster-extra-title { font-weight: 600; margin-right: 4px; }
.roster-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 4px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 0.86rem; }
.raid-leader { margin-top: 4px; font-weight: 600; }
.raid-desc { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea.plain { font-family: var(--font-body); font-size: 0.92rem; min-height: 70px; }
.spec-edit { display: flex; gap: 6px; flex-wrap: wrap; }
select.compact { padding: 4px 6px; font-size: 13px; width: auto; }
@media (max-width: 640px) {
    .signup-grid { grid-template-columns: 1fr; }
    .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .roster-group { padding: 6px; }
    .roster-box.with-actions .roster-grid { grid-template-columns: 1fr; }
    .roster-actions { opacity: 1; }
}
@media (max-width: 380px) {
    .roster-grid { grid-template-columns: 1fr; }
}

/* Rezim raidu (SR / SR+ / prihlasovanie) */
.mode-tags { display: inline-flex; gap: 4px; vertical-align: middle; }
.raid-options h3 { margin: 0 0 8px; }

/* Okruhly odznak SR v zostave: zeleny = vsetky SR rezervovane, oranzovy = este nie */
.sr-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 20px; height: 20px; border-radius: 50%; font: 800 0.55rem/1 var(--font-body); letter-spacing: 0.02em; color: #fff; }
.sr-badge.full { background: #2fb344; box-shadow: inset 0 0 0 2px #186e28; }
.sr-badge.part { background: #f08c00; box-shadow: inset 0 0 0 2px #965500; }
/* Trestna lavica: znacka v rostri, riadky trestov, Hall of Shame */
.pen-badge { flex-shrink: 0; font-size: 0.8rem; line-height: 1; cursor: help; }
.pen-row { border: 1px solid var(--border, #2a3446); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.pen-row.active { border-color: #c0392b; background: rgba(192, 57, 43, 0.08); }
.pen-until { color: #e05a4b; font-weight: 600; font-size: 0.85rem; }
.pen-form, .pen-history { margin-top: 10px; }
.pen-form summary, .pen-history summary { cursor: pointer; font-weight: 600; }
.pen-form input[type=text], .pen-form select { width: 100%; box-sizing: border-box; }
.pen-noshow .check { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.pen-noshow-row { margin: 6px 0 10px; }
.pen-sanction { display: flex; gap: 6px; flex-wrap: wrap; }
.pen-sanction select, .pen-sanction input { flex: 1 1 180px; min-width: 0; box-sizing: border-box; }
.pen-sanction-text { font-weight: 600; color: #f0a030; }
.pen-hist, .pen-hist-sum { margin-left: 26px; }
.pen-hist summary { cursor: pointer; color: var(--muted, #9aa4b2); }
.pen-hist .pen-row { margin: 6px 0; }
/* Odznak prednosti pri rostri (Berserkr) */
.rank-badge { flex-shrink: 0; font-size: 0.85rem; line-height: 1; cursor: help; }

/* Pri mysi su akcie officera skryte a ukazu sa az nad riadkom - mena sa neskracuju */
@media (hover: hover) {
    .roster-row .roster-actions, .roster-chip .roster-actions { display: none; }
    .roster-row:hover .roster-actions, .roster-chip:hover .roster-actions,
    .roster-row:focus-within .roster-actions, .roster-chip:focus-within .roster-actions { display: inline-flex; opacity: 1; }
}

/* Finalny roster: kandidati vlavo, skupiny (party) vpravo */
.fr-layout { display: grid; grid-template-columns: 270px 1fr; gap: 14px; margin-top: 12px; align-items: start; }
.fr-pool { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px;
    max-height: 560px; overflow-y: auto; }
.fr-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.fr-layout .fr-groups { margin-top: 0; }
.fr-person { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }
.fr-cand, .fr-slot { cursor: pointer; user-select: none; }
.fr-cand[draggable], .fr-slot[draggable] { cursor: grab; }
.fr-slot { display: flex; align-items: center; gap: 6px; min-height: 30px; border-radius: 6px; margin: 2px 0; }
.fr-slot.empty { justify-content: center; color: var(--muted); font-size: 0.78rem; border: 1px dashed var(--line-strong); opacity: 0.6; }
.fr-slot.empty.fr-target { opacity: 1; border-color: var(--ice-2); color: var(--ice); }
.fr-selected { outline: 2px solid #f0c75e; outline-offset: -2px; background: rgba(240, 199, 94, 0.08); }
.drag-over { background: rgba(74, 163, 255, 0.15) !important; outline: 2px dashed var(--ice-2); outline-offset: -2px; }
.fr-status { margin-left: auto; white-space: nowrap; }
.fr-add, .fr-del { flex-shrink: 0; }
.fr-absent { font-size: 0.8rem; }
.fr-me { margin: -6px 0 10px; font-weight: 600; color: var(--warn); }
.fr-me.in { color: #8fe3a1; }
.fr-mine { background: rgba(143, 227, 161, 0.1); }
@media (max-width: 760px) {
    .fr-layout { grid-template-columns: 1fr; }
    .fr-pool { max-height: 320px; }
}

/* Okno "Zmeny v rostri" */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(2, 5, 12, 0.72); display: flex;
    align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 620px; margin: 0; }
.fr-rm-row { display: grid; grid-template-columns: minmax(90px, 1fr) auto minmax(140px, 2fr); gap: 8px; align-items: center; margin-bottom: 8px; }
.fr-rm-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-preview { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line); white-space: pre-wrap; font: 0.85rem/1.5 var(--font-body); }
@media (max-width: 560px) {
    .fr-rm-row { grid-template-columns: 1fr 1fr; }
    .fr-rm-row input { grid-column: 1 / -1; }
}

/* Upravit raid (Officer nastroje) */
.raid-edit-box { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.02); }
.raid-edit-box > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--ice); }
.raid-edit-box[open] > summary { border-bottom: 1px solid var(--line); }
.raid-edit { padding: 14px; }

/* Rezervacia za ineho hraca, rivali pri vybranych itemoch */
.res-other { margin: 0 0 14px; }
.res-other > summary { cursor: pointer; color: var(--ice); font-size: 0.88rem; }
.res-other input { flex: 1; min-width: 160px; }
.res-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; font-weight: 600; }
.sel-rivals { font-size: 0.78rem; color: var(--warn); white-space: nowrap; margin-left: 6px; }
.sel-rivals.none { color: var(--muted); }

/* Moj stav na kartickach raidov */
.my-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.my-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); }
.my-chip.ok { color: #8fe3a1; border-color: rgba(143, 227, 161, 0.35); }
.my-chip .sr-badge { width: 16px; height: 16px; font-size: 0.45rem; }

/* Raid comp */
.comp { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.02); }
.comp > summary { cursor: pointer; padding: 8px 12px; font-weight: 700; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; padding: 4px 12px 12px; }
.comp-grid h3 { margin: 6px 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.comp-row { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; font-size: 0.84rem; opacity: 0.6; }
.comp-row.ok { opacity: 1; }
.comp-mark { font-size: 0.75rem; }
.comp-who { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
@media (max-width: 760px) { .comp-grid { grid-template-columns: 1fr; } }

/* Kalendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
.cal-wd { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 4px 0; }
.cal-day { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: rgba(255, 255, 255, 0.02);
    display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.other { opacity: 0.4; }
.cal-day.today { border-color: var(--ice-2); box-shadow: inset 0 0 0 1px var(--ice-2); }
.cal-num { font-size: 0.78rem; color: var(--muted); }
.cal-raid { display: flex; gap: 4px; font-size: 0.74rem; padding: 2px 5px; border-radius: 5px; text-decoration: none;
    background: rgba(74, 163, 255, 0.16); color: var(--text); overflow: hidden; }
.cal-raid.st-locked { background: rgba(255, 179, 71, 0.16); }
.cal-raid.st-finalized { background: rgba(138, 153, 178, 0.14); color: var(--muted); }
.cal-time { font-variant-numeric: tabular-nums; color: var(--ice); flex-shrink: 0; }
.cal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-agenda { display: none; margin-top: 12px; }
.cal-agenda-day { margin-bottom: 12px; }
.cal-agenda-day.today .cal-agenda-date { color: var(--ice); }
.cal-agenda-date { font-weight: 700; margin-bottom: 6px; }
.cal-agenda-raid { display: block; margin-bottom: 6px; }
@media (max-width: 760px) {
    .cal-grid { display: none; }
    .cal-agenda { display: block; }
}

/* Pomoc */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.help-box h2 { margin-top: 0; }
.help-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }

/* Nepriradene postavy (officer) */
.res-create { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.unclaimed-form { margin: 0 0 14px; }
.unclaimed-form input { flex: 1; min-width: 140px; }

/* Host (PUG bez Discordu gildy) */
.badge-guest { background: rgba(154, 214, 255, 0.12); color: var(--ice); border-color: rgba(154, 214, 255, 0.4); }

/* Nova postava priamo na stranke raidu */
.new-char { margin: 4px 0 12px; padding: 10px 12px 2px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.new-char-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-error { color: #ff9b9f; margin: 0 0 8px; font-size: 0.88rem; }
@media (max-width: 560px) { .new-char-grid { grid-template-columns: 1fr; } }

/* Warmane armory: upgrade oproti vybave */
.arm-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px; font-size: 0.72rem; font-weight: 700;
    font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 6px; border: 1px solid transparent; }
.arm-tag.up { color: #8fe3a1; background: rgba(85, 211, 148, 0.12); border-color: rgba(85, 211, 148, 0.35); }
.arm-tag.down { color: #ff9b9f; background: rgba(214, 60, 67, 0.12); border-color: rgba(214, 60, 67, 0.3); }
.arm-tag.same { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.arm-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -6px 0 10px; }

/* Profil postavy */
a.char-link { text-decoration: none; }
a.char-link:hover { text-decoration: underline; }
.prof-ilvl { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.prof-ilvl b { font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.prof-gear { display: grid; gap: 4px; }
.prof-slot { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 6px;
    border-bottom: 1px solid var(--line); }
.prof-slot.empty { opacity: 0.6; }
.prof-item { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-ilvl-small { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; }
.prof-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.prof-row:last-child { border-bottom: 0; }
@media (max-width: 560px) { .prof-slot { grid-template-columns: 70px minmax(0, 1fr) auto; } }

/* Premenovanie postavy, nenajdena na Warmane */
.char-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.arm-missing { cursor: help; }
.rename-input { width: 140px; padding: 5px 8px; }
.arm-line.arm-error { color: #ff9b9f; }

/* Rezervacia: "Ako minule" (itemy z posledneho ID) */
.res-last { margin: 0 0 12px; }
.res-last .row { gap: 10px; align-items: center; }
.res-last-note { margin-top: 6px; }
.res-last-note:empty { display: none; }

/* --- Combat log (analyza raidu) --- */
.log-box .btn { margin-top: 10px; }
.log-upload, .log-actions { gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.log-processing { color: var(--ice); }
.log-error, .log-warn { color: var(--warn); }
.log-ok { color: var(--ok); }
.log-warnings p { margin: 6px 0; }
.chip.log-kill { border-color: rgba(85, 211, 148, 0.45); color: var(--ok); }
.chip.log-wipe { border-color: rgba(255, 179, 71, 0.4); color: var(--warn); }
.log-pulls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
@media (max-width: 560px) { .log-pulls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .log-pull { padding: 6px 8px; } }
.log-pull {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--glass-3);
    color: var(--text); text-decoration: none; min-width: 0;
}
.log-pull:hover { border-color: var(--line-strong); }
.log-pull.kill { border-left: 3px solid var(--ok); }
.log-pull.wipe { border-left: 3px solid var(--warn); }
.log-pull.active { background: rgba(74, 163, 255, 0.16); border-color: var(--ice-2); }
.log-pull-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-pull-meta { font-size: 0.78rem; color: var(--muted); }
.tag.log-tag-kill { color: var(--ok); border-color: rgba(85, 211, 148, 0.45); }
.tag.log-tag-wipe { color: var(--warn); border-color: rgba(255, 179, 71, 0.4); }
.log-table td, .log-table th { padding-top: 6px; padding-bottom: 6px; }
.log-bar-td { min-width: 150px; width: 40%; }
.log-bar-cell { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.log-bar { position: absolute; inset: 0 auto 0 0; border-radius: 6px; opacity: 0.55; }
.log-bar.dmg { background: linear-gradient(90deg, var(--blood-2), var(--blood)); }
.log-bar.heal { background: linear-gradient(90deg, #1f7a4f, var(--ok)); }
.log-bar.taken { background: linear-gradient(90deg, var(--ice-3), var(--ice-2)); }
.log-bar-cell span { position: relative; padding-left: 8px; line-height: 22px; font-variant-numeric: tabular-nums; font-weight: 600; }
.log-table .num { font-variant-numeric: tabular-nums; }
.log-deaths { display: flex; flex-direction: column; gap: 6px; }
.log-death { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; background: var(--glass-3); }
.log-death summary { cursor: pointer; }
.log-death-time { display: inline-block; min-width: 42px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-recap { margin-top: 8px; font-size: 0.86rem; }
.log-recap .log-r-dmg td:last-child { color: #ff8a8f; }
.log-recap .log-r-heal td:last-child { color: var(--ok); }
.log-list { display: flex; flex-direction: column; gap: 10px; }
.log-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--glass-3); }
.log-item-title { font-weight: 700; font-size: 1.02rem; }
.log-item .chips { margin-top: 6px; }
.log-edit { margin-top: 10px; }
.log-edit summary { cursor: pointer; color: var(--ice); }
.log-attach { gap: 8px; align-items: center; flex-wrap: wrap; }
.log-player-link { text-decoration: none; }
.log-player-link:hover .char { text-decoration: underline; }
.log-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.log-stat { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass-3); min-width: 92px; }
.log-stat-v { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.log-stat-l { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.log-spells td:first-child { white-space: nowrap; }
.log-c-failed td { color: var(--muted); text-decoration: line-through; }
.log-castlist { margin-top: 14px; }
.log-castlist summary { cursor: pointer; color: var(--ice); }

/* Casova os castov a buffov */
.log-zoom { margin-bottom: 0; }
.log-tl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
.log-tl { min-width: 100%; position: relative; padding-bottom: 6px; }
.log-tl-row { display: flex; align-items: center; height: 20px; }
.log-tl-row:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.log-tl-label {
    position: sticky; left: 0; z-index: 2; flex: 0 0 150px; width: 150px; height: 100%;
    padding: 0 8px; font-size: 0.74rem; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: #0b1222; border-right: 1px solid var(--line);
}
.log-tl-track { position: relative; flex: 1 1 auto; height: 100%; margin-right: 8px; }
.log-tl-axis { height: 22px; border-bottom: 1px solid var(--line); }
.log-tl-tick { position: absolute; top: 3px; transform: translateX(-50%); font-size: 0.68rem; color: var(--muted); }
.log-tl-tick:first-child { transform: none; padding-left: 2px; }
.log-tl-group { position: sticky; left: 0; padding: 6px 8px 2px; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.log-tl-cast { position: absolute; top: 4px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--ice-2); }
.log-tl-cast.timed { background: var(--warn); width: 6px; margin-left: 0; border-radius: 2px 0 0 2px; }
.log-tl-cast.failed { background: transparent; border: 1px dashed var(--muted); }
.log-tl-legend .log-tl-cast { position: relative; display: inline-block; top: 2px; margin-left: 0; }
.log-tl-aura { position: absolute; top: 5px; height: 10px; border-radius: 3px; background: rgba(85, 211, 148, 0.55); min-width: 2px; }
.log-tl-row.ext .log-tl-aura { background: rgba(183, 100, 255, 0.65); }
.log-tl-death { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--blood); opacity: 0.8; }
.log-tl-death.static { position: relative; display: inline-block; height: 12px; top: 2px; }
@media (max-width: 560px) { .log-tl-label { flex-basis: 96px; width: 96px; } }

/* Mechaniky bossov a automaticke utoky */
.log-mechs { display: flex; flex-direction: column; gap: 18px; }
.log-mech h3 { margin: 0 0 2px; }
.log-mech-help { margin: 0 0 8px; }
.log-mech-table td { padding-top: 5px; padding-bottom: 5px; }
.log-mech-bad td { color: #ff9a9e; }
.log-mech-tank { margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.log-tl-aura.alive { background: rgba(255, 179, 71, 0.6); }
.log-tl-swing { position: absolute; top: 7px; width: 2px; height: 6px; margin-left: -1px; background: var(--muted); opacity: 0.8; }
.log-tl-swing.crit { background: var(--ice); height: 10px; top: 5px; opacity: 1; }
.log-tl-swing.miss { background: var(--blood); opacity: 0.9; }

.nowrap { white-space: nowrap; }

/* Prehravanie pullu */
.replay-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.replay-play { min-width: 44px; font-size: 1.1rem; }
.replay-slider { flex: 1 1 220px; min-width: 160px; accent-color: var(--ice-2); }
.replay-time { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 110px; }
.replay-graph-wrap { height: 70px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.2); cursor: pointer; margin-bottom: 12px; }
.replay-graph { width: 100%; height: 100%; display: block; }
.replay-area { fill: rgba(85, 211, 148, 0.35); stroke: var(--ok); stroke-width: 1; vector-effect: non-scaling-stroke; }
.replay-death-line { stroke: var(--blood); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.6; }
.replay-head { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.replay-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 5px; margin-bottom: 14px; }
.rf { position: relative; height: 42px; border: 1px solid var(--line); border-radius: 7px; background: rgba(140, 30, 40, 0.35); overflow: hidden; cursor: pointer; }
.rf-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #2f8f5e, #1f6b44); transition: width 0.12s linear; }
.rf-bar.mid { background: linear-gradient(180deg, #a98a2c, #7d6519); }
.rf-bar.low { background: linear-gradient(180deg, #b8463e, #86241f); }
.rf-name { position: absolute; left: 6px; top: 4px; font-size: 0.78rem; font-weight: 700; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; max-width: calc(100% - 10px); }
.rf-hp { position: absolute; left: 6px; bottom: 4px; font-size: 0.7rem; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.rf-tank { border-color: rgba(255, 209, 0, 0.45); }
.rf-healer { border-color: rgba(85, 211, 148, 0.45); }
.rf.dead { background: rgba(60, 60, 70, 0.6); }
.rf.dead .rf-name { color: var(--muted); text-decoration: line-through; }
.rf.sel { box-shadow: 0 0 0 2px var(--ice-2); }
.rf.target { box-shadow: 0 0 0 2px #fff; }
.rf.healed { animation: rf-heal 0.6s ease-out; }
.rf.hit { animation: rf-hit 0.6s ease-out; }
@keyframes rf-heal { from { box-shadow: 0 0 0 3px var(--ok), 0 0 14px var(--ok); } to { box-shadow: none; } }
@keyframes rf-hit { from { box-shadow: 0 0 0 3px var(--blood), 0 0 14px var(--blood); } to { box-shadow: none; } }
.replay-panels h3 { margin: 0 0 6px; }
.replay-panels h4, .replay h4 { margin: 12px 0 4px; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.replay-cast { position: relative; height: 26px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.replay-cast span { position: relative; padding-left: 8px; line-height: 26px; font-size: 0.86rem; }
.replay-cast-fill { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, 0.06); }
.replay-cast.on .replay-cast-fill { background: rgba(255, 179, 71, 0.35); }
.replay-cast.failed .replay-cast-fill { background: rgba(214, 60, 67, 0.3); }
.replay-list { display: flex; flex-direction: column; gap: 2px; font-size: 0.84rem; }
.replay-list .failed { text-decoration: line-through; color: var(--muted); }
.replay-buffs .chip.ext { border-color: rgba(183, 100, 255, 0.6); }
.replay-strip { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); padding: 4px 0; min-height: 40px; overflow: hidden; margin-bottom: 14px; }
.replay-strip-overlay { position: absolute; top: 0; bottom: 0; left: 150px; right: 0; pointer-events: none; z-index: 3; }
.replay-strip-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
.replay-strip .log-tl-track { margin-right: 0; }
.replay-strip .log-tl-cast.past { opacity: 0.55; }
.replay-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.replay-bucket { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--glass-3); }
.replay-bucket.b0 { border-color: rgba(214, 60, 67, 0.6); }
.replay-bucket.b1 { border-color: rgba(255, 179, 71, 0.5); }
.replay-bucket.b3 { border-color: rgba(138, 153, 178, 0.5); }
@media (max-width: 560px) { .replay-frames { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rf { height: 38px; } .replay-strip-overlay { left: 96px; } }

/* Porovnanie hracov */
.cmp-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; margin-bottom: 18px;
    border: 1px solid var(--ice-2); border-radius: var(--radius); background: rgba(74, 163, 255, 0.08); }
.cmp-bar-title { font-weight: 700; }
.cmp-chip { border-width: 2px; }
.cmp-check { width: 16px; height: 16px; }
.btn.disabled { opacity: 0.5; pointer-events: none; }
.cmp-subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cmp-subject { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--glass-3); }
.cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.cmp-table td.cmp-best { color: var(--ok); font-weight: 700; }
.cmp-spells td { vertical-align: top; }
.cmp-tl-head { font-weight: 700; text-transform: none; letter-spacing: 0; padding-top: 10px; }
.cmp-end { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--muted); opacity: 0.6; }

/* Priorita lootu na stranke raidu, SR podla raidu v nastaveniach */
.raid-prio { margin: 4px 0; font-weight: 600; }
.srby { display: flex; flex-direction: column; gap: 4px; }
.srby-row { gap: 8px; align-items: center; }
.srby-name { min-width: 160px; }

.raid-prio-help { font-weight: 400; }

/* Plan bossov */
.raid-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.raid-plan-title { font-weight: 600; margin-right: 2px; }
.plan-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 0.78rem; padding: 1px 7px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--glass-3); white-space: nowrap; }
.boss summary .plan-chip { padding: 0 4px; font-size: 0.8rem; }
.plan-chip.plan-skip { color: var(--muted); }
.plan-chip.plan-hc { border-color: rgba(255, 128, 0, 0.6); }
.hc-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.03em; color: #fff; background: #c0561a; vertical-align: middle; }
.plan-hc-sum { font-size: 0.78rem; color: var(--muted); margin-right: 4px; }
.plan-hc-sum.on { color: #ff9a4d; font-weight: 600; }
.plan-ctrl { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.plan-diffs .plan-diff.active { background: #c0561a; color: #fff; border-color: #c0561a; }
.plan-diffs .plan-diff:first-child.active { background: var(--glass-3); color: inherit; border-color: var(--line); }
.reason-cell { min-width: 170px; }

/* Vybava: chybajuce enchanty a gemy (officer) */
.gear-table td { vertical-align: top; }
.gear-table td:first-child { white-space: nowrap; }
.gear-table tr.gear-ok td { opacity: 0.75; }
.gear-actions { white-space: nowrap; text-align: right; }
.gear-pending { color: #ffb84d; }
.sg-offspec { margin: 4px 0 10px; }
.sg-offspec .help { margin-top: 2px; }
.boss.boss-skip summary { opacity: 0.6; }
.plan-edit { margin: 4px 0 16px; }
.plan-edit summary { cursor: pointer; font-weight: 600; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.plan-boss { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-btns { display: inline-flex; gap: 2px; flex-shrink: 0; }
.plan-btn { min-width: 32px; opacity: 0.45; }
.plan-btn.active { opacity: 1; border-color: var(--line-strong); background: rgba(154, 214, 255, 0.12); }

/* Vynimka pre hraca */
.unlock-box { margin: 0 0 16px; }
.unlock-box h3 { margin-top: 0; }
.unlock-note { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 179, 71, 0.45);
    background: rgba(255, 179, 71, 0.08); color: #ffd9a3; }

/* Historia zmien */
.ev-details summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.ev-list { margin-top: 10px; max-height: 420px; overflow-y: auto; }
.ev-row { display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.ev-time { flex-shrink: 0; width: 7.5em; }
.ev-body { min-width: 0; overflow-wrap: anywhere; }
.ev-item { margin-right: 6px; white-space: nowrap; }
.ev-item.ev-add { color: var(--ok); }
.ev-item.ev-rm { color: #ff9b9f; }

/* Druhy spec a kandidati rostra po kategoriach */
.spec2-ico { display: inline-flex; opacity: 0.75; flex-shrink: 0; }
.fr-cat + .fr-cat { margin-top: 6px; }
.fr-cat-head { padding: 4px 2px 2px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; }
@media (max-width: 640px) {
    .ev-row { flex-direction: column; gap: 0; }
    .ev-time { width: auto; }
}

/* Profil: enchanty, gemy, staty z armory */
.prof-gems { margin-left: 6px; font-size: 0.75rem; letter-spacing: 1px; color: #b98cff; white-space: nowrap; }
.prof-gems.missing { color: var(--warn); }
.prof-ench { margin-left: 4px; font-size: 0.75rem; color: #7fe0a3; }
.gear-warn { margin-left: 4px; cursor: help; font-size: 0.85rem; flex-shrink: 0; }
.prof-slot.warn { background: rgba(255, 179, 71, 0.06); border-radius: 6px; }
.gear-warn-box { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 179, 71, 0.45);
    background: rgba(255, 179, 71, 0.08); color: #ffd9a3; font-size: 0.9rem; }
.prof-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; }
.prof-stat-title { font-weight: 700; margin-bottom: 4px; color: var(--ice); }
.prof-stat { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; padding: 1px 0; }
.prof-talents .prof-row { margin: 2px 0; }

/* Consumables a timeline mechanik */
.cons-table td { white-space: nowrap; }
.cons-table tr.cons-missing td:first-child { box-shadow: inset 3px 0 0 var(--blood); }
.cons-ok { color: var(--ok); }
.cons-mid { color: var(--warn); }
.cons-bad, .cons-no { color: #ff9b9f; }
.cons-unknown { color: var(--muted); cursor: help; }
.cons-pot { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--glass-3); border: 1px solid var(--line); font-size: 0.8rem; }
.cons-log summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.log-tl-cast.boss { background: var(--warn); }
.log-tl-row.boss .log-tl-aura { background: rgba(214, 60, 67, 0.55); }
.log-tl-row.add .log-tl-aura { background: rgba(255, 179, 71, 0.5); }
.log-tl-row.add .log-tl-aura.alive { background: rgba(255, 179, 71, 0.25); outline: 1px dashed rgba(255, 179, 71, 0.6); }
.pls-table td:first-child { white-space: nowrap; }
/* Odkial item pada */
.item-src { display: block; font-size: 0.75rem; line-height: 1.3; margin-top: 1px; }
.selected-list .name .item-src { font-weight: 400; }
.tag-pug { color: #ffc27a; border-color: rgba(255, 179, 71, 0.45); background: rgba(255, 179, 71, 0.08); margin-left: 4px; }
.pug-box { margin-top: 18px; }
.badge-leader { background: rgba(255, 179, 71, 0.12); color: #ffc27a; border-color: rgba(255, 179, 71, 0.45); }

/* Audit lootu (officeri) */
.audit-box tr.audit-missing td { background: rgba(214, 60, 67, 0.08); }

/* Prehravanie: ikony buffov / debuffov na raid framoch, GCD, cooldowny */
.spell-tag { display: inline-flex; align-items: center; gap: 4px; }
.spell-tag .wow-icon { border-radius: 3px; flex: 0 0 auto; }
.log-tl-label .spell-tag { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rf { height: 50px; }
.rf-icons { position: absolute; right: 3px; bottom: 3px; display: flex; gap: 2px; }
.rf-debuffs { bottom: auto; top: 3px; }
.rf-icon { position: relative; display: block; width: 16px; height: 16px; border-radius: 3px; outline: 1px solid rgba(0, 0, 0, 0.6); }
.rf-icon .wow-icon { display: block; border-radius: 3px; }
.rf-icon.other { opacity: 0.55; }
.rf-icon.mine { outline: 1px solid var(--ice-2); }
.rf-icon.debuff { outline: 1px solid var(--blood); }
.rf-icon-t { position: absolute; left: 0; right: 0; bottom: -1px; font-size: 9px; line-height: 1; text-align: center; font-weight: 700; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.rf-icon-n { position: absolute; right: -2px; top: -3px; font-size: 9px; line-height: 1; font-weight: 700; color: #ffd100; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.rf.refresh { animation: rf-refresh 0.9s ease-out; }
@keyframes rf-refresh { from { box-shadow: 0 0 0 3px var(--warn), 0 0 14px var(--warn); } to { box-shadow: none; } }
.log-tl-cd { position: absolute; top: 8px; height: 4px; border-radius: 2px; background: rgba(160, 170, 190, 0.28); }
.log-tl-legend .log-tl-cd.static { position: relative; display: inline-block; top: -1px; width: 18px; }
.log-tl-gcd { position: absolute; top: 6px; height: 8px; border-radius: 2px; background: rgba(74, 163, 255, 0.35); border-left: 1px solid var(--ice-2); }
.log-tl-gcd.failed { background: transparent; border: 1px dashed var(--muted); }
.replay-gcd { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.replay-gcd-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); width: 34px; }
.replay-gcd-bar { position: relative; flex: 1 1 auto; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.replay-gcd-fill { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, 0.12); }
.replay-gcd-fill.on { background: var(--ice-2); }
.replay-cds { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 4px; }
.replay-cd { position: relative; height: 24px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 0.8rem; }
.replay-cd span { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 100%; padding: 0 6px; white-space: nowrap; }
.replay-cd-fill { position: absolute; inset: 0 auto 0 0; background: rgba(160, 170, 190, 0.18); }
.replay-cd .spell-tag { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.replay-cd b { flex: 0 0 auto; font-weight: 600; }
.replay-cd.ready { border-color: rgba(85, 211, 148, 0.5); }
.replay-cd.ready .replay-cd-fill { background: rgba(85, 211, 148, 0.12); }
@media (max-width: 560px) { .rf { height: 46px; } }
.fr-note { margin: 6px 0 0; font-weight: 600; color: #f0a030; }
.fr-note-input { width: 100%; box-sizing: border-box; }

/* EPGP (S10) */
.epgp-check p { margin: .25rem 0; }
.epgp-ok { color: #7ccf7c; }
.epgp-bad { color: #ff8a65; font-weight: 600; }
.epgp-search { max-width: 320px; margin: .75rem 0; }
.epgp-table td.epgp-pr { font-weight: 700; }
.epgp-table tr.epgp-mine td { background: rgba(212, 175, 55, .12); }
.epgp-table tr.epgp-off td { opacity: .55; }
.epgp-flag { font-size: .8em; padding: 0 .4em; border-radius: 4px; border: 1px solid currentColor; opacity: .85; }
.epgp-flag.bad { color: #ff8a65; }
.epgp-summary { font-size: 1.1em; }
