/* MyPetStory, Seiten-Komponenten (Haustier-Details, Dashboard, Formulare) */

/* Haustier-Kopf */
.pet-details-container { max-width: 1000px; margin: 0 auto; }
.pet-header { display: grid; grid-template-columns: 200px 1fr; gap: 1.75rem; align-items: start; padding: 1.6rem; margin-bottom: 1.25rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.pet-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gradient-forest); }
.pet-avatar { display: flex; flex-direction: column; align-items: center; font-size: 3.5rem; text-align: center; }
.pet-avatar > img { width: 160px !important; height: 160px !important; border-radius: 50% !important; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--primary-500), var(--shadow-md); }
.pet-avatar form { width: 100%; margin-top: 1rem; }
.pet-info h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .9rem; }
.pet-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.pet-meta-item { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary-800); font-size: .87rem; font-weight: 600; }
.pet-meta-item i { color: var(--primary-600); }
@media (prefers-color-scheme: dark) { .pet-meta-item { color: #a7f3d0; } }
@media (max-width: 700px) { .pet-header { grid-template-columns: 1fr; text-align: center; } .pet-meta { justify-content: center; } }

/* Tabs */
.pet-tabs { display: flex; gap: .4rem; padding: .35rem; margin-bottom: 1.25rem; background: var(--bg-tertiary); border-radius: var(--radius-lg); overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(var(--header-top-height) + .4rem); z-index: 50; }
.pet-tabs::-webkit-scrollbar { display: none; }
.pet-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem; border: 0; border-radius: var(--radius-md);
    background: transparent; color: var(--text-secondary); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: var(--transition-all); }
.pet-tab:hover { color: var(--text-primary); }
.pet-tab.active { background: var(--surface); color: var(--primary-700); box-shadow: var(--shadow-sm); }
.pet-tab-content { display: none; }
.pet-tab-content.active { display: block; animation: fadeInUp .35s ease both; }

.pet-details-card, .card-forest, .card-earth { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.pet-details-card h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; }
.pet-details-card h2 i { color: var(--primary-600); }
.notes-section { margin-top: 1rem; padding: 1rem 1.1rem; background: var(--surface-2); border-radius: var(--radius-md); border-left: 4px solid var(--primary-500); }
.notes-section h3 { font-size: 1rem; }
.form-separator { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.pet-infos-detail { display: flex; gap: .5rem; align-items: center; }
.pet-infos-detail-button { border: 0; background: var(--primary-50); color: var(--primary-700); border-radius: var(--radius-sm); padding: .5rem .7rem; cursor: pointer; }
.delete-button-pet-details { position: fixed; right: 1rem; bottom: calc(var(--navbar-bottom-height) + 1rem); z-index: 60; width: 52px; height: 52px; display: grid; place-items: center;
    border-radius: 50%; background: var(--danger); color: #fff; box-shadow: var(--shadow-lg); font-size: 1.2rem; transition: var(--transition-all); }
.delete-button-pet-details:hover { transform: scale(1.08); color: #fff; }

/* Datenkarten (Vitalwerte, Ernährung, Dokumente, Fotos, Maßnahmen ...) */
.measure-card, .nutrition-card, .vital-card, .diet-card, .food-card, .document-card, .photo-card, .vaccination-item, .guide-section, .motivation-card, .checklist-section {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; box-shadow: var(--shadow-sm); transition: var(--transition-all); }
.measure-card:hover, .nutrition-card:hover, .vital-card:hover, .diet-card:hover, .document-card:hover, .photo-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.photos-grid, .documents-grid, .nutrition-grid, .vital-records-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.photo-card { padding: 0; overflow: hidden; }
.photo-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-info, .photo-actions { padding: .75rem 1rem; }
.accordion { width: 100% !important; max-width: 100% !important; border: 0; border-radius: var(--radius-md); background: var(--gradient-forest) !important; color: #fff; font-weight: 700; padding: .9rem 1.1rem !important; margin-bottom: .5rem; box-shadow: var(--shadow-sm); }
.panel { background: var(--surface) !important; border-color: var(--border) !important; border-radius: var(--radius-lg) !important; }
.no-data, .no-charts-message { text-align: center; color: var(--text-tertiary); padding: 2rem 1rem; }
.vital-value.normal { color: var(--primary-600); } .vital-value.abnormal { color: var(--danger); }
.overdue { color: var(--danger); } .upcoming { color: var(--secondary-500); } .future { color: var(--primary-600); }
.chart-wrapper { background: var(--surface); border-radius: var(--radius-lg); padding: 1rem; border: 1px solid var(--border); }

/* Dashboard-Karten, falls Seiten sie nutzen */
.stats-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.stat-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 0; text-align: left; padding: 1.1rem 1.25rem; }
.stat-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--gradient-forest); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 18px rgba(5,150,105,.3); }
.stat-card:nth-child(2) .stat-icon { background: var(--gradient-warm); box-shadow: 0 8px 18px rgba(249,115,22,.3); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg,#3b82f6,#6366f1); box-shadow: 0 8px 18px rgba(99,102,241,.3); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg,#ec4899,#f43f5e); box-shadow: 0 8px 18px rgba(244,63,94,.3); }
.stat-content h3 { font-size: 2rem; line-height: 1; margin: 0 0 .25rem; }
.stat-content p { margin: 0; color: var(--text-secondary); font-size: .9rem; font-weight: 500; }
.section { margin-bottom: 1.25rem; }


/* Mobile-first: Detailseite & Dashboard zentriert */
.pet-header { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.pet-meta { justify-content: center; }
.pet-avatar form { max-width: 320px; }
.pet-tabs { justify-content: flex-start; margin-inline: -.25rem; }
.pet-details-card h2 { justify-content: center; }
.notes-section { text-align: left; }
.stat-card { justify-content: flex-start; }
.stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat-card { flex-direction: column; text-align: center !important; gap: .6rem; padding: 1rem .75rem; }
.stat-content h3 { font-size: 1.8rem; }
@media (min-width: 760px) {
    .pet-header { grid-template-columns: 200px 1fr; text-align: left; justify-items: stretch; }
    .pet-meta { justify-content: flex-start; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .photos-grid, .documents-grid, .nutrition-grid, .vital-records-grid, .measures-grid { grid-template-columns: 1fr !important; }
    .delete-button-pet-details { bottom: calc(var(--navbar-bottom-height) + env(safe-area-inset-bottom, 0) + .8rem); }
}
@media (max-width: 640px) {
    .pet-tabs { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; position: static; }
    .pet-tab { flex-direction: column; gap: .2rem; padding: .55rem .15rem; font-size: .72rem; min-height: 56px; }
    .pet-tab i { font-size: 1.05rem; }
}
.pet-avatar input[type="file"] { width: 100%; font-size: 14px; }

/* ===== Erinnerungs-Modal ===== */
body.rm-open { overflow: hidden; }
.rm-overlay { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    background: rgba(8, 20, 15, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.rm-overlay[hidden] { display: none; }
.rm-card { width: min(460px, 100%); background: var(--surface); border-radius: 26px; padding: 1.4rem 1.25rem 1.2rem; box-shadow: var(--shadow-2xl); border: 1px solid var(--border); text-align: center; animation: rmUp .35s cubic-bezier(.2,.9,.3,1.15) both; }
@media (min-width: 600px) { .rm-overlay { align-items: center; } }
.rm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.rm-badge { padding: .3rem .8rem; border-radius: 999px; background: var(--primary-50); color: var(--primary-700); font-weight: 800; font-size: .8rem; }
.rm-count { color: var(--text-tertiary); font-size: .8rem; font-weight: 600; }
.rm-pet { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.rm-pet small { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.rm-body h2 { font-size: 1.15rem; margin: .5rem 0 .8rem; }
.rm-line { color: var(--text-secondary); margin-bottom: .35rem; word-break: break-word; }
.rm-ack { display: block; width: 100%; min-height: 56px; margin-top: 1.2rem; border: 0; border-radius: 16px; background: var(--gradient-forest); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(5,150,105,.35); }
.rm-ack:active { transform: scale(.98); }
.rm-snooze { display: block; width: 100%; min-height: 44px; margin-top: .5rem; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-weight: 600; cursor: pointer; }
@keyframes rmUp { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Erinnerungen / Telegram-Seiten ===== */
.container.narrow { max-width: 640px; }
.card-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.muted { color: var(--text-secondary); font-size: .93rem; }
.stack-form .btn { margin-top: .4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn-row form { flex: 1 1 200px; }
.btn-row .btn { width: 100%; }
.tg-banner { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--primary-200); color: var(--text-primary); }
.tg-banner i.fa-telegram { font-size: 1.8rem; color: #229ed9; }
.tg-banner span { flex: 1; font-size: .93rem; }
.tg-banner.on { border-style: solid; background: var(--primary-50); }
.tg-status { display: flex; align-items: center; gap: 1rem; }
.tg-status p { margin: 0; color: var(--text-secondary); font-size: .9rem; }
.tg-status-ico { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #e6f4fb; color: #229ed9; font-size: 1.8rem; }
.tg-status.on { border-color: var(--primary-500); }
.guide-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 1rem; }
.guide-steps p { margin: .25rem 0 0; color: var(--text-secondary); font-size: .93rem; }
code { background: var(--bg-tertiary); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
.reminder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.reminder-item { display: flex; gap: .9rem; align-items: center; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.reminder-item.due { border-color: var(--secondary-500); background: var(--warning-soft); }
.reminder-ico { font-size: 1.7rem; flex: none; }
.reminder-body { flex: 1; min-width: 0; display: grid; gap: .1rem; text-align: left; }
.reminder-body span { color: var(--text-secondary); font-size: .85rem; word-break: break-word; }
.reminder-when { font-weight: 600; }
.reminder-actions { display: flex; flex-direction: column; gap: .4rem; }
.reminder-actions .btn { width: 44px; padding: 0; }

/* ===== Vermittlung ===== */
.public-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top, 0));
    background: var(--surface); border-bottom: 1px solid var(--border); }
.public-bar > a { font-weight: 800; color: var(--text-primary); }
.public-bar .pb-actions { display: flex; align-items: center; gap: .5rem; }
.filter-bar { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 720px) { .filter-bar { grid-template-columns: 2fr 1fr auto; } }
.adopt-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .adopt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .adopt-grid { grid-template-columns: repeat(3, 1fr); } }
.adopt-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); transition: var(--transition-all); }
.adopt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.adopt-link { display: block; color: inherit; }
.adopt-card img, .adopt-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.adopt-ph { display: grid; place-items: center; font-size: 3rem; background: var(--gradient-forest); }
.adopt-info { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .3rem; text-align: center; }
.adopt-info strong { font-size: 1.15rem; }
.adopt-info span { color: var(--text-secondary); font-size: .88rem; }
.adopt-org { font-size: .8rem !important; color: var(--text-tertiary) !important; }
.adopt-flag { position: absolute; top: .7rem; right: .7rem; padding: .25rem .7rem; border-radius: 999px; background: var(--secondary-500); color: #fff; font-size: .75rem; font-weight: 800; }
.inline-status { margin: .3rem 0 .2rem; }
.inline-status select { min-height: 44px; }
.adopt-detail { text-align: center; }
.adopt-hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-lg); aspect-ratio: 4/3; }
.adopt-desc { text-align: left; margin: 1.2rem 0; color: var(--text-primary); }
.adopt-org-box { display: grid; gap: .3rem; margin: 1.2rem 0; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; }
.adopt-detail .btn { width: 100%; }
body.public-page { padding-top: 0; }
body.public-page .main-content { padding-top: 1.25rem; }

/* ===== Rechtstexte ===== */
.legal { text-align: left; line-height: 1.7; }
.legal h1 { font-size: 1.7rem; margin-bottom: 1rem; text-align: center; }
.legal h2 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; color: var(--primary-700); }
.legal p, .legal li { color: var(--text-primary); font-size: .96rem; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal .stand { color: var(--text-tertiary); font-size: .85rem; text-align: center; }
.legal address { font-style: normal; padding: .9rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.legal a { word-break: break-word; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin: 1.2rem 0 0; font-size: .88rem; font-weight: 600; }
.legal-links a { color: var(--text-secondary); }
.tip { border-color: var(--secondary-500); background: var(--warning-soft); }
.tip .muted { color: var(--text-primary); }
.tip-list { margin: .8rem 0 0; padding-left: 1.1rem; display: grid; gap: .55rem; font-size: .93rem; }

/* Öffentliche Kopfleiste: Symbole mobil */
.pb-actions { display: flex; align-items: center; gap: .5rem; }
.pb-login, .pb-reg { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.pb-login { width: 44px; padding: 0; border: 1.5px solid var(--border); color: var(--text-primary); background: var(--surface); }
.pb-reg { padding: 0 1rem; background: var(--gradient-forest); color: #fff !important; box-shadow: 0 6px 14px rgba(5,150,105,.3); }
.pb-login .pb-txt, .pb-reg .pb-long { display: none; }
.pb-reg .pb-short { display: inline; }
@media (min-width: 520px) {
    .pb-login { width: auto; padding: 0 1rem; }
    .pb-login .pb-txt, .pb-reg .pb-long { display: inline; }
    .pb-reg .pb-short { display: none; }
}

.onboard-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem;
    list-style: none; margin: 0 0 1.4rem; padding: 0;
}
.onboard-steps li {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    text-align: center; font-size: .8rem; font-weight: 700; color: var(--text-secondary);
    background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-md);
    padding: .7rem .4rem;
}
.onboard-steps li span {
    width: 1.7rem; height: 1.7rem; border-radius: 999px; display: grid; place-items: center;
    background: var(--surface-2); color: var(--text-primary); font-size: .85rem;
}
.onboard-steps li.is-on { border-style: solid; border-color: var(--primary-500); color: var(--primary-700); }
.onboard-steps li.is-on span { background: var(--gradient-forest); color: #fff; }
body.onboard-first .pets-section { display: none; }
body.onboard-first #togglePetsList,
body.onboard-first #toggleAddPet,
body.onboard-first .add-pet-toggle-row,
body.onboard-first .no-pets-message { display: none; }

.add-pet-form-card {
    color-scheme: light;
    background: #fff;
    color: #16211c;
    border: 1px solid rgba(255,255,255,.55);
}
.add-pet-form-card .form-subtitle,
.add-pet-form-card .form-label { color: #3d5249; }
.add-pet-form-card .form-title { color: #16211c; }
.add-pet-form-card .form-label {
    position: static;
    display: block;
    margin: 0 0 .35rem;
    font-size: .8rem;
    font-weight: 700;
    pointer-events: auto;
}
.add-pet-form-card .form-input,
.add-pet-form-card .form-textarea,
.add-pet-form-card select {
    background: #fff;
    color: #16211c;
    border: 1.5px solid #e3e9e5;
    min-height: 48px;
    font-size: 16px;
    padding: .75rem .95rem;
    width: 100%;
}
.add-pet-form-card .form-textarea { min-height: 96px; }
.add-pet-form { display: flex; flex-direction: column; gap: 0; }
.add-pet-form .btn-lg { width: 100%; min-height: 52px; margin-top: .35rem; }
.add-pet-form .btn-loading[hidden], .add-pet-form .btn-content[hidden] { display: none !important; }
.add-pet-more {
    margin: .15rem 0 1rem;
    border: 1px dashed #d1fae5;
    border-radius: 14px;
    padding: .15rem .9rem .2rem;
    background: #f4faf7;
}
.add-pet-more summary {
    cursor: pointer;
    font-weight: 700;
    font-size: .92rem;
    color: #065f46;
    padding: .7rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}
.add-pet-more summary::-webkit-details-marker { display: none; }
.add-pet-more summary span { font-weight: 600; color: #6b7c74; font-size: .8rem; }
.add-pet-more summary::after {
    content: ''; width: .5rem; height: .5rem; border-right: 2px solid #059669; border-bottom: 2px solid #059669;
    transform: rotate(45deg); margin-top: -.15rem;
}
.add-pet-more[open] summary::after { transform: rotate(225deg); margin-top: .15rem; }
.add-pet-form .check-row {
    display: flex; align-items: center; gap: .65rem;
    margin: 0 0 1rem; color: #3d5249; font-weight: 600; cursor: pointer;
}

@media (max-width: 640px) {
    .onboard-steps { gap: .4rem; margin-bottom: 1rem; }
    .onboard-steps li { font-size: .72rem; padding: .55rem .25rem; }
    .add-pet-form-card { padding: 1.15rem 1rem 1.25rem; }
    .add-pet-form-card .form-header { margin-bottom: 1.1rem; }
    .add-pet-form-card .form-icon { width: 48px; height: 48px; font-size: 1.2rem; }
}

.tg-first { border-color: var(--primary-500); background: var(--primary-50, #ecfdf5); }
.danger-zone { border-color: #fda4af; }
.adopt-empty .btn { margin-top: .6rem; }
.container.narrow { max-width: 640px; }

.msg-grid { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 1rem; align-items: start; }
.msg-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.msg-list li { margin: 0; border-bottom: 1px solid var(--border); }
.msg-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .65rem 0; }
.msg-thread { display: flex; flex-direction: column; gap: .5rem; max-height: 52vh; overflow: auto; margin: 0 0 1rem; }
.msg-bubble { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; }
.msg-bubble.mine { align-self: flex-end; background: var(--primary-50, #ecfdf5); }
.msg-bubble.theirs { align-self: flex-start; background: var(--bg-tertiary, #f3f4f6); }
.msg-bubble time { display: block; font-size: .72rem; color: var(--text-tertiary); margin-top: .35rem; }
.badge { background: var(--danger, #e11d48); color: #fff; border-radius: 999px; font-size: .7rem; padding: .1rem .45rem; }
.community-comment { border-top: 1px solid var(--border); padding: .7rem 0 0; margin-top: .7rem; }
.report-box { display: inline-block; }
.report-box summary { cursor: pointer; color: var(--danger, #be123c); font-weight: 600; }
.stack-form { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 760px) {
    .msg-grid { grid-template-columns: 1fr; }
    .type-switch { grid-template-columns: 1fr; }
}
