:root {
  --paper: #FBF6EA;
  --paper-2: #FFFDF4;
  --ink: #3A3128;
  --ink-2: #6E6255;
  --ink-3: #A39685;
  --red: #E4572E;
  --yellow: #F2A900;
  --blue: #3E7CB1;
  --teal: #2A9D8F;
  --green: #6A994E;
  --pink: #E76F8A;
  --purple: #7D5BA6;
  --shadow: rgba(58, 49, 40, .14);
  --font-display: 'ZCOOL KuaiLe', 'Comic Sans MS', 'KaiTi', 'STKaiti', '楷体', cursive;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(58, 49, 40, .08) 1px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
code { background: rgba(58,49,40,.08); padding: .15em .4em; border-radius: 6px; font-size: .9em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .6em 1.2em; z-index: 100;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 234, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--shadow);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 22px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; color: var(--red); transform: rotate(-4deg); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .5px;
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.logo-text::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M1 6Q4 1 8 5T15 4' fill='none' stroke='%23E4572E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom;
  background-size: 16px 8px;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); font-weight: 600; padding: 7px 13px;
  border-radius: 12px 5px 14px 7px / 7px 14px 5px 12px;
  border: 2px solid transparent; transition: all .18s;
}
.main-nav a:hover { border-color: var(--ink); background: #fff; color: var(--red); }
.main-nav a.active { background: var(--yellow); border-color: var(--ink); color: var(--ink); }

.header-search { margin-left: auto; display: flex; align-items: center; }
.header-search input {
  width: 190px; padding: 8px 12px; border: 2px solid var(--ink);
  border-radius: 14px 5px 15px 7px / 7px 15px 5px 14px; background: var(--paper-2);
  font-size: .9rem; color: var(--ink); outline: none;
}
.header-search input:focus { background: #fff; }
.header-search button {
  border: 0; background: none; cursor: pointer; color: var(--ink);
  margin-left: -40px; display: flex; padding: 6px;
}
.header-search button svg { width: 19px; height: 19px; }
.header-search button:hover { color: var(--red); }

.nav-toggle {
  display: none; border: 2px solid var(--ink); background: var(--paper-2); cursor: pointer;
  width: 44px; height: 40px; border-radius: 10px 5px 12px 6px / 6px 12px 5px 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.flash-area { max-width: 1120px; margin: 18px auto 0; padding: 0 20px; }
.flash {
  padding: 12px 18px; border: 2px solid var(--ink); border-radius: 14px 6px 16px 8px / 8px 16px 6px 14px;
  font-weight: 600; margin-bottom: 10px; box-shadow: 3px 3px 0 var(--shadow);
}
.flash-success { background: #EAF4E4; }
.flash-error { background: #FBE9E4; }

.hero { padding: 44px 20px 26px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-kicker {
  font-family: var(--font-display); color: var(--ink-2); letter-spacing: 4px; font-size: 1rem;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.25; margin: 6px 0 14px; letter-spacing: 2px;
  display: inline-block;
}
.hero-404 { font-size: clamp(3.6rem, 12vw, 6rem); letter-spacing: 8px; }
.hero-scribble { width: min(240px, 70%); height: auto; margin: 0 auto 12px; display: block; }
.hero-hint { color: var(--ink-2); font-size: .97rem; }
.hero-small { padding: 30px 20px 18px; }

.layout-grid {
  max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px;
  display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start;
}
.main-col { min-width: 0; }

.sketch-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 22px 8px 24px 10px / 10px 26px 8px 22px;
  box-shadow: 6px 6px 0 var(--shadow);
  margin-bottom: 26px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.sketch-card:nth-child(even) { border-radius: 10px 22px 8px 24px / 24px 8px 22px 10px; }
.sketch-card:hover { transform: translate(-2px, -3px) rotate(-.3deg); box-shadow: 9px 9px 0 var(--shadow); }
.card-cover { display: block; border-bottom: 2px dashed var(--ink); overflow: hidden; border-radius: 20px 6px 0 0 / 8px 24px 0 0; }
.card-cover:first-child { border-radius: 20px 6px 0 0 / 8px 26px 0 0; }
.card-cover img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s; }
.sketch-card:hover .card-cover img { transform: scale(1.03); }
.card-body { padding: 20px 24px 18px; }
.card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .85rem; }
.meta-icon { width: 15px; height: 15px; }
.card-title { font-size: 1.32rem; line-height: 1.4; margin-bottom: 8px; }
.card-title a { color: var(--ink); font-weight: 700; }
.card-title a:hover { color: var(--red); text-decoration: underline wavy rgba(228,87,46,.5) 2px; text-underline-offset: 5px; }
.card-excerpt { color: var(--ink-2); margin-bottom: 14px; }

.chip {
  display: inline-block; padding: 2px 12px; border: 2px solid var(--ink);
  font-size: .78rem; font-weight: 700; color: var(--ink); background: #fff;
  border-radius: 999px 40% 999px 40% / 40% 999px 40% 999px;
  line-height: 1.9;
}
.chip:hover { transform: rotate(-1.5deg); }
.chip-cat { background: var(--yellow); }
.chip-top { background: var(--pink); color: #fff; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 2px dashed var(--ink-3); padding-top: 12px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-size: .78rem; font-weight: 600; padding: 1px 10px;
  border-radius: 10px 4px 12px 5px / 5px 12px 4px 10px;
  transition: .15s; line-height: 1.8;
}
.tag-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: rotate(-1.5deg); }
.tag-chip span { font-size: .7rem; color: var(--ink-2); }
.tag-chip:hover span { color: #dfe9f5; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); }
.arrow-icon { width: 26px; height: 13px; }
.read-more:hover { text-decoration: underline wavy rgba(228,87,46,.55) 2px; text-underline-offset: 4px; }

.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }
.note-card {
  background: #FFF3B0; border: 2px solid var(--ink); padding: 18px 20px;
  border-radius: 20px 8px 22px 10px / 10px 22px 8px 20px;
  transform: rotate(-1.2deg); box-shadow: 5px 5px 0 var(--shadow);
  position: relative; margin-bottom: 4px;
}
.note-card::before {
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 92px; height: 22px; background: rgba(255,255,255,.55);
  border-left: 2px dashed rgba(58,49,40,.25); border-right: 2px dashed rgba(58,49,40,.25);
}
.note-card-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.note-card p { color: var(--ink-2); font-size: .9rem; }
.note-card-slogan { margin-top: 8px; text-align: right; }
.widget {
  background: var(--paper-2); border: 2px solid var(--ink);
  border-radius: 18px 7px 20px 9px / 9px 20px 7px 18px; padding: 16px 18px;
  box-shadow: 4px 4px 0 var(--shadow);
}
.widget-title {
  font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; background: var(--red); border-radius: 50%; }
.widget-list li { border-bottom: 2px dashed rgba(58,49,40,.15); padding: 7px 0; display: flex; justify-content: space-between; align-items: center; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: var(--ink); font-weight: 600; }
.widget-list a:hover { color: var(--red); }
.widget-count { background: rgba(58,49,40,.08); border-radius: 999px; font-size: .75rem; padding: 0 9px; color: var(--ink-2); }
.widget-recent li { display: block; }
.widget-recent a { font-weight: 400; font-size: .9rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag-chip:nth-child(3n) { background: #FFE8C2; }
.tag-cloud .tag-chip:nth-child(3n+1) { background: #E3F0FA; }
.tag-cloud .tag-chip:nth-child(3n+2) { background: #E9F3E6; }

.btn {
  display: inline-block; padding: .55em 1.5em; border: 2px solid var(--ink);
  border-radius: 14px 6px 16px 8px / 8px 16px 6px 14px;
  background: var(--paper-2); color: var(--ink); font-weight: 700; cursor: pointer;
  font-size: .95rem; line-height: 1.5; text-align: center;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); color: var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; }
.btn-block { display: block; width: 100%; }
a.btn { text-decoration: none; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 14px; opacity: .8; }
.empty-state span { font-size: 1.05rem; }

.sketch-pagination ul { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pg-btn {
  display: inline-block; min-width: 40px; padding: .4em .9em; text-align: center;
  border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink); font-weight: 700;
  border-radius: 12px 5px 14px 7px / 7px 14px 5px 12px; box-shadow: 2px 2px 0 var(--ink);
}
.pg-btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); color: var(--ink); }
.pg-btn.current { background: var(--ink); color: #fff; box-shadow: none; }

.article-page {
  max-width: 800px; margin: 0 auto 30px; padding: 0 20px;
}
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .88rem; margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--red); }
.article-title { font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.35; margin-bottom: 12px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; border-bottom: 2px dashed var(--ink-3); padding-bottom: 16px; margin-bottom: 18px; }
.article-cover { margin-bottom: 22px; }
.article-cover img {
  width: 100%; max-height: 420px; object-fit: cover;
  border: 2px solid var(--ink); border-radius: 22px 8px 24px 10px / 10px 26px 8px 22px;
  box-shadow: 6px 6px 0 var(--shadow);
}
.article-content { font-size: 1.02rem; }
.article-content h2, .article-content h3, .article-content h4 {
  font-weight: 700; margin: 1.5em 0 .6em; line-height: 1.4;
  font-family: var(--font-display);
}
.article-content h2 { font-size: 1.45rem; }
.article-content h3 { font-size: 1.22rem; }
.article-content p { margin-bottom: 1.1em; }
.article-content ul, .article-content ol { margin: 0 0 1.1em 1.6em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .35em; }
.article-content blockquote {
  margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--red);
  background: rgba(228,87,46,.07); border-radius: 0 12px 8px 0 / 0 14px 8px 0;
  color: var(--ink-2);
}
.article-content pre {
  background: #2E2820; color: #F2E8D5; padding: 16px 18px; overflow-x: auto;
  border-radius: 16px 6px 18px 8px / 8px 18px 6px 16px; margin: 1.2em 0; font-size: .92rem;
}
.article-content img {
  margin: 1em auto; border: 2px solid var(--ink); border-radius: 16px 6px 18px 8px / 8px 18px 6px 16px;
  box-shadow: 4px 4px 0 var(--shadow);
}
.article-content a { text-decoration: underline dotted; text-underline-offset: 3px; }
.article-content hr { border: 0; height: 12px; margin: 2em auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 7Q20 2 40 7T80 7T118 6' fill='none' stroke='%23A39685' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / auto 100%; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 6px; }
.tag-chip-lg { font-size: .9rem; padding: 4px 14px; }

.related { max-width: 800px; margin: 0 auto 34px; padding: 0 20px; }
.section-title {
  font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 6px;
}
.comment-count { background: var(--blue); color: #fff; border-radius: 999px; font-size: .8rem; padding: 1px 10px; font-family: var(--font-body); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.related-card {
  background: var(--paper-2); border: 2px solid var(--ink); padding: 12px;
  border-radius: 16px 6px 18px 8px / 8px 18px 6px 16px; box-shadow: 4px 4px 0 var(--shadow);
  display: flex; flex-direction: column; gap: 8px; color: var(--ink); transition: .18s;
}
.related-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); color: var(--ink); }
.related-card img { height: 120px; object-fit: cover; border-radius: 12px 5px 13px 6px / 6px 13px 5px 12px; }
.related-title { font-weight: 700; font-size: .95rem; }
.related-date { color: var(--ink-3); font-size: .8rem; }

.comments-section { max-width: 800px; margin: 0 auto 50px; padding: 0 20px; }
.comment-item {
  background: var(--paper-2); border: 2px solid var(--ink);
  border-radius: 18px 7px 20px 9px / 9px 20px 7px 18px; padding: 14px 18px;
  margin-bottom: 14px; box-shadow: 3px 3px 0 var(--shadow);
}
.comment-children { margin-left: 34px; margin-top: 14px; }
.comment-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.comment-name { font-weight: 700; font-family: var(--font-display); font-size: 1.02rem; }
.comment-date { color: var(--ink-3); font-size: .8rem; }
.comment-body { color: var(--ink); word-break: break-word; }
.comment-actions { margin-top: 8px; }
.reply-btn {
  border: 2px solid var(--ink); background: transparent; cursor: pointer;
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  border-radius: 10px 4px 11px 5px / 5px 11px 4px 10px; padding: 2px 12px;
}
.reply-btn:hover { background: var(--yellow); color: var(--ink); }

.comment-form-card {
  background: var(--paper-2); border: 2px solid var(--ink); margin-top: 22px;
  border-radius: 22px 8px 24px 10px / 10px 26px 8px 22px; padding: 22px 26px;
  box-shadow: 5px 5px 0 var(--shadow);
}
.comment-form-card h3 { font-family: var(--font-display); margin-bottom: 14px; font-size: 1.2rem; }
.comment-form-card textarea { width: 100%; }

.page-wrap { max-width: 800px; margin: 30px auto 50px; padding: 0 20px; }
.page-card { padding: 34px 38px; }
.page-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 18px; font-family: var(--font-display); }
.page-content { font-size: 1.02rem; }

