@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&display=swap");

:root {
    --bg-1: #f8f4ee;
    --bg-2: #fff9f6;
    --bg-3: #eef3fb;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-soft: rgba(255, 255, 255, 0.64);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(99, 113, 166, 0.12);
    --line-strong: rgba(99, 113, 166, 0.22);
    --text: #28324a;
    --muted: #7b839d;
    --accent: #e97d73;
    --accent-2: #6577dc;
    --accent-3: #52b6aa;
    --accent-4: #f0b25a;
    --accent-5: #9a86e8;
    --shadow: 0 22px 44px rgba(78, 92, 131, 0.1), 0 8px 18px rgba(233, 125, 115, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
    background:
        radial-gradient(circle at 14% 10%, rgba(233, 125, 115, 0.12), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(101, 119, 220, 0.12), transparent 22%),
        radial-gradient(circle at 84% 84%, rgba(82, 182, 170, 0.1), transparent 20%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(14px);
}

body::before {
    top: 72px;
    right: -78px;
    width: 220px;
    height: 220px;
    background: rgba(233, 125, 115, 0.1);
}

body::after {
    bottom: 54px;
    left: -84px;
    width: 250px;
    height: 250px;
    background: rgba(101, 119, 220, 0.1);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.mobile-home,
.subpage-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 28px 28px 48px;
}

.home-hero,
.subpage-header,
.subpage-panel,
.quick-links-panel,
.menu-card,
.link-card,
.quick-link-card,
.board-card,
.message-form-card,
.message-list-card,
.message-item,
.contact-card,
.stat-card,
.meta-card,
.empty-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.home-hero,
.subpage-panel,
.quick-links-panel {
    border-radius: 28px;
    padding: 28px;
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 248, 245, 0.92) 52%, rgba(243, 247, 255, 0.94) 100%);
}

.home-hero::before,
.subpage-panel::before,
.quick-links-panel::before,
.board-card::before,
.message-form-card::before,
.message-list-card::before,
.contact-card::before,
.link-card::before,
.menu-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 0 0 999px 999px;
}

.home-hero::before,
.subpage-panel::before,
.quick-links-panel::before,
.board-card::before,
.message-form-card::before,
.message-list-card::before {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 68%, var(--accent-3) 100%);
}

.subpage-header {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.subpage-header h1,
.home-hero h1,
.quick-links-head h2,
.board-head h4,
.contact-card strong {
    margin: 0;
}

.back-button,
.ghost-button,
#message-submit,
#home-message-submit,
#ai-site-submit,
.ai-site-admin-item button,
.pager button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.back-button {
    border: 1px solid rgba(101, 119, 220, 0.16);
    background: rgba(101, 119, 220, 0.08);
    color: var(--accent-2);
}

.ghost-button,
#message-submit,
#home-message-submit,
#ai-site-submit,
.pager button {
    border: none;
    background: linear-gradient(135deg, var(--accent-2) 0%, #7e8ee8 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(101, 119, 220, 0.18);
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(101, 119, 220, 0.12);
    background: rgba(101, 119, 220, 0.08);
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-hero h1 {
    margin-top: 14px;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
}

.subpage-header h1,
.board-head h4 {
    font-weight: 800;
}

.subpage-header h1 {
    font-size: clamp(24px, 5vw, 32px);
}

.home-hero p,
.subpage-desc,
.status-line,
.board-head p,
.message-head span,
.contact-card span,
.contact-card p,
.meta-card span,
.stat-card span,
.menu-card span,
.link-card p {
    color: var(--muted);
}

.home-hero p,
.subpage-desc,
.status-line,
.board-head p,
.contact-card p,
.link-card p,
.menu-card span {
    line-height: 1.7;
}

.home-menu-grid,
.quick-links-grid,
.link-grid,
.board-grid,
.stats-grid,
.meta-row,
.contact-grid {
    display: grid;
    gap: 14px;
}

.home-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
    perspective: 1200px;
}

.menu-card,
.link-card,
.quick-link-card,
.board-card,
.contact-card,
.stat-card,
.meta-card {
    border-radius: 24px;
    padding: 18px;
}

.menu-card,
.link-card,
.quick-link-card,
.contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.menu-card {
    min-height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 252, 255, 0.9) 100%);
}

