:root {
  --app-bg: #f6f7f9;
  --app-surface: #fff;
  --app-border: #dfe3e8;
  --app-muted: #6b7280;
  --app-text: #1f2937;
  --app-danger: #b42318;
  --app-danger-dark: #8f1d14;
  --app-focus: rgba(180, 35, 24, .24);
}

html { scroll-behavior: smooth; }
body {
  background: var(--app-bg);
  color: var(--app-text);
  font-size: 15px;
  letter-spacing: 0;
}

.app-navbar { box-shadow: 0 2px 12px rgba(31, 41, 55, .12); }
.app-shell { padding: .75rem; }

@media (min-width: 992px) {
  .app-shell { padding: 1rem 1.25rem; }
}

.card {
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.card.shadow-sm,
.card.shadow-lg {
  box-shadow: 0 8px 22px rgba(31, 41, 55, .06) !important;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.alert,
.list-group-item,
.accordion-item,
.accordion-button {
  border-radius: 8px;
}

.btn-danger {
  background-color: var(--app-danger);
  border-color: var(--app-danger);
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--app-danger-dark);
  border-color: var(--app-danger-dark);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--app-danger);
  box-shadow: 0 0 0 .2rem var(--app-focus);
}

.form-label {
  color: #374151;
  font-weight: 600;
  margin-bottom: .35rem;
}

.form-text,
.text-muted { color: var(--app-muted) !important; }

.page-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.toolbar-card .card-body { padding: .875rem; }
.section-title { font-size: 1rem; font-weight: 700; }
.empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #cfd6df;
  border-radius: 8px;
  color: var(--app-muted);
  display: flex;
  min-height: 96px;
  padding: 1rem;
}

img.rounded { border-radius: 8px !important; }
.media-thumb,
.preview-grid img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--app-border);
  background: #f3f4f6;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .5rem;
  margin-top: .5rem;
}

.status-badge { font-weight: 700; letter-spacing: 0; }

.submit-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: .35rem;
  vertical-align: -.15em;
  border: .15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: submit-spinner .75s linear infinite;
}

@keyframes submit-spinner {
  to { transform: rotate(360deg); }
}

.sidebar-sticky {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
}

.sidebar-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 60vh;
}

@supports (height: 100dvh) {
  .sidebar-scroll { max-height: calc(100dvh - 12rem); }
}

@supports not (height: 100dvh) {
  .sidebar-scroll { max-height: calc(100vh - 12rem); }
}

@media (max-width: 575.98px) {
  .btn { white-space: normal; }
  .d-flex.gap-2:not(.keep-inline) { gap: .5rem !important; }
  .card-body { padding: .875rem; }
}

.admin-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.admin-sidebar {
  align-self: start;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: .875rem;
  position: sticky;
  top: 1rem;
}

.admin-sidebar-head,
.admin-surface-head {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.admin-eyebrow {
  color: #6b7280;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-nav-section { margin-top: .875rem; }
.admin-nav-section-title {
  color: #6b7280;
  font-size: .78rem;
  font-weight: 700;
  margin: .25rem .35rem;
}

.admin-nav-link {
  align-items: center;
  border-radius: 8px;
  color: #374151;
  display: flex;
  gap: .55rem;
  padding: .55rem .65rem;
  text-decoration: none;
}

.admin-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.admin-nav-link.active {
  background: #b42318;
  color: #fff;
}

.admin-main { min-width: 0; }

.admin-surface {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 1rem;
}

.admin-kpi-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: #111827;
  display: flex;
  gap: .75rem;
  padding: .9rem;
  text-decoration: none;
}

.admin-kpi:hover {
  border-color: #b42318;
  color: #111827;
}

.admin-kpi-icon {
  align-items: center;
  background: #fee2e2;
  border-radius: 8px;
  color: #991b1b;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.admin-kpi strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.admin-kpi small {
  color: #6b7280;
  display: block;
  margin-top: .25rem;
}

.admin-table th {
  background: #f9fafb;
  color: #374151;
  font-size: .78rem;
  text-transform: uppercase;
}

.admin-table td,
.admin-table th {
  padding: .75rem;
  vertical-align: middle;
}

.admin-form .form-check-input {
  margin-left: 0;
}

.admin-choice-panel {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  overflow: hidden;
}

.admin-choice-toolbar {
  align-items: center;
  background: #f9fafb;
  border-bottom: 1px solid var(--app-border);
  display: grid;
  gap: .5rem;
  grid-template-columns: minmax(180px, 1fr) auto;
  padding: .65rem;
}

.admin-choice-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}

.admin-choice-list {
  min-height: 460px;
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: .5rem;
}

.admin-choice-list > div,
.admin-choice-list li {
  margin: 0;
}

