/* =========================================================
   SYNTESTA APP — MASTER CSS
   Font: Montserrat
   ─────────────────────────────────────────────────────────
   SECTIONS:
     1. CSS VARIABLES & RESET
     2. TYPOGRAPHY UTILITIES
     3. MASTER COMPONENTS  (buttons, inputs, labels, badges)
     4. LAYOUT & NAVIGATION
     5. CARDS & TABLES
   ========================================================= */

/* =========================================================
   ███ SECTION 1: CSS VARIABLES & RESET
   ========================================================= */

:root {
    /* ── Brand colors ── */
    --blue: #2b59ff;
    --orange: #ff6b35;
    --green: #16a34a;
    --yellow: #eab308;
    --red: #dc2626;
    --black: #111;
    --white: #fff;
    --accent: var(--blue); /* alias */

    /* ── Backgrounds ── */
    --bg: #fff;
    --bg-page: #ffffff;
    --bg-surface: var(--bg); /* alias */
    --bg-main: #f8f8fa;
    --bg-subtle: #f2f2f5;
    --bg-muted: #e8e8ec;

    /* ── Text ── */
    --text: #111;
    --text-primary: var(--text); /* alias */
    --text-2: #555;
    --text-secondary: var(--text-2); /* alias */
    --text-3: #6b7280;
    --text-4: #bbb;

    /* ── Borders ── */
    --border: rgba(17, 17, 17, 0.08);
    --border-s: rgba(17, 17, 17, 0.14);

    /* ── Typography ── */
    --font-d: "Montserrat", sans-serif;
    --font-b: "Montserrat", sans-serif;
    --font-sans: "Montserrat", sans-serif;

    /* ── Misc ── */
    --nav-h: 72px;
    --shadow-s: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-m: 0 4px 12px rgba(0, 0, 0, 0.06);
    --tr: 180ms ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}
html,
body {
    height: 100%;
}

html.lesson-scroll,
html.lesson-scroll body {
    overflow: auto;
    background: #0d0d0d;
}

html.lesson-scroll body.focus-light {
    background: #ffffff;
}

body {
    font-family: var(--font-b);
    color: var(--text);
    background: var(--bg-page);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2a59ff;
    text-decoration: none;
    position: relative;
}

.underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s;
}

.underline:hover::after {
    transform: scaleX(1);
}
img {
    max-width: 100%;
    display: block;
}
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* =========================================================
   ███ SECTION 2: TYPOGRAPHY UTILITIES
   ========================================================= */
.d-xl {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.d-lg {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 0.95;
    letter-spacing: -0.025em;
}
.d-md {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.label {
    font-family: var(--font-b);
    font-weight: 500;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
}
.text-sm {
    font-size: 0.875rem;
}
.text-xs {
    font-size: 0.75rem;
}
.text-2 {
    color: var(--text-2);
}
.text-3 {
    color: var(--text-3);
}
.text-4 {
    color: var(--text-4);
}
.text-blue {
    color: var(--blue);
}
.text-green {
    color: var(--green);
}
.text-red {
    color: var(--red);
}
.fw-500 {
    font-weight: 500;
}
.fw-600 {
    font-weight: 600;
}
.fw-700 {
    font-weight: 700;
}

.add-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1rem;
    transition: color 0.15s ease;
    margin-left: 1rem;
    position: relative;
    transition: color 0.2s ease;
}

.add-link:hover {
    color: var(--color-primary-hover);
}

.add-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: calc(18px + 0.4rem);
    bottom: 6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s;
}

.add-link:hover::after {
    transform: scaleX(1);
}

/* =========================================================
   ███ SECTION 4: LAYOUT & NAVIGATION
   ========================================================= */
.syn-layout,
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
}

.syn-main,
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-main > main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.syn-page-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.syn-form-wrapper {
    width: 100%;
    background: transparent;
}

.page-wrap {
    flex: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* =========================================================
   2. HEADER & USER DROPDOWN (keep verbatim)
   ========================================================= */
.syn-header {
    background-color: var(--bg-surface);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999 !important;
    width: 100%;
    overflow: visible !important;
}

.syn-header__inner {
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 1.875rem;
    overflow: visible !important;
}

.syn-header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.syn-header__logo img {
    height: 1.625rem;
    width: auto;
    display: block;
}

.syn-header__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.syn-token-balance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: #f0f1f3;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}
.syn-token-balance__total {
    color: #6b7280;
    font-weight: 400;
}

/* Header separator */
.syn-header-sep {
    width: 1px;
    height: 1.25rem;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* Header — Moji testovi link */
.syn-header-mytests {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}
.syn-header-mytests:hover {
    color: #111;
}
.syn-header-mytests__count {
    background: #000000;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
}

/* Header global search — collapsed icon, expands on click */
.syn-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
}
.syn-search-trigger {
    flex-shrink: 0;
}
.syn-header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0 0.75rem;
    height: 2.8rem;
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition:
        width 0.22s ease,
        opacity 0.18s ease;
    white-space: nowrap;
    z-index: 100;
}
.syn-search-wrap.open .syn-header-search {
    width: 320px;
    opacity: 1;
    pointer-events: all;
    overflow: visible;
}
.syn-header-search__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.8rem;
    color: #111;
    min-width: 0;
}
.syn-header-search__input::placeholder {
    color: #9ca3af;
}
.syn-header-search__type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    border-left: 1px solid #e5e7eb;
    padding-left: 0.6rem;
    white-space: nowrap;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}
.syn-header-search__type:hover {
    color: #111;
}
.syn-header-search__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 130px;
    z-index: 9999;
    overflow: hidden;
}
.syn-header-search__dropdown.open {
    display: block;
}
.syn-header-search__opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
}
.syn-header-search__opt:hover {
    background: #f4f5f7;
    color: #111;
}
.syn-header-search__opt.active {
    color: #4f46e5;
    font-weight: 700;
}

/* Hamburger button — hidden on desktop */
.syn-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 2rem;
    height: 2rem;
    order: -1;
}
.syn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
}

/* Mobile overlay */
.syn-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99997;
}
.syn-mobile-overlay.open {
    display: block;
}

/* Mobile nav drawer — slide in from left */
.syn-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 360px;
    height: 100dvh;
    background: #fff;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    padding-bottom: 2rem;
}
.syn-mobile-nav.open {
    transform: translateX(0);
}

/* Drawer top: avatar + name + close */
.syn-mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}
.syn-mobile-nav__user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.syn-mobile-nav__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    flex-shrink: 0;
}
.syn-mobile-nav__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}
.syn-mobile-nav__account {
    font-size: 0.8125rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}
.syn-mobile-nav__close {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #374151;
    flex-shrink: 0;
}

/* Nav links */
.syn-mobile-nav__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.9rem 1.5rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    line-height: 1;
}
.syn-mobile-nav__item svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    color: #6b7280;
}
.syn-mobile-nav__item:hover {
    background: #f9fafb;
}
.syn-mobile-nav__item--logout {
    color: #dc2626;
    font-weight: 600;
}
.syn-mobile-nav__item--logout svg {
    color: #dc2626;
}

/* Dashed separator */
/* Mobile search bar inside drawer */
.syn-mobile-search {
    padding: 0.75rem 1.25rem 0.5rem;
}
.syn-mobile-search__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f4f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 0.75rem;
    height: 2.25rem;
}
.syn-mobile-search__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.8rem;
    color: #111;
    min-width: 0;
}
.syn-mobile-search__input::placeholder {
    color: #9ca3af;
}
.syn-mobile-search__type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    border-left: 1px solid #e5e7eb;
    padding-left: 0.6rem;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.syn-mobile-nav__sep {
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        #d1d5db 0,
        #d1d5db 6px,
        transparent 6px,
        transparent 12px
    );
    margin: 0.5rem 0;
}

/* Plan footer */
.syn-mobile-nav__plan {
    margin-top: auto;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}
.syn-mobile-nav__plan-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.syn-mobile-nav__plan-tokens {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .syn-hamburger {
        display: flex;
    }
    .syn-header__actions {
        gap: 0.75rem;
    }
    .syn-token-balance,
    .syn-notify-wrap,
    .syn-user-dropdown,
    .syn-search-wrap,
    .syn-header-sep,
    .syn-header-mytests {
        display: none !important;
    }
}

.syn-btn-outline {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: transparent;
    color: var(--text-primary);
    border-radius: 0;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.syn-btn-outline:hover {
    background: #f3f4f6;
}

.syn-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.syn-icon-btn:hover {
    background-color: #f3f4f6;
}
.syn-icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.syn-notify-wrap {
    position: relative;
}
.syn-notify-btn {
    position: relative;
}

/* Badge — broj nepročitanih */
.syn-notify-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface, #fff);
    line-height: 1;
    pointer-events: none;
}

/* Dropdown panel */
.syn-notify-dropdown {
    width: 22rem;
    max-height: 480px;
    overflow-y: auto;
    padding-bottom: 0.25rem;
}
.syn-notify-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
}
.syn-notify-dropdown__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #6b7280);
}
.syn-notify-dropdown__mark-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}
.syn-notify-dropdown__mark-all:hover {
    opacity: 0.75;
}
.syn-notify-dropdown__mark-all:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Stavka notifikacije */
.syn-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.syn-notify-item:hover {
    background: #f8f9fa;
}
.syn-notify-item--loading {
    opacity: 0.6;
    pointer-events: none;
}

.syn-notify-item__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    margin-top: 0.125rem;
}
.syn-notify-item__icon svg {
    width: 0.9375rem;
    height: 0.9375rem;
}
.syn-notify-item__icon--new_submission {
    background: #f0fdf4;
    color: #16a34a;
}
.syn-notify-item__icon--results_released {
    background: #fefce8;
    color: #ca8a04;
}

.syn-notify-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}
.syn-notify-item__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary, #111827);
    line-height: 1.45;
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
}
.syn-notify-item__time {
    font-size: 0.6875rem;
    color: var(--text-secondary, #6b7280);
}
.syn-notify-item__dot {
    flex-shrink: 0;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: #2563eb;
    margin-top: 0.375rem;
}

/* Prazan state */
.syn-notify-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 2.5rem 1.25rem;
    color: var(--text-secondary, #6b7280);
}
.syn-notify-empty svg {
    width: 2rem;
    height: 2rem;
    opacity: 0.35;
}
.syn-notify-empty p {
    font-size: 0.8125rem;
    margin: 0;
}

/* Notify dropdown — otvoren state */
[data-notify-dropdown] .syn-notify-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s;
}
[data-notify-dropdown][data-open="1"] .syn-notify-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile — sakrij na mobilnom zajedno sa ostalim header elementima */

/* Dropdown */
.syn-user-dropdown {
    position: relative;
    z-index: 999999;
}
.syn-user-trigger {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
}
.syn-user-trigger img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}
.syn-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.syn-avatar-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    pointer-events: none;
}
.syn-avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1;
}

.syn-status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
}
.syn-status-dot.green {
    background-color: #10b981;
}
.syn-status-dot.red {
    background-color: #ef4444;
}
.syn-status-dot.inline {
    display: inline-block;
    border: none;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.375rem;
    vertical-align: middle;
}

.syn-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 20rem;
    background-color: #ffffff;
    border: 1px solid #eef0f7;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 1rem 0;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}

.syn-user-dropdown[data-open="1"] .syn-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.syn-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 0.5rem;
}
.syn-dropdown-header--link {
    text-decoration: none;
    color: inherit;
    border-radius: 0.5rem 0.5rem 0 0;
}
.syn-dropdown-header--link:hover .syn-dropdown-name {
    color: var(--blue, #2563eb);
}
.syn-dropdown-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
}
.syn-dropdown-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}
.syn-dropdown-plan {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}
.syn-dropdown-sep {
    height: 1px;
    margin: 0.75rem 1.25rem;
    border-bottom: 2px dotted #eef0f7;
}

.syn-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.syn-dropdown-item:hover {
    background-color: #f8f9fa;
}
.syn-dropdown-item svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--text-secondary);
}
.syn-dropdown-item.no-icon {
    gap: 0;
}
.syn-dropdown-item--logout {
    color: #dc2626;
}
.syn-dropdown-item--logout svg {
    color: #dc2626;
}
.syn-dropdown-item--logout:hover {
    background-color: #fff5f5;
}

/* =========================================================
   3. BRUTALIST TEST CARDS (syn-b-*)
   ========================================================= */
.syn-b-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.syn-b-breadcrumbs {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.syn-b-breadcrumbs a {
    position: relative;
    color: inherit;
    color: #2562eb;
}

.syn-b-breadcrumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: calc(18px + 0.4rem);
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s;
}

.syn-b-breadcrumbs a:hover::after {
    transform: scaleX(1);
}

.syn-b-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.syn-b-title .text-blue {
    color: var(--blue);
}

.syn-b-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.syn-b-grid-container {
    background-color: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.syn-b-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .syn-b-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.syn-b-card {
    padding: 3rem 3rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

/* Card wrapper for approval pages */
.syn-card-wrapper {
    /* max-width: 560px; */
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); */
}

.syn-card-wrapper--approve {
    width: 100%;
}

.syn-b-card--approve {
    padding: 3rem 0rem;
}

.mtc-last-attempt--approve {
    margin-left: 0 !important;
}

.syn-form--flow {
    display: contents;
}

.syn-b-card-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.syn-b-num {
    font-size: 4.5rem;
    font-weight: 900;
    color: #f3f4f6;
    line-height: 0.8;
    letter-spacing: 0.05em;
}
.syn-b-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.2rem;
    background-color: #000000;
}

.syn-b-card-title {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.syn-b-meta {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.syn-b-card-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.syn-b-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.syn-b-delete-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-weight: 800;
    font-size: 0.875rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    transition: color 0.2s;
}
.syn-b-delete-btn:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.syn-empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    background-color: #ffffff;
    border: 1px dashed #c4c7c5;
    color: #1f1f1f;
}
.syn-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.syn-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.syn-empty-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Centered empty state (filter / no tests) */
.tests-no-results {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    min-height: 40vh;
}
.tests-no-results.visible {
    display: flex;
}
.tests-no-results__cat {
    width: 7rem;
    height: 7rem;
    opacity: 0.1;
    margin-bottom: 2rem;
    object-fit: contain;
}
.tests-no-results__title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 0.75rem;
}
.tests-no-results__sub {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    max-width: 34rem;
    line-height: 1.7;
}

/* =========================================================
   ███ SECTION 3: MASTER COMPONENTS
   ─────────────────────────────────────────────────────────
   Shared bases for buttons, inputs, labels.
   Each variant below only overrides what's specific to it.
   ========================================================= */

/* ─── Shared button base ─── */
.syn-k-btn,
.syn-btn-primary,
.btn,
.btn-primary,
.btn-blue,
.btn-outline,
.btn-ghost,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0;
    border: 1px solid transparent;
    transition: all var(--tr);
    white-space: nowrap;
}
a.syn-k-btn,
a.syn-btn-primary,
a.btn,
a.btn-blue {
    text-decoration: none !important;
}

/* =========================================================
   4. SYN-K-BTN (brutalist button — keep)
   ========================================================= */
.syn-k-btn {
    background-color: #000;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em; /* tighter than default 0.06em */
    border-color: #7f7f7f;
    transition:
        background-color 0.2s,
        transform 0.1s;
}
.syn-k-btn:hover {
    border-color: #333;
    color: #fff;
}
.syn-k-btn:active {
    transform: scale(0.98);
}

.syn-k-btn--blue {
    background-color: var(--blue);
    border-color: var(--blue);
}
.syn-k-btn--blue:hover {
    background-color: #1f47e0;
    border-color: #1f47e0;
}

.syn-k-btn--outline {
    background-color: transparent;
    color: #111;
    border-color: #111;
}
.syn-k-btn--outline:hover {
    background-color: #111;
    color: #fff;
}
.syn-k-btn--done {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(0, 0, 0, 0.12);
    color: #6b7280;
}

.syn-k-btn--ghost {
    background: transparent;
    border-color: #111;
    color: #111;
    font-weight: 600;
}
.syn-k-btn--ghost:hover {
    background-color: #111;
    color: #fff;
}