.home-menu-grid .menu-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

.menu-card:nth-child(1) {
    --card-accent: var(--accent);
    --card-soft: rgba(233, 125, 115, 0.08);
}

.menu-card:nth-child(2) {
    --card-accent: var(--accent-2);
    --card-soft: rgba(101, 119, 220, 0.08);
}

.menu-card:nth-child(3) {
    --card-accent: var(--accent-3);
    --card-soft: rgba(82, 182, 170, 0.08);
}

.menu-card:nth-child(4) {
    --card-accent: var(--accent-4);
    --card-soft: rgba(240, 178, 90, 0.1);
}

.menu-card:nth-child(5) {
    --card-accent: var(--accent-5);
    --card-soft: rgba(154, 134, 232, 0.1);
}

.menu-card:nth-child(6) {
    --card-accent: #4f9fce;
    --card-soft: rgba(79, 159, 206, 0.1);
}

.menu-card::before,
.link-card::before,
.contact-card::before {
    background: var(--card-accent, linear-gradient(90deg, var(--accent), var(--accent-2)));
}

.menu-card i,
.link-card i,
.quick-link-card i {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 19px;
}

.menu-card i {
    background: var(--card-soft);
    color: var(--card-accent);
}

.menu-card strong,
.link-card h4,
.board-top strong,
.board-top b,
.meta-card strong,
.stat-card strong {
    display: block;
}

.menu-card strong,
.link-card h4 {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 800;
}

.quick-links-panel {
    margin-top: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 251, 255, 0.84) 100%);
}

.home-ai-panel {
    border-color: rgba(101, 119, 220, 0.28);
    background:
        linear-gradient(135deg, #dfe8ff 0%, #dcf7f1 52%, #fff0e8 100%);
    box-shadow: 0 28px 58px rgba(78, 92, 131, 0.18), 0 12px 28px rgba(82, 182, 170, 0.14);
}

.home-ai-panel .message-list-card {
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

.home-ai-panel .message-list-card::before {
    display: none;
}

.quick-links-head h2 {
    margin-top: 12px;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
}

.home-message-desc {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    perspective: 1200px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.9) 100%);
}

.quick-link-card:nth-child(1) i,
.link-card:nth-child(4n + 1) i {
    background: rgba(101, 119, 220, 0.1);
    color: var(--accent-2);
}

.quick-link-card:nth-child(2) i,
.link-card:nth-child(4n + 2) i {
    background: rgba(233, 125, 115, 0.1);
    color: var(--accent);
}

.quick-link-card:nth-child(3) i,
.link-card:nth-child(4n + 3) i {
    background: rgba(82, 182, 170, 0.1);
    color: var(--accent-3);
}

.quick-link-card:nth-child(4) i,
.link-card:nth-child(4n + 4) i {
    background: rgba(240, 178, 90, 0.12);
    color: #d89a3f;
}

.quick-link-card:nth-child(5) i {
    background: rgba(154, 134, 232, 0.12);
    color: var(--accent-5);
}

.quick-link-card:nth-child(6) i {
    background: rgba(233, 125, 115, 0.1);
    color: var(--accent);
}

.quick-link-card span {
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
}

.subpage-desc,
.status-line {
    margin: 0 0 16px;
    font-size: 15px;
}

.link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.9) 100%);
}

.link-card:nth-child(4n + 1) {
    --card-accent: var(--accent-2);
}

.link-card:nth-child(4n + 2) {
    --card-accent: var(--accent);
}

.link-card:nth-child(4n + 3) {
    --card-accent: var(--accent-3);
}

.link-card:nth-child(4n + 4) {
    --card-accent: #d89a3f;
}

.link-card:hover,
.ai-site-card:hover,
.quick-link-card:hover,
.board-card:hover,
.contact-card:hover,
.menu-card:hover,
.back-button:hover,
.ghost-button:hover,
#message-submit:hover,
#home-message-submit:hover,
#ai-site-submit:hover,
.ai-site-admin-item button:hover,
.pager button:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 46px rgba(78, 92, 131, 0.12), 0 10px 18px rgba(233, 125, 115, 0.07);
}