.admin-choice-list label {
  align-items: flex-start;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: .55rem;
  line-height: 1.25;
  margin: 0;
  padding: .5rem;
}

.admin-choice-list label:hover {
  background: #f3f4f6;
}

.admin-choice-list input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: .1rem;
}

.audit-tools h3 {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  margin: .15rem 0 .25rem;
}

.audit-tools p {
  color: var(--app-muted);
  font-size: .9rem;
  margin: 0;
}

.audit-tool-box {
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  height: 100%;
  padding: .85rem;
}

.audit-inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.audit-inline-form .form-control {
  max-width: 180px;
}

.audit-purge-form .form-select {
  min-width: min(100%, 260px);
}

.profile-page-title {
  align-items: flex-start;
}

.profile-admin-form {
  padding-bottom: 1rem;
}

.profile-editor-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.profile-overview,
.profile-main-stack {
  display: grid;
  gap: 1rem;
}

.profile-overview {
  position: sticky;
  top: 1rem;
}

.profile-section {
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 1rem;
}

.profile-avatar {
  align-items: center;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  display: inline-flex;
  font-size: 1.45rem;
  height: 52px;
  justify-content: center;
  margin-bottom: .75rem;
  width: 52px;
}

.profile-user-heading {
  border-bottom: 1px solid var(--app-border);
  margin-bottom: 1rem;
  padding-bottom: .875rem;
}

.profile-user-heading h3,
.profile-section-title h3 {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.profile-user-heading p,
.profile-section-title p {
  color: var(--app-muted);
  font-size: .9rem;
  line-height: 1.35;
  margin: .25rem 0 0;
}

.profile-field-block + .profile-field-block {
  margin-top: .875rem;
}

.profile-field-block {
  margin-bottom: 1rem;
}

.profile-toggle-row {
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  display: flex;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: .75rem;
}

.profile-toggle-row input {
  flex: 0 0 auto;
  margin-top: .2rem;
}

.profile-toggle-row label {
  margin: 0;
}

.profile-toggle-row strong,
.profile-toggle-row span {
  display: block;
}

.profile-toggle-row span {
  color: var(--app-muted);
  font-size: .86rem;
  line-height: 1.35;
  margin-top: .15rem;
}

.profile-summary {
  display: grid;
  gap: .7rem;
}

.profile-summary-row {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .7rem .75rem;
}

.profile-summary-row span {
  align-items: center;
  color: #374151;
  display: inline-flex;
  gap: .45rem;
  min-width: 0;
}

.profile-summary-row strong {
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.profile-section-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .875rem;
}

.profile-section-title {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  min-width: 0;
}

.profile-section-icon {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  border-radius: 8px;
  color: #3730a3;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.profile-count-badge {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 800;
  padding: .28rem .62rem;
  white-space: nowrap;
}

.profile-choice-panel {
  background: #fff;
}

.profile-choice-toolbar {
  grid-template-columns: minmax(220px, 1fr) auto;
  padding: .75rem;
}

.profile-choice-list {
  display: grid;
  gap: .35rem;
  max-height: min(66vh, 640px);
  min-height: 430px;
  padding: .75rem;
}

.profile-choice-row {
  align-items: flex-start;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  gap: .65rem;
  line-height: 1.3;
  margin: 0;
  padding: .72rem .75rem;
}

.profile-choice-row:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.profile-choice-row:has(input:checked) {
  background: #fff7ed;
  border-color: #fed7aa;
}

.profile-choice-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: .12rem;
}

.profile-field-note {
  color: var(--app-muted);
  font-size: .86rem;
  margin-top: .55rem;
}

.profile-choice-empty,
.profile-choice-empty-static {
  align-items: center;
  border: 1px dashed #cfd6df;
  border-radius: 8px;
  color: var(--app-muted);
  display: flex;
  justify-content: center;
  min-height: 82px;
  padding: 1rem;
  text-align: center;
}

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

.profile-savebar {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  bottom: .75rem;
  box-shadow: 0 12px 28px rgba(31, 41, 55, .10);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .85rem;
  position: sticky;
  z-index: 20;
}

.profile-savebar strong {
  color: #111827;
  display: block;
}

.profile-savebar span {
  color: var(--app-muted);
  display: block;
  font-size: .88rem;
}

.interventions-title {
  align-items: flex-start;
}

.ui-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.1em;
  justify-content: center;
  line-height: 1;
  vertical-align: -.12em;
  width: 1.1em;
}

.ui-icon .bi {
  display: inline-block;
  font-size: 1em;
  line-height: 1;
}

.ui-icon-title {
  color: #b42318;
  height: 1.2em;
  width: 1.2em;
}