.syn-k-btn--sm {
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* =========================================================
   SHARED LABEL BASE
   ========================================================= */
.syn-label,
.form-label,
.sett-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* =========================================================
   SHARED INPUT BASE — .syn-input / .form-input / .sett-input
   ========================================================= */
.syn-input,
.syn-textarea,
.form-input,
.sett-input {
    width: 100%;
    height: 3.75rem;
    padding: 1rem 1rem;
    font-size: 0.875rem;
    border: 0.0625rem solid #e8ecf4;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.syn-input:focus,
.syn-textarea:focus,
.form-input:focus,
.sett-input:focus {
    border-color: #b0b9d0;
    outline: none;
}
.syn-input::placeholder,
.form-input::placeholder,
.sett-input::placeholder {
    color: var(--text-4);
}

/* =========================================================
   5. FORMS (syn-input, syn-textarea — keep)
   ========================================================= */
.syn-input--err {
    border-color: #ef4444;
}
.syn-textarea {
    height: auto;
    min-height: 10rem;
    resize: vertical;
}

/* Settings row — fields side by side, left-aligned (not full-width grid) */
.syn-settings-row {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.syn-settings-row .syn-input-group {
    width: auto;
}

/* Inline field row: input + link side by side */
.syn-field-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.syn-field-inline__link {
    white-space: nowrap;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Custom select wrapper — adds chevron arrow */
.syn-select-wrap {
    position: relative;
}
.syn-select-wrap--sm {
    width: 160px;
}
.syn-select-wrap--sm select {
    height: auto;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    padding-left: 0.75rem;
    font-size: 0.8rem;
}
.syn-select-wrap--md {
    width: 260px;
}
.syn-select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 16px;
    cursor: pointer;
}

/* Upload block */
.syn-upload-block {
    margin-bottom: 1.5rem;
    max-width: 680px;
}
.syn-upload-block .syn-label {
    display: block;
    margin-bottom: 0.5rem;
}

.syn-file-box {
    border: 1.5px dashed #d1d5db;
    padding: 2rem 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
    background-color: #fafbff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    max-width: 700px;
}
.syn-file-box:hover {
    border-color: var(--blue);
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* File preview (after upload) */
.syn-file-preview {
    display: none;
    align-items: center;
    border: 1.5px solid #e0e7ff;
    border-radius: 0.625rem;
    background: #f5f7ff;
    padding: 0.9rem 1.25rem;
}
.syn-file-preview--doc {
    border-color: #dbeafe;
    background: #eff6ff;
}
.syn-file-preview__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.syn-file-preview__img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 0.4rem;
    flex-shrink: 0;
    border: 1px solid #e0e7ff;
}
.syn-file-preview__name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.syn-file-preview__remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition:
        background 0.15s,
        color 0.15s;
    margin-left: auto;
}
.syn-file-preview__remove:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.syn-file-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.4rem;
}

.syn-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.syn-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 992px) {
    .syn-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .syn-grid-2--vcenter {
        align-items: center;
    }
}

.syn-publish-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.syn-publish-toggle {
    width: auto;
    white-space: nowrap;
}

.syn-publish-row > .syn-input-group:last-child {
    flex: 0 1 auto;
}

.syn-input-group--with-margin {
    margin-top: 30px;
}

.syn-publish-row .syn-input,
.syn-publish-row .syn-select-wrap--sm .syn-input {
    width: auto;
    max-width: 300px;
}

.syn-input-with-icon-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.syn-publish-row > .syn-input-with-icon-wrapper {
    flex: 0 1 auto;
}

.syn-publish-info-icon {
    flex: 0 0 auto;
    color: #2b59ff;
    stroke: #2b59ff;
}

.syn-publish-input-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Toggle cell vertically centered to align with input */
.syn-input-group--vcenter {
    display: flex;
    align-items: center;
    padding-top: 1.5rem; /* compensates for the label height above the input */
}

.syn-input-group {
    width: 100%;
}

/* Utility: Margin helpers */
.syn-mt-1 {
    margin-top: 1rem;
}

/* Label with flex layout (for labels with multiple children) */
.syn-label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* File upload label with pointer cursor */
.syn-file-upload-label {
    cursor: pointer;
}

/* SVG icon with bottom margin */
.syn-svg-icon {
    margin-bottom: 0.5rem;
}
.syn-input-group.mb-4 {
    margin-bottom: 1.5rem;
}

.syn-btn-primary {
    background-color: var(--blue);
    color: #fff;
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.syn-btn-primary:hover {
    background-color: #1f47e0;
}
.syn-footer-action {
    margin-top: 0rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

/* ── App Footer ── */
.syn-footer {
    margin-top: 4rem;
}
.syn-footer__inner {
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 2rem 2.5rem;
}
.syn-footer__dotted-line {
    /* SVG-based dots for full control over gap between dots */
    height: 2px;
    background-image: radial-gradient(circle, #c4c4c4 1px, transparent 1px);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    background-position: center;
    margin-bottom: 2rem;
}
.syn-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.syn-footer__logo img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.syn-footer__logo:hover img {
    opacity: 1;
}
.syn-footer__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.syn-footer__link {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    letter-spacing: 0.02em;
}
.syn-footer__link:hover {
    color: #111;
}
.syn-footer__copy {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0;
}
@media (max-width: 640px) {
    .syn-footer__top {
        flex-direction: column;
        gap: 1.25rem;
    }
    .syn-footer__nav {
        gap: 1.25rem;
    }
}

/* =========================================================
   6. STEPPER
   ========================================================= */
.syn-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    width: 100%;
    overflow: hidden;
}
.syn-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.syn-step:last-child {
    flex: none;
}
.syn-step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #f3f5f9;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all 0.3s;
}
.syn-step-label {
    font-size: 0.875rem;
    color: #111;
    font-weight: 500;
    white-space: nowrap;
}
.syn-step-line {
    flex: 1;
    height: 1px;
    background-color: #eef0f7;
    margin: 0 0.625rem;
}
.syn-step.active .syn-step-circle {
    background-color: var(--blue);
    color: #ffffff;
}

.syn-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid #f3f4f6;
}
.syn-section-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

/* Toggle switch (forms) */
.syn-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}
.syn-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}
.syn-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.syn-toggle .slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s;
}
.syn-toggle .slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}
.syn-toggle input:checked + .slider {
    background: var(--blue, #1f47e0);
}
.syn-toggle input:checked + .slider::before {
    transform: translateX(20px);
}

/* Field hint */
.syn-field-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}
.syn-char-counter {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    transition: color 0.15s;
}
.syn-char-counter.is-warning {
    color: #f59e0b;
}
.syn-char-counter.is-danger {
    color: #ef4444;
}
.syn-section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.15rem;
}
.syn-section-header p,
.syn-section-header__sub {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* =========================================================
   TEST FORM — RESPONSIVE
   ========================================================= */

/* Tablet: 768px */
@media (max-width: 768px) {
    /* Stepper: skrati labele */
    .syn-stepper {
        gap: 0;
        margin-bottom: 2rem;
    }
    .syn-step-label {
        font-size: 0.75rem;
    }
    .syn-step-line {
        margin: 0 0.25rem;
    }

    /* Settings row: dva polja pa banka ispod */
    .syn-settings-row {
        gap: 1rem;
    }
    .syn-settings-row .syn-input-group {
        min-width: 140px;
        flex: 1 1 140px;
    }

    /* Publish row: stack vertikalno */
    .syn-publish-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        justify-content: flex-start;
    }
    .syn-publish-toggle {
        width: 100%;
    }
    .syn-input-group--with-margin {
        margin-top: 0;
        width: 100%;
    }
    .syn-publish-row .syn-input,
    .syn-publish-row .syn-select-wrap--sm .syn-input {
        max-width: 100%;
        width: 100%;
    }
    .syn-publish-row .syn-select-wrap {
        width: 100%;
    }

    /* Input with icon label: dozvoli prelom */
    .syn-publish-input-label {
        white-space: normal;
    }

    /* File upload: puna sirina */
    .syn-upload-block,
    .syn-file-box {
        max-width: 100%;
    }
}

/* Mobile: 480px */
@media (max-width: 480px) {
    /* Stepper: sakrij labele, ostavi samo krugove */
    .syn-step-label {
        display: none;
    }
    .syn-step {
        gap: 0;
        flex: none;
    }
    .syn-step:last-child {
        flex: none;
    }
    .syn-step-line {
        flex: 1;
        margin: 0 0.375rem;
    }
    .syn-stepper {
        justify-content: center;
        gap: 0;
    }

    /* Settings row: sva polja ispod jedno drugog */
    .syn-settings-row {
        flex-direction: column;
        gap: 1rem;
    }
    .syn-settings-row .syn-input-group {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    /* select wrap fixed widths: puna sirina */
    .syn-select-wrap--md,
    .syn-select-wrap--sm {
        width: 100%;
    }
    .syn-input-with-icon-wrapper {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    /* Field inline (Kreator): stack */
    .syn-field-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .syn-field-inline .syn-select-wrap--md {
        width: 100%;
    }

    /* Section header */
    .syn-section-header h2 {
        font-size: 1.05rem;
    }

    /* Grid 2: vec je 1 kolona, samo smanji gap */
    .syn-grid-2 {
        gap: 1.25rem;
    }
}

/* =========================================================
   7. BADGES
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 0;
}
.badge-green {
    background: #ecfdf5;
    color: #16a34a;
}
.badge-gray {
    background: var(--bg-subtle);
    color: var(--text-3);
}
.badge-blue {
    background: #eef2ff;
    color: var(--blue);
}
.badge-orange {
    background: #fff7ed;
    color: #ea580c;
}
.badge-red {
    background: #fef2f2;
    color: #dc2626;
}
.badge-yellow {
    background: #fefce8;
    color: #a16207;
}

/* =========================================================
   8. CARDS
   ========================================================= */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
    transition: border-color var(--tr);
}
.card:hover {
    border-color: var(--border-s);
}
.card-body {
    padding: 1.5rem;
}

/* Stat cards */
.stat-card {
    padding: 1.5rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}
.stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.stat-card .stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111;
    margin: 0;
}
.stat-card .stat-sub {
    font-size: 0.8rem;
    color: var(--text-3);
    margin: 0;
}
.stat-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
}
.stat-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    opacity: 0;
    transform: translateY(3px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}
.stat-card--link:hover .stat-link {
    opacity: 1;
    transform: translateY(0);
}
/* Ring */
.stat-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(var(--blue) calc(var(--p) * 1%), #e9ecef 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.stat-ring--green {
    background: conic-gradient(#86c580 calc(var(--p) * 1%), #e9ecef 0);
}
.stat-ring--orange {
    background: conic-gradient(#fb7275 calc(var(--p) * 1%), #e9ecef 0);
}
.stat-ring--purple {
    background: conic-gradient(#7c3aed calc(var(--p) * 1%), #e9ecef 0);
}
.stat-ring--gray {
    background: conic-gradient(#9ca3af calc(var(--p) * 1%), #e9ecef 0);
}
.stat-ring::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
}
.stat-ring span {
    position: relative;
    z-index: 1;
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 1.65rem;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat-ring span sup {
    font-size: 0.5em;
    font-weight: 700;
    vertical-align: super;
    letter-spacing: 0;
}
.stat-card .stat-accent {
    display: none;
}

/* syn-card alias */
.syn-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0;
}

/* =========================================================
   11. TABLES  (rtbl = responsive table — flex-based, no <table>)
   ========================================================= */
.table-wrap {
    overflow: visible;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
/* hover on last row must follow container rounding */
.rtbl__row:last-child:hover {
    border-radius: 0 0 16px 16px;
}

/* ---------- rtbl: flex-based responsive table ---------- */
.rtbl {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

/* header row */
.rtbl__head {
    display: flex;
    align-items: center;
    padding: 1rem 0rem;
    gap: 1.5rem;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 1rem;
}
.rtbl__hcell {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
    white-space: nowrap;
    overflow: visible !important;
    height: 40px;
}
/* vertical separator before every header cell except the first */
.rtbl__head .rtbl__hcell + .rtbl__hcell {
    position: relative;
}
.rtbl__head .rtbl__hcell + .rtbl__hcell::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #e5e7eb;
}

/* data rows */
.rtbl__row {
    display: flex;
    align-items: center;
    padding: 1.5rem 0rem;
    gap: 1.5rem;
    position: relative;

    border-bottom: 1px solid #f3f4f6;
}

.rtbl__row:last-child,
.rtbl__row--last {
    border-bottom: 1px solid transparent;
}

.rtbl__row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: #cbcbcb !important;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s ease;

    z-index: 10;
    display: block !important;
}

.rtbl__row:hover::after {
    transform: scaleX(1);
}

.rtbl__row:hover {
    background: transparent !important;
}

/* cells */
.rtbl__cell {
    min-width: 0;
    overflow: hidden;
}
.rtbl__cell--muted {
    color: #5f6368;
    font-size: 0.875rem;
}
.rtbl__cell--empty {
    color: #9ca3af;
    font-size: 0.875rem;
}
.rtbl__cell--num {
    font-size: 0.875rem;
    font-weight: 500;
    color: #202124;
}
.rtbl__cell--zero {
    color: #ef4444;
}

/* ---- column proportions (flex + gap) ---- */
.rtbl__col--num {
    flex: 0 0 auto;
}
.rtbl__col--name {
    flex: 2 1 0;
    min-width: 120px;
}
.rtbl__col--result {
    flex: 1.5 1 0;
    min-width: 140px;
    padding-right: 2rem;
}
.rtbl__col--verdict {
    flex: 0 1 0;
    min-width: 150px;
}
.rtbl__col--date {
    flex: 0 1 0;
    min-width: 170px;
    white-space: nowrap;
}
.rtbl__col--action {
    flex: 0 0 80px;
}

/* ---------- sortable header cells ---------- */
.rtbl__hcell--sortable {
    position: relative;
    user-select: none;
}
/* trigger = the clickable button */
.rtbl__sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    transition: color 0.12s;
    text-decoration: none;
}
.rtbl__hcell--sortable:hover .rtbl__sort-trigger {
    color: #737373;
}
/* active sort column — text goes dark */
.rtbl__hcell--active-asc .rtbl__sort-trigger,
.rtbl__hcell--active-desc .rtbl__sort-trigger {
    color: #111;
}

/* sort badge — gray box with up/down icon (used in history tables) */
.rtbl__sort-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 5px;
    flex-shrink: 0;
    transition: background 0.15s;
    margin-left: 0.25rem;
}
.rtbl__sort-icon {
    width: 14px;
    height: 14px;
    color: #6b7280;
    flex-shrink: 0;
    transition:
        color 0.15s,
        transform 0.2s;
    stroke-width: 1.5;
}
.rtbl__sort-icon--dir {
    display: none;
}
.rtbl__hcell--active-asc .rtbl__sort-badge,
.rtbl__hcell--active-desc .rtbl__sort-badge {
    background: #1e2130;
}
.rtbl__hcell--active-asc .rtbl__sort-icon,
.rtbl__hcell--active-desc .rtbl__sort-icon {
    color: #fff;
}
.rtbl__hcell--active-asc .rtbl__sort-icon--neutral,
.rtbl__hcell--active-desc .rtbl__sort-icon--neutral {
    display: none;
}
.rtbl__hcell--active-asc .rtbl__sort-icon--dir,
.rtbl__hcell--active-desc .rtbl__sort-icon--dir {
    display: block;
}
.rtbl__hcell--active-asc .rtbl__sort-icon--dir {
    transform: rotate(180deg);
}
.rtbl__hcell--active-desc .rtbl__sort-icon--dir {
    transform: rotate(0deg);
}

/* sort caret — small gray rounded box with up/down triangles */
.rtbl__sort-caret {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 26px;
    height: 22px;
    background: #f3f4f6;
    border-radius: 5px;
    flex-shrink: 0;
    margin-left: 2px;
    transition: background 0.12s;
}
.rtbl__sort-caret span {
    display: block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
}
.rtbl__sort-caret span:first-child {
    border-bottom: 3.5px solid #b0b7c3;
}
.rtbl__sort-caret span:last-child {
    border-top: 3.5px solid #b0b7c3;
}
/* hover — slightly darker box */
.rtbl__hcell--sortable:hover .rtbl__sort-caret {
    background: #e9eaec;
}
/* active — dark box, white carets */
.rtbl__hcell--active-asc .rtbl__sort-caret,
.rtbl__hcell--active-desc .rtbl__sort-caret {
    background: #1e2130;
}
.rtbl__hcell--active-asc .rtbl__sort-caret span:first-child,
.rtbl__hcell--active-desc .rtbl__sort-caret span:first-child {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
.rtbl__hcell--active-asc .rtbl__sort-caret span:last-child,
.rtbl__hcell--active-desc .rtbl__sort-caret span:last-child {
    border-top-color: rgba(255, 255, 255, 0.5);
}
/* highlight the active direction */
.rtbl__hcell--active-asc .rtbl__sort-caret span:first-child {
    border-bottom-color: #fff;
}
.rtbl__hcell--active-desc .rtbl__sort-caret span:last-child {
    border-top-color: #fff;
}

/* =========================================================
   12. TESTS TABLE  (rtbl--tests)
   ========================================================= */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* column flex proportions */
.rtbl--tests .mc--user {
    flex: 3 1 0;
    min-width: 160px;
}
.rtbl--tests .mc--date,
.rtbl--tests .mc--status {
    flex: 1 1 0;
    min-width: 90px;
}
.rtbl--tests .mc--progress {
    flex: 0.8 1 0;
    min-width: 80px;
}
.rtbl--tests .mc--qlimit {
    flex: 0.8 1 0;
    min-width: 80px;
}
.rtbl--tests .mc--actions {
    flex: 0 0 220px;
    justify-content: flex-start;
}
.rtbl--tests .cc-col-num {
    flex: 0 0 32px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.82rem;
}
.rtbl--tests .cc-col-status {
    flex: 0 0 115px;
}
.rtbl--tests .mc--user {
    flex: 3 1 0;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.rtbl--tests .mc--user .rtbl__cell--muted {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Questions rtbl ─── */
.rtbl--questions .mc--check {
    flex: 0 0 28px;
}
.rtbl--questions .mc--num {
    flex: 0 0 44px;
}
.rtbl--questions .mc--type {
    flex: 0 0 90px;
}
.rtbl--questions .mc--title {
    flex: 3 1 0;
    min-width: 120px;
}
.rtbl--questions .mc--diff {
    flex: 0 0 100px;
}
.rtbl--questions .mc--pts {
    flex: 0 0 64px;
}
.rtbl--questions .mc--actions {
    flex: 0 0 88px;
}

/* ─── Courses index rtbl ─── */
.rtbl--courses .cc-col-num {
    flex: 0 0 32px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.82rem;
}
.rtbl--courses .cc-col-status {
    flex: 0 0 115px;
}
.rtbl--courses .cc-col-title {
    flex: 2 1 0;
    min-width: 140px;
    justify-content: flex-start;
}
.rtbl--courses .rtbl__cell.cc-col-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.rtbl--courses .cc-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rtbl--courses .cc-col-lessons {
    flex: 0 0 70px;
}
.rtbl--courses .cc-col-creator {
    flex: 0 0 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rtbl--courses .cc-col-date {
    flex: 0 0 90px;
}
.rtbl--courses .cc-col-actions {
    flex: 0 0 215px;
    display: flex;
    gap: 0.2rem;
}

/* ─── Member detail — tip kolona (KURS/TEST badge) ─── */
.rtbl--member-detail .cc-col-status {
    flex: 0 0 58px;
}
.rtbl--member-detail .mc--actions {
    flex: 0 0 100px;
}

/* ─── Stats panel — light/row variant ─── */
.sbc-grid.sbc-grid--row {
    grid-template-columns: repeat(10, 1fr);
}
.sbc-grid.sbc-grid--row .sbc-item-label {
    color: #555;
}
.sbc-grid.sbc-grid--row .sbc-item-val {
    color: #111;
}
.sbc-grid.sbc-grid--row .sbc-item-val--green {
    color: #16a34a;
}
.sbc-icon--light {
    background: #f3f4f6;
    color: #111;
}

/* ─── Lessons rtbl (courses) ─── */
.rtbl--lessons {
    margin-top: 0.25rem;
}
.rtbl--lessons .cb-col-num {
    flex: 0 0 32px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.82rem;
}
.rtbl--lessons .cb-col-type {
    flex: 0 0 80px;
    text-align: left;
}
.rtbl--lessons .cb-col-title {
    flex: 2 1 0;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0;
}
.rtbl--lessons .cb-title-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}
.rtbl--lessons .qb-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rtbl--lessons .cb-col-date {
    flex: 0 0 100px;
}
.rtbl--lessons .cb-col-video {
    flex: 0 0 70px;
}
.rtbl--lessons .cb-col-material {
    flex: 0 0 100px;
}
.rtbl--lessons .cb-col-min {
    flex: 0 0 70px;
}
.rtbl--lessons .cb-col-actions {
    flex: 0 0 170px;
    display: flex;
    gap: 0.2rem;
}

/* ─── Questions rtbl — check cell checkbox ─── */
.rtbl--questions .mc--check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6366f1;
}

/* ─── Delete confirm flat variant (left-aligned, form layout) ─── */
.syn-del-box--flat {
    text-align: left;
    padding: 1.5rem 1.75rem 1.25rem;
}
.syn-del-box--flat .syn-del-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.syn-del-box--flat .syn-del-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.syn-del-box--flat .syn-del-header-sub {
    font-size: 0.8rem;
    color: #6b7280;
}
.syn-del-box--flat .syn-del-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.25rem;
    line-height: 1;
}
.syn-del-box--flat .syn-del-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ─── Edit modal form helpers ─── */
.qb-ef-field {
    margin-bottom: 1rem;
}
.qb-ef-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.qb-ef-col {
    flex: 1;
    min-width: 0;
}
.syn-textarea--short {
    min-height: 90px;
}

/* Shared base for every mc--actions cell */
[class*="rtbl--"] .mc--actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
/* delete form inside actions cell */
.mc--actions form {
    margin: 0;
}

/* icon SVG inside header buttons (e.g. "Novi test") */
.btn-icon {
    margin-right: 0.375rem;
    flex-shrink: 0;
}

/* Name cell */
.tests-name-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}
.tests-thumb {
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.tests-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tests-title-link {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.tests-title-link:hover {
    color: var(--blue);
}
.tests-id {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

/* Pills */
.tests-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tests-pill--neutral {
    background: #f3f4f6;
    color: #374151;
}

/* PDF link */
.tests-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}
.tests-pdf-link:hover {
    text-decoration: underline;
}

/* Status badges */
.syn-b-badge--green {
    background-color: #dcf1c6;
    color: #2d6a1f;
}
.tests-badge-draft {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 20px;
}

/* Action icons */
.tests-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}
.tests-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
    padding: 0;
    border-radius: 4px;
}
.tests-icon-btn:hover {
    border-color: #9ca3af;
    color: #111827;
}
.tests-icon-btn--ai:hover {
    border-color: #a5b4fc;
    color: #4f46e5;
    background: #eef2ff;
}
.tests-icon-btn--ok {
    border-color: #a7f3d0;
    color: #059669;
    background: #f0fdf4;
}
.tests-icon-btn--del:hover {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fef2f2;
}

/* keep old .table / .syn-table working if used elsewhere */
.table,
.syn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.table th,
.syn-table th {
    text-align: left;
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}
.table td,
.syn-table td {
    padding: 1.125rem 1.5rem;
    border-bottom: none;
    vertical-align: middle;
}
.table tbody tr,
.syn-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s;
}
.table tbody tr:last-child,
.syn-table tbody tr:last-child {
    border-bottom: none;
}
.table tbody tr:hover,
.syn-table tbody tr:hover {
    background: #f9fafb;
}