.stats-grid,
.meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.meta-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.9) 100%);
}

.stat-card strong,
.meta-card strong {
    margin-top: 8px;
    color: var(--accent-2);
    word-break: break-word;
    font-size: 20px;
    font-weight: 800;
}

.board-grid {
    grid-template-columns: 1fr;
    margin-top: 16px;
}

.board-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.9) 100%);
}

.board-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.board-head h4 {
    font-size: 20px;
}

.board-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2) 0%, #8b76e9 100%);
    box-shadow: 0 10px 18px rgba(101, 119, 220, 0.18);
    flex-shrink: 0;
}

.board-top {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(101, 119, 220, 0.08);
    background: linear-gradient(135deg, rgba(101, 119, 220, 0.08) 0%, rgba(233, 125, 115, 0.08) 100%);
}

.board-top span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.board-top strong {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 800;
}

.board-top b {
    margin-top: 6px;
    color: var(--accent-2);
    font-size: 16px;
}

.board-table {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.board-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 110px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(99, 113, 166, 0.08);
    font-size: 13px;
}

.board-row-head {
    color: var(--muted);
    background: rgba(243, 246, 255, 0.94);
    text-transform: uppercase;
    font-weight: 700;
}

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

.home-message-shell {
    grid-template-columns: 1fr;
    margin-top: 16px;
    align-items: start;
}

.subpage-panel .message-shell {
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.2fr);
    align-items: start;
}

.message-form-card,
.message-list-card {
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.9) 100%);
}

.message-form-card input,
.message-form-card textarea {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(99, 113, 166, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    outline: none;
}

.message-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.ai-admin-form {
    display: grid;
    gap: 12px;
}

.ai-admin-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.message-form-card input::placeholder,
.message-form-card textarea::placeholder {
    color: var(--muted);
}

#message-submit {
    width: 100%;
    margin-top: 12px;
}

#home-message-submit {
    width: 100%;
    margin-top: 12px;
}

#ai-site-submit {
    width: 100%;
    margin-top: 4px;
}

.ai-site-grid,
.ai-site-admin-list {
    display: grid;
    gap: 12px;
}

.ai-site-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-site-card,
.ai-site-admin-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ai-card-border, rgba(99, 113, 166, 0.22));
    border-radius: 18px;
    background: var(--ai-card-bg, linear-gradient(135deg, #e7edff 0%, #e4f8f4 100%));
    box-shadow: 0 18px 34px rgba(55, 68, 112, 0.14);
}

.ai-site-card {
    display: block;
    min-height: 170px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-site-card::before,
.ai-site-admin-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--ai-card-accent, var(--accent-2)), var(--ai-card-accent-2, var(--accent-3)));
}

.ai-site-card:nth-child(3n + 1),
.ai-site-admin-item:nth-child(3n + 1) {
    --ai-card-accent: #6577dc;
    --ai-card-accent-2: #52b6aa;
    --ai-card-bg: linear-gradient(135deg, #e2e8ff 0%, #d8f6ef 100%);
    --ai-card-border: rgba(101, 119, 220, 0.34);
}

.ai-site-card:nth-child(3n + 2),
.ai-site-admin-item:nth-child(3n + 2) {
    --ai-card-accent: #e97d73;
    --ai-card-accent-2: #f0b25a;
    --ai-card-bg: linear-gradient(135deg, #ffe3dd 0%, #fff1c9 100%);
    --ai-card-border: rgba(233, 125, 115, 0.34);
}

.ai-site-card:nth-child(3n + 3),
.ai-site-admin-item:nth-child(3n + 3) {
    --ai-card-accent: #9a86e8;
    --ai-card-accent-2: #4f9fce;
    --ai-card-bg: linear-gradient(135deg, #eee6ff 0%, #dcefff 100%);
    --ai-card-border: rgba(154, 134, 232, 0.34);
}

.ai-site-card h3,
.ai-site-admin-item h3 {
    margin: 10px 0 8px;
    color: #1f2940;
    font-size: 18px;
    line-height: 1.35;
}

.ai-site-card p,
.ai-site-admin-item p {
    margin: 0;
    color: #4c5875;
    line-height: 1.65;
}

.ai-site-card small,
.ai-site-admin-item a {
    display: block;
    margin-top: 12px;
    color: var(--ai-card-accent, var(--accent-2));
    font-weight: 800;
    word-break: break-all;
}

.ai-site-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(101, 119, 220, 0.14);
    background: color-mix(in srgb, var(--ai-card-accent, var(--accent-3)) 14%, white);
    color: var(--ai-card-accent, var(--accent-3));
    font-size: 12px;
    font-weight: 800;
}

.ai-site-admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.ai-site-admin-item button {
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #e96666 0%, #f08d77 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(233, 102, 102, 0.18);
}

.message-list {
    display: grid;
    gap: 12px;
    min-height: 240px;
}

.home-message-list {
    min-height: 320px;
}

.message-item {
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 255, 0.92) 100%);
}

