:root {
    color-scheme: light dark;
    --fg: #18221f;
    --muted: #64736e;
    --glass: #ffffff90;
    --border: #ffffff9c;
    --accent: #3d8b6d
}

@media(prefers-color-scheme:dark) {
    :root {
        --fg: #edf6f1;
        --muted: #a9bbb3;
        --glass: #0d171499;
        --border: #ffffff20
    }
}

html.theme-light {
    color-scheme: light;
    --fg: #18221f;
    --muted: #64736e;
    --glass: #ffffff90;
    --border: #ffffff9c
}

html.theme-dark {
    color-scheme: dark;
    --fg: #edf6f1;
    --muted: #a9bbb3;
    --glass: #0d171499;
    --border: #ffffff20
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--fg);
    font: 15px system-ui;
    background: var(--bg) center/cover fixed
}

body:after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #fff3
}

html.theme-dark body:after {
    background: #0006
}

.container {
    width: min(1120px, calc(100% - 36px));
    margin: auto;
    padding: 52px 0
}

.hero,
.section {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    margin-bottom: 18px
}

.eyebrow {
    font-size: .75rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted)
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin: .1em 0
}

.hero p {
    color: var(--muted)
}

#search {
    display: none;
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--fg)
}

#signOutButton {
    position: absolute;
    right: 40px;
    top: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--glass);
    color: var(--fg)
}

#signOutButton:hover {
    transform: translateY(-2px) scale(1.05);
}

.footer {
    text-align: center;
    color: var(--muted);
    margin-top: 26px;
    font-size: .82rem
}

#grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.section h2 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted)
}

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff3;
    color: var(--fg);
    text-decoration: none
}

.service:hover {
    transform: translateY(-2px)
}

.offline {
    filter: grayscale(1);
    opacity: .4
}

.favicon {
    width: 38px;
    height: 38px;
    padding: 7px;
    border-radius: 9px;
    object-fit: contain;
    background: #3d8b6d20
}

.fallback {
    display: grid;
    place-items: center;
    font-size: 1.1rem
}

.copy {
    min-width: 0
}

.copy strong,
.copy small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.copy small,
.status {
    color: var(--muted);
    font-size: .7rem
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d44;
    margin-right: 4px
}

.online .dot {
    background: #39a85c
}

.unknown .dot {
    background: #d7e34a
}

#controls {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    opacity: .1;
    transition: .2s
}

#controls:hover,
#controls:focus-within {
    opacity: 1
}

#controls button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff2;
    color: var(--fg)
}

#bgName {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px;
    font-size: .7rem;
    color: var(--muted)
}

@media(max-width:760px) {
    .container {
        padding: 20px 0;
        width: calc(100% - 22px)
    }

    #grid {
        grid-template-columns: 1fr
    }

    .services {
        grid-template-columns: 1fr
    }
}