/* =========================================================
   12. TABS
   ========================================================= */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-3);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--tr);
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover {
    color: var(--text);
}
.tab.active {
    color: var(--text);
    border-bottom-color: var(--blue);
}

/* =========================================================
   13. AVATAR
   ========================================================= */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
    overflow: hidden;
    flex-shrink: 0;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.6875rem;
}
.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}
.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

/* =========================================================
   14. PROGRESS
   ========================================================= */
.progress {
    width: 100%;
    height: 4px;
    background: var(--bg-muted);
    overflow: hidden;
    border-radius: 0;
}
.progress-bar {
    height: 100%;
    background: var(--blue);
    transition: width 400ms ease;
}

/* =========================================================
   15. UPLOAD ZONE
   ========================================================= */
.upload-zone {
    border: 2px dashed var(--border-s);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--tr);
    border-radius: 0;
}
.upload-zone:hover,
.upload-zone.dragging {
    border-color: var(--blue);
    background: rgba(43, 89, 255, 0.02);
}
.upload-zone .upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: var(--text-3);
}
.upload-zone .upload-text {
    font-size: 0.875rem;
    color: var(--text-2);
}
.upload-zone .upload-hint {
    font-size: 0.75rem;
    color: var(--text-4);
    margin-top: 0.25rem;
}

/* =========================================================
   16. ACCENT LINE & SCORE CIRCLE
   ========================================================= */
.accent-line {
    display: flex;
    gap: 6px;
    align-items: center;
}
.accent-line::before {
    content: "";
    width: 36px;
    height: 3px;
    background: var(--blue);
}
.accent-line::after {
    content: "";
    width: 12px;
    height: 3px;
    background: var(--orange);
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}
.score-circle svg {
    transform: rotate(-90deg);
}
.score-circle .score-bg {
    fill: none;
    stroke: var(--bg-muted);
    stroke-width: 8;
}
.score-circle .score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: square;
    transition: stroke-dashoffset 0.8s ease;
}
.score-circle .score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-circle .score-value {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.score-circle .score-label {
    font-size: 0.6875rem;
    color: var(--text-3);
    margin-top: 0.125rem;
}
.score-circle-sm {
    width: 48px;
    height: 48px;
}
.score-circle-sm .score-value {
    font-size: 0.875rem;
}

/* =========================================================
   17. TOAST
   ========================================================= */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 300ms ease;
    border-radius: 0;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================================
   18. MODAL
   ========================================================= */

/* Legacy syn-modal (kept for existing pages) */
.syn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.syn-modal {
    background: #fff;
    border-radius: 0;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.syn-modal-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.syn-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.15rem;
}
.syn-modal-sub {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
}
.syn-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 0;
    line-height: 1;
}
.syn-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.syn-modal-body {
    padding: 1rem 1.5rem;
}
.syn-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* =========================================================
   20. PAGE HEADER / SECTION HEADER
   ========================================================= */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.page-header .page-greeting {
    font-size: 0.875rem;
    color: var(--text-3);
    margin-bottom: 0.25rem;
}
.page-header .page-title {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
}
.page-header .page-subtitle {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-top: 0.25rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.section-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--tr);
}
.section-link:hover {
    color: var(--text);
}
.section-link svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   21. ACTIVITY CARD
   ========================================================= */
.activity-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.activity-card .activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.activity-card .activity-name {
    font-weight: 600;
    font-size: 0.9375rem;
}
.activity-card .activity-user {
    font-size: 0.8125rem;
    color: var(--text-3);
}
.activity-card .activity-time {
    font-size: 0.75rem;
    color: var(--text-4);
}
.activity-card .activity-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--tr);
}
.activity-card .activity-link:hover {
    color: var(--blue);
}

/* =========================================================
   22. MEMBER ROW
   ========================================================= */
.member-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}
.member-row:last-child {
    border-bottom: none;
}
.member-info {
    flex: 1;
    min-width: 0;
}
.member-name {
    font-weight: 600;
    font-size: 0.9375rem;
}
.member-meta {
    font-size: 0.75rem;
    color: var(--text-3);
}
.member-stats {
    text-align: right;
    font-size: 0.875rem;
    font-weight: 600;
}
.member-stats-label {
    font-size: 0.6875rem;
    color: var(--text-4);
    font-weight: 400;
}

/* =========================================================
   23. TEST CARD (grid view)
   ========================================================= */
.test-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.test-card-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-subtle);
    overflow: hidden;
}
.test-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.test-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.test-card-title {
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}
.test-card-meta {
    font-size: 0.75rem;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.test-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

/* =========================================================
   24. CHAT BUBBLES
   ========================================================= */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}
.chat-bubble {
    max-width: 75%;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    border-radius: 0;
}
.chat-bubble.ai {
    background: var(--bg-page);
    color: var(--text);
    align-self: flex-start;
    border-left: 3px solid var(--blue);
}
.chat-bubble.user {
    background: var(--black);
    color: var(--white);
    align-self: flex-end;
}
.chat-bubble .chat-sender {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.375rem;
    opacity: 0.5;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    align-self: flex-start;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-3);
    border-radius: 50%;
    animation: typing 1.2s infinite;
}
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes typing {
    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.chat-input-wrap {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--white);
}
.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-s);
    resize: none;
    min-height: 48px;
    max-height: 120px;
    border-radius: 0;
    background: none;
    font-family: inherit;
}
.chat-input:focus {
    border-color: var(--blue);
    outline: none;
}

/* =========================================================
   25. RUBRIC TABLE
   ========================================================= */
.rubric-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.rubric-table th {
    text-align: left;
    padding: 0.625rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    border-bottom: 2px solid var(--border);
    background: var(--bg-page);
}
.rubric-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.rubric-table .rubric-score {
    font-family: var(--font-d);
    font-weight: 800;
    font-size: 1.125rem;
}

/* =========================================================
   27. FORM LAYOUT (two-column)
   ========================================================= */
.form-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.form-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}
.form-sidebar .card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Publish toggle */
.publish-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toggle {
    width: 44px;
    height: 24px;
    background: var(--bg-muted);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background var(--tr);
    border: none;
}
.toggle.active {
    background: var(--blue);
}
.toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--tr);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.toggle.active::after {
    transform: translateX(20px);
}

/* =========================================================
   28. GRID HELPERS
   ========================================================= */
.grid {
    display: grid;
    gap: 1rem;
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.grid-2-1 {
    grid-template-columns: 2fr 1fr;
}
.grid-1-2 {
    grid-template-columns: 1fr 2fr;
}
.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ─── FLEX HELPERS ─── */
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.items-start {
    align-items: flex-start;
}
.items-end {
    align-items: flex-end;
}
.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: flex-end;
}
.gap-xs {
    gap: 0.375rem;
}
.gap-sm {
    gap: 0.5rem;
}
.gap-md {
    gap: 1rem;
}
.gap-lg {
    gap: 1.5rem;
}
.gap-xl {
    gap: 2rem;
}
.flex-1 {
    flex: 1;
}
.flex-shrink-0 {
    flex-shrink: 0;
}
.w-full {
    width: 100%;
}

/* ─── SPACING ─── */
.mt-xs {
    margin-top: 0.375rem;
}
.mt-sm {
    margin-top: 0.5rem;
}
.mt-md {
    margin-top: 1rem;
}
.mt-lg {
    margin-top: 1.5rem;
}
.mt-xl {
    margin-top: 2rem;
}
.mt-2xl {
    margin-top: 3rem;
}
.mb-xs {
    margin-bottom: 0.375rem;
}
.mb-sm {
    margin-bottom: 0.5rem;
}
.mb-md {
    margin-bottom: 1.5rem;
}
.mb-lg {
    margin-bottom: 1.5rem;
}
.mb-xl {
    margin-bottom: 2rem;
}
.p-md {
    padding: 1rem;
}
.p-lg {
    padding: 1.5rem;
}

/* =========================================================
   29. ALERTS
   ========================================================= */
.syn-alert {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    border-radius: 4px;
}
.syn-alert--success {
    background: #dcf1c6;
    color: #111;
    border: 1px solid #dcf1c6;
}
.syn-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.syn-alert--warning {
    background: #f9f7a7;
    color: #111;
}
.syn-plan-lock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
    cursor: default;
}

/* Role badges */
.syn-role-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.syn-role-badge--owner {
    background: #fef3c7;
    color: #92400e;
}
.syn-role-badge--editor {
    background: #dbeafe;
    color: #1e40af;
}
.syn-role-badge--user {
    background: #f3f4f6;
    color: #374151;
}

/* =========================================================
   30. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2-1,
    .grid-1-2 {
        grid-template-columns: 1fr;
    }
    .form-layout {
        grid-template-columns: 1fr;
    }
    .page-wrap {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .page-wrap {
        padding: 1rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar .search-input {
        min-width: 100%;
    }
    .chat-bubble {
        max-width: 90%;
    }
    .form-layout {
        grid-template-columns: 1fr;
    }
    .syn-b-card {
        padding: 2rem 1.5rem;
    }
    .syn-b-card-title {
        font-size: 1.75rem;
    }
    .syn-b-title {
        font-size: 2rem;
    }
}

/* =========================================================
   31. SCROLLBAR
   ========================================================= */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-s);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}

/* =========================================================
   32. ANIMATIONS
   ========================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}
.fade-in-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}
.fade-in-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}
.fade-in-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* =========================================================
   DASHBOARD TEST CARDS
   ========================================================= */

/* Filter tabs for tests page */
.tests-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tests-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tests-filter-btn:hover {
    border-color: #111;
    color: #111;
}
.tests-filter-btn.active {
    background: #111;
    border-color: #111;
    color: #fff;
}
.tests-filter-btn .tfb-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}
.tests-filter-btn:not(.active) .tfb-count {
    background: #f3f4f6;
    color: #374151;
}

/* First row: card 01 + stats panel */
.dash-first-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 991px) {
    .dash-first-row,
    .dash-test-grid {
        grid-template-columns: 1fr;
    }
}
.dash-first-row .syn-b-card,
.dash-first-row .syn-b-card--black {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-bottom: none;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.dash-first-row .syn-b-card .syn-b-actions {
    margin-top: auto;
}

.dash-test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: var(--space-xl, 3rem);
}
.dash-test-grid .syn-b-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.dash-test-grid .syn-b-card .syn-b-actions {
    margin-top: auto;
}
.dash-test-grid .syn-b-card:nth-child(odd) {
    border-right: none;
}