.interventions-title .btn,
.interventions-toolbar .btn,
.interventions-school-actions .btn,
.interventions-problem-toolbar .btn {
  align-items: center;
  display: inline-flex;
  gap: .42rem;
  justify-content: center;
}

.interventions-title .btn .bi,
.interventions-toolbar .btn .bi,
.interventions-school-actions .btn .bi,
.interventions-problem-toolbar .btn .bi,
.interventions-toolbar .form-label .bi {
  font-size: .95em;
  line-height: 1;
}

.interventions-kpi-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.interventions-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: #111827;
  display: flex;
  gap: .75rem;
  padding: .85rem;
  text-decoration: none;
}

.interventions-kpi:hover {
  border-color: #b42318;
  color: #111827;
}

.interventions-kpi > span {
  align-items: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #374151;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.interventions-kpi > span .bi {
  font-size: 1.05rem;
  line-height: 1;
}

.interventions-kpi strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.interventions-kpi small {
  color: var(--app-muted);
  display: block;
  margin-top: .25rem;
}

.interventions-kpi-danger > span {
  background: #fef3c7;
  color: #92400e;
}

.interventions-kpi-info > span {
  background: #e0f2fe;
  color: #075985;
}

.interventions-kpi-success > span {
  background: #dcfce7;
  color: #166534;
}

.interventions-toolbar .form-label {
  font-size: .88rem;
}

.school-block {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  margin-bottom: .75rem;
  overflow: hidden;
}

.school-block-attention {
  border-color: #fecaca;
}

.school-block > .accordion-header .accordion-button {
  background: #fff;
  gap: .65rem;
  padding-right: 2.8rem;
  position: relative;
}

.school-block > .accordion-header .accordion-button::after,
.problem-item > .accordion-header .accordion-button::after {
  background-size: 1rem;
  height: 1rem;
  margin-left: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1rem;
}

.school-block-attention > .accordion-header .accordion-button {
  background: #fff7ed;
}

.interventions-school-header {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  width: 100%;
}

.interventions-school-main {
  align-items: flex-start;
  display: flex;
  gap: .7rem;
  min-width: 0;
}

.interventions-school-icon,
.interventions-problem-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.interventions-school-icon .bi,
.interventions-problem-icon .bi {
  font-size: .98rem;
  line-height: 1;
}

.interventions-school-icon {
  background: #f3f4f6;
  color: #374151;
}

