:root {
    --portal-bg: #060709;
    --portal-surface: #101318;
    --portal-surface-alt: #151a21;
    --portal-border: #272f3b;
    --portal-text: #f2f4f7;
    --portal-muted: #9ea7b5;
    --portal-accent: #ff4d1c;
    --portal-success: #34d399;
    --portal-error: #f87171;
    --portal-warning: #f59e0b;
    --portal-radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--portal-text);
    background: radial-gradient(circle at 10% 10%, rgba(255, 77, 28, 0.1), transparent 35%), var(--portal-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 7, 9, 0.86);
    backdrop-filter: blur(14px);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.portal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--portal-accent);
    box-shadow: 0 0 18px rgba(255, 77, 28, 0.5);
}

.portal-main {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1.2rem 1.25rem 2.5rem;
}

.portal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008));
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    padding: 1.25rem;
}

.portal-auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.portal-auth-card {
    width: min(500px, 100%);
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    padding: 1.4rem;
}

.portal-auth-card h1 {
    margin: 0;
    font-size: 1.65rem;
    letter-spacing: 0.02em;
}

.portal-subtle {
    color: var(--portal-muted);
    line-height: 1.5;
    margin-top: 0.75rem;
}

.portal-field {
    margin-top: 1rem;
}

.portal-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
    color: var(--portal-muted);
}

.portal-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface-alt);
    color: var(--portal-text);
    padding: 0.76rem 0.82rem;
    font-size: 0.97rem;
}

.portal-input:focus-visible {
    outline: 2px solid var(--portal-accent);
    outline-offset: 1px;
}

.portal-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.72rem 1rem;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
}

.portal-btn-primary {
    background: var(--portal-accent);
    color: #fff;
}

.portal-btn-secondary {
    background: transparent;
    color: var(--portal-text);
    border-color: var(--portal-border);
}

.portal-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.portal-status {
    margin-top: 0.95rem;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
}

.portal-status-info {
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.38);
}

.portal-status-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.portal-status-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.38);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 0.8rem;
}

.portal-metric {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 1rem;
}

.portal-metric h2 {
    margin: 0;
    font-size: 1.75rem;
}

.portal-metric p {
    margin: 0.4rem 0 0;
    color: var(--portal-muted);
    font-size: 0.88rem;
}

.portal-layout {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 0.8rem;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.65rem;
}

.portal-table th,
.portal-table td {
    text-align: left;
    padding: 0.56rem 0.42rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.portal-table th {
    color: var(--portal-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.portal-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portal-pill-live {
    background: rgba(52, 211, 153, 0.16);
    color: var(--portal-success);
}

.portal-pill-planned {
    background: rgba(245, 158, 11, 0.15);
    color: var(--portal-warning);
}

.portal-pill-completed {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.portal-empty {
    padding: 0.8rem;
    border: 1px dashed var(--portal-border);
    border-radius: 10px;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-muted-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}

.portal-muted-list li {
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-muted-list li:last-child {
    border-bottom: 0;
}

.portal-kicker {
    color: var(--portal-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

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

    .portal-layout {
        grid-template-columns: 1fr;
    }
}