.dash-card-creator {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.dash-card-divider {
    border: none;
    border-top: 3px solid #e5e7eb;
    width: 2.5rem;
    margin: 0 0 1.5rem;
    opacity: 1 !important;
}
.dash-card-footer-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.dash-card-assigned {
    font-size: 0.8125rem;
    color: var(--text-3, #9ca3af);
    white-space: nowrap;
}
.mtc-last-attempt {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-3, #9ca3af);
    margin-left: auto;
}
.mtc-last-attempt svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.dash-card-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.dash-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}
.dash-stat-item span {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-3, #9ca3af);
}
.dash-circle-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a59ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-d);
}
.dash-circle-num--orange {
    background: #ea580c;
}
.dash-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: var(--font-d);
    margin-bottom: 0.75rem;
}
.dash-score-pill--pass {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.dash-score-pill--fail {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.dash-circle-prog {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(var(--blue) calc(var(--p) * 1%), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.dash-circle-prog--pass {
    background: conic-gradient(#86c580 calc(var(--p) * 1%), #e5e7eb 0);
}
.dash-circle-prog--fail {
    background: conic-gradient(#fb7275 calc(var(--p) * 1%), #e5e7eb 0);
}
.dash-circle-prog::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
}
.dash-circle-prog span {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111;
}

/* Dashboard page — inline style replacements */
.dash-breadcrumb-sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

.dash-page-header {
    margin-bottom: 2.5rem;
    max-width: none;
}
.dash-page-header .syn-b-title {
    margin-bottom: 0.5rem;
}
.dash-page-header .syn-b-desc {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.dash-page-header .accent-line {
    margin-top: 0;
}

/* Header inner layout — title left, actions right */
.dash-page-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.dash-page-header__actions {
    align-self: flex-start;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.dash-page-header__meta {
    font-size: 0.8rem;
    color: #5f6368;
    line-height: 1.4;
}

/* Members table */
/* Account page — tab header */
.acc-tab-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}
.acc-tab-header .tests-filters {
    margin-bottom: 2rem;
}
/* Token top-up form */
.acc-topup-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Role change form inside table cell */
.acc-role-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Forms inside table action cells */
.acc-form-inline {
    margin: 0;
}
/* Invitation table */
.inv-email {
    font-weight: 500;
    font-size: 0.875rem;
}
.inv-expired-badge {
    margin-left: 0.4rem;
}
/* Invite modal */
.acc-invite-hidden {
    display: none !important;
}
.acc-invite-box {
    width: 420px;
}
.acc-invite-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin: 0 0 0.75rem;
}

/* ---- account/index — members table ---- */
.rtbl--account-members .mc--user,
.rtbl--account-members .mc--email {
    flex: 2 1 0;
    min-width: 160px;
}
.rtbl--account-members .mc--role,
.rtbl--account-members .mc--status {
    flex: 1 1 0;
    min-width: 80px;
}
.rtbl--account-members .mc--role-change {
    flex: 1.5 1 0;
    min-width: 120px;
}
.rtbl--account-members .mc--actions {
    flex: 0 0 73px;
    justify-content: flex-start;
}

/* highlight current user's row */
.rtbl__row--me {
    background: #f0f7ff;
}
.rtbl__row--me:hover {
    background: #e8f0fe;
}

/* ---- account/index — invitations table ---- */
.rtbl--account-inv .mc--email {
    flex: 2 1 0;
    min-width: 160px;
}
.rtbl--account-inv .mc--role {
    flex: 1 1 0;
    min-width: 80px;
}
.rtbl--account-inv .mc--sent {
    flex: 1 1 0;
    min-width: 90px;
}
.rtbl--account-inv .mc--expires {
    flex: 1.2 1 0;
    min-width: 110px;
}
.rtbl--account-inv .mc--actions {
    flex: 0 0 60px;
    justify-content: flex-end;
}

/* ---- member detail — assigned tests table ---- */
.rtbl--assign .mc--test {
    flex: 3 1 0;
    min-width: 150px;
}
.rtbl--assign .mc--status {
    flex: 1.5 1 0;
    min-width: 90px;
}
.rtbl--assign .mc--date {
    flex: 1.2 1 0;
    min-width: 90px;
}
.rtbl--assign .mc--actions {
    flex: 0 0 110px;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

/* ---- member detail — sessions table ---- */
.rtbl--sessions .mc--test {
    flex: 3 1 0;
    min-width: 150px;
}
.rtbl--sessions .mc--status {
    flex: 1.5 1 0;
    min-width: 90px;
}
.rtbl--sessions .mc--score {
    flex: 1.2 1 0;
    min-width: 80px;
}
.rtbl--sessions .mc--date {
    flex: 2 1 0;
    min-width: 130px;
}
.rtbl--sessions .mc--actions {
    flex: 0 0 70px;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

/* ---- dashboard owner activity table ---- */
.rtbl--activity .rtbl__col--name {
    flex: 3 1 0;
}
.rtbl--activity .rtbl__col--result {
    flex: 2 1 0;
    padding-right: 1rem;
    min-width: 120px;
}
.rtbl--activity .rtbl__col--verdict {
    flex: 0 1 0;
    min-width: 150px;
}
.rtbl--activity .rtbl__col--date {
    flex: 1.5 1 0;
    min-width: 130px;
}
.rtbl--activity .rtbl__col--action {
    flex: 0 0 70px;
}

/* History tables — align data cells with header separators */

.rtbl--history .rtbl__col--action {
    flex: 0 0 90px;
    display: flex;
}

.syn-member-name-cell {
    display: flex;
    align-items: left;
    gap: 0.75rem;
}

/* Member name link */
.syn-member-link {
    font-weight: 500;
    color: #202124;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 0.875rem;
}
.syn-member-link:hover {
    color: #2563eb;
}
.syn-member-link__sub {
    font-size: 0.7rem;
    color: #80868b;
}

/* Muted placeholder cell text (—, Owner label) */
.syn-cell-placeholder {
    color: #c4c7c5;
    font-size: 0.8rem;
}

/* Account page tabs */
.acc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8eaed;
    margin-bottom: 1rem;
}
.acc-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition:
        color 0.15s,
        border-color 0.15s;
}
.acc-tab:hover {
    color: #202124;
}
.acc-tab--active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}
.acc-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}
.acc-tab--active .acc-tab-count {
    background: #eff6ff;
    color: #2563eb;
}

/* Invitation table column widths */
.inv-head,
.inv-row {
    grid-template-columns: 3fr 1.2fr 1.2fr 1.5fr 1fr;
}

/* User avatar component */
.u-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--avatar-bg, #e8eaed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.u-avatar--xs {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
}
.u-avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}
.u-avatar--md {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}
.u-avatar--lg {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}
.u-avatar--xl {
    width: 200px;
    height: 200px;
    font-size: 6.5rem;
    border-radius: 0%;
}
.u-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .u-avatar--lg {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }
    .u-avatar--xl {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}
@media (max-width: 480px) {
    .u-avatar--lg {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    .u-avatar--xl {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }
}

/* Member detail page */
.member-header {
    display: flex;
    gap: 2.25rem;
}
.member-header__info h1 {
    margin-bottom: 0.25rem;
}
.member-header__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.member-header__meta p {
    margin: 0;
}
.member-header__badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.member-last-activity {
    font-size: 0.78rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Score pill in sessions table */
.score-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.score-pill--pass {
    background: #dcf1c6;
    color: #166534;
}
.score-pill--mid {
    background: #fef3c7;
    color: #92400e;
}
.score-pill--fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Select wrapper that matches input height (not --sm compact) */
.syn-select-wrap--field {
    width: 200px;
}
.syn-select-wrap--field select {
    width: 100%;
}

.stat-value-unit {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.4;
}

/* Stat cards — shadow redesign */
.dash-stats .stat-card {
    border: none;
    overflow: visible;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}
.dash-stats .stat-card .stat-accent {
    display: none;
}
.dash-stats .stat-card:nth-child(1) {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(37, 99, 235, 0.16);
}
.dash-stats .stat-card:nth-child(2) {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(22, 163, 74, 0.18);
}
.dash-stats .stat-card:nth-child(3) {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(234, 88, 12, 0.18);
}
.dash-stats .stat-card:hover {
    transform: translateY(-2px);
}
.dash-stats .stat-card:nth-child(1):hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(37, 99, 235, 0.24);
}
.dash-stats .stat-card:nth-child(2):hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(22, 163, 74, 0.26);
}
.dash-stats .stat-card:nth-child(3):hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(234, 88, 12, 0.26);
}
.dash-stats .stat-card:nth-child(4),
.dash-stats .stat-card:nth-child(5) {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(124, 58, 237, 0.16);
}
.dash-stats .stat-card:nth-child(4):hover,
.dash-stats .stat-card:nth-child(5):hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(124, 58, 237, 0.26);
}

.syn-b-badge--blue {
    background-color: #2563eb;
}
.syn-b-badge--orange {
    background-color: #ff884c;
}
.syn-b-badge--red {
    background-color: #fb7275;
}
.syn-b-badge--dark {
    background-color: #111;
}

.dash-card-divider--blue {
    border-top-color: #2563eb;
}
.dash-card-divider--green {
    border-top-color: #86c580;
}
.dash-card-divider--orange {
    border-top-color: #ff884c;
}

.dash-circle-prog[data-p="20"] {
    --p: 20;
}
.dash-circle-prog[data-p="70"] {
    --p: 70;
}

.dash-card-score {
    margin-left: 5px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
}

.dash-finished-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.text-yellow {
    color: var(--yellow);
}

/* ── Card black history panel ─────────────────────── */
.card-hist-panel {
    margin: 0 -3rem -3rem;
    padding: 1.25rem 2rem;
    background: #111;
    border-radius: 0 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.card-hist-panel__stats {
    display: flex;
    align-items: center;
    gap: 0;
}
.card-hist-panel__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-right: 1.25rem;
}
.card-hist-panel__sep {
    width: 1px;
    height: 2rem;
    background: #2a2a2a;
    margin-right: 1.25rem;
    flex-shrink: 0;
}
.card-hist-panel__val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.card-hist-panel__val--green {
    color: #4ade80;
}
.card-hist-panel__val--red {
    color: #f87171;
}
.card-hist-panel__lbl {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #555;
    text-transform: uppercase;
}
.card-hist-panel__btn {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.15s;
}
.card-hist-panel__btn:hover {
    opacity: 0.8;
    color: #111;
}

/* ── Black stats card (redesign) ─────────────────── */
.syn-b-card--black {
    background: #0f0f0f !important;
    border-bottom: none !important;
    display: flex;
    flex-direction: column;
}

/* accent lines */
.sbc-lines {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.sbc-line {
    display: block;
    height: 3px;
    border-radius: 2px;
    width: 2rem;
}
.sbc-line--blue {
    background: #4f8ef7;
}
.sbc-line--orange {
    background: #f97316;
}

/* title */
.sbc-title {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 0.6rem;
}
.sbc-sub {
    font-size: 0.875rem;
    color: #e5e7eb;
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* info grid */
.sbc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.sbc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.sbc-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111;
}
.sbc-item-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #e5e7eb;
    margin-bottom: 0.1rem;
    margin-top: 0.3rem;
}
.sbc-item-val {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}
.sbc-item-val--green {
    color: #4ade80;
}

/* bullets */
.sbc-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.sbc-bullet {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #e5e7eb;
    line-height: 1.4;
}
.sbc-bullet svg {
    flex-shrink: 0;
}
.sbc-check {
    flex-shrink: 0;
    stroke: #ffffff;
}

/* cta */
.sbc-footer {
    margin-top: auto;
}
.sbc-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid #7f7f7f;
    border-radius: 0;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.2s,
        color 0.2s;
}
.sbc-btn:hover {
    background: #fff;
    color: #0f0f0f;
}

/* ═══════════════════════════════════════
   RESULT PAGE  (pages/app/quiz/result)
═══════════════════════════════════════ */

/* Two-column wrapper */
.res-top-layout {
    display: flex;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Inset vertical separator */
.res-col-sep {
    width: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
    flex-shrink: 0;
}

/* Left column: result hero */
.res-hero-card {
    flex: 1.6;
    padding: 3rem;
    min-width: 0;
}

/* Override global syn-b-card-desc margin-bottom */
.res-hero-card .syn-b-card-desc {
    margin-bottom: 1rem;
}

/* Inline stats: Tačno / Delimično / Netačno */
.res-inline-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
}

.res-inline-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #374151;
}

.res-inline-item strong {
    font-weight: 800;
    color: #111;
}

.res-info-ico {
    flex-shrink: 0;
}

.res-info-ico--correct {
    color: #059669;
}

.res-info-ico--partial {
    color: #d97706;
}

.res-info-ico--incorrect {
    color: #dc2626;
}

/* Stats row: circles */
.res-stats-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2.75rem;
}

/* Poena circle: manji font za "5/24" */
.dash-circle-prog--score span {
    font-size: 0.72rem !important;
    font-weight: 800;
}

/* Footer buttons */
.res-hero-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.res-action-btn {
    min-width: 200px;
    text-align: center;
}

/* Right column: AI recs */
.res-recs-col {
    flex: 1;
    padding: 2.5rem 2rem;
    min-width: 0;
    border-left: 1px solid #f0f2f8;
}

/* AI skeleton loader */
.ai-recs-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-skeleton-group {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.ai-skeleton-line {
    height: 13px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.ai-skeleton-line--wide {
    width: 100%;
}
.ai-skeleton-line--medium {
    width: 70%;
}
.ai-skeleton-line--short {
    width: 45%;
}

.ai-recs-loading-text {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.ai-spin-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.3rem;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   TEST SHOW PAGE — tshow-*
   ============================================= */

/* Meta strip */
.tshow-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0.9rem 1.5rem;
    margin-bottom: 3rem;
}
.tshow-meta-strip--with-actions {
    justify-content: space-between;
}
.tshow-meta-strip__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.tshow-meta-strip__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.tshow-token-total {
    font-size: 0.75rem;
    color: var(--text-3, #9ca3af);
    font-weight: 400;
}
.tshow-token-bar {
    height: 3px;
    background: #f3f4f6;
    border-radius: 9999px;
    width: 80px;
    overflow: hidden;
    margin-top: 0.3rem;
}
.tshow-token-fill {
    height: 100%;
    width: var(--token-pct, 0%);
    background: #2563eb;
    border-radius: 9999px;
    transition: width 0.4s ease;
}
.tshow-meta-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.85rem;
    flex-shrink: 0;
}
.tshow-meta-sep {
    width: 1px;
    height: 28px;
    background: #e9ecf3;
    flex-shrink: 0;
}
.tshow-meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.tshow-meta-val {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111;
}
.tshow-meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tshow-meta-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}
.tshow-meta-icon--indigo {
    background: #eef2ff;
    color: #4f46e5;
}
.tshow-meta-icon--green {
    background: #dcf1c6;
    color: #059669;
}
.tshow-meta-icon--gray {
    background: #f3f4f6;
    color: #6b7280;
}
.tshow-meta-icon--purple {
    background: #faf5ff;
    color: #7c3aed;
}

@media (max-width: 767px) {
    .tshow-meta-strip {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    .tshow-meta-strip__info {
        flex-direction: column;
        align-items: stretch;
    }
    .tshow-meta-strip__actions {
        padding: 0.85rem 1.25rem;
        border-top: 1px solid #f1f3f4;
    }
    .tshow-meta-sep {
        display: none;
    }
    .tshow-meta-cell {
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid #f1f3f4;
        flex-shrink: 1;
    }
    .tshow-meta-cell:last-child {
        border-bottom: none;
    }
}

/* Reset gen-card margin when inside the two-col layout */
.tshow-right .gen-card {
    margin-top: 0;
}

/* Body layout */
.tshow-body {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 1.25rem;
    align-items: flex-start;
}
@media (max-width: 860px) {
    .tshow-body {
        grid-template-columns: 1fr;
    }
}
.tshow-left,
.tshow-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Generic card */
.tshow-card {
    padding: 1rem 1rem 0 0;
}
.tshow-card__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.tshow-card__head svg {
    color: #9ca3af;
    flex-shrink: 0;
}
.tshow-card--warn {
    background: #fffbeb;
    border-color: #fde68a;
}
.tshow-card--nodoc {
    background: #fafbff;
    border-color: #e9ecf3;
    border-style: dashed;
}

/* Thumbnail */
.tshow-thumb {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid #f0f2f8;
}

/* Doc link */
.tshow-doc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8faff;
    border: 1px solid #e0e7ff;
    text-decoration: none;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.tshow-doc-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.tshow-doc-icon {
    width: 40px;
    height: 40px;
    background: #efefff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tshow-doc-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* Start card */
.tshow-start-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

/* =============================================
   CREATE TEST — LOADING OVERLAY
   ============================================= */
.create-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 255, 0.96);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayIn 0.25s ease;
}
@keyframes overlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.create-loading-box {
    max-width: 460px;
    width: 100%;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow:
        0 8px 48px rgba(37, 99, 235, 0.1),
        0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}
.create-loading-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
}
.create-loading-icon svg {
    animation: spin 0.9s linear infinite;
}
.create-loading-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.35rem;
}
.create-loading-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* SHOW PAGE — generation card */
.gen-card {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}
.gen-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.gen-card__title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    margin: 0;
}
.gen-card__badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: #111;
    background: #dcf1c6;
    border-radius: 4px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
}
.gen-card__sub {
    font-size: 0.83rem;
    color: #6b7280;
    margin: 0 0 2rem;
    line-height: 1.55;
}
.gen-card__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.gen-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.gen-card__input {
    width: 80px;
    padding: 0.4rem 0.6rem;
    border: 0.0625rem solid #e8ecf4;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}
.gen-card__input:focus {
    border-color: #2563eb;
}
.gen-cost-pill {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    transition:
        background 0.2s,
        color 0.2s;
}
.gen-cost-pill--ok {
    background: #dcf1c6;
    color: #065f46;
}
.gen-cost-pill--err {
    background: #fef2f2;
    color: #991b1b;
}
.gen-cost-pill--neutral {
    background: #f3f4f6;
    color: #6b7280;
}
.gen-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition:
        background-color 0.2s,
        transform 0.1s;
    border: 1px solid #7f7f7f;
    cursor: pointer;
    border-radius: 0;
    gap: 0.8rem;
}
.gen-card__btn:hover {
    background: #1d4ed8;
}
.gen-card__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Skeleton inside gen-card */
.gen-loading-wrap {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8faff;
    border-radius: 0rem;
    border: 1px solid #e9ecf3;
}
.gen-loading-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.83rem;
    color: #4b5563;
    margin-bottom: 0.85rem;
}
.gen-loading-label svg {
    animation: spin 0.9s linear infinite;
    flex-shrink: 0;
}

