/* Place the school's licensed Persian WOFF2 font at this path before deployment. */
@font-face {
  font-family: "SchoolPersian";
  src: url("fonts/school-persian.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-primary: "SchoolPersian", sans-serif;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --white: #ffffff;
  --canvas: #f1f5f9;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #15803d;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --shadow: 0 14px 40px rgba(15, 23, 42, .08);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  direction: rtl;
  font-family: var(--font-primary);
}

body,
button,
input,
select,
textarea,
option,
table,
th,
td,
label,
a {
  font-family: var(--font-primary);
}

button,
input,
select,
textarea {
  font-size: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

.app-root { min-height: 100vh; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; overflow: hidden; padding: 2px; background: #fff; color: var(--blue); font-size: 24px; font-weight: 800; border: 1px solid #dbe4f0; box-shadow: 0 8px 18px rgba(37,99,235,.16); }
.brand-logo-img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.logo-missing::after { content: "پ"; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); background: var(--white); }
.login-art { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 96px); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #1d4ed8, #2563eb 54%, #60a5fa); color: white; }
.login-art::before,
.login-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; pointer-events: none; }
.login-art::before { width: 520px; height: 520px; top: -180px; left: -190px; }
.login-art::after { width: 760px; height: 760px; bottom: -490px; right: -180px; }
.login-art-content, .login-art-footer { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(70px, 12vh, 140px); }
.login-brand .brand-mark { width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.72); background: #fff; box-shadow: none; }
.login-brand strong { display: block; font-size: 19px; }
.login-brand span { display: block; margin-top: 3px; color: rgba(255,255,255,.77); font-size: 12px; }
.login-art h1 { max-width: 570px; margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.45; letter-spacing: -.04em; }
.login-art p { max-width: 540px; color: rgba(255,255,255,.82); line-height: 2; font-size: 15px; }
.login-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.27); border-radius: 999px; color: rgba(255,255,255,.92); font-size: 12px; background: rgba(255,255,255,.1); }
.login-pill i { width: 7px; height: 7px; border-radius: 50%; background: #86efac; box-shadow: 0 0 0 4px rgba(134,239,172,.13); }
.login-art-footer { color: rgba(255,255,255,.68); font-size: 12px; }
.login-panel-wrap { display: grid; place-items: center; padding: 36px 24px; }
.login-panel { width: min(100%, 440px); }
.login-panel h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.login-panel > p { margin: 0 0 28px; color: var(--muted); line-height: 1.9; font-size: 14px; }
.login-panel .form-field { margin-bottom: 16px; }
.login-panel .btn { width: 100%; margin-top: 10px; padding-block: 13px; }
.login-note { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Main application shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 15px; background: #fff; border-left: 1px solid var(--line); z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 24px; }
.sidebar-brand .brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
.sidebar-brand strong { display: block; font-size: 15px; }
.sidebar-brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.nav-caption { padding: 11px 10px 8px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.nav-list { display: grid; gap: 4px; overflow-y: auto; padding: 0 0 14px; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: #475569; text-align: right; font-size: 13px; transition: background .15s ease, color .15s ease, transform .15s ease; }
.nav-item:hover { background: #f8fafc; color: var(--blue-dark); }
.nav-item.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.nav-icon { width: 20px; display: inline-grid; place-items: center; font-size: 16px; opacity: .9; }
.sidebar-bottom { margin-top: auto; padding: 14px 5px 0; border-top: 1px solid var(--line); }
.sidebar-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; padding: 9px 8px 14px; }
.sidebar-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.user-mini { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 13px; background: #f8fafc; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #dbeafe; color: var(--blue-dark); font-weight: 800; }
.user-mini-info { min-width: 0; flex: 1; }
.user-mini-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-mini-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.logout-icon { border: 0; border-radius: 9px; background: transparent; color: #64748b; padding: 7px; }
.logout-icon:hover { color: var(--red); background: var(--red-soft); }
.main-area { min-width: 0; padding: 0 clamp(18px, 3vw, 40px) 40px; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.topbar-title h1 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.topbar-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.date-chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: #475569; background: white; font-size: 11px; }
.mobile-menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); }
.content { padding-top: 26px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-intro h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.page-intro p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards and data panels */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; min-height: 132px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 10px rgba(15,23,42,.025); }
.stat-card::after { content: ""; position: absolute; left: -25px; bottom: -42px; width: 112px; height: 112px; border-radius: 50%; background: var(--blue-soft); opacity: .75; }
.stat-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); font-size: 17px; }
.stat-value { position: relative; z-index: 1; margin-top: 19px; font-weight: 800; font-size: 26px; letter-spacing: -.04em; }
.stat-foot { position: relative; z-index: 1; margin-top: 4px; color: #94a3b8; font-size: 10px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 10px rgba(15,23,42,.025); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #f1f5f9; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 18px 20px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 16px; }

/* Forms and actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 11px; background: var(--blue); color: white; font-weight: 700; font-size: 12px; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-secondary { border-color: var(--line); background: white; color: #334155; }
.btn-secondary:hover { border-color: #bfdbfe; background: #f8fbff; color: var(--blue-dark); }
.btn-quiet { border-color: transparent; background: transparent; color: #475569; }
.btn-quiet:hover { background: #f1f5f9; color: var(--ink); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #991b1b; }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.readonly-summary { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; color: var(--muted); font-size: 12px; }
.btn-small { min-height: 30px; padding: 6px 9px; border-radius: 9px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-field { min-width: 0; display: grid; gap: 7px; }
.form-field label { color: #475569; font-size: 11px; font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea,
.search-input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 11px; background: white; color: var(--ink); outline: none; transition: border .15s ease, box-shadow .15s ease; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.password-input-wrap { position: relative; width: 100%; min-width: 0; }
.form-field .password-input-wrap input { padding-inline-end: 68px; }
.password-visibility-toggle { position: absolute; top: 50%; inset-inline-end: 7px; transform: translateY(-50%); padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--blue-dark); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.password-visibility-toggle:hover { background: #eff6ff; }
.password-visibility-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.form-field textarea { min-height: 100px; resize: vertical; line-height: 1.9; }
.form-field input::placeholder,
.form-field textarea::placeholder,
.search-input::placeholder { color: #94a3b8; }
.form-field .hint { color: #94a3b8; font-size: 10px; line-height: 1.7; }
.form-actions { display: flex; justify-content: flex-start; gap: 8px; padding-top: 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid #f1f5f9; }
.search-wrap { position: relative; width: min(100%, 310px); }
.search-wrap .search-input { min-height: 38px; padding-inline-start: 36px; font-size: 11px; }
.search-symbol { position: absolute; top: 10px; left: 12px; color: #94a3b8; font-size: 14px; }
.toolbar-note { color: #94a3b8; font-size: 10px; }

/* Tables, badges, alerts and empty states */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; white-space: nowrap; }
th { padding: 12px 15px; background: #f8fafc; color: #64748b; font-size: 10px; font-weight: 800; }
td { padding: 13px 15px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
.grade-roster { min-width: 420px; }
.grade-roster-input { width: 110px; min-height: 36px; padding: 7px 9px; border: 1px solid #dbe3ee; border-radius: 9px; background: white; color: var(--ink); }
.cell-primary { color: var(--ink); font-weight: 700; }
.cell-secondary { display: block; margin-top: 4px; color: #94a3b8; font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 700; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.status-present, .status-active, .status-read { background: var(--green-soft); color: var(--green); }
.status-late, .status-pending { background: var(--amber-soft); color: var(--amber); }
.status-absent, .status-inactive, .status-overdue { background: var(--red-soft); color: var(--red); }
.status-dismissed { background: #ffedd5; color: #c2410c; }
.status-excused { background: #e0f2fe; color: #0369a1; }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 44px 18px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #f1f5f9; color: #94a3b8; font-size: 22px; }
.empty-state strong { margin-top: 13px; color: #334155; font-size: 13px; }
.empty-state span { max-width: 430px; margin-top: 7px; font-size: 11px; line-height: 1.9; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #f1f5f9; color: var(--muted); font-size: 10px; }
.pagination { display: flex; gap: 6px; }
.pagination button { width: 32px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #334155; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.alert { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid #bfdbfe; border-radius: 13px; background: #eff6ff; color: #1e40af; font-size: 11px; line-height: 1.9; }
.alert.warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.alert.error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.password-reminder { margin-top: 16px; align-items: center; justify-content: space-between; gap: 14px; }
.password-reminder > span { flex: 1; }
.notice-list { display: grid; gap: 10px; }
.notice-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.notice-item:last-child { border-bottom: 0; }
.notice-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--blue); }
.notice-item strong { display: block; font-size: 11px; }
.notice-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.notice-item small { display: block; margin-top: 5px; color: #94a3b8; font-size: 9px; }

/* Dialog and toast */
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.45); z-index: 50; }
.modal { width: min(100%, 650px); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; background: white; box-shadow: 0 25px 80px rgba(15,23,42,.25); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: white; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f1f5f9; color: #475569; }
.modal-body { padding: 20px; }
.toast-stack { position: fixed; left: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast { padding: 12px 15px; border-radius: 12px; background: #0f172a; color: white; font-size: 11px; line-height: 1.7; box-shadow: var(--shadow); animation: toast-in .18s ease-out; }
.toast.error { background: #991b1b; }
.toast.success { background: #166534; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 278px; height: 100dvh; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 12px 0 30px rgba(15,23,42,.12); }
  html[dir="rtl"] .sidebar { inset: 0 0 0 auto; transform: translateX(105%); }
  .sidebar.open { transform: translateX(0) !important; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 15; background: rgba(15,23,42,.35); }
  .main-area { padding-inline: 18px; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .topbar { min-height: 72px; }
  .date-chip { display: none; }
}
@media (max-width: 620px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel-wrap { min-height: 100vh; padding: 28px 20px; }
  .login-panel h2 { font-size: 24px; }
  .main-area { padding-inline: 14px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title p { display: none; }
  .content { padding-top: 18px; }
  .page-intro { display: block; }
  .page-actions { margin-top: 12px; }
  .card-grid { gap: 9px; }
  .stat-card { min-height: 115px; padding: 14px; border-radius: 14px; }
  .stat-value { margin-top: 15px; font-size: 22px; }
  .stat-label { font-size: 10px; }
  .stat-icon { width: 30px; height: 30px; font-size: 14px; }
  .panel-head, .panel-body { padding-inline: 14px; }
  .toolbar { padding-inline: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .table-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Persian-calendar inputs, public registration and explicit parent-child selection */
[hidden] { display: none !important; }
.link-button { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; background: transparent; color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.link-button:hover { text-decoration: underline; }
.jalali-date-input { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
.search-row { display: flex; align-items: stretch; gap: 8px; }
.search-row input { flex: 1; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 11px; outline: none; }
.search-row input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.child-search-results, .selected-children { display: grid; gap: 8px; color: #64748b; font-size: 11px; line-height: 1.8; }
.child-search-result, .selected-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.child-search-result span, .selected-child span { display: grid; gap: 3px; min-width: 0; }
.child-search-result strong, .selected-child strong { color: var(--ink); font-size: 11px; }
.child-search-result small, .selected-child small { color: var(--muted); font-size: 10px; }
.selected-child { background: #f0f7ff; border-color: #dbeafe; }
@media (max-width: 620px) {
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
  .child-search-result, .selected-child { align-items: flex-start; }
  .password-reminder { align-items: stretch; flex-direction: column; }
}

/* Bounded content pages and standard form modules from the no-code panel */
.panel-nav-link { text-decoration: none; }
.custom-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.custom-content-block { min-width: 0; padding: 20px; color: var(--ink); }
.custom-content-block h3 { margin: 0 0 9px; font-size: 15px; }
.custom-content-block p { margin: 0; color: #475569; font-size: 13px; line-height: 2; white-space: normal; overflow-wrap: anywhere; }
.custom-content-card, .custom-link-block { position: relative; display: grid; gap: 8px; padding: 18px 20px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.custom-content-card:hover, .custom-link-block:hover { border-color: #bfdbfe; transform: translateY(-1px); }
.custom-content-card h3, .custom-link-block strong { margin: 0; color: var(--blue-dark); font-size: 14px; }
.custom-link-block span:not(.custom-link-arrow) { color: var(--muted); font-size: 12px; line-height: 1.8; }
.custom-link-arrow { position: absolute; left: 16px; top: 16px; color: var(--blue); }
.custom-notice-block { display: grid; gap: 4px; grid-column: 1 / -1; }
.custom-notice-block strong { font-size: 13px; }
.custom-notice-block span { white-space: pre-line; }
.custom-image-block { overflow: hidden; margin: 0; padding: 0; }
.custom-image-block img { display: block; width: 100%; max-height: 420px; object-fit: cover; background: #f1f5f9; }
.custom-image-block figcaption { padding: 10px 15px; color: var(--muted); font-size: 11px; }
.custom-form-panel { padding-bottom: 18px; }
.custom-module-form { padding: 18px 20px 0; }
.custom-checkbox-field { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #475569; font-size: 12px; }
.custom-checkbox-field input { width: 18px; height: 18px; accent-color: var(--blue); }
@media (max-width: 620px) {
  .custom-content-grid { grid-template-columns: 1fr; }
  .custom-module-form { padding-inline: 14px; }
}

/* User-created safe blocks from the site-wide visual builder. */
.visual-user-block { margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.visual-user-block h2 { margin: 0; font-size: 1.25em; }
.visual-user-block strong { display: block; }
.visual-user-block p { margin: 7px 0 0; color: var(--muted); line-height: 1.9; }
.visual-user-notice { background: #fffbeb; border-color: #fde68a; }
.visual-user-link, .visual-user-card { display: block; text-decoration: none; color: inherit; }
.visual-user-heading { background: transparent; border: 0; padding-inline: 0; }