.auth-wrap { max-width: 460px; margin: 40px auto 60px; padding: 0 20px; }
.auth-card { padding: 32px 34px 26px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-title { font-family: var(--font-display); font-size: 1.7rem; }
.auth-head .hero-scribble { width: 160px; margin: 4px auto 8px; }
.auth-sub { color: var(--ink-2); font-size: .9rem; }
.auth-switch { text-align: center; margin-top: 16px; font-size: .92rem; color: var(--ink-2); }
.auth-switch a { font-weight: 700; }

.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form-item input[type="text"], .form-item input[type="email"], .form-item input[type="password"],
.form-item input[type="search"], .form-item input[type="number"], .form-item textarea, .form-item select {
  width: 100%; padding: 10px 13px; border: 2px solid var(--ink);
  border-radius: 14px 5px 15px 7px / 7px 15px 5px 14px; background: var(--paper-2);
  font-size: .95rem; color: var(--ink); font-family: var(--font-body); outline: none;
}
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  background: #fff; box-shadow: 0 0 0 3px rgba(228,87,46,.18);
}
.form-item textarea { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-weight: 400; color: var(--ink-3); font-size: .8rem; margin-top: 5px; }

.site-footer {
  border-top: 2px solid var(--ink); background: #F1E8D4;
  box-shadow: inset 0 4px 0 rgba(58,49,40,.06);
  margin-top: 20px;
}
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 20px 26px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; position: relative; display: inline-block; }
.footer-logo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M1 6Q4 1 8 5T15 4' fill='none' stroke='%23E4572E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom;
  background-size: 16px 8px;
}
.footer-desc { color: var(--ink-2); font-size: .9rem; margin-bottom: 6px; }
.footer-title { font-weight: 700; margin-bottom: 10px; font-family: var(--font-display); letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col a { color: var(--ink-2); font-size: .9rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 2px dashed var(--ink-3); padding-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  color: var(--ink-2); font-size: .85rem;
}
.footer-bottom a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.footer-bottom a:hover { color: var(--red); }
.gongan-icon { width: 13px; height: 15px; }
.footer-text { width: 100%; text-align: center; color: var(--ink-3); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise .5s ease forwards; }
.sketch-card:nth-of-type(1) { animation-delay: .05s; }
.sketch-card:nth-of-type(2) { animation-delay: .12s; }
.sketch-card:nth-of-type(3) { animation-delay: .19s; }
.sketch-card:nth-of-type(4) { animation-delay: .26s; }
.sketch-card:nth-of-type(5) { animation-delay: .33s; }
.sketch-card:nth-of-type(6) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

::selection { background: var(--yellow); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav {
    display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch;
    background: var(--paper-2); border: 2px solid var(--ink); border-radius: 16px 6px 18px 8px / 8px 18px 6px 16px;
    padding: 8px; box-shadow: 4px 4px 0 var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; }
  .header-search { order: 4; width: 100%; margin-left: 0; }
  .header-search input { width: 100%; }
  .header-search button { margin-left: -40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .comment-children { margin-left: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .page-card { padding: 22px 20px; }
}

@media (max-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .card-body { padding: 16px 16px 14px; }
}