:root {
    --bg: #0b1220;
    --panel: #101a2f;
    --text: #e7edf7;
    --muted: #a8b3c7;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    --focus: rgba(99, 179, 237, 0.35);
    --accent: #63b3ed;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    overscroll-behavior: none;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: transparent;
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-gradient {
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(900px 500px at 35% 30%, rgba(99, 179, 237, 0.18), transparent 60%),
        radial-gradient(700px 450px at 70% 35%, rgba(167, 139, 250, 0.14), transparent 55%),
        radial-gradient(900px 550px at 55% 70%, rgba(45, 212, 191, 0.10), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.topbar-logo {
    height: 48px;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 480px;
}

.topbar-region {
    width: 70px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: 13px;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(231, 237, 247, 0.5) 50%),
        linear-gradient(135deg, rgba(231, 237, 247, 0.5) 50%, transparent 50%);
    background-position:
        calc(100% - 12px) calc(50% - 2px),
        calc(100% - 8px) calc(50% - 2px);
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}

.topbar-region:focus {
    border-color: rgba(99, 179, 237, 0.5);
}

.topbar-region option {
    background: #0d1526;
}

.topbar-realm-wrap {
    position: relative;
    flex: 1;
}

.topbar-realm,
.topbar-name {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.topbar-realm::placeholder,
.topbar-name::placeholder {
    color: rgba(231, 237, 247, 0.4);
}

.topbar-realm:focus,
.topbar-name:focus {
    border-color: rgba(99, 179, 237, 0.5);
}

.topbar-name {
    width: 120px;
    flex-shrink: 0;
}

.topbar-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 100;
}

.topbar-suggestions .realm-suggestions-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #0d1526;
    max-height: 160px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.topbar-suggestions .realm-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    color: var(--text);
    border: 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
}

.topbar-suggestions .realm-suggestion:last-child {
    border-bottom: 0;
}

.topbar-suggestions .realm-suggestion:hover,
.topbar-suggestions .realm-suggestion.selected {
    background: rgba(99, 179, 237, 0.15);
}

.topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(99, 179, 237, 0.4);
    background: rgba(99, 179, 237, 0.1);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-btn:hover {
    background: rgba(99, 179, 237, 0.2);
    border-color: rgba(99, 179, 237, 0.6);
}

.topbar-icon {
    width: 16px;
    height: 16px;
}

.container {
    flex: 1;
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    margin-left: max(308px, calc(50% - 480px)); /* Ensure space for sidebar */
    padding: 32px 24px;
}

.sidebar-left {
    position: absolute;
    right: 100%;
    top: 120px;
    width: 260px;
    margin-right: 24px;
}

.character-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.character-thumbnail {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.character-info {
    flex: 1;
}

.character-name-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.character-realm {
    color: var(--muted);
    font-size: 16px;
}

.character-details {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.character-stats-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 14px;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-val {
    font-weight: 600;
}

.stat-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.stat-lbl {
    color: var(--muted);
}

.stat-sep {
    color: var(--muted);
    opacity: 0.4;
}

.character-titles {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.titles-tooltip {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 100;
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.titles-tooltip::before {
    content: '';
    position: absolute;
    left: 0;
    top: -8px;
    width: 100%;
    height: 8px;
}

.character-titles:hover .titles-tooltip,
.titles-tooltip:hover {
    opacity: 1;
    visibility: visible;
}

.external-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
    padding-left: 32px;
}

.external-link {
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.external-link:hover {
    opacity: 1;
}

.external-icon {
    height: 26px;
    width: auto;
}

.title-item {
    font-size: 14px;
    padding: 2px 0;
    color: var(--text);
}

.title-missing {
    color: var(--muted);
    opacity: 0.5;
}

.character-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.class-label {
    font-weight: 600;
}

.guild-link {
    color: inherit;
    text-decoration: none;
}

.guild-link:hover {
    text-decoration: underline;
}

.info-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
}

.info-box + .info-box {
    margin-top: 12px;
}

.info-box-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.info-row + .info-row {
    border-top: 1px solid var(--border);
}

.info-row-sub {
    padding-left: 12px;
    font-size: 13px;
}

.info-row-sub .info-label,
.info-row-sub .info-value {
    font-size: 13px;
    color: var(--muted);
}

.info-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.info-section-value {
    font-weight: 600;
    font-size: 13px;
}

.logs-meta {
    font-weight: 400;
}

.logs-container {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 4px;
}

.logs-header-left {
    white-space: nowrap;
}

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

.logs-avg-row {
    margin-top: 4px;
    padding: 6px 8px;
    background: var(--bg);
    border-radius: 4px;
}

.logs-avg-row .info-label {
    font-weight: 600;
    color: var(--text);
}

.logs-toggle-sep {
    color: var(--border);
    font-weight: 400;
}

.logs-toggle-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.logs-toggle-btn:hover {
    color: var(--text);
}

.logs-toggle-btn.logs-toggle-active {
    color: var(--text);
}

.logs-panel {
    display: none;
}

.logs-panel.logs-panel-active {
    display: block;
}

.logs-empty {
    color: var(--muted);
    font-size: 13px;
    padding: 8px 0;
    font-style: italic;
}

.logs-section {
    margin-top: 4px;
}

.logs-panels {
    margin-top: 4px;
}

/* Spec row - below the header */
.logs-spec-row {
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Spec dropdown */
.logs-spec-dropdown {
    position: relative;
    display: inline-block;
}

.logs-spec-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.logs-spec-btn:hover {
    color: var(--text);
}

.logs-spec-icon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.logs-spec-caret {
    font-size: 8px;
    margin-left: 2px;
    transition: transform 0.15s ease;
}

.logs-spec-open .logs-spec-caret {
    transform: rotate(180deg);
}

.logs-spec-options {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    margin-top: 4px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

.logs-spec-open .logs-spec-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.logs-spec-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    text-transform: none;
    letter-spacing: normal;
}

.logs-spec-option:first-child {
    border-radius: 5px 5px 0 0;
}

.logs-spec-option:last-child {
    border-radius: 0 0 5px 5px;
}

.logs-spec-option:hover {
    background: rgba(99, 179, 237, 0.15);
    color: var(--text);
}

.logs-spec-option-active {
    color: var(--text);
    background: rgba(99, 179, 237, 0.1);
}

.log-spec-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 4px;
}

.boss-log-row {
    position: relative;
    cursor: pointer;
}

.boss-log-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    margin-left: 8px;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

.boss-log-tooltip::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 12px;
    height: 100%;
}

.boss-log-row:hover .boss-log-tooltip {
    opacity: 1;
    visibility: visible;
}

.boss-log-tooltip-name {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.logs-warning .info-label {
    color: #ff4444;
}

.info-label {
    color: var(--text);
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-row-hover {
    position: relative;
    cursor: pointer;
}

.account-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    margin-left: 8px;
    padding: 12px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.account-tooltip::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
}

.info-row-hover:hover .account-tooltip,
.account-tooltip:hover {
    opacity: 1;
    visibility: visible;
}

.tooltip-item {
    font-size: 13px;
    padding: 2px 0;
    color: var(--text);
}

.tooltip-missing {
    color: var(--muted);
    opacity: 0.5;
}

.section-title {
    margin: 32px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.runs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.runs-table th,
.runs-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.runs-table th:nth-child(2),
.runs-table th:nth-child(3),
.runs-table th:nth-child(4),
.runs-table th:nth-child(5),
.runs-table td:nth-child(2),
.runs-table td:nth-child(3),
.runs-table td:nth-child(4),
.runs-table td:nth-child(5) {
    text-align: center;
}

.runs-table th {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.runs-table td {
    font-size: 14px;
}

.runs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.run-level {
    font-weight: 600;
}

.run-timed {
    color: #4ade80;
}

.run-depleted {
    color: #f87171;
}

.run-score {
    color: var(--muted);
    font-size: 13px;
}

.run-log {
    font-size: 13px;
}

.log-parse {
    font-weight: 600;
}

.log-level {
    color: var(--muted);
    font-size: 11px;
    margin-left: 4px;
}

.log-hidden-wrap {
    position: relative;
    cursor: help;
}

.log-hidden {
    color: #ff4444;
    font-weight: 600;
}

.log-hidden-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    text-transform: none;
}

.log-hidden-wrap:hover .log-hidden-tooltip {
    display: block;
}



.log-none {
    color: var(--muted);
    opacity: 0.4;
}

.dungeon-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dungeon-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.run-time-cell {
    position: relative;
}

.run-tooltip {
    display: none;
    position: absolute;
    left: 0;
    bottom: 100%;
    z-index: 100;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    pointer-events: none;
}

.run-time-cell:hover .run-tooltip {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.run-tooltip-ago {
    font-size: 13px;
}

.run-tooltip-date {
    color: var(--muted);
    font-size: 12px;
}

.party-icons {
    display: flex;
    gap: 4px;
}

.spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.spec-icon-self {
    box-shadow: 0 0 0 2px var(--accent);
}

.party-member:hover .spec-icon {
    transform: scale(1.25);
    z-index: 10;
    filter: brightness(1.5);
}

.party-member {
    position: relative;
}

.member-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
    white-space: nowrap;
    text-align: center;
}

.party-member:hover .member-tooltip {
    display: block;
}

.member-name {
    font-weight: 500;
    font-size: 14px;
}

.member-realm {
    color: var(--muted);
    font-size: 12px;
    margin-left: 6px;
}

.member-spec {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Large screens: sidebar needs space to float left of container */
/* Container is 960px + sidebar 260px + gap 24px + margins = ~1300px minimum */
/* Below 1300px, sidebar moves inline */
@media (max-width: 1300px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .sidebar-left {
        position: static;
        width: 100% !important;
        max-width: none;
        margin-right: 0;
        margin-top: 32px;
        order: 10;
    }

    .runs-section {
        order: 20; /* After sidebar on mobile */
        margin-top: 32px;
        width: 100% !important;
        max-width: none;
    }

    .sidebar-left .info-box,
    .info-box {
        max-width: none !important;
        width: 100% !important;
    }

    /* Account tooltip: show below instead of to the right */
    .account-tooltip {
        left: 0;
        top: 100%;
        transform: none;
        margin-left: 0;
        margin-top: 8px;
    }

    .account-tooltip::before {
        left: 0;
        top: -8px;
        width: 100%;
        height: 8px;
    }
}

/* Medium screens: topbar adjustments */
@media (max-width: 768px) {
    .topbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .topbar-logo {
        height: 40px;
    }

    .topbar-search {
        order: 10;
        flex-basis: 100%;
        max-width: none;
    }

    /* Runs table: convert to cards */
    .runs-section {
        overflow-x: visible;
        width: 100%;
    }

    .runs-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .runs-table thead {
        display: none;
    }

    .runs-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .runs-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px 12px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .runs-table td {
        border: none;
        padding: 0;
        text-align: center;
        font-size: 13px;
    }

    /* Dungeon - full width row 1 */
    .runs-table td:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: left;
        padding-bottom: 4px;
    }

    /* Level - row 2 */
    .runs-table td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .runs-table td:nth-child(2)::before {
        content: "Level";
        display: block;
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }

    /* Time - row 2 */
    .runs-table td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .runs-table td:nth-child(3)::before {
        content: "Time";
        display: block;
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }

    /* Score - row 2 */
    .runs-table td:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }

    .runs-table td:nth-child(4)::before {
        content: "Score";
        display: block;
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }

    /* Log - row 2 */
    .runs-table td:nth-child(5) {
        grid-column: 4;
        grid-row: 2;
    }

    .runs-table td:nth-child(5)::before {
        content: "Log";
        display: block;
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }

    /* Party - row 3, full width centered */
    .runs-table td:nth-child(6) {
        grid-column: 1 / -1;
        grid-row: 3;
        padding-top: 8px;
    }

    .runs-table td:nth-child(6)::before {
        content: "Party";
        display: block;
        font-size: 10px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
    }

    .runs-table td:nth-child(6) .party-icons {
        justify-content: center;
    }

    .dungeon-cell {
        font-weight: 600;
    }
}

/* Small screens */
@media (max-width: 640px) {
    .container {
        padding: 16px;
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .topbar {
        padding: 12px;
    }

    .character-header {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .character-stats-inline {
        flex-wrap: wrap;
        gap: 12px;
    }

    .external-links {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0;
    }


    .topbar-search {
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar-region {
        width: 100%;
    }

    .topbar-realm-wrap {
        flex-basis: 100%;
    }

    .topbar-name {
        flex: 1;
        width: auto;
    }

    .section-title {
        font-size: 16px;
        margin: 24px 0 12px 0;
    }

    .dungeon-cell {
        gap: 8px;
    }

    .dungeon-icon {
        width: 24px;
        height: 24px;
    }

    .spec-icon {
        width: 24px;
        height: 24px;
    }

    .runs-table th,
    .runs-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .sidebar-left {
        margin-top: 24px;
    }

    .boss-log-tooltip {
        left: 0;
        right: auto;
        top: auto;
        bottom: 100%;
        transform: none;
        margin-left: 0;
        margin-bottom: 4px;
    }

    .boss-log-tooltip::before {
        left: 0;
        top: auto;
        bottom: -8px;
        width: 100%;
        height: 8px;
    }

    .info-box {
        padding: 10px 12px;
    }

    .info-label,
    .info-value {
        font-size: 13px;
    }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}

.spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--spinner-color, var(--accent));
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.spinner-small {
    width: 14px;
    height: 14px;
}

.spinner-small::before {
    border-width: 2px;
}

.logs-loading {
    padding: 16px 0;
    text-align: center;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-size: 13px;
    color: var(--muted);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text);
}

.footer-icon {
    width: 72px;
    height: 72px;
    opacity: 0.7;
}

.footer-icon-small {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.footer-link-text {
    font-size: 14px;
    font-weight: 500;
}

.footer-link:hover .footer-icon-small {
    opacity: 1;
}

.footer-link:hover .footer-icon {
    opacity: 1;
}

.footer-sep {
    opacity: 0.4;
}