/* AI recs title */
.res-recs-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-d, "Barlow Condensed", sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
}

blockquote.res-recs-main {
    border-left: 4px solid var(--blue, #2563eb);
    background: #f8faff;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.65;
}

blockquote.res-recs-main strong {
    color: #111;
}

.res-recs-section {
    margin-bottom: 1.1rem;
}

.res-recs-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #000000;
    margin-bottom: 0.6rem;
}

.res-recs-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.res-recs-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.res-recs-item--bad {
    background: #fff1f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.res-recs-item--bad svg {
    color: #ef4444;
    flex-shrink: 0;
}

.res-recs-item--good {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.res-recs-item--good svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* Answer review */
.res-answers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.res-answer-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #e5e7eb;
    overflow: hidden;
}

.res-answer-card--correct {
    border-left-color: #059669;
}
.res-answer-card--partial {
    border-left-color: #d97706;
}
.res-answer-card--incorrect {
    border-left-color: #dc2626;
}
.res-answer-card--skipped {
    border-left-color: #6b7280;
}

.res-answer-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: #fafafa;
}

.res-answer-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.res-answer-q {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
}

.res-badge--fail {
    background: #fee2e2;
    color: #111;
    padding: 0.22rem 0.55rem;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.res-badge--skip {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vb__ic {
    width: 11px;
    height: 11px;
    vertical-align: middle;
    margin-right: 3px;
}
.btn-arr {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    margin-left: 4px;
}
.btn-arr--l {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    margin-right: 4px;
    transform: scaleX(-1);
}

.res-answer-body {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
}

.res-answer-user {
    color: #6b7280;
    background: #f9fafb;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.res-answer-feedback {
    color: #374151;
}

.res-answer-guidance {
    background: #f0f9ff;
    border-left: 3px solid #0891b2;
    padding: 0.5rem 0.9rem;
    border-radius: 0 6px 6px 0;
    color: #0369a1;
    font-size: 0.83rem;
}

.res-answer-score {
    text-align: right;
    font-size: 0.78rem;

    color: #111;
}

.form-contents {
    display: contents;
}

/* Responsive */
@media (max-width: 900px) {
    .res-top-layout {
        flex-direction: column;
    }
    .res-col-sep {
        width: auto;
        height: 1px;
        margin: 0 2.5rem;
    }
    .res-recs-col {
        padding: 2rem 2.5rem;
    }
}

@media (max-width: 600px) {
    .res-hero-card,
    .res-recs-col {
        padding: 1.5rem;
    }
    .res-col-sep {
        margin: 0 1.5rem;
    }
    .res-hero-footer {
        flex-direction: column;
    }
    .res-action-btn {
        flex: none;
        width: 100%;
    }
}

/* ─── Dashboard horizontal row cards ─────────────────────────── */
.form-contents {
    display: contents;
}
.stat-ring-na {
    opacity: 0.3;
}

.dash-test-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: var(--space-xl, 3rem);
}

.dash-row-card {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: stretch;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    box-sizing: border-box;
    border-bottom: 1px dotted #e5e7eb;
}

/* Number + badge column */
.dash-row-card__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 70px;
    flex-shrink: 0;
}

.dash-row-card__num {
    font-size: 6rem;
    font-weight: 900;
    color: #f3f4f6;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* Title + meta + circles column */
.dash-row-card__center {
    flex: 1;
    min-width: 0;
}

.dash-row-card__title {
    font-size: 1.375rem;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-row-card__info-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.dash-row-card__info-row .dash-card-assigned {
    font-size: 0.8125rem;
    color: var(--text-3, #9ca3af);
    white-space: nowrap;
}

.dash-row-card .dash-card-creator {
    margin-bottom: 0.5rem;
}

.dash-row-card .dash-card-divider {
    margin-bottom: 1.25rem;
}

/* Smaller circles inside row card */
.dash-row-card .dash-circle-num,
.dash-row-card .dash-circle-prog {
    width: 38px;
    height: 38px;
}
.dash-row-card .dash-circle-prog::before {
    width: 30px;
    height: 30px;
}
.dash-row-card .dash-circle-prog span {
    font-size: 0.6rem;
}
.dash-row-card .dash-circle-num {
    font-size: 0.75rem;
}
.dash-row-card .dash-card-stats {
    gap: 1rem;
}

/* Done label + actions column */
.dash-row-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 130px;
}

.dash-row-card__done-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-3, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-row-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.dash-row-card .syn-k-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .dash-row-card {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .dash-row-card__right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .dash-row-card {
        padding: 1.25rem 1.5rem;
    }
    .dash-row-card__left {
        flex-direction: row;
        min-width: unset;
    }
    .dash-row-card__title {
        font-size: 1.125rem;
        white-space: normal;
    }
    .dash-row-card__right {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   TABLE CELL COMPONENTS  (reusable across all tables)
   ========================================================= */

/* Result: colored % + thin progress bar */
.tbl-result {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}
.tbl-result__top {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}
.tbl-result__pct {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}
.tbl-result__track {
    height: 5px;
    background: #f0f2f5;
    border-radius: 99px;
    overflow: hidden;
    width: 100%;
}
.tbl-result__fill {
    height: 100%;
    width: var(--fill, 0%);
    border-radius: 99px;
    transition: width 0.5s ease;
}
.tbl-result__fill--green {
    background: #22c55e;
}
.tbl-result__fill--yellow {
    background: #f59e0b;
}
.tbl-result__fill--red {
    background: #ef4444;
}
.tbl-result__fill--blue {
    background: #3b82f6;
}
.tbl-result__pct--green {
    color: #16a34a;
}
.tbl-result__pct--yellow {
    color: #b45309;
}
.tbl-result__pct--red {
    color: #dc2626;
}
.tbl-result__pct--blue {
    color: #2563eb;
}

/* Attempt number */
.tbl-attempt {
    white-space: nowrap;
}
.tbl-attempt__num {
    font-weight: 600;
    color: #111;
}
.tbl-attempt__lbl {
    color: #6b7280;
    font-weight: 400;
}

/* Verdict pills */
.tbl-verdict {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.tbl-verdict__pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 0.2rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.tbl-verdict__pill--ok {
    background: #f0fdf4;
    color: #16a34a;
}
.tbl-verdict__pill--partial {
    background: #fefce8;
    color: #854d0e;
}
.tbl-verdict__pill--bad {
    background: #fef2f2;
    color: #dc2626;
}

/* History table columns */
.rtbl__col--points {
    flex: 0 1 0;
    min-width: 120px;
    text-align: left;
}
.rtbl__col--percent {
    flex: 0 0 140px;
    text-align: left;
}
.rtbl__col--resumptions {
    flex: 0 0 120px;
    text-align: left;
}

.tbl-points {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.tbl-percent {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 0.3rem;
    display: inline-block;
    min-width: 45px;
    text-align: left;
}
.tbl-percent--good {
    background: #f0fdf4;
    color: #16a34a;
}
.tbl-percent--bad {
    background: #fef2f2;
    color: #dc2626;
}
.tbl-resumptions {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* (tbl-name and tbl-date defined in TABLE TOOLBAR section below) */

/* Action link */
.tbl-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}
.tbl-link:hover {
    color: #111;
}

/* Badge overlays on rows */
.tbl-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.tbl-badge--latest {
    background: #eff6ff;
    color: #2563eb;
}
.tbl-badge--best {
    background: #f0fdf4;
    color: #16a34a;
}

/* =========================================================
   HISTORY HERO  (dark stat card above history tables)
   ========================================================= */
.hist-hero {
    background: #111;
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    margin-bottom: 2rem;
    color: #fff;
}
.hist-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.hist-hero-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.hist-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    line-height: 1.1;
    color: #fff;
}
.hist-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.hist-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 1.5rem 0 0;
}
.hist-hero-stat:first-child {
    padding-left: 0;
}
.hist-hero-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hist-hero-stat-val--good {
    color: #4ade80;
}
.hist-hero-stat-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #666;
    text-transform: uppercase;
}
.hist-hero-stat-sep {
    width: 1px;
    height: 2.5rem;
    background: #2a2a2a;
    margin: 0 1.5rem 0 0;
    flex-shrink: 0;
}
.hist-hero-btn {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.hist-hero-btn:hover {
    opacity: 0.85;
}

/* History table extras */
.hist-row--latest .rtbl__cell {
    background: #fafafa;
}

/* =========================================================
   TABLE TOOLBAR  (bar above table-wrap)
   ========================================================= */
.tbl-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.tbl-toolbar__info {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-left: auto;
}

/* Dark "Filteri" button — sliders icon + count badge */
.tbl-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1e2130;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem 0.6rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.tbl-filters-btn:hover {
    background: #2a2f45;
}
.tbl-filters-btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tbl-filters-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1;
}

/* Column header icon + label layout */
.th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.th-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.65;
}

/* Pokušaj number column */
.tbl-num-col {
    width: 64px;
}
.tbl-num {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1d23;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Name cell with attempt subtitle */
.tbl-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.tbl-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1d23;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tbl-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

/* Date cell */
.tbl-date {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Action button in table rows — matches reference "Details" style */
.tbl-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border: 1px solid #111;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    color: #1a1d23;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    letter-spacing: 0.01em;
    transition:
        background 0.12s,
        border-color 0.12s,
        color 0.12s;
}
.tbl-action-btn:hover {
    background: #f5f6f8;
    border-color: #c8cdd6;
}

/* =========================================================
   RTBL RESPONSIVE  (card layout on mobile)
   ========================================================= */
@media (max-width: 700px) {
    /* hide header — labels not needed in card view */
    .rtbl__head {
        display: none;
    }

    /* row becomes a wrapped card */
    .rtbl__row {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 1rem 1.25rem;
        gap: 0.5rem 0;
    }

    /* name: takes most of first row */
    .rtbl__col--name {
        flex: 1 1 calc(100% - 90px);
        padding-right: 0.5rem;
        min-width: 0;
    }

    /* action button: top-right of first row */
    .rtbl__col--action {
        flex: 0 0 auto;
        align-self: center;
        justify-content: flex-end;
    }

    /* score bar: left half of second row */
    .rtbl__col--result {
        flex: 1 1 55%;
        min-width: 0;
        max-width: none;
        padding-right: 1rem;
    }

    /* date: right half of second row */
    .rtbl__col--date {
        flex: 1 1 45%;
        min-width: 0;
        padding-right: 0;
        text-align: right;
        font-size: 0.8rem;
        color: #6b7280;
        align-self: center;
    }

    /* verdict pills: full-width third row */
    .rtbl__col--verdict {
        flex: 0 0 100%;
        min-width: 0;
        padding-right: 0;
    }

    /* tighten result track */
    .tbl-result__track {
        height: 4px;
    }
}

/* ── Universal confirm dialog ── */
.syn-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.syn-confirm-overlay--in {
    opacity: 1;
}
.syn-confirm-box {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: scale(0.95);
    transition: transform 0.2s;
}
.syn-confirm-overlay--in .syn-confirm-box {
    transform: scale(1);
}
.syn-confirm-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.5rem;
}
.syn-confirm-msg {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.syn-confirm-btns {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
}
.syn-confirm-cancel {
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.syn-confirm-cancel:hover {
    background: #f9fafb;
}
.syn-confirm-ok {
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    border: none;
    background: #111;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.syn-confirm-ok:hover {
    background: #333;
}
.syn-confirm-ok--danger {
    background: #dc2626;
}
.syn-confirm-ok--danger:hover {
    background: #b91c1c;
}

/* ── Settings page ── */

/* Alert */
.sett-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.sett-alert--ok {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Section */
.sett-section {
    margin-bottom: 3rem;
}
.sett-section:last-child {
    border-bottom: none;
}
.sett-section--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 4rem 0;
    text-align: center;
}
.sett-section--danger {
    border-top: 1px solid #fee2e2;
    border-bottom: none;
}

/* Badge variants */
.syn-b-badge--gray {
    background-color: #6b7280;
}
.syn-b-badge--yellow {
    background-color: #f9f7a7;
    color: #111;
}

/* Status chips (light, modern) */
.home-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.725rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}
.home-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.home-status--published {
    background: #dcf1c6;
    color: #166534;
}
.home-status--published::before {
    background: #22c55e;
}
.home-status--draft {
    background: #f3f4f6;
    color: #6b7280;
}
.home-status--draft::before {
    background: #9ca3af;
}
.home-status--pending {
    background: #fff3e0;
    color: #c2410c;
}
.home-status--pending::before {
    background: #f97316;
}

/* Danger box (replaces sett-section--danger) */
.sett-danger-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff5f5;
    padding: 2rem 2.5rem;
    margin-top: 6rem;
}
.sett-danger-box__cat {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(22%) sepia(97%) saturate(2814%)
        hue-rotate(351deg) brightness(92%) contrast(96%);
}
.sett-danger-box__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.sett-danger-box__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626;
    margin: 0;
}
.sett-danger-box__sub {
    font-size: 0.8rem;
    color: #9b1c1c;
    margin: 0 0 0.75rem;
}
.sett-danger-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0rem;
    border: 1px solid #dc2626;
    background: transparent;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    align-self: flex-start;
}
.sett-danger-box__btn:hover {
    background: #dc2626;
    color: #fff;
}

/* Section headings */
.sett-stitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.sett-stitle--danger {
    color: #dc2626;
}
.sett-ssub {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

/* 2-column grid for fields */
.sett-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.sett-grid--single {
    grid-template-columns: 1fr;
    max-width: 480px;
}

/* Fields */
.sett-field {
    display: flex;
    flex-direction: column;
}
.sett-label {
    font-weight: 600; /* bolder than default 500 */
}
.sett-input--err {
    border-color: #ef4444;
}
.sett-err {
    font-size: 0.78rem;
    color: #ef4444;
    margin: 0.15rem 0 0;
}
.sett-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0.25rem 0 0;
}
.sett-readonly {
    height: 3.75rem;
    padding: 0 1rem;
    background: #f9fafb;
    border: 0.0625rem solid #e8ecf4;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Save button */
.sett-save-btn {
    min-width: 160px;
}

/* Avatar */
.sett-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.sett-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.sett-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.875rem;
    color: #fff;
    overflow: hidden;
}
.sett-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo variant — wide rectangle, shows full image */
.sett-avatar--logo {
    width: 180px;
    height: 90px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    padding: 10px;
}
.sett-avatar--logo img {
    object-fit: contain;
    background: transparent;
}
.sett-avatar__pencil {
    position: absolute;
    bottom: 9px;
    right: -7px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.sett-avatar__pencil:hover {
    background: #1d4ed8;
}
.sett-avatar__menu {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    border: 1px solid #f0f2f5;
    overflow: hidden;
    min-width: 158px;
    z-index: 20;
}
.sett-avatar__menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: background 0.1s;
}
.sett-avatar__menu-item:hover {
    background: #f9fafb;
}
.sett-avatar__menu-item--danger {
    color: #dc2626;
}
.sett-avatar__menu-item--danger:hover {
    background: #fef2f2;
}
.sett-file-input {
    display: none;
}
.sett-avatar__info {
    flex: 1;
}
.sett-avatar__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}
.sett-avatar__role-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.sett-avatar__role-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sett-avatar__hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.35rem 0 0;
}

.sett-avatar__initial--hidden {
    display: none;
}
.sett-save-row {
    display: none;
    gap: 0.625rem;
    align-items: center;
}
.sett-save-row--visible {
    display: flex;
}