.message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
}

.message-item p {
    margin: 0;
    line-height: 1.8;
    word-break: break-word;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.pager button:disabled {
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.home-message-link {
    width: 100%;
    margin-top: 12px;
}

.home-message-pager {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.home-message-pages {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.home-message-pages::-webkit-scrollbar {
    height: 6px;
}

.home-message-pages button {
    flex: 0 0 auto;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(101, 119, 220, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-2);
    font-weight: 700;
    box-shadow: none;
    scroll-snap-align: center;
}

.home-message-pages button.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-2) 0%, #7e8ee8 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(101, 119, 220, 0.18);
}

.home-message-pages button:hover {
    transform: translateY(-1px);
}

.contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 255, 0.9) 100%);
}

.contact-card:nth-child(1) {
    --card-accent: var(--accent);
}

.contact-card:nth-child(2) {
    --card-accent: var(--accent-2);
}

.contact-card:nth-child(3) {
    --card-accent: var(--accent-3);
}

.contact-card:nth-child(4) {
    --card-accent: #d89a3f;
}

.contact-card strong {
    margin-top: 8px;
    color: var(--accent-2);
    font-size: 22px;
}

.empty-card {
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 255, 0.9) 100%);
}

.empty-card.compact {
    padding: 12px;
}

.home-hero,
.subpage-header,
.subpage-panel,
.quick-links-panel,
.menu-card,
.quick-link-card {
    animation: panel-rise 0.42s ease both;
}

.home-menu-grid .menu-card:nth-child(1) {
    animation-delay: 0.04s;
}

.home-menu-grid .menu-card:nth-child(2) {
    animation-delay: 0.08s;
}

.home-menu-grid .menu-card:nth-child(3) {
    animation-delay: 0.12s;
}

.home-menu-grid .menu-card:nth-child(4) {
    animation-delay: 0.16s;
}

.home-menu-grid .menu-card:nth-child(5) {
    animation-delay: 0.2s;
}

.quick-links-grid .quick-link-card:nth-child(1) {
    animation-delay: 0.12s;
}

.quick-links-grid .quick-link-card:nth-child(2) {
    animation-delay: 0.16s;
}

.quick-links-grid .quick-link-card:nth-child(3) {
    animation-delay: 0.2s;
}

.quick-links-grid .quick-link-card:nth-child(4) {
    animation-delay: 0.24s;
}

.quick-links-grid .quick-link-card:nth-child(5) {
    animation-delay: 0.28s;
}

.quick-links-grid .quick-link-card:nth-child(6) {
    animation-delay: 0.32s;
}

@keyframes panel-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1040px) {
    .mobile-home,
    .subpage-shell {
        width: min(100%, 860px);
        padding: 22px 18px 38px;
    }

    .home-menu-grid,
    .link-grid,
    .ai-site-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subpage-panel .message-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mobile-home,
    .subpage-shell {
        padding: 14px 12px 28px;
    }

    .subpage-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-menu-grid,
    .link-grid,
    .ai-site-grid,
    .stats-grid,
    .meta-row,
    .contact-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .home-message-shell {
        grid-template-columns: 1fr;
    }

    .home-menu-grid .menu-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .board-row {
        grid-template-columns: 1fr;
    }

    .pager {
        flex-direction: column;
        align-items: stretch;
    }
}
