* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fbfbfe;
    user-select: none;
    -webkit-user-select: none;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Pretendard", sans-serif;
    position: relative;
}

.hub-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    transform: translateY(-2.5vh);
}

.brand-title {
    font-size: clamp(52px, 9.5vw, 104px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: #09090b;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.brand-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.72rem, 1.4vw, 0.84rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 18px;
}

.hub-footer {
    position: absolute;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    pointer-events: none;
}

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

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0.85;
}

.status-text {
    font-weight: 400;
    color: #94a3b8;
}

.footer-divider {
    color: #cbd5e1;
}

.footer-time {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.footer-hint {
    color: #94a3b8;
    cursor: pointer;
    pointer-events: auto;
}

.footer-hint:hover {
    color: #09090b;
}

/* Inspector */

.inspector-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
    user-select: text;
    -webkit-user-select: text;
}

.inspector-overlay.is-active {
    display: flex;
}

.inspector-modal {
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #09090b;
    font-family: 'JetBrains Mono', monospace;
}

.inspector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f4f4f5;
}

.inspector-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #09090b;
    letter-spacing: -0.01em;
}

.inspector-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inspector-btn {
    appearance: none;
    background: transparent;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    padding: 4px 9px;
    font-family: inherit;
    font-size: 0.7rem;
    color: #71717a;
    cursor: pointer;
}

.inspector-btn:hover {
    background: #f4f4f5;
    color: #09090b;
    border-color: #d4d4d8;
}

.inspector-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inspector-section {
    display: flex;
    flex-direction: column;
}

.inspector-section-title {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
    margin-bottom: 6px;
}

.inspector-rows {
    display: flex;
    flex-direction: column;
}

.inspector-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid #f4f4f5;
    font-size: 0.76rem;
}

.inspector-row:last-child {
    border-bottom: none;
}

.inspector-key {
    color: #71717a;
    flex-shrink: 0;
}

.inspector-val {
    color: #09090b;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    .inspector-modal {
        background: #11131a;
        border-color: rgba(255, 255, 255, 0.1);
        color: #f4f4f5;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    }
    .inspector-header {
        border-color: rgba(255, 255, 255, 0.06);
    }
    .inspector-title {
        color: #f4f4f5;
    }
    .inspector-btn {
        border-color: rgba(255, 255, 255, 0.12);
        color: #a1a1aa;
    }
    .inspector-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
    }
    .inspector-row {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    .inspector-key {
        color: #8b949e;
    }
    .inspector-val {
        color: #f4f4f5;
    }
}