*, *::before, *::after {
    box-sizing: border-box;
}
body, h1, h2, h3, p, nav, footer, main {
    margin: 0;
    padding: 0;
}
a {
    color: inherit;
}
:root {
    --accent: #A078FF;
    --bg: #0d0d12;
    --surface: #15151c;
    --border: #26262f;
    --text: #e8e8f0;
    --muted: #8b8b9a;
}
html {
    background-color: #0d0d12;
}
body {
    background: radial-gradient(ellipse at 50% -20%, #1a1a24 0%, var(--bg) 60%);
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}
main {
    width: 100%;
    max-width: 640px;
}
.logo {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    margin-top: 5rem;
    animation: breathing 4s ease-in-out infinite;
}
@keyframes breathing {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(160, 120, 255, 0.35));
    }
    50% {
        filter: drop-shadow(0 0 26px rgba(170, 130, 255, 0.65));
    }
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 720px;
}
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}
.card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}
.card p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}
.card svg {
    width: 32px;
    height: 32px;
    opacity: 0.85;
}
.signin {
    display: inline-block;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 1.1rem;
    transition: all 0.25s ease;
}
.signin:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(160, 120, 255, 0.15);
}
.status {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.status.checking {
    background: var(--muted);
    opacity: 0.5;
}
.status.up {
    background: #3dd68c;
    box-shadow: 0 0 6px rgba(61, 214, 140, 0.5);
}
.status.down {
    background: #e5484d;
    box-shadow: 0 0 6px rgba(229, 72, 77, 0.5);
}
.status.maintenance {
    background: #ffb224;
    box-shadow: 0 0 6px rgba(255, 178, 36, 0.5);
}
.status.slow {
    background: #ffb224;
    box-shadow: 0 0 6px rgba(255, 178, 36, 0.5);
}
.appname {
    position: absolute;
    top: 2rem;
    right: 0.9rem;
    font-size: 0.5rem;
    color: var(--muted);
}
.section {
    margin-top: 2.5rem;
}
.section h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.section-sub {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0.75rem 0 0.4rem;
}
.section-sub.warning {
    color: var(--muted);
}
.codeblock {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin: 0.25rem 0 0.75rem;
    font-family: ui-monospace, "Cascadia Mono", monospace;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow-x: auto;
    padding-right: 3rem;
}
.codeblock code {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0;
}
.codeblock code::-webkit-scrollbar {
    display: none;
}
.codeblock::after {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 1px;
    right: 2.6rem;
    width: 2.2rem;
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
}
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
}
.copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.tunnel-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.6rem 0 0.2rem;
}
.tunnel-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.tunnel-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}
.tunnel-name {
    flex: 0 0 11.5rem;
    font-size: 0.82rem;
}
.tunnel-row code {
    flex: 1;
    font-size: 0.75rem;
    color: var(--muted);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}
.tunnel-row .copy-btn {
    position: static;
}
.status-inline {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
}
.status-inline.up {
    background: #3dd68c;
}
.status-inline.down {
    background: #e5484d;
}
.status-inline.maintenance, .status-inline.slow {
    background: #ffb224;
}
.status-inline.checking {
    background: var(--muted);
    opacity: 0.5;
}
.footnav {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem; flex-wrap: wrap;
}
.footnav .signin {
    flex: 1 1 0;
    max-width: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}