/* Team Hub — unified Team Management dashboard */

.th-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.th-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.th-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.th-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.th-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.th-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.th-head-actions .view-btn,
.th-head-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #8e9297);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.th-head-actions .view-btn:hover,
.th-head-actions .btn-ghost:hover {
    color: var(--text-main, #ffffff);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.th-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.th-kpi {
    text-align: left;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    cursor: pointer;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.th-kpi:hover {
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.th-kpi-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.th-kpi-value {
    display: block;
    margin-top: 6px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.th-kpi-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.th-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.th-tab {
    flex: 0 0 auto;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.th-tab.active {
    color: #fff;
    border-color: rgba(157, 0, 255, 0.45);
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.22), rgba(0, 229, 255, 0.1));
}

.th-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
}

.th-toolbar .th-search {
    flex: 1;
    min-width: 200px;
}

.th-panel {
    min-height: 180px;
}

.th-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.th-empty i {
    font-size: 2rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 10px;
}

.th-live-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.th-live-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-width: 220px;
    flex: 1;
}

.th-live-card img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.th-live-meta {
    min-width: 0;
}

.th-live-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.th-live-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.th-section-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

.th-dn-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-dn-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 10px;
    align-items: center;
}

.th-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.th-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #00a8ff, #9d00ff);
}

/* ── Aktivitäts-Feed: Timeline ─────────────────────────────────────── */

.th-feed {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 22px;
}

.th-feed::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        rgba(0, 229, 255, 0.40),
        rgba(157, 0, 255, 0.30) 55%,
        rgba(157, 0, 255, 0.04));
}

