:root {
    --bg: #f7f8f4;
    --surface: #ffffff;
    --ink: #1d2522;
    --muted: #64706b;
    --line: #dfe5dd;
    --green: #1f7a55;
    --green-dark: #15533b;
    --blue: #316dca;
    --amber: #f2b84b;
    --shadow: 0 20px 50px rgba(22, 38, 31, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(49, 109, 202, 0.12), transparent 34%),
        linear-gradient(225deg, rgba(242, 184, 75, 0.18), transparent 32%),
        var(--bg);
}

button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: var(--green);
    cursor: default;
}

button:nth-child(2) {
    color: var(--green-dark);
    background: #dceee5;
}

button:nth-child(3) {
    color: #1d355f;
    background: #dbe8ff;
}

.page-shell {
    width: min(1080px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    align-content: center;
    gap: 22px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 40px;
    align-items: center;
}

.env-label {
    width: fit-content;
    margin: 0 0 18px;
    border: 1px solid rgba(31, 122, 85, 0.25);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.72);
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 11vw, 6rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.lead {
    max-width: 560px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.chat-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.preview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.88rem;
}

.preview-head strong {
    color: #94690d;
}

.bubble {
    width: fit-content;
    max-width: 88%;
    margin-top: 12px;
    border-radius: 8px;
    padding: 13px 15px;
    line-height: 1.65;
    background: #eef2ee;
}

.bubble.user {
    margin-left: auto;
    color: #fff;
    background: var(--green);
}

.bubble.ai {
    color: #25312c;
    background: #f2f5f0;
}

.bubble.short {
    background: var(--blue);
}

.status-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.status-panel > div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.status-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.status-panel strong {
    font-size: 1rem;
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 24px, 560px);
        padding: 24px 0;
        align-content: start;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lead {
        font-size: 1rem;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .chat-preview {
        padding: 14px;
    }

    .status-panel {
        grid-template-columns: 1fr;
    }
}