/* Plan row */
.sett-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sett-plan__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.2rem;
}
.sett-plan__meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Danger zone */
.sett-btn--danger-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.sett-btn--danger-outline:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Delete account confirm modal */
.syn-del-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.syn-del-overlay--in {
    opacity: 1;
    pointer-events: auto;
}
.syn-del-box {
    background: #fff;
    padding: 2.25rem 2rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s;
}
.syn-del-overlay--in .syn-del-box {
    transform: scale(1);
}
.syn-del-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.syn-del-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.syn-del-icon-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
}
.syn-del-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.syn-del-email {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0 0 1.25rem;
}
.syn-del-warn {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef2f2;
    padding: 0.875rem 1rem;
    margin-bottom: 1.75rem;
    text-align: left;
    font-size: 0.8125rem;
    color: #991b1b;
    line-height: 1.5;
}
.syn-del-warn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.syn-del-btns {
    display: flex;
    gap: 0.75rem;
}
.syn-del-cancel {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.syn-del-cancel:hover {
    background: #f9fafb;
}
.syn-del-ok {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.syn-del-ok:hover {
    background: #b91c1c;
}

/* ─── Green assign popup (syn-asgn-*) ─── */
.syn-asgn-overlay {
    position: fixed;
    inset: 0;
    background: rgb(235 235 235 / 45%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.syn-asgn-overlay > div:first-child {
    margin-bottom: 0rem;
    position: relative;
    left: -9rem;
}

.syn-asgn-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.syn-asgn-overlay--in {
    opacity: 1;
    pointer-events: auto;
}
.syn-asgn-box {
    background: #fff;
    padding: 2.5rem 2.5rem;
    border-radius: 6px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    transform: scale(0.94);
    transition: transform 0.2s;
}
.syn-asgn-box--narrow {
    max-width: 480px;
}
.syn-asgn-overlay--in .syn-asgn-box {
    transform: scale(1);
}
.syn-asgn-icon-wrap {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
}

.syn-asgn-icon-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.syn-asgn-icon-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.syn-asgn-text-wrap {
    display: flex;
    flex-direction: column;
}

.syn-asgn-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.7;
    text-align: left;
}
.syn-asgn-sub {
    font-size: 0.875rem;
    margin: 0;
    text-align: left;
    line-height: 1.2;
}
.syn-asgn-list {
    text-align: left;
    margin: 0 0 2.25rem;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.syn-asgn-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #f3f4f6;
    background: #fff;
    transition: all 0.12s;
    user-select: none;
}
.syn-asgn-item input[type="checkbox"] {
    display: none;
}
.syn-asgn-item:hover {
    border-color: #cbcbcb;
    background: #fafafa;
}
.syn-asgn-item.is-selected {
    border-color: #cbcbcb;
    background: #fafafa;
}
.syn-asgn-item-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.syn-asgn-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}
.syn-asgn-item-email {
    font-size: 0.75rem;
}
.syn-asgn-check {
    color: #111;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.syn-asgn-empty {
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 1rem;
    text-align: center;
}
.syn-asgn-content {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 1.5rem 0;
}
.syn-asgn-content p {
    margin: 0 0 1rem 0;
}
.syn-asgn-content p:last-child {
    margin-bottom: 0;
}
.syn-asgn-btns {
    display: flex;
    gap: 0.75rem;
}
.syn-asgn-btns--mt {
    margin-top: 1.5rem;
}
.syn-asgn-cancel {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #111;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111;
    font-weight: 600;
    transition: background 0.15s;
}
.syn-asgn-cancel:hover {
    background: #f3f4f6;
}
.syn-asgn-ok {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid #111;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    transition: background 0.15s;
}

/* ─── Icon variants — two-tone glow (outer faint, inner medium) ─── */
.syn-asgn-icon-ring--info {
    background: #f2f5ff;
    color: #859ae5;
}
.syn-asgn-icon-inner--info {
    background: #e0e7ff;
}

.syn-asgn-icon-ring--warn {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}
.syn-asgn-icon-inner--warn {
    background: rgba(239, 68, 68, 0.2);
}

.syn-asgn-icon-ring--blue {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}
.syn-asgn-icon-inner--blue {
    background: rgba(79, 70, 229, 0.2);
}
.syn-asgn-overlay--blue .syn-asgn-item:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}
.syn-asgn-overlay--blue .syn-asgn-item.is-selected {
    border-color: #4f46e5;
    background: #eef2ff;
}
.syn-asgn-overlay--blue .syn-asgn-check {
    color: #4f46e5;
}
.syn-asgn-ok--blue {
    background: #111 !important;
    border-color: #111 !important;
}
.syn-asgn-ok--blue:hover {
    background: #333 !important;
}

.syn-asgn-ok:hover {
    background: #333;
}
.syn-asgn-ok:disabled {
    background: #555;
    cursor: not-allowed;
}

.syn-asgn-ok--danger {
    background: #111 !important;
    border-color: #111 !important;
    text-align: center;
}

.syn-asgn-ok--danger:hover {
    background: #333 !important;
}

/* ─── Assign icon button (green) ─── */
.tests-icon-btn--assign:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #16a34a;
}

/* ─── Modal mascot positioning ─── */
.syn-asgn-mascot-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.syn-asgn-mascot-wrap img {
    width: 140px;
    height: auto;
    display: block;
}

.syn-asgn-overlay--in .syn-asgn-mascot-wrap {
    opacity: 1;
}

/* ─── Members rtbl ─── */
.rtbl--members .mc--check {
    flex: 0 0 28px;
}
.rtbl--members .mc--check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.rtbl--members .mc--user {
    flex: 1;
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-left: 1rem;
}
.rtbl--members .mc--date {
    flex: 0 0 125px;
    padding-left: 0.5rem;
}
.rtbl--members .mc--activity {
    flex: 0 0 180px;
    padding-left: 0.5rem;
    justify-content: flex-start;
}
.rtbl--members .mc--status {
    flex: 0 0 110px;
    padding-left: 0.5rem;
}
.rtbl--members .mc--progress {
    flex: 0 0 180px;
    padding-left: 0.5rem;
}
.rtbl--members .mc--chips {
    flex: 0 0 auto;
    width: 210px;
    min-width: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    padding-left: 0.5rem;
}
.rtbl--members .mc--actions {
    flex: 0 0 220px;
    justify-content: flex-start;
}

/* Members avatar in rtbl */
.mc-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
}
.mc-avatar:hover {
    opacity: 0.85;
}
.mc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mc-uname {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-uname:hover {
    color: #4f46e5;
}
.mc-uname--email {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Progress in rtbl row */
.mc-prog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mc-prog__bar {
    width: 100px;
    height: 3px;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
}
.mc-prog__fill {
    height: 100%;
    background: #ff884c;
    width: var(--progress);
}
.mc-prog__txt {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

/* Boxed icon actions */
.mem-ico {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    text-decoration: none;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}
.mem-ico:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}
.mem-ico--del:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Last member row — no separator line */
.rtbl--members .rtbl__row--last::after {
    display: none !important;
}

/* Sort active state */
.rtbl__sort-trigger.sort-asc svg {
    transform: rotate(180deg);
    transition: transform 0.2s;
    color: #4f46e5;
}
.rtbl__sort-trigger.sort-desc svg {
    transform: rotate(0deg);
    transition: transform 0.2s;
    color: #4f46e5;
}
.rtbl__sort-trigger.sort-asc,
.rtbl__sort-trigger.sort-desc {
    color: #4f46e5;
    font-weight: 600;
}
.rtbl__sort-trigger svg {
    transition: transform 0.2s;
}

/* Members search pill — expands on open */
.mem-search-pill {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    width: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition:
        width 0.22s ease,
        border-color 0.15s;
    cursor: pointer;
}
.mem-search-pill:hover {
    border-color: #d1d5db;
}
.mem-search-pill.open {
    width: 200px;
    border-color: #4f46e5;
    cursor: text;
}
.mem-search-pill__trigger {
    position: absolute;
    inset: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.mem-search-pill.open .mem-search-pill__trigger {
    display: none;
}
.mem-search-pill__ico {
    position: absolute;
    left: 8px;
    color: #6b7280;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 1;
}
.mem-search-pill.open .mem-search-pill__ico {
    color: #4f46e5;
}
.mem-search-pill__input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.825rem;
    font-family: inherit;
    color: #111827;
    padding: 0 0.5rem 0 2rem;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s 0.1s;
}
.mem-search-pill.open .mem-search-pill__input {
    opacity: 1;
    pointer-events: auto;
}

/* Footer row */
.rtbl__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 1rem;
    border-top: 1px solid #e8ecf4;
    gap: 1rem;
    margin-top: 1rem;
}
.rtbl__foot-bulk {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* Footer selects — syn-input style */
.rtbl__foot-bulk select {
    appearance: none;
    -webkit-appearance: none;
    height: 50px;
    padding: 0 2.2rem 0 1rem;
    border: 0.0625rem solid #e8ecf4;
    border-radius: 4px;
    font-size: 0.825rem;
    color: #111;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}
.rtbl__foot-bulk select:hover {
    border-color: #b0b9d0;
}
.rtbl__foot-bulk select:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Members checkboxes — custom, border matches syn-input */
.rtbl--members input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 0.0625rem solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition:
        border-color 0.15s,
        background 0.15s;
    flex-shrink: 0;
}
.rtbl--members input[type="checkbox"]:hover {
    border-color: #4f46e5;
}
.rtbl--members input[type="checkbox"]:checked {
    border-color: #4f46e5;
}
.rtbl--members input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: 2px solid #4f47e5;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.rtbl__foot-pag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.rtbl__foot-pag__btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
    padding: 0;
    transition:
        background 0.15s,
        color 0.15s;
}
.rtbl__foot-pag__btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: #374151;
}
.rtbl__foot-pag__btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.rtbl__foot-pag__info {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    padding: 0 0.2rem;
    min-width: 40px;
    text-align: center;
}

/* Empty state */
.sett-empty__title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}
.sett-empty__sub {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    max-width: 280px;
}

/* Buttons */
.sett-btn--danger {
    background: #fff !important;
    color: #dc2626 !important;
    border: 1.5px solid #fca5a5 !important;
}
.sett-btn--danger:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}

/* Toggle switches */
.sett-toggles {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.75rem;
}
.sett-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}
.sett-toggle:last-child {
    border-bottom: none;
}
.sett-toggle__text {
    flex: 1;
}
.sett-toggle__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.15rem;
}
.sett-toggle__sub {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
}
.sett-toggle__input {
    display: none;
}
.sett-toggle__switch {
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 99px;
    position: relative;
    transition: background 0.2s;
}
.sett-toggle__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: left 0.2s;
}
.sett-toggle__input:checked ~ .sett-toggle__switch {
    background: #111;
}
.sett-toggle__input:checked ~ .sett-toggle__switch::after {
    left: 23px;
}

@media (max-width: 600px) {
    .sett-grid {
        grid-template-columns: 1fr;
    }

    /* Avatar popup — na mobilnom fiksiran kao action sheet */
    .sett-avatar__menu {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 340px;
        border-radius: 14px;
        z-index: 100;
    }
    .sett-avatar__menu-item {
        padding: 0.875rem 1.125rem;
        font-size: 0.9375rem;
    }
}

/* sub-text line inside rtbl name cells (e.g. user name under test title) */
.rtbl__cell-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

/* =============================================================
   MEMBERS PAGE — /app/members
   ============================================================= */
.mem-invite-btn svg {
    margin-right: 0.4rem;
}
.mem-assign-form-hidden {
    display: none;
}

/* Filter button variant inside toolbar */
.tests-icon-btn--filter {
    width: auto;
    padding: 0 0.75rem;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

/* Inline-text block inside user cell */
.mc-user-info {
    min-width: 0;
}

/* Invitations table — user column */
.rtbl--invitations .mc--inv-user {
    flex: 2;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* Flexible spacer column */
.mc--spacer {
    flex: 1;
}

/* Invite link column */
.mc--inv-link {
    flex: 1;
    min-width: 0;
}
.inv-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    background: #f5f3ff;
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.inv-copy-btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
}
.inv-copy-btn--copied {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

/* Toolbar (search + filter above table) */
.mem-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

/* ─── Members responsive ─── */
@media (max-width: 900px) {
    .rtbl--members .mc--progress {
        display: none;
    }
    .rtbl--members .mc--date {
        flex: 0 0 100px;
    }
    .rtbl--members .mc--status {
        flex: 0 0 90px;
    }
}

/* ─── Responsive: 1400px to 1140px container + reduce row gaps ─── */
@media (max-width: 1400px) {
    .rtbl--members .rtbl__row {
        padding: 1.5rem 1rem;
        gap: 0.8rem;
    }
}

/* ─── Responsive: 1139px to 781px - Card grid layout (2 columns) ─── */
@media (max-width: 1139px) and (min-width: 781px) {
    .rtbl--members {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        background: transparent;
        box-shadow: none;
        width: 100%;
    }
    .rtbl--members .rtbl__head {
        display: none;
    }
    .rtbl--members .rtbl__row {
        padding: 1.25rem;
        gap: 0.8rem;
        position: relative;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        width: 100%;
        min-width: 0;
    }
    .rtbl--members .rtbl__row:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    .rtbl--members .rtbl__row--last::after {
        display: none !important;
    }
    .rtbl--members .mc--check {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        left: auto;
    }
    .rtbl--members .mc--user {
        flex: 0 0 auto;
        padding-left: 0;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.7rem;
    }
    .rtbl--members .mc--date,
    .rtbl--members .mc--status,
    .rtbl--members .mc--progress {
        flex: 0 0 auto;
        padding-left: 0 !important;
        font-size: 0.85rem;
    }
    .rtbl--members .mc--date::before,
    .rtbl--members .mc--status::before,
    .rtbl--members .mc--progress::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 0.25rem;
    }
    .rtbl--members .mc--chips {
        flex: 0 0 auto;
        padding-left: 0 !important;
        gap: 0.5rem;
        display: flex;
        flex-wrap: wrap;
    }
    .rtbl--members .mc--actions {
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-left: 0 !important;
        display: flex;
    }
    .rtbl--members .rtbl__foot {
        grid-column: 1 / -1;
    }
}

/* ─── Responsive: 780px and below - Card layout (1 column) ─── */
@media (max-width: 780px) {
    .rtbl--members {
        display: block;
        background: transparent;
        box-shadow: none;
    }
    .rtbl--members .rtbl__head {
        display: none;
    }
    .rtbl--members .rtbl__row {
        flex-wrap: wrap;
        padding: 1.25rem;
        gap: 1rem;
        position: relative;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
    .rtbl--members .rtbl__row:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    .rtbl--members .rtbl__row:last-child {
        margin-bottom: 0;
    }
    .rtbl--members .rtbl__row--last::after {
        display: none !important;
    }
    .rtbl--members .mc--check {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        left: auto;
    }
    .rtbl--members .mc--user {
        flex: 1 1 100%;
        padding-left: 0;
        min-width: 0;
        margin-bottom: 0.5rem;
    }
    .rtbl--members .mc--date,
    .rtbl--members .mc--status,
    .rtbl--members .mc--progress {
        flex: 1 1 100%;
        padding-left: 0 !important;
        font-size: 0.85rem;
    }
    .rtbl--members .mc--date::before,
    .rtbl--members .mc--status::before,
    .rtbl--members .mc--progress::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 0.25rem;
    }
    .rtbl--members .mc--chips {
        flex: 1 1 100%;
        padding-left: 0 !important;
        gap: 0.5rem;
    }
    .rtbl--members .mc--actions {
        flex: 1 1 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        padding-left: 0 !important;
    }
}

.mem-toolbar__search {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    color: #6b7280;
}
.mem-toolbar__search:hover {
    background: #f9fafb;
    color: #374151;
}

/* Table container */
.mem-tbl {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Header */
.mem-tbl__head {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    border-bottom: 2px solid #f3f4f6;
    background: #fafafa;
    gap: 0.75rem;
}

/* Row */
.mem-tbl__row {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    gap: 0.75rem;
    transition: background 0.1s;
}
.mem-tbl__row:last-child {
    border-bottom: none;
}
.mem-tbl__row:hover {
    background: #fafafa;
}

/* Footer */
.mem-tbl__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    border-top: 2px solid #f3f4f6;
    background: #fafafa;
    gap: 0.75rem;
}

/* Checkbox cell */
.mem-tbl__check {
    width: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.mem-tbl__check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #4f46e5;
}

/* Sort button */
.mem-tbl__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}
.mem-tbl__sort:hover {
    color: #4f46e5;
}
.mem-tbl__sort svg {
    opacity: 0.6;
}
.mem-tbl__hlabel {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

/* Column widths (shared by head + row) */
.mem-tbl__col-user {
    flex: 0 0 210px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.mem-tbl__col-date {
    flex: 0 0 115px;
    font-size: 0.85rem;
    color: #374151;
}
.mem-tbl__col-stat {
    flex: 0 0 110px;
}
.mem-tbl__col-prog {
    flex: 0 0 145px;
}
.mem-tbl__col-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    min-width: 0;
}
.mem-tbl__col-acts {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    border-left: 1px solid #f3f4f6;
    padding-left: 1rem;
}

/* Avatar */
.mem-tbl__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
}
.mem-tbl__avatar:hover {
    opacity: 0.85;
}
.mem-tbl__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name */
.mem-tbl__uname {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mem-tbl__uname:hover {
    color: #4f46e5;
}
.mem-tbl__uname--email {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Progress */
.mem-tbl__prog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mem-tbl__prog-bar {
    width: 60px;
    height: 3px;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
}
.mem-tbl__prog-fill {
    height: 100%;
    background: #4f46e5;
    width: var(--progress);
}
.mem-tbl__prog-txt {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 600;
    white-space: nowrap;
}

/* Icon action buttons */
.mem-tbl__ico {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    color: #6b7280;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.15s;
}
.mem-tbl__ico:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}
.mem-tbl__ico--del:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Footer controls */
.mem-tbl__bulk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mem-tbl__bulk select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    height: 30px;
}
.mem-tbl__pag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.mem-tbl__pag-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    color: #6b7280;
}
.mem-tbl__pag-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.mem-tbl__pag-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.mem-tbl__pag-info {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0 0.4rem;
}

