
:root {
    --background: #ffffff;
    --surface: #ffffff;
    --border: #e8eaf0;
    --text: #20232b;
    --muted: #737987;
    --accent: #5268d9;
    --soft: #f5f6fa;
}

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

body {
    background: var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.header {
    border-bottom: 1px solid var(--border);
    padding: 20px 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: auto;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 19px;
}

.brand span {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
}

.container {
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: auto;
}

.welcome {
    padding: 55px 0 30px;
}

.welcome h1 {
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: -1.2px;
}

.welcome p {
    color: var(--muted);
    margin-top: 10px;
}

.search {
    margin-bottom: 35px;
}

.search label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.search input {
    width: 100%;
    max-width: 550px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    outline: none;
}

.search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82, 104, 217, .10);
}

.category {
    margin-bottom: 35px;
}

.category summary {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 17px;
}

.category summary::-webkit-details-marker {
    display: none;
}

.category summary::after {
    content: "⌄";
    margin-left: auto;
    color: var(--muted);
}

.category:not([open]) summary::after {
    content: "›";
}

.category-icon {
    font-size: 21px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.service {
    display: flex;
    flex-direction: column;
    min-height: 145px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

a.service:hover {
    border-color: #c5ccef;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(20, 30, 60, .06);
}

.service-icon {
    font-size: 23px;
    margin-bottom: 13px;
}

.service h3 {
    font-size: 16px;
    margin-bottom: 7px;
}

.service p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.service-status {
    margin-top: auto;
    padding-top: 13px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.service.disabled {
    background: #fafafa;
    border-style: dashed;
    color: #777;
}

.service.disabled .service-status {
    color: #9a7a35;
}

.empty {
    color: var(--muted);
    padding: 20px 0;
    font-size: 14px;
}

.loading {
    color: var(--muted);
    font-size: 14px;
}

.footer {
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: 55px auto 0;
    padding: 20px 0 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 600px) {
    .header {
        padding: 16px;
    }

    .welcome {
        padding-top: 38px;
    }

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