.interventions-school-main strong {
  color: #111827;
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.interventions-school-main > div > span {
  color: var(--app-muted);
  display: block;
  font-size: .88rem;
  line-height: 1.3;
}

.interventions-school-meta {
  align-items: center;
  color: var(--app-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  gap: .5rem;
  justify-content: flex-end;
}

.interventions-school-meta span {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 999px;
  display: inline-flex;
  gap: .32rem;
  padding: .2rem .5rem;
}

.interventions-school-meta .bi {
  font-size: .82em;
  line-height: 1;
}

.interventions-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}

.interventions-school-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.direct-intervention-item,
.intervention-card {
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.direct-intervention-item {
  margin-bottom: .5rem;
}

.intervention-card {
  background: #f9fafb;
  margin-bottom: .65rem;
  padding: .75rem;
}

.interventions-problem-header {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  width: 100%;
}

.interventions-problem-title {
  align-items: flex-start;
  display: flex;
  gap: .65rem;
  min-width: 0;
}

.problem-item > .accordion-header .accordion-button {
  padding-right: 2.8rem;
  position: relative;
}

.interventions-problem-icon {
  background: #fee2e2;
  color: #991b1b;
}

.interventions-problem-title strong {
  color: #111827;
  display: block;
  line-height: 1.25;
}

.interventions-problem-title > div > span {
  color: var(--app-muted);
  display: block;
  font-size: .82rem;
  margin-top: .15rem;
}

.interventions-problem-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.interventions-problem-toolbar {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .75rem;
  padding: .65rem;
}

.quick-status-form .form-select {
  min-width: 150px;
}

.interventions-section-heading {
  align-items: center;
  display: flex;
  font-size: .92rem;
  font-weight: 800;
  gap: .45rem;
  letter-spacing: 0;
  margin: .25rem 0 .55rem;
  text-transform: uppercase;
}

.interventions-subheading,
.intervention-date,
.intervention-label {
  align-items: center;
  display: flex;
  gap: .4rem;
}

.interventions-subheading {
  color: #b45309;
  font-weight: 700;
}

.intervention-date {
  color: #374151;
  font-weight: 700;
}

.intervention-label {
  font-size: .82rem;
  font-weight: 700;
  margin-top: .35rem;
}

.intervention-label .ui-icon {
  color: #6b7280;
}

.accordion-button .small {
  line-height: 1.2;
}

.lb-thumb {
  cursor: pointer;
  height: 112px;
  object-fit: cover;
  transition: transform .08s ease-in-out;
  width: 112px;
}

.lb-thumb:hover {
  transform: scale(1.02);
}

.verbali-title {
  align-items: flex-start;
}

.verbali-kpi-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.verbali-kpi {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  padding: .9rem;
}

.verbali-kpi > span {
  align-items: center;
  background: #fee2e2;
  border-radius: 8px;
  color: #991b1b;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.verbali-kpi strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.verbali-kpi small {
  color: var(--app-muted);
}

.verbali-list {
  display: grid;
  gap: .75rem;
}

.verbale-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
}

.verbale-row h2 {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.verbale-row p {
  color: var(--app-muted);
  margin: .25rem 0 0;
}

.verbale-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.verbale-editor {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
}

.verbale-form-stack {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verbale-field-wide,
.verbale-form-stack .alert {
  grid-column: 1 / -1;
}

.verbale-savebar {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: .75rem;
}

.verbale-savebar span {
  color: var(--app-muted);
  font-size: .9rem;
}

.verbale-preview-panel {
  position: sticky;
  top: 1rem;
}

.verbale-preview-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .5rem;
}

.verbale-paper {
  --verbale-primary: #b42318;
  --verbale-text: #1f2937;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 41, 55, .08);
  color: var(--verbale-text);
  max-width: 860px;
  min-height: 640px;
  padding: 1.35rem;
}

.verbale-paper-head {
  border-bottom: 3px solid var(--verbale-primary);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
}

.verbale-paper-kicker {
  color: var(--verbale-primary);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.verbale-paper h2 {
  color: #111827;
  font-size: 1.4rem;
  font-weight: 800;
  margin: .2rem 0;
}

.verbale-paper h3 {
  color: var(--verbale-primary);
  font-size: .9rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  text-transform: uppercase;
}

.verbale-paper p {
  line-height: 1.45;
  margin: 0 0 .45rem;
}

.verbale-status {
  align-self: flex-start;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: var(--verbale-primary);
  font-size: .78rem;
  font-weight: 800;
  padding: .28rem .6rem;
  white-space: nowrap;
}

.verbale-paper-section {
  border-bottom: 1px solid #edf0f3;
  margin-bottom: .8rem;
  padding-bottom: .75rem;
}

.verbale-paper-section ul {
  margin: .25rem 0 0;
  padding-left: 1.1rem;
}

.verbale-paper-footer {
  color: var(--app-muted);
  font-size: .78rem;
  margin-top: 1rem;
  text-align: center;
}

.layout-classico .verbale-paper-head {
  align-items: center;
  text-align: center;
}

.layout-compatto {
  min-height: 520px;
  padding: 1rem;
}

.layout-compatto .verbale-paper-section {
  margin-bottom: .55rem;
  padding-bottom: .55rem;
}

@media (max-width: 991.98px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
  }
  .admin-nav-section {
    display: grid;
    gap: .25rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .admin-nav-section-title {
    grid-column: 1 / -1;
  }
  .profile-editor-grid,
  .profile-school-grid {
    grid-template-columns: 1fr;
  }
  .profile-overview {
    position: static;
  }
  .interventions-school-header,
  .interventions-problem-header,
  .interventions-problem-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .interventions-school-meta,
  .interventions-problem-badges {
    justify-content: flex-start;
  }
  .verbale-editor,
  .verbale-row {
    grid-template-columns: 1fr;
  }
  .verbale-preview-panel {
    position: static;
  }
  .verbale-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .admin-choice-toolbar {
    grid-template-columns: 1fr;
  }
  .admin-choice-actions {
    justify-content: flex-start;
  }
  .admin-choice-list {
    min-height: 320px;
    max-height: 60vh;
  }
  .profile-section {
    padding: .875rem;
  }
  .profile-section-head,
  .profile-savebar {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-choice-toolbar {
    grid-template-columns: 1fr;
  }
  .profile-choice-list {
    min-height: 340px;
    max-height: 62vh;
  }
  .profile-count-badge {
    align-self: flex-start;
  }
  .profile-savebar .btn {
    flex: 1 1 auto;
  }
  .verbale-form-stack {
    grid-template-columns: 1fr;
  }
  .verbale-savebar,
  .verbale-paper-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .admin-table thead { display: none; }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    border-bottom: 1px solid var(--app-border);
    padding: .65rem 0;
  }
  .admin-table td {
    border: 0;
    padding: .35rem .75rem;
  }
  .admin-table td::before {
    color: #6b7280;
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .admin-table td.text-end {
    text-align: left !important;
  }
}