/* Chips (used in both list and table) */
.mem-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}
.mem-chip--finished {
    background: #dcfce7;
    color: #166534;
}
.mem-chip--started {
    background: #fef3c7;
    color: #92400e;
}
.mem-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.mem-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 0.3rem;
}
.mem-chip-remove:hover {
    opacity: 1;
}
.mem-chip-more {
    font-size: 0.875rem;
    color: #111;
    white-space: nowrap;
}
.mem-chip-form {
    display: inline;
}

/* =========================================================
   MEMBER DETAIL PAGE — RESPONSIVE
   ========================================================= */

/* Stats grid: 5 → 3 columns at 991px */
@media (max-width: 991px) {
    .dash-stats.grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Stats grid: 3 → 2 columns + member header stacks at 640px; assign/sessions card layout */
@media (max-width: 640px) {
    .dash-stats.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .member-header__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .rtbl--assign .rtbl__head,
    .rtbl--sessions .rtbl__head {
        display: none;
    }
    .rtbl--assign .rtbl__row,
    .rtbl--sessions .rtbl__row {
        flex-wrap: wrap;
        padding: 1rem 1.25rem;
        gap: 0.5rem 1rem;
        align-items: center;
    }
    /* Test name: full width, first row */
    .rtbl--assign .mc--test,
    .rtbl--sessions .mc--test {
        flex: 1 1 calc(100% - 50px);
        font-weight: 600;
        min-width: 0;
    }
    /* Action: top-right corner */
    .rtbl--assign .mc--actions,
    .rtbl--sessions .mc--actions {
        flex: 0 0 auto;
        justify-content: flex-end;
        padding-right: 0;
        align-self: center;
    }
    /* Status + score/dates wrap beneath */
    .rtbl--assign .mc--status,
    .rtbl--sessions .mc--status {
        flex: 0 0 auto;
        min-width: 80px;
    }
    .rtbl--assign .mc--date,
    .rtbl--sessions .mc--score,
    .rtbl--sessions .mc--date {
        flex: 1 1 auto;
        font-size: 0.82rem;
    }
    .rtbl--assign .mc--date::before {
        content: attr(data-label) ": ";
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #9ca3af;
        margin-right: 0.2rem;
    }
}

/* =========================================================
   DASHBOARD SIDEBAR LAYOUT
   ========================================================= */
.dash-layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 2rem;
    align-items: start;
}
.dash-main {
    min-width: 0;
}

/* ── Sidebar card ── */
.dash-sidebar__card {
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
}
.dash-sidebar__title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}
.dash-sidebar__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.dash-sidebar__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-sidebar__icon--blue {
    background: #eff6ff;
    color: #2563eb;
}
.dash-sidebar__icon--indigo {
    background: #eef2ff;
    color: #4f46e5;
}
.dash-sidebar__icon--green {
    background: #f0fdf4;
    color: #16a34a;
}
.dash-sidebar__icon--gray {
    background: #f9fafb;
    color: #6b7280;
}
.dash-sidebar__icon--purple {
    background: #faf5ff;
    color: #7c3aed;
}
.dash-sidebar__info {
    min-width: 0;
}
.dash-sidebar__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}
.dash-sidebar__val {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-sidebar__sep {
    height: 1px;
    background: #f3f4f6;
    margin: 0.1rem 0;
}
.dash-sidebar__foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.dash-sidebar__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}
.dash-sidebar__link:hover {
    color: #4338ca;
}

/* Responsive: sidebar drops below main at 1024px */
@media (max-width: 1024px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }
    .dash-sidebar__card {
        position: static;
    }
}

/* =========================================================
   DASHBOARD TABLE VARIANTS
   ========================================================= */

/* Section actions — bottom-right of syn-section */
.syn-section-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Recent tests table */
.rtbl--dash-tests .mc--user {
    flex: 3 1 0;
    min-width: 160px;
    display: flex;
    align-items: center;
}
.rtbl--dash-tests .mc--status {
    flex: 0 0 110px;
}
.rtbl--dash-tests .mc--num {
    flex: 0 0 90px;
}
.rtbl--dash-tests .mc--date {
    flex: 0 0 110px;
}
.rtbl--dash-tests .mc--actions {
    flex: 0 0 90px;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

/* Team table */
.rtbl--dash-team .mc--user {
    flex: 2 1 0;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.rtbl--dash-team .mc--progress {
    flex: 1 1 0;
    min-width: 140px;
}
.rtbl--team-stats .mc--actions,
.rtbl--dash-team .mc--actions {
    flex: 0 0 60px;
}
.rtbl--dash-team .mc--actions {
    justify-content: flex-end;
    padding-right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   OWNER DASHBOARD — nove komponente
═══════════════════════════════════════════════════════ */

/* ── KPI: 4. kartica — krug --────────────────────────── */
.stat-card__circle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.stat-card .dash-circle-prog {
    width: 72px;
    height: 72px;
}
.stat-card .dash-circle-prog::before {
    width: 58px;
    height: 58px;
}
.stat-card .dash-circle-prog span {
    font-size: 0.8125rem;
    font-weight: 700;
}
.stat-card .dash-circle-prog span sup {
    font-size: 0.5625rem;
}

/* ── Komandni centar ─────────────────────────────────── */
.dash-cmd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.125rem 1.75rem;
    margin-bottom: 1.5rem;
}
.dash-cmd-bar__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.dash-cmd-meta {
    padding: 0.25rem 1.25rem;
}
.dash-cmd-meta:first-child {
    padding-left: 0;
}
.dash-cmd-sep {
    width: 1px;
    height: 2rem;
    background: #e9ecf3;
    flex-shrink: 0;
}
.dash-cmd-token-total {
    font-size: 0.75rem;
    color: var(--text-3, #9ca3af);
    font-weight: 400;
}
.dash-cmd-token-bar {
    height: 3px;
    background: #f3f4f6;
    border-radius: 9999px;
    width: 120px;
    overflow: hidden;
    margin-top: 0.3rem;
}
.dash-cmd-token-fill {
    height: 100%;
    width: var(--token-pct, 0%);
    background: #2563eb;
    border-radius: 9999px;
    transition: width 0.6s ease;
}
.dash-cmd-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Grafikon ────────────────────────────────────────── */
.dash-chart-card {
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.dash-chart-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.dash-chart-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 0.125rem;
}
.dash-chart-card__sub {
    font-size: 0.75rem;
    color: var(--text-3, #9ca3af);
}
.dash-chart-canvas-wrap {
    position: relative;
    height: 200px;
}
.dash-chart-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ── Split layout ────────────────────────────────────── */
.dash-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    align-items: start;
}
.dash-split__main,
.dash-split__side {
    min-width: 0;
}
.dash-split__more-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.dash-split__more-link:hover {
    text-decoration: underline;
}

/* ── Activity feed (desna kolona) ────────────────────── */
.dash-feed__item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.dash-feed__item:last-child {
    border-bottom: none;
}
.dash-feed__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--avatar-bg, #6366f1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-feed__body {
    flex: 1;
    min-width: 0;
}
.dash-feed__text {
    font-size: 0.8125rem;
    color: var(--text-primary, #111827);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-feed__text strong {
    font-weight: 600;
}
.dash-feed__text em {
    font-style: normal;
    color: var(--text-secondary, #6b7280);
}
.dash-feed__meta {
    font-size: 0.6875rem;
    color: var(--text-3, #9ca3af);
    margin-top: 0.1875rem;
}
.dash-feed__score {
    font-weight: 700;
    font-size: 0.75rem;
}
.dash-feed__score--green {
    color: #16a34a;
}
.dash-feed__score--orange {
    color: #d97706;
}
.dash-feed__score--red {
    color: #dc2626;
}
.dash-feed__link {
    color: var(--text-3, #9ca3af);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    text-decoration: none;
}
.dash-feed__link:hover {
    color: #2563eb;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 991px) {
    .dash-split {
        grid-template-columns: 1fr;
    }
    .dash-cmd-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .dash-cmd-bar__actions {
        width: 100%;
    }
}

/* Empty-state CTA button */
.certs-empty-btn {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================
   Cropper Modal — .syn-cropper-*
   ========================================================== */

.syn-cropper-box {
    width: min(90vw, 640px);
}

.syn-cropper-canvas-wrap {
    margin: 1.25rem 0 2.25rem;
    max-height: 420px;
    overflow: hidden;
    background: #f3f4f6;
    line-height: 0;
}

.syn-cropper-canvas-wrap img {
    display: block;
    max-width: 100%;
}

.syn-cropper-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}
.syn-cropper-error {
    margin: 0.75rem 0 0;
    color: #dc2626;
    font-size: 0.8125rem;
    min-height: 1.25rem;
}

/* Loading spinner on generate button */
.certs-spin {
    animation: certsSpin 0.7s linear infinite;
}
@keyframes certsSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================
   Certificate Card Layout — Tabs & Card Grid (CERTIFICATE ONLY)
   ========================================================== */

/* Certificate Tab content */
.syn-b-tab-content {
    display: none;
}

.syn-b-tab-content--active {
    display: block;
}

/* Certificate Grid - 4 columns */
.syn-b-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
}

@media (max-width: 1400px) {
    .syn-b-grid,
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1024px) {
    .syn-b-grid,
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .syn-b-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* Certificate Card specific styles */
.syn-b-grid .syn-b-card {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border: none;
    transition: box-shadow 0.2s ease;
    border-bottom: none;
}

.syn-b-grid .syn-b-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Certificate Card top: status + time */
.syn-b-grid .syn-b-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.syn-b-grid .syn-b-badge--green {
    background-color: #dcf1c6;
    color: #2d6a1f;
}

.syn-b-grid .syn-b-badge--yellow {
    background-color: #f9f7a7;
    color: #111;
}

.syn-b-grid .syn-b-badge--red {
    background-color: #dc2626;
}

.syn-b-grid .syn-b-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.syn-b-grid .syn-b-time svg {
    opacity: 0.6;
}

/* Certificate Card title */
.syn-b-grid .syn-b-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Certificate Card description */
.syn-b-grid .syn-b-card-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    flex-grow: 1;
}

.syn-b-grid .syn-b-card-desc p {
    margin: 0;
}

/* Certificate Progress section */
.syn-b-grid .syn-b-card-progress {
    margin-bottom: 0.75rem;
}

.syn-b-grid .syn-b-progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.25rem;
    display: block;
}

.syn-b-grid .syn-b-progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 0;
}

.syn-b-grid .syn-b-card--green .syn-b-progress-bar {
    background: #22c55e;
}

.syn-b-grid .syn-b-card--yellow .syn-b-progress-bar {
    background: #eab308;
}

.syn-b-grid .syn-b-card--red .syn-b-progress-bar {
    background: #ef4444;
}

/* Certificate Card meta */
.syn-b-grid .syn-b-card-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Certificate Actions */
.syn-b-grid .syn-b-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.syn-b-grid .syn-b-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.syn-b-grid .syn-b-action-icon:hover {
    color: #111;
}

.syn-b-grid .syn-b-action-icon svg {
    width: 16px;
    height: 16px;
}

.syn-b-grid .syn-b-action-icon--delete:hover {
    color: #dc2626;
}

/* =========================================================
   ███ SECTION 5: CARDS & TABLES
   ─────────────────────────────────────────────────────────
   cert-grid, cert-card, rtbl, syn-b-grid, dash cards
   ========================================================= */

/* Certificate Grid - 4 columns responsive */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Certificate Card - 369x369px */
.cert-card {
    position: relative;
    width: 100%;
    height: 450px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* KLJUČNO 1: Gura elemente ka vrhu i dnu */
    border-radius: 0;
    border: none;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.cert-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Account name at top */
.cert-card__account {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0.3rem;
}

/* Title */
.cert-card__title {
    font-size: clamp(1.25rem, 2.5vw, 1.375rem);
    font-weight: 900;
    font-weight: 900;
    color: #111;
    margin: 0 0 0.75rem 0;
    line-height: 1.1;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge + Date row */
.cert-card__badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-card__badge-row .syn-b-badge {
    white-space: nowrap;
}

.cert-card__badge-row .syn-b-badge--green {
    background-color: #dcf1c6;
    color: #2d6a1f;
}

.cert-card__date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.cert-card__date svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* Description */
.cert-card__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    /* OBRISANO: flex-grow: 1; */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-card__desc p {
    margin: 0;
}

/* Progress bar */
.cert-card__progress {
    margin-bottom: 0.75rem;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
}

.cert-card__progress-bg {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 0;
    overflow: hidden;
}

.cert-card__progress-fill {
    height: 100%;
    width: var(--fill, 0%);
    transition: width 0.3s ease;
}

.cert-card--green .cert-card__progress-fill {
    background: #22c55e;
}

.cert-card--yellow .cert-card__progress-fill {
    background: #eab308;
}

.cert-card--red .cert-card__progress-fill {
    background: #ef4444;
}

.cert-card--orange .cert-card__progress-fill {
    background: #fc5800;
}

/* Course card action button */
.mc-course-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

/* Meta row - Creator + Assigned date */
.cert-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #111;
    font-weight: 600;
}

/* Action row - Badge and date on left, icons on right */
.cert-card__action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.cert-card__badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Icons container - right aligned */
.cert-card__icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

/* Icon styling - mem-ico */
.mem-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f9fafb;
    border: none;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.mem-ico:hover {
    background: #f3f4f6;
    color: #111;
}

.mem-ico svg {
    width: 16px;
    height: 16px;
}

/* Delete icon variant */
.mem-ico--del:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cert-card__top {
    flex: 1 1 auto; /* Uzima sav raspoloživ prostor gore */
    display: flex;
    flex-direction: column;
}

.cert-card__bottom {
    flex: 0 0 auto; /* Ne menja visinu, ostaje na dnu */
    margin-top: 1rem; /* Razmak između teksta i progress bar-a */
}

/* Obavezno obriši flex-grow sa opisa da ne pravi problem unutar gornjeg bloka */
.cert-card__desc {
    margin-bottom: 0;
}

/* Body section — all content after title (badge, desc, actions) */
.cert-card__body {
    flex: 0 0 auto;
}

/* Dashboard alert card variant */
.dash-alert-card {
    height: 320px;
    min-width: 360px;
    justify-content: flex-start;
}

.dash-alert-card .cert-card__title {
    text-transform: none;
    letter-spacing: normal;
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    margin-bottom: 5px;
}

.dash-alert-card .cert-card__account {
    text-transform: none;
    letter-spacing: normal;
}

/* Feed card type label — top-right corner badge */
.feed-card-type {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: #f9f7a7;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

/* Feed card badge positioning — "NOVO" label on left, above container */
.feed-card-badge-pos {
    position: absolute;
    top: -6px;
    left: 2rem;
    pointer-events: none;
    font-size: 0.5rem;
}

/* Dashboard alert grid — auto-fill so cards stay at min 360px */
.dash-alert-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* Badge colour modifiers inside cert-card__badge-row */
.cert-card__badge-row .syn-b-badge--danger {
    background-color: #fb7275;
}
.cert-card__badge-row .syn-b-badge--warning {
    background-color: #f59e0b;
}
.cert-card__badge-row .syn-b-badge--pass-green {
    background-color: #dcf1c6;
}

/* Sent-state for reminder icon */
.mem-ico--sent {
    pointer-events: none;
    color: #16a34a;
}

/* Narrow progress track */
.tbl-result__track--sm {
    max-width: 100px;
}

/* Empty-state icon centering */
.no-results__icon {
    display: block;
    margin: 0 auto 0.5rem;
}

/* Button top margin utility */
.syn-k-btn--mt {
    margin-top: 0.75rem;
}

/* Full-width background band */
.dash-band {
    width: 100%;
    background: #fafafa;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

/* =========================================================
   DASH PROGRESS — progress bar with label above (pass rate cards)
   ========================================================= */
.dash-progress {
    margin-bottom: 0.75rem;
}

.dash-progress__label {
    text-align: right;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 0.35rem;
}

.dash-progress__bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 0;
    overflow: hidden;
}

.dash-progress__fill {
    height: 100%;
    width: var(--fill, 0%);
    transition: width 0.5s ease;
}

.dash-progress--green .dash-progress__fill {
    background: #86c580;
}
.dash-progress--yellow .dash-progress__fill {
    background: #eab308;
}
.dash-progress--red .dash-progress__fill {
    background: #ef4444;
}

/* Desc + date on same row */
.dash-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* =========================================================
   AUTH LAYOUT  (auth.blade.php + guest.blade.php)
   .auth-layout → 2-col grid: left=form, right=dark panel
   ========================================================= */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Left column ── */
.auth-left {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2.5rem 3.5rem 1.5rem;
    background: #fff;
}
.auth-header {
    margin-bottom: 2.5rem;
}
.auth-logo-text {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.12em;
    color: #111;
    text-decoration: none;
}
.auth-logo-text:hover {
    color: #111;
}
.auth-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-form-wrap {
    width: 100%;
    max-width: 600px;
}
.auth-foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    flex-wrap: wrap;
}
.auth-foot a {
    color: #9ca3af;
    text-decoration: none;
}
.auth-foot a:hover {
    text-decoration: underline;
}

/* ── Right column (dark panel) ── */
.auth-right {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 4rem;
}
.auth-quote {
    max-width: 420px;
}
.auth-quote blockquote {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    font-style: normal;
}
.auth-quote p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.auth-quote cite {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
    font-style: normal;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-right {
        display: none;
    }
    .auth-left {
        padding: 2rem 1.75rem 1.5rem;
    }
}

/* ============================================================
   FLASH PORUKE (my-tests + other pages)
   ============================================================ */
.syn-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}
.syn-flash--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.syn-flash--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.syn-flash svg {
    flex-shrink: 0;
}

/* ── Feed Summary Cards ──────────────────────────────── */
.feed-summary-card {
    min-height: 200px;
}
.sbc-grid--1col {
    grid-template-columns: 1fr;
}

/* ── Feed Summary Card Variants ──────────────────────– */
.feed-sbc-lines {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.feed-sbc-line {
    display: block;
    height: 3px;
    border-radius: 2px;
    width: 2rem;
}
.feed-sbc-line--blue {
    background: #4f8ef7;
}
.feed-sbc-line--orange {
    background: #f97316;
}

.feed-sbc-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 0.5rem;
}

.feed-sbc-sub {
    font-size: 0.75rem;
    color: #e5e7eb;
    margin: 0 0 1.75rem;
    line-height: 1rem;
}

.feed-sbc-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid #7f7f7f;
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.2s,
        color 0.2s;
}
.feed-sbc-btn:hover {
    background: #fff;
    color: #0f0f0f;
}

.dark-link {
    color: inherit;
    text-decoration: none;
    position: relative;
}
.dark-link:hover {
    color: inherit;
}
.dark-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s;
}
.dark-link:hover::after {
    transform: scaleX(1);
}

.cert-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
}