.th-feed-day {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-day-head {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 11px;
    border: 1px solid var(--border-color);
    background: rgba(14, 14, 18, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.th-day-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #00e5ff;
    background: linear-gradient(90deg, #00e5ff, #9d00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.th-day-count {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
}

.th-fi {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 16px;
    border-radius: 14px;
    border-left: 2px solid var(--ev, #8b94a3);
    background:
        linear-gradient(115deg,
            color-mix(in srgb, var(--ev, #8b94a3) 8%, transparent),
            transparent 42%),
        rgba(255, 255, 255, 0.02);
    animation: thFiIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(min(var(--i, 0), 12) * 45ms);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.th-fi::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 25px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ev, #8b94a3);
    box-shadow:
        0 0 0 3px var(--bg-base, #0e0e12),
        0 0 10px color-mix(in srgb, var(--ev, #8b94a3) 55%, transparent);
}

.th-fi:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--ev, #8b94a3) 38%, var(--border-color));
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.35),
        0 0 0 1px color-mix(in srgb, var(--ev, #8b94a3) 14%, transparent);
}

.th-fi-who {
    position: relative;
    flex: 0 0 auto;
}

.th-fi-avatar {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--ev, #8b94a3) 40%, transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--ev, #8b94a3) 18%, transparent);
}

.th-fi-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    font-size: 0.56rem;
    color: #fff;
    border-radius: 50%;
    background: var(--ev, #8b94a3);
    border: 2px solid var(--bg-base, #0e0e12);
    box-shadow: 0 0 8px color-mix(in srgb, var(--ev, #8b94a3) 45%, transparent);
}

.th-fi-main {
    min-width: 0;
    flex: 1;
}

.th-fi-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    row-gap: 3px;
}

.th-fi-user {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.th-fi-type {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 999px;
    transform: translateY(-1px);
    color: var(--ev, #8b94a3);
    background: color-mix(in srgb, var(--ev, #8b94a3) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ev, #8b94a3) 32%, transparent);
}

.th-fi-executor {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.th-fi-executor i {
    font-size: 0.66rem;
    opacity: 0.85;
}

.th-fi-time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.th-fi-rel {
    color: color-mix(in srgb, var(--ev, #8b94a3) 60%, #ffffff);
    font-weight: 700;
}

.th-fi-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 0.92rem;
    font-weight: 600;
}

.th-fi-label i {
    color: var(--ev, #8b94a3);
    font-size: 0.78rem;
    width: 14px;
    text-align: center;
}

.th-fi-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.th-fi-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3px 10px;
    border-radius: 999px;
}

.th-fi-chip i {
    font-size: 0.68rem;
    opacity: 0.85;
}

.th-fi-chip.is-warn {
    color: #ffb35c;
    background: rgba(255, 164, 51, 0.09);
    border-color: rgba(255, 164, 51, 0.28);
}

@keyframes thFiIn {
    from { opacity: 0; transform: translateY(8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .th-fi {
        animation: none;
        transition: none;
    }
}

/* Letzte Feedbacks (Ranking-Tab) */
.th-ri-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.th-ri-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.th-ri-main {
    min-width: 0;
    flex: 1;
}

.th-ri-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.th-ri-user {
    font-weight: 700;
}

.th-ri-time {
    color: var(--text-muted);
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .th-feed {
        padding-left: 18px;
        gap: 8px;
    }

    .th-feed::before {
        left: 4px;
    }

    .th-fi {
        padding: 11px 12px;
        gap: 10px;
    }

    .th-fi::before {
        left: -18px;
    }

    .th-fi-time {
        margin-left: 0;
        width: 100%;
        order: 5;
    }
}

.th-chip-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.th-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.th-chip:hover {
    color: #fff;
    border-color: color-mix(in srgb, var(--chip, #00e5ff) 45%, transparent);
}

.th-chip.active {
    color: #fff;
    border-color: color-mix(in srgb, var(--chip, #00e5ff) 60%, transparent);
    background: color-mix(in srgb, var(--chip, #00e5ff) 12%, transparent);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--chip, #00e5ff) 18%, transparent),
        0 0 14px color-mix(in srgb, var(--chip, #00e5ff) 20%, transparent);
}

.th-chip-count {
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.07);
}

.th-chip.active .th-chip-count {
    color: var(--chip, #00e5ff);
    background: color-mix(in srgb, var(--chip, #00e5ff) 16%, transparent);
}

.th-assign {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.th-assign input,
.th-assign select {
    min-width: 160px;
}

.dn-member-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(20, 20, 25, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.th-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.th-group-card {
    padding: 16px;
}

.th-dn-badge {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #00a8ff;
}

.th-assign-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.th-assign-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
}

.th-role-section {
    margin-bottom: 18px;
}

.th-role-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.th-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.th-member {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.th-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.th-kpi-static {
    cursor: default;
}

.th-kpi-static:hover {
    transform: none;
}

.th-kpi-live .th-kpi-value { color: #2ed573; }
.th-kpi-total .th-kpi-value { color: #c084fc; }
.th-kpi-time .th-kpi-value { color: #22d3ee; }
.th-kpi-type .th-kpi-value { color: #fb923c; font-size: 1.15rem; }

.th-shift-kpis {
    margin-bottom: 6px;
}

.th-shift-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.th-shift-empty {
    grid-column: 1 / -1;
}

.th-shift-day {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin-top: 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(157, 0, 255, 0.16) 0%, rgba(0, 229, 255, 0.06) 45%, transparent 100%);
    border: 1px solid rgba(157, 0, 255, 0.28);
}

.th-shift-day-live {
    background: linear-gradient(90deg, rgba(46, 213, 115, 0.18) 0%, rgba(34, 211, 238, 0.08) 50%, transparent 100%);
    border-color: rgba(46, 213, 115, 0.35);
}

.th-shift-day-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d3a0ff;
}

.th-shift-day-live .th-shift-day-label {
    color: #2ed573;
}

.th-shift-day-live .th-shift-day-label i {
    font-size: 0.55rem;
    animation: thShiftPulse 1.6s ease-in-out infinite;
}

.th-shift-day-count {
    min-width: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(157, 0, 255, 0.2);
    color: #d3a0ff;
}

.th-shift-day-live .th-shift-day-count {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.th-shift-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 14px 16px;
    overflow: hidden;
    cursor: pointer;
    border-color: var(--th-shift-border, rgba(255, 255, 255, 0.1));
    background:
        radial-gradient(circle at top, var(--th-shift-bg, rgba(0, 229, 255, 0.08)), transparent 70%),
        rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.th-shift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 18px var(--th-shift-bg, rgba(0, 229, 255, 0.1));
}

.th-shift-card:focus-visible {
    outline: 2px solid var(--th-shift-accent, #22d3ee);
    outline-offset: 2px;
}

.th-shift-manage {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--th-shift-accent, #22d3ee);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--th-shift-border, rgba(255, 255, 255, 0.12));
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.th-shift-card:hover .th-shift-manage,
.th-shift-card:focus-visible .th-shift-manage {
    opacity: 1;
    transform: translateY(0);
}

.th-shift-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--th-shift-accent, #22d3ee);
    transition: background 0.3s ease;
}

.th-shift-card.is-live {
    border-color: rgba(46, 213, 115, 0.5);
    box-shadow: 0 0 22px rgba(46, 213, 115, 0.14);
}

.th-shift-card-top {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.th-shift-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--th-shift-accent, rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 12px var(--th-shift-bg, transparent);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.th-shift-status {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.th-shift-status.live {
    background: rgba(46, 213, 115, 0.16);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.35);
}

.th-shift-status.live i {
    font-size: 0.45rem;
    animation: thShiftPulse 1.6s ease-in-out infinite;
}

.th-shift-status.done {
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.th-shift-status.auto {
    background: rgba(251, 146, 60, 0.16);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.th-shift-status.timeout {
    background: rgba(255, 71, 87, 0.14);
    color: #ff6b7a;
    border: 1px solid rgba(255, 71, 87, 0.35);
}

.th-shift-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.th-shift-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--th-shift-accent, #22d3ee);
    background: var(--th-shift-bg, rgba(34, 211, 238, 0.14));
    border: 1px solid var(--th-shift-border, rgba(34, 211, 238, 0.35));
}

.th-shift-dn {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #00a8ff;
    font-size: 0.78rem;
}

.th-shift-duration {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.th-shift-card.is-live .th-shift-duration {
    color: #2ed573;
}

.th-shift-range {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Schicht-Focus Panel ─────────────────────────────────────── */
.shift-focus-modal {
    width: min(960px, 100%);
    max-height: 88vh;
}

.shift-focus-modal .member-modal-content {
    padding: 26px 28px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    max-height: 88vh;
}

.th-shift-focus {
    display: grid;
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    max-height: calc(88vh - 52px);
}

.th-sf-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    padding-right: 4px;
    overflow-y: auto;
}

.th-sf-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.th-sf-identity img {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.12));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.th-sf-identity h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.th-sf-identity p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.th-sf-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.th-sf-kpi {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.th-sf-kpi span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.th-sf-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
}

.th-sf-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.th-sf-profile-link {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.th-sf-profile-link:hover {
    color: #fff;
}

.th-sf-main {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.th-sf-main-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.th-sf-main-head h3 {
    margin: 0;
    font-size: 0.95rem;
}

.th-sf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 24px;
    min-height: 0;
    flex: 1 1 auto;
}

.th-sf-row {
    position: relative;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(10, 10, 16, 0.35);
    display: grid;
    gap: 10px;
    flex-shrink: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.th-sf-row.is-live {
    border-color: rgba(46, 213, 115, 0.45);
    box-shadow: 0 0 18px rgba(46, 213, 115, 0.08);
}

.th-sf-row.is-highlight {
    border-color: rgba(157, 0, 255, 0.55);
    box-shadow: 0 0 22px rgba(157, 0, 255, 0.12);
}

.th-sf-row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.th-sf-row-top strong {
    font-size: 0.92rem;
}

.th-sf-row .th-shift-status {
    position: static;
    top: auto;
    right: auto;
    margin: 0;
}

.th-sf-row-meta {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.th-sf-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.th-sf-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.th-sf-field label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.th-sf-field input,
.th-sf-field select {
    width: 100%;
    min-height: 36px;
}

.th-sf-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.th-sf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.th-sf-actions .btn-primary,
.th-sf-actions .btn-danger,
.th-sf-actions .view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    padding: 6px 12px;
}

.th-sf-readonly {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .shift-focus-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }
    .th-shift-focus {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 48px);
        overflow: auto;
    }
    .th-sf-identity {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    .th-sf-identity img {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    .th-sf-fields {
        grid-template-columns: 1fr;
    }
    .th-sf-list {
        overflow: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-shift-manage {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@keyframes thShiftPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.th-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.th-settings-sec h4 {
    margin: 0 0 8px;
}

@media (max-width: 980px) {
    .th-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .th-dn-bar-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .th-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .th-assign input,
    .th-assign select {
        width: 100%;
    }
    .th-shift-board {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .th-shift-card {
        padding: 14px 10px 12px;
    }
    .th-shift-avatar {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-kpi {
        transition: none;
    }
    .th-shift-status.live i,
    .th-shift-day-live .th-shift-day-label i {
        animation: none;
    }
    .th-podium-slot.gold img {
        box-shadow: 0 0 0 2px var(--rank-gold);
    }
    .th-rank-row:hover,
    .th-kpi:hover {
        transform: none;
    }
}

/* ── Ranking ─────────────────────────────────────────── */
.th-wrap {
    --rank-gold: #f5c542;
    --rank-gold-deep: #b45309;
    --rank-silver: #c9d2e3;
    --rank-bronze: #d97706;
    --rank-ticket: #22d3ee;
    --rank-channel: #f59e0b;
    --rank-cases: #c084fc;
    --rank-shift: #60a5fa;
    --rank-duty: #2dd4bf;
}

.th-tab-rank.active {
    border-color: rgba(245, 197, 66, 0.55);
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.22), rgba(157, 0, 255, 0.12));
    color: #fff;
}
.th-tab-rank.active i { color: var(--rank-gold); }

.th-kpi-grid-rank {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 12px;
}
.th-kpi-gold { border-color: rgba(245, 197, 66, 0.35); }
.th-kpi-gold .th-kpi-value { color: var(--rank-gold); }
.th-kpi-amber { border-color: rgba(245, 158, 11, 0.35); }
.th-kpi-amber .th-kpi-value { color: var(--rank-channel); }
.th-kpi-purple { border-color: rgba(192, 132, 252, 0.35); }
.th-kpi-purple .th-kpi-value { color: var(--rank-cases); }
.th-kpi-blue { border-color: rgba(96, 165, 250, 0.35); }
.th-kpi-blue .th-kpi-value { color: var(--rank-shift); }
.th-kpi-teal { border-color: rgba(45, 212, 191, 0.35); }
.th-kpi-teal .th-kpi-value { color: var(--rank-duty); }

.th-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}
.th-podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 18px 12px 16px;
    border-radius: 16px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(20, 20, 28, 0.9);
    color: inherit;
    cursor: pointer;
    min-height: 44px;
}
.th-podium-slot.empty { opacity: 0.25; min-height: 80px; cursor: default; }
.th-podium-slot img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
}
.th-podium-slot.gold {
    background: linear-gradient(180deg, #1a1408 0%, #0e0e12 70%);
    border-color: var(--rank-gold);
    padding-top: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 230, 150, 0.25), 0 12px 28px rgba(0,0,0,0.45);
}
.th-podium-slot.gold img {
    width: 84px;
    height: 84px;
    border-color: var(--rank-gold);
    box-shadow: 0 0 28px rgba(245, 197, 66, 0.35);
}
.th-podium-slot.silver { border-color: var(--rank-silver); }
.th-podium-slot.silver img { border-color: var(--rank-silver); }
.th-podium-slot.bronze { border-color: var(--rank-bronze); }
.th-podium-slot.bronze img { border-color: var(--rank-bronze); }
.th-podium-place {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.th-podium-slot.gold .th-podium-place { color: var(--rank-gold); font-size: 0.9rem; }
.th-podium-score {
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.th-podium-slot.gold .th-podium-score { color: var(--rank-gold); }

.th-rank-boards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.th-rank-board { padding: 14px 12px; }
.th-rank-gold { border-color: rgba(245, 197, 66, 0.28); }
.th-rank-amber { border-color: rgba(245, 158, 11, 0.28); }
.th-rank-purple { border-color: rgba(192, 132, 252, 0.28); }
.th-rank-blue { border-color: rgba(96, 165, 250, 0.28); }
.th-rank-teal { border-color: rgba(45, 212, 191, 0.28); }
.th-rank-list { display: flex; flex-direction: column; gap: 6px; }
.th-rank-row {
    display: grid;
    grid-template-columns: 2.2rem 32px 1fr auto;
    gap: 8px;
    align-items: center;
    text-align: left;
    padding: 8px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.03);
    color: inherit;
    cursor: pointer;
    min-height: 44px;
}
.th-rank-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.th-rank-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    border-color: rgba(0, 229, 255, 0.28);
}
.th-rank-gold .th-rank-row:hover { border-color: rgba(245, 197, 66, 0.45); }
.th-rank-amber .th-rank-row:hover { border-color: rgba(245, 158, 11, 0.45); }
.th-rank-purple .th-rank-row:hover { border-color: rgba(192, 132, 252, 0.45); }
.th-rank-blue .th-rank-row:hover { border-color: rgba(96, 165, 250, 0.45); }
.th-rank-teal .th-rank-row:hover { border-color: rgba(45, 212, 191, 0.45); }
.th-rank-row.dim { opacity: 0.5; }
.th-rank-num {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}
.th-rank-name { font-weight: 650; }
.th-rank-metric {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.th-heat { display: inline-flex; gap: 2px; }
.th-heat span {
    width: 8px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    display: inline-block;
}
.th-heat span.on-5 { background: #34d399; }
.th-heat span.on-4 { background: #22d3ee; }
.th-heat span.on-3 { background: #fbbf24; }
.th-heat span.on-2 { background: #fb923c; }
.th-heat span.on-1 { background: #f43f5e; }

.th-mix {
    display: inline-block;
    width: 48px;
    height: 6px;
    border-radius: 99px;
    background: var(--rank-channel);
    overflow: hidden;
    vertical-align: middle;
}
.th-mix i {
    display: block;
    height: 100%;
    background: var(--rank-ticket);
}

.th-src-pill {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
}
.th-src-pill.ticket { background: rgba(34, 211, 238, 0.18); color: var(--rank-ticket); }
.th-src-pill.channel { background: rgba(245, 158, 11, 0.18); color: var(--rank-channel); }
.th-src-pill.shift { background: rgba(96, 165, 250, 0.18); color: var(--rank-shift); }
.th-src-pill.duty { background: rgba(45, 212, 191, 0.18); color: var(--rank-duty); }

.th-rank-empty { padding: 36px 20px; text-align: center; }
.th-rank-empty .btn-primary { margin: 8px 6px 0; display: inline-flex; }

.th-review-drawer { padding: 16px; margin-bottom: 14px; border-color: rgba(251, 191, 36, 0.35); }
.th-review-item { padding: 12px; margin-top: 8px; }
.th-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.th-rank-modal { margin-bottom: 14px; }
.th-rank-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.th-rank-modal-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.th-rank-modal-grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.th-rank-modal-grid div {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.th-rank-modal-grid span { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.th-rank-modal-grid strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.th-focus-chips { margin: 12px 0 8px; }
.th-focus-label {
    margin: 12px 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.th-focus-list { display: flex; flex-direction: column; gap: 8px; }
.th-focus-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.th-focus-main { flex: 1; min-width: 0; }
.th-focus-main p { margin: 4px 0 0; }
.th-focus-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.th-focus-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.th-src-pill.cases { background: rgba(192, 132, 252, 0.18); color: var(--rank-cases); }
#thRankModalSec[data-focus="fb"] .th-focus-pane:not([data-pane="fb"]),
#thRankModalSec[data-focus="cases"] .th-focus-pane:not([data-pane="cases"]),
#thRankModalSec[data-focus="shift"] .th-focus-pane:not([data-pane="shift"]),
#thRankModalSec[data-focus="duty"] .th-focus-pane:not([data-pane="duty"]) { display: none; }

@media (max-width: 1100px) {
    .th-rank-boards { grid-template-columns: 1fr; }
    .th-kpi-grid-rank { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-rank-modal-grid-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .th-tabs { flex-wrap: wrap; }
    .th-podium { grid-template-columns: 1fr; }
    .th-podium-slot.gold { order: -1; }
    .th-rank-modal-grid-5,
    .th-rank-modal-grid-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Ranking: Gesamt-Score, Deltas & Verlauf ────────── */
.th-rank-overall {
    padding: 16px 14px;
    margin-bottom: 16px;
    border-color: rgba(245, 197, 66, 0.28);
}
.th-rank-overall .th-section-title i { color: var(--rank-gold); }
.th-podium-points { font-size: 1.2rem; }

.th-delta {
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.th-delta-up { color: #3ba55d; }
.th-delta-down { color: #ed4245; }

.th-spark-block { margin-top: 14px; }
.th-spark-wrap {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 64px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.th-spark-bar {
    flex: 1 1 0;
    min-width: 5px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--rank-gold) 0%, var(--rank-gold-deep) 100%);
    opacity: 0.9;
}

/* ── Feedback-Ranking Config Tabs (Admin-Dashboard) ─── */
.fr-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    margin-bottom: 14px;
}
.fr-tab {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted, #8e9297);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.fr-tab:hover { color: #fff; }
.fr-tab.active {
    color: #f5c542;
    border-bottom-color: #f5c542;
}
.fr-panel { display: none; }
.fr-panel.active { display: block; }

@media (max-width: 720px) {
    .th-spark-wrap { height: 52px; }
}
@media (max-width: 600px) {
    .fr-tabs { display: flex; }
    .fr-tab { flex: 1 1 auto; text-align: center; padding: 8px 6px; }
}

.th-stats-board {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    gap: 16px;
    margin-top: 12px;
    align-items: start;
}

.th-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
}

.th-stats-list-head,
.th-stats-row {
    display: grid;
    grid-template-columns: 40px minmax(88px, 1.3fr) 0.5fr 0.5fr 0.55fr 0.55fr 0.55fr 0.75fr 0.7fr;
    gap: 8px;
    align-items: center;
    min-width: 720px;
}

.th-stats-list-head {
    padding: 0 12px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.th-stats-row {
    text-align: left;
    cursor: pointer;
    padding: 10px 12px;
    font-family: inherit;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
}

.th-stats-row.is-selected {
    border-color: rgba(157, 0, 255, 0.5);
    box-shadow: 0 0 16px rgba(157, 0, 255, 0.12);
}

.th-stats-row img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.th-stats-row-id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.th-stats-row-id strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.th-stats-row span,
.th-stats-list-head span {
    font-variant-numeric: tabular-nums;
}

.th-stats-row .th-muted {
    color: var(--text-muted);
}

.th-kpi-muted {
    opacity: 0.78;
}

.th-kpi-muted .th-kpi-value {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.th-stats-person {
    margin-bottom: 10px;
}

.th-stats-detail {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.03);
}

.th-stats-guild-types { margin-top: 12px; }

@media (max-width: 900px) {
    .th-stats-board { grid-template-columns: 1fr; }
}

/* ── Member-Profil: Schicht-Statistik ────────────────── */
#memberModal .member-modal.is-profile,
.member-modal.is-profile:not(.shift-focus-modal) {
    width: min(880px, 100%);
}

.th-profile-tabs {
    margin-bottom: 2px;
}

.th-member-stats {
    margin-bottom: 8px;
}

.th-member-stats .th-stats-days {
    margin-bottom: 4px;
}

.th-stats-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}

.th-stats-kpis .th-kpi-value {
    font-size: 1.15rem;
}

.th-type-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.th-type-row {
    display: grid;
    grid-template-columns: minmax(72px, 0.85fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    font-size: 0.82rem;
}

.th-type-row .th-bar {
    height: 8px;
}

.th-type-row strong {
    font-variant-numeric: tabular-nums;
    min-width: 3.2em;
    text-align: right;
}

.th-reason-chips {
    margin-top: 4px;
}

.th-reason-chips .th-chip {
    cursor: default;
}

.th-stats-actions {
    margin-top: 14px;
}

.th-stats-missed {
    color: #f59e0b;
}

#memberModalContent .member-focus-body.is-history .th-member-stats,
#memberModalContent .member-focus-body.is-history .th-rank-modal {
    display: none;
}

#memberModalContent .member-focus-body.is-stats .history-timeline-title,
#memberModalContent .member-focus-body.is-stats #historyTimeline,
#memberModalContent .member-focus-body.is-stats #warnTimeline {
    display: none;
}

@media (max-width: 720px) {
    .th-stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-type-row { grid-template-columns: minmax(64px, 0.9fr) minmax(0, 1fr) auto; }
}

/* ════════════════════════════════════════════════════════════
   BESTÄTIGUNGS-MODAL (Custom Confirm Dialog)
   ════════════════════════════════════════════════════════════ */
.confirm-modal-overlay {
    z-index: 2500 !important;
}

.confirm-dialog-modal {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: min(480px, calc(100vw - 32px));
    max-width: 480px;
    height: auto !important;
    max-height: min(90vh, 600px);
    background: linear-gradient(165deg, #181822 0%, #121217 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(235, 69, 95, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    padding: 0;
    animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-dialog-inner {
    display: flex;
    flex-direction: column;
    padding: 26px 26px 0 26px;
}

.confirm-dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.confirm-dialog-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.confirm-dialog-icon.is-danger {
    background: linear-gradient(135deg, rgba(235, 69, 95, 0.22), rgba(255, 77, 77, 0.12));
    border: 1px solid rgba(235, 69, 95, 0.38);
    color: #ff6b7d;
    box-shadow: 0 0 20px rgba(235, 69, 95, 0.2);
}

.confirm-dialog-icon.is-warning {
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.22), rgba(255, 195, 18, 0.12));
    border: 1px solid rgba(255, 165, 2, 0.38);
    color: #ffa502;
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.2);
}

.confirm-dialog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main, #ffffff);
    letter-spacing: -0.01em;
    margin: 0;
}

.confirm-dialog-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted, #8e9297);
    margin: 3px 0 0;
}

.confirm-dialog-body {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.confirm-dialog-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #e2e5e8;
    margin: 0;
}

.confirm-dialog-text strong {
    color: #ffffff;
    font-weight: 700;
}

.confirm-dialog-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(235, 69, 95, 0.08);
    border: 1px solid rgba(235, 69, 95, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #ff9aa8;
}

.confirm-dialog-hint i {
    color: #ff6b7d;
    margin-top: 2px;
    flex-shrink: 0;
}

.confirm-dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    margin: 0 -26px 0 -26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.btn-ghost-cancel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #c9ccd1;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn-ghost-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-danger-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #eb455f 0%, #c92a2a 100%);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(235, 69, 95, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-danger-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(235, 69, 95, 0.5);
}

.btn-danger-confirm:active {
    transform: translateY(0);
}

.btn-primary-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #9d00ff 0%, #00a8ff 100%);
    border: 1px solid rgba(157, 0, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(157, 0, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(157, 0, 255, 0.5);
}

@media (max-width: 600px) {
    .confirm-dialog-modal {
        width: calc(100vw - 24px);
        border-radius: 16px;
    }
    .confirm-dialog-inner {
        padding: 20px 18px 0 18px;
    }
    .confirm-dialog-footer {
        padding: 14px 18px;
        margin: 0 -18px 0 -18px;
    }
}
