* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: #1957a6;
}

.shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.topbar a,
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 16px;
    background: #1957a6;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.button.secondary,
.topbar a {
    background: #e3e9f3;
    color: #172033;
}

.hero {
    padding: 36px 0 24px;
}

.hero.compact {
    padding-top: 10px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #6b3f8f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

h2,
h3,
p {
    margin-top: 0;
}

.panel,
.grid article,
.message-card {
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
}

.panel {
    padding: 24px;
    margin-bottom: 24px;
}

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

.grid article {
    padding: 22px;
}

.notice {
    border-left: 4px solid #1957a6;
    padding: 12px 14px;
    background: #eef5ff;
}

.notice.success {
    border-color: #178a55;
    background: #eefaf4;
}

.notice.warning {
    border-color: #b54708;
    background: #fff5eb;
}

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

.message-list {
    display: grid;
    gap: 16px;
}

.message-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 20px;
    padding: 22px;
}

.message-card h2 {
    overflow-wrap: anywhere;
}

.snippet,
.muted {
    color: #5f6f86;
}

.attachments {
    display: grid;
    align-content: start;
    gap: 8px;
}

.attachment {
    display: block;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafd;
    text-decoration: none;
}

.attachment span {
    display: block;
    color: #5f6f86;
    font-size: 0.88rem;
}

code {
    border-radius: 6px;
    padding: 2px 5px;
    background: #edf1f7;
}

@media (max-width: 760px) {
    .grid,
    .message-card {
        grid-template-columns: 1fr;
    }
}