.cert-card__time {
    font-size: 0.75rem;
    color: #111;
}

/* =========================================================
   COURSE LEARN PAGE — stepper
   ========================================================= */
.lp-progress {
    margin-bottom: 2rem;
}
.lp-progress__track {
    background: #f1f5f9;
    border-radius: 99px;
    height: 8px;
    position: relative;
    overflow: visible;
    margin-bottom: 0.4rem;
    margin-right: 55px;
}
.lp-progress__fill {
    background: #fc5800;
    border-radius: 99px;
    height: 8px;
    width: var(--lp-progress, 0%);
    transition: width 0.4s;
    position: relative;
}
.lp-progress__cat {
    position: absolute;
    right: -10px;
    top: -17px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    z-index: 10;
}
.lp-progress__label {
    font-size: 0.75rem;
    color: #94a3b8;
}
.lp-progress__end-circle {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    z-index: 2;
}
.lp-progress__percent {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    width: 50px;
    text-align: right;
    z-index: 3;
}

.lp-list {
    position: relative;
    padding-left: 52px;
}
.lp-vline {
    position: absolute;
    left: 16px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: #f1f5f9;
    z-index: 0;
}

.lp-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.lp-item:last-child {
    margin-bottom: 0;
}
.lp-item--test {
    margin-top: 0.5rem;
}

.lp-circle {
    position: absolute;
    left: -52px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: #f9f9fa;
    border: 1px solid #f1f5f9;
}
.lp-circle--done {
    border-color: var(--blue);
    background: var(--blue);
}
.lp-circle--current {
    border-color: var(--blue);
}

.lp-card {
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0;
}
.lp-card--current {
    background: #f9f9fa;
    padding: 3rem;
}
.lp-card--test-unlocked {
    background: #f9f9fa;
}

.lp-num {
    flex-shrink: 0;
    width: 5rem;
    margin-right: 2.5rem;
    text-align: center;
}
.lp-num--current {
    color: #111;
    margin-right: 2rem;
}

.lp-info {
    flex: 1;
    min-width: 0;
}

.lp-title {
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.lp-title--current {
    font-size: 1.125rem;
    font-weight: 600;
}
.lp-title--locked {
    color: #7f7f7f;
}

.lp-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.lp-meta__item {
    font-size: 0.75rem;
}
.lp-meta__item--current {
    color: #111;
    font-weight: 600;
}
.lp-meta__item--locked {
    color: #7f7f7f;
}

.lp-time-chip {
    font-size: 0.72rem;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.lp-time-badge {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f9f9fa;
    color: #6b7280;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.lp-btn-kreni {
    flex-shrink: 0;
    margin-left: 1rem;
    padding: 0.4rem 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    border: none;
}
.lp-btn-kreni:hover {
    color: #989898;
}
.lp-btn__arrow {
    vertical-align: middle;
    margin-left: 2px;
}
.lp-meta__icon {
    display: inline;
    vertical-align: middle;
    margin-right: 3px;
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}
.lp-spinner {
    animation: lp-spin 1.2s linear infinite;
}

/* ============================================================
   COURSE PLAY PAGE
   ============================================================ */

html.lesson-scroll,
html.lesson-scroll body {
    overflow: auto !important;
    height: auto !important;
}

#lesson-player {
    min-height: 100vh;
    background: #fff;
    font-family: inherit;
}

/* Header nav */
.lp-play-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 0.82rem;
    font-family: inherit;
    padding: 0.25rem 0;
    text-decoration: none;
}
.lp-play-nav-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lp-play-nav {
    padding: 0.5rem 0.75rem;
}
.lp-play-nav--locked {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Timer */
.lp-play-desc {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.lp-play-timer-num {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111;
    font-variant-numeric: tabular-nums;
}
.lp-play-timer-bar-track {
    display: inline-block;
    vertical-align: middle;
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.lp-play-timer-bar-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border-radius: 3px;
    transform-origin: left;
}

/* Video */
.lp-play-video {
    margin-bottom: 2rem;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.lp-play-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.lp-play-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Materials */
.lp-play-materials {
    margin-top: 3rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
}
.lp-play-materials__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 1rem;
}
.lp-play-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.lp-play-image-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    text-decoration: none;
}
.lp-play-image-thumb {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.lp-play-image-caption {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    color: #64748b;
}
.lp-play-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lp-play-file-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    color: #374151;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}
.lp-play-file-item:hover {
    background: #f1f5f9;
}

.lp-play-spacer {
    padding-bottom: 4rem;
}
.lp-hidden {
    display: none;
}

/* Dva kolumna */
.lp-play-cols {
    display: flex;
    align-items: start;
    gap: 2rem;
    width: 100%;
    margin-top: 1.5rem;
}
.lp-play-main {
    width: 720px;
    flex-shrink: 0;
    min-width: 0;
}

@media (max-width: 860px) {
    .lp-play-cols {
        flex-direction: column;
    }
    .lp-play-main {
        width: 100%;
        max-width: 100%;
    }
    .lp-play-sidebar {
        width: 100%;
        margin-left: 0;
        order: -1;
    }
}

/* Sidebar */
.lp-play-sidebar {
    width: 100%;
    max-width: 500px;
    flex-shrink: 1;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.lp-play-sidebar-card {
    background: #f9f9fa;
    border-radius: 4px;
    padding: 1rem 1.1rem;
}
.lp-play-sidebar-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.6rem;
}
.lp-play-sidebar-card-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}
.lp-play-sidebar-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.lp-play-sidebar-progress-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.lp-play-sidebar-progress-fill {
    height: 100%;
    background: #fc5800;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.lp-play-sidebar-progress-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.lp-play-sidebar-time {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.lp-play-sidebar-time-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    font-variant-numeric: tabular-nums;
}
.lp-play-sidebar-time-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Ručno završavanje (bez timera) i Sledeca lekcija dugme */
.lp-play-finish-btn {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
}

.lp-play-focus-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #dcf1c6;
    color: #166534;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #c8e4aa;
}

.lp-play-focus-btn:hover {
    background-color: #cce5b0;
    border-color: #b8d89a;
}

.lp-play-focus-btn:active {
    background-color: #bcd99e;
}

/* Lesson body */
.lesson-body {
    color: #334155;
    font-size: 1rem;
    line-height: 1.9;
    max-width: 720px;
}

/* Naslovi */
.lesson-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #f1f5f9;
}
.lesson-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin: 2rem 0 0.5rem;
}
.lesson-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
    margin: 1.5rem 0 0.4rem;
}

/* Paragrafi */
.lesson-body p {
    margin: 0 0 1.2rem;
    line-height: 1.4;
}

/* Liste */
.lesson-body ul,
.lesson-body ol {
    margin: 0 0 1.4rem 0;
    padding-left: 1.5rem;
}
.lesson-body ul {
    list-style: none;
    padding-left: 1.4rem;
}
.lesson-body ul li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.lesson-body ul li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}
.lesson-body ol {
    list-style: decimal;
}
.lesson-body ol li {
    margin-bottom: 0.55rem;
    padding-left: 0.3rem;
}

/* Nested liste */
.lesson-body ul ul,
.lesson-body ol ul,
.lesson-body ul ol,
.lesson-body ol ol {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}
.lesson-body ul ul li::before {
    background: transparent;
    border: 1.5px solid #94a3b8;
}

/* Naglašavanje */
.lesson-body strong {
    font-weight: 700;
}
.lesson-body em {
    font-style: italic;
}

/* Kod */
.lesson-body code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0.15em 0.4em;
    font-size: 0.875em;
    color: #0f172a;
    font-family: "Menlo", "Consolas", monospace;
}
.lesson-body pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
    line-height: 1.7;
}
.lesson-body pre code {
    background: transparent;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Citat */
.lesson-body blockquote {
    border-left: 3px solid var(--blue);
    padding: 0.75rem 1.25rem;
    color: #475569;
    margin: 0 0 1.4rem;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.lesson-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Horizontalna linija */
.lesson-body hr {
    border: none;
    border-top: 2px solid #f1f5f9;
    margin: 2.5rem 0;
}

/* Linkovi */
.lesson-body a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.lesson-body a:hover {
    text-decoration: none;
}

/* Tabela */
.lesson-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}
.lesson-body th {
    background: #f8fafc;
    font-weight: 700;
    color: #111;
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}
.lesson-body td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}
.lesson-body tr:last-child td {
    border-bottom: none;
}

/* ===== COURSE VIEWS - FOCUS & PLAY MODE ===== */

/* Focus Mode - Body Setup */
.layouts-quiz body {
    font-family:
        "Montserrat",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.lesson-scroll html,
.lesson-scroll body {
    height: auto !important;
    overflow: auto !important;
    background: #0d0d0d;
}

/* Focus Mode Variables */
:root {
    --f-card: #1c1c1e;
    --f-border: #2a2a2e;
    --f-title: #f0ede8;
    --f-meta: #666;
    --f-text: #c4c0b8;
    --f-btn-bg: rgba(255, 255, 255, 0.07);
    --f-btn-fg: #aaa;
    --f-btn-hover: rgba(255, 255, 255, 0.12);
}

body.focus-light {
    --f-card: #ffffff;
    --f-border: #efefef;
    --f-title: #111;
    --f-meta: #888;
    --f-text: #333;
    --f-btn-bg: rgba(0, 0, 0, 0.05);
    --f-btn-fg: #555;
    --f-btn-hover: rgba(0, 0, 0, 0.09);
}

/* Focus Mode */
.focus-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

@media (max-width: 768px) {
    .focus-wrap {
        padding: 24px 16px 60px;
    }
}

@media (max-width: 480px) {
    .focus-wrap {
        padding: 16px 12px 50px;
    }
}

.focus-card {
    background: var(--f-card);
    border-radius: 12px;
    padding: 40px 52px 52px;
    transition: background 0.25s;
}

@media (max-width: 768px) {
    .focus-card {
        padding: 30px 32px 40px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .focus-card {
        padding: 20px 16px 30px;
        border-radius: 6px;
    }
}

.focus-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

@media (max-width: 480px) {
    .focus-actions {
        margin-bottom: 24px;
    }
}

.focus-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f9f9fa;
    transition:
        background 0.2s,
        color 0.2s;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.focus-back:hover {
    background: var(--f-btn-hover);
}

.focus-back--top {
    margin-top: 0 !important;
}

@media (max-width: 480px) {
    .focus-back {
        font-size: 11px;
        padding: 5px 10px;
        margin-top: 2rem;
    }
}

.focus-toggle {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: var(--f-btn-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--f-btn-fg);
    transition: background 0.2s;
    flex-shrink: 0;
}

.focus-toggle:hover {
    background: var(--f-btn-hover);
}

.icon-moon {
    display: block;
}

.icon-sun {
    display: none;
}

body.focus-light .icon-moon {
    display: none;
}

body.focus-light .icon-sun {
    display: block;
}

.focus-header {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--f-border);
    margin-bottom: 36px;
    transition: border-color 0.25s;
}

@media (max-width: 768px) {
    .focus-header {
        padding-bottom: 20px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .focus-header {
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
}

.focus-title {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--f-title);
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.25s;
}

@media (max-width: 480px) {
    .focus-title {
        font-size: clamp(16px, 5vw, 22px);
        margin-bottom: 6px;
    }
}

.focus-course {
    font-size: 12px;
    color: var(--f-meta);
    margin: 0;
}

@media (max-width: 480px) {
    .focus-course {
        font-size: 11px;
    }
}

/* Focus Mode - Lesson Body */
.focus-wrap .lesson-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--f-text);
    transition: color 0.25s;
}

@media (max-width: 768px) {
    .focus-wrap .lesson-body {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .focus-wrap .lesson-body {
        font-size: 14px;
        line-height: 1.75;
    }
}

.focus-wrap .lesson-body h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--f-title);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--f-border);
    transition:
        color 0.25s,
        border-color 0.25s;
}

@media (max-width: 768px) {
    .focus-wrap .lesson-body h2 {
        font-size: 16px;
        margin: 2rem 0 0.6rem;
    }
}

@media (max-width: 480px) {
    .focus-wrap .lesson-body h2 {
        font-size: 15px;
        margin: 1.5rem 0 0.5rem;
    }
}

.focus-wrap .lesson-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--f-title);
    margin: 2rem 0 0.5rem;
    transition: color 0.25s;
}

@media (max-width: 768px) {
    .focus-wrap .lesson-body h3 {
        font-size: 14px;
        margin: 1.5rem 0 0.4rem;
    }
}

@media (max-width: 480px) {
    .focus-wrap .lesson-body h3 {
        font-size: 13px;
        margin: 1.2rem 0 0.3rem;
    }
}

.focus-wrap .lesson-body p {
    margin: 0 0 1rem;
}

@media (max-width: 480px) {
    .focus-wrap .lesson-body p {
        margin: 0 0 0.8rem;
    }
}

.focus-wrap .lesson-body ul,
.focus-wrap .lesson-body ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.5rem;
}

@media (max-width: 480px) {
    .focus-wrap .lesson-body ul,
    .focus-wrap .lesson-body ol {
        margin: 0.6rem 0 0.8rem;
        padding-left: 1.2rem;
    }
}

.focus-wrap .lesson-body li {
    margin: 0.4rem 0;
}

@media (max-width: 480px) {
    .focus-wrap .lesson-body li {
        margin: 0.3rem 0;
    }
}

.focus-wrap .lesson-body strong {
    font-weight: 700;
}

.focus-wrap .lesson-body em {
    font-style: italic;
}

/* Play Mode Navigation */

.lp-lesson-nav,
.focus-bottom-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f9f9fa;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .lp-lesson-nav {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .lp-lesson-nav {
        margin-top: 2rem;
        padding-top: 1.2rem;
        gap: 0.75rem;
    }
}

.lp-lesson-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f9f9fa;
    transition:
        background 0.2s,
        color 0.2s;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.lp-lesson-nav a:hover {
    background: #f1f5f9;
}

@media (max-width: 768px) {
    .lp-lesson-nav a {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .lp-lesson-nav a {
        font-size: 10px;
        padding: 4px 8px;
        gap: 4px;
    }

    .lp-lesson-nav a svg {
        width: 10px !important;
        height: 10px !important;
    }
}

.lp-lesson-nav a.lp-lesson-nav-next {
    margin-left: auto;
}

@media (max-width: 480px) {
    .lp-lesson-nav a.lp-lesson-nav-next {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}
