:root {
    --aimee-bg: #f4f1fb;
    --aimee-sidebar: #f8fafc;
    --aimee-sidebar-text: #1f2937;
    --aimee-accent: #7c3aed;
    --aimee-accent-dark: #5b21b6;
    --aimee-text: #1e1430;
    --aimee-muted: #6b5a7a;
    --aimee-card: #ffffff;
    --aimee-border: #e4d7f2;
    --aimee-user: #efe7fb;
    --aimee-send: #3b82f6;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--aimee-text);
    background: var(--aimee-bg);
    line-height: 1.55;
}

.aimee-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.docs-nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aimee-sidebar {
    background: var(--aimee-sidebar);
    color: var(--aimee-sidebar-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 16px 12px;
    border-right: 1px solid #e2e8f0;
}

.aimee-sidebar__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.aimee-sidebar-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.aimee-sidebar-logo a {
    display: block;
    width: 80%;
    max-width: 220px;
}

.aimee-sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.aimee-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.aimee-brand strong {
    display: block;
    font-size: 17px;
    color: #1e1430;
}

.aimee-brand span {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

.aimee-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aimee-conv {
    display: block;
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #1f2937;
    text-align: left;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.aimee-conv:hover {
    border-color: #cbd5f5;
    background: #f8fafc;
}

.aimee-conv.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.aimee-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    background: var(--aimee-bg);
}

.aimee-main__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--aimee-border);
    background: var(--aimee-card);
    position: sticky;
    top: 0;
    z-index: 5;
}

.aimee-main__bar h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
}

.aimee-icon-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #475569;
    align-items: center;
    justify-content: center;
}

.aimee-icon-btn:hover { background: #eef2f7; color: #1e293b; }

.docs-nav-backdrop { display: none; }

.aimee-docs {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 32px 64px;
}

.lead {
    color: var(--aimee-muted);
    margin: 0 0 20px;
    font-size: 15px;
}

h2 {
    font-size: 1.15rem;
    margin: 32px 0 8px;
    color: var(--aimee-text);
}

p, li { color: var(--aimee-text); }
ul, ol { padding-left: 1.25rem; }
li { margin: 4px 0; }

a { color: #1d4ed8; }
a:hover { text-decoration: underline; }

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

code {
    background: var(--aimee-user);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

pre {
    background: #1e1430;
    color: #f8f0ff;
    padding: 14px 16px;
    border-radius: 12px;
    overflow: auto;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.card,
.aimee-card {
    background: var(--aimee-card);
    border: 1px solid var(--aimee-border);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 12px 0;
}

.aimee-card strong { display: inline; }

.aimee-card__title {
    margin: 0 0 4px;
    font-size: 15px;
}

.aimee-card__desc {
    margin: 0 0 8px;
    color: var(--aimee-muted);
    font-size: 13.5px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    background: var(--aimee-card);
    border: 1px solid var(--aimee-border);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    border-bottom: 1px solid #f0eaf9;
    text-align: left;
    padding: 10px 12px;
    vertical-align: top;
}

tr:last-child td { border-bottom: 0; }

th {
    color: var(--aimee-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #faf8fd;
}

.aimee-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    background: #eff6ff;
    color: #1d4ed8;
}

@media (max-width: 800px) {
    .aimee-app { grid-template-columns: 1fr; }

    .aimee-icon-btn { display: inline-flex; }

    .aimee-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(280px, 86vw);
        z-index: 20;
        transform: translateX(-105%);
        transition: transform 0.18s ease;
        box-shadow: none;
    }

    .docs-nav-toggle:checked ~ .aimee-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
    }

    .docs-nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 15;
        border: 0;
        padding: 0;
        margin: 0;
    }

    .docs-nav-toggle:checked ~ .docs-nav-backdrop { display: block; }

    .aimee-docs { padding: 20px 16px 48px; }
    .aimee-main__bar { padding: 12px 12px; }
}
