/* Front-office console — mirrors the guyane-asso administration shell. */

.unicipal-console-body {
  --console-ink: #17251f;
  --console-muted: #68756e;
  --console-line: #dfe7e2;
  --console-soft: #f4f7f5;
  --console-teal: #007f8b;
  --console-teal-dark: #006773;
  --console-blue: #2e68c7;
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: #eef3f0;
  color: var(--console-ink);
}

.unicipal-console-body * {
  box-sizing: border-box;
}

.unicipal-console-body .screen-reader-text,
.unicipal-console-body .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.console-skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #10231a;
  font-weight: 800;
  text-decoration: underline;
  box-shadow: 0 0 0 3px #10231a;
  transform: translateY(-200%);
}

.console-skip-link:focus {
  transform: translateY(0);
}

.unicipal-console-body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffd800 !important;
  outline-offset: 3px !important;
}

.unicipal-console-body :where(p, li, dd, dt, a, button, label, input, select, textarea) {
  overflow-wrap: anywhere;
}

.manager-association-select {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.manager-association-select__submit {
  min-height: 2.75rem;
}

.unicipal-console-body #console-sidebar {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  scroll-padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.console-choice-group {
  min-width: 0;
  margin-inline: 0;
}

.console-choice-group > legend {
  padding: 0;
  font-weight: 800;
}

.console-choice-group--image-rights {
  padding: 0.9rem;
  border: 1px solid var(--console-line, #dfe7e2);
  border-radius: 0.75rem;
  background: #f8fbf9;
}

.login__privacy {
  margin: 0.8rem 0 0;
  color: #52625b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.login__privacy a {
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .unicipal-console-body *,
  .unicipal-console-body *::before,
  .unicipal-console-body *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .unicipal-console-body :where(a, button, input, select, textarea, .console-status) {
    border: 1px solid ButtonText;
  }
}

/*
 * WordPress only supplies the data and markup bridge. The shared guyane-asso
 * stylesheets are deliberately left unlayered, so their canonical console
 * rules always win over compatibility rules in this file.
 */
@layer unicipal-wordpress-bridge {

.unicipal-console-body .admin-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  min-height: 40rem;
  background: #eef3f0;
}

.unicipal-console-body .manager-topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto minmax(14rem, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 4.4rem;
  padding: 0.65rem clamp(1rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgb(9 77 63 / 0.12);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 5px 22px rgb(18 45 36 / 0.05);
  backdrop-filter: blur(16px);
}

.manager-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.manager-topbar__app-name,
.manager-topbar__badge {
  margin: 0;
}

.manager-topbar__app-name {
  overflow: hidden;
  color: #123d34;
  font-size: 0.92rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-topbar__badge {
  flex: none;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: #e7f5f4;
  color: var(--console-teal-dark);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-topbar__select select {
  min-width: min(25rem, 36vw);
  padding: 0.65rem 2.2rem 0.65rem 0.8rem;
  border: 1px solid var(--console-line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--console-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}

.manager-topbar__back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  color: #345249;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.unicipal-console-body .manager-topbar__back:hover {
  background: #e4f4f2;
  color: #064f50;
}

.unicipal-console-body .manager-topbar__back:focus-visible {
  outline: 3px solid rgb(0 127 139 / 0.22);
  outline-offset: 2px;
}

.manager-shell__body {
  display: grid;
  grid-template-columns: 17.25rem minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.manager-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 0.8rem 0.6rem 0.65rem;
  overflow-y: auto;
  border-right: 1px solid rgb(255 255 255 / 0.1);
  background:
    radial-gradient(circle at 5% 7%, rgb(80 186 199 / 0.22), transparent 30%),
    linear-gradient(155deg, #083c35, #092e2b 70%);
  color: #fff;
}

.manager-sidebar__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4rem;
  margin: 0 auto 0.8rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.65rem;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.1);
}

.manager-sidebar__asso {
  margin: 0 0.2rem 1.05rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 0.07);
}

.manager-sidebar__asso-name {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.manager-sidebar__asso-link {
  color: #aee6e2;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.manager-sidebar__nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.18rem;
  padding: 0.25rem;
}

.manager-sidebar__link {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.45rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.72rem;
  color: rgb(255 255 255 / 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.manager-sidebar__link > * {
  pointer-events: none;
}

.manager-sidebar__link:hover,
.manager-sidebar__link:focus-visible {
  background: rgb(255 255 255 / 0.07);
  color: #fff;
}

.manager-sidebar__link:focus-visible {
  outline: 2px solid #f0c34e;
  outline-offset: 2px;
}

.manager-sidebar__link--active {
  background: #fff;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.14);
  color: #075b59;
}

.manager-sidebar__link-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.manager-sidebar__link-icon .admin-shell__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.console-nav-badge,
.manager-sidebar__link-count {
  min-width: 1.3rem;
  padding: 0.12rem 0.3rem;
  border-radius: 999px;
  background: #f0c34e;
  color: #203229;
  font-size: 0.65rem;
  text-align: center;
}

.manager-sidebar__footer {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
}

.console-support-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.07);
  color: rgb(255 255 255 / 0.68);
  font-size: 0.68rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.console-support-card:hover,
.console-support-card:focus-visible {
  background: rgb(255 255 255 / 0.12);
}

.console-support-card:focus-visible {
  outline: 2px solid #f0c34e;
  outline-offset: 2px;
}

.console-support-card strong {
  color: #fff;
  font-size: 0.74rem;
}

.console-account-card {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem;
  border-radius: 0.75rem;
  background: rgb(0 0 0 / 0.16);
}

.console-account-card__avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #58c3bd;
  color: #063a35;
  font-size: 0.78rem;
  font-weight: 900;
}

.console-account-card__copy {
  display: grid;
  min-width: 0;
}

.console-account-card__copy strong,
.console-account-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-account-card__copy strong {
  color: #fff;
  font-size: 0.7rem;
}

.console-account-card__copy small {
  color: rgb(255 255 255 / 0.56);
  font-size: 0.58rem;
}

.console-account-card__logout {
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.unicipal-console-body .admin-shell__main,
.unicipal-console-body #main-content {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.1rem, 2.6vw, 2.35rem);
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0, rgb(80 186 199 / 0.12), transparent 25rem),
    #f2f5f3;
  isolation: auto;
}

.unicipal-console-body #main-content::before,
.unicipal-console-body #main-content::after {
  display: none;
}

.unicipal-console-body #main-content > * {
  position: relative;
  z-index: auto;
}

.admin-page {
  width: min(100%, 88rem);
  margin: 0 auto;
}

.console-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.45rem;
}

.console-page-header h1 {
  margin: 0;
  color: #15352d;
  font-family: var(--ds-font-display, sans-serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.console-page-header p {
  max-width: 46rem;
  margin: 0.45rem 0 0;
  color: var(--console-muted);
  font-size: 0.86rem;
}

.console-page-header__actions,
.console-master-panel__actions,
.console-super-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.unicipal-console-body .button,
.unicipal-console-body input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--console-teal);
  border-radius: 0.62rem;
  background: var(--console-teal);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.unicipal-console-body .button:hover,
.unicipal-console-body input[type="submit"]:hover {
  border-color: var(--console-teal-dark);
  background: var(--console-teal-dark);
}

.unicipal-console-body .button--blue {
  border-color: var(--console-blue);
  background: var(--console-blue);
}

.unicipal-console-body .button--secondary {
  border-color: #cfdbd4;
  background: #fff;
  color: #335148;
}

.unicipal-console-body .button--danger {
  border-color: #d94d5c;
  background: #fff;
  color: #b52f41;
}

.console-panel,
.console-profile-card,
.console-master-detail {
  border: 1px solid rgb(18 75 59 / 0.09);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 38px rgb(25 58 46 / 0.055);
}

.console-panel {
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.console-message {
  width: min(100%, 88rem);
  margin: 0 auto 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #8ed0ae;
  border-radius: 0.7rem;
  background: #eefbf3;
  color: #175f38;
  font-size: 0.8rem;
  font-weight: 700;
}

.console-message--error {
  border-color: #efb1b8;
  background: #fff1f3;
  color: #9d2637;
}

.console-empty,
.console-master-panel__placeholder {
  display: grid;
  min-height: 12rem;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  padding: 1.5rem;
  color: #829089;
  text-align: center;
}

.console-empty > span,
.console-master-panel__placeholder > span {
  font-size: 2rem;
  color: #8bc3bd;
}

.console-empty p,
.console-master-panel__placeholder p,
.console-master-panel__placeholder h2 {
  margin: 0;
}

.console-master-panel__placeholder h2 {
  color: #345148;
  font-size: 1rem;
}

.console-profile-card {
  overflow: hidden;
  border-top: 0.3rem solid var(--association-color, var(--console-teal));
}

.console-profile-card__identity {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--console-line);
}

.console-profile-card__logo,
.console-profile-card__monogram {
  width: 6rem;
  height: 6rem;
  border: 1px solid var(--console-line);
  border-radius: 1rem;
  object-fit: contain;
  background: #fff;
}

.console-profile-card__monogram {
  display: grid;
  place-items: center;
  background: #e6f4f1;
  color: var(--console-teal-dark);
  font-family: var(--ds-font-display, sans-serif);
  font-size: 2rem;
  font-weight: 900;
}

.console-profile-card__identity h2 {
  margin: 0.25rem 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.console-profile-card__identity > div {
  min-width: 0;
}

.console-profile-card__identity p,
.console-profile-card__identity h2 {
  overflow-wrap: anywhere;
}

.console-profile-card__identity p:last-child {
  margin: 0;
  color: var(--console-muted);
  font-size: 0.84rem;
}

.console-eyebrow {
  margin: 0;
  color: var(--console-teal);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.console-profile-grid article {
  min-height: 8rem;
  padding: 1.15rem 1.5rem;
  border-right: 1px solid var(--console-line);
  border-bottom: 1px solid var(--console-line);
}

.console-profile-grid article:nth-child(even) {
  border-right: 0;
}

.console-profile-grid p {
  margin: 0.55rem 0 0;
  color: #3f514a;
  font-size: 0.82rem;
  line-height: 1.55;
}

.manager-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.manager-engagement-prompt {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 11rem;
  padding: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 34px rgb(25 58 46 / 0.05);
}

.manager-engagement-prompt__image {
  width: 7.5rem;
  height: 100%;
  min-height: 8rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.manager-engagement-prompt__copy h3,
.manager-engagement-prompt__copy p {
  margin: 0;
}

.manager-engagement-prompt__copy h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1rem;
}

.manager-engagement-prompt__copy > p:last-child {
  color: var(--console-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.manager-engagement-prompt__action {
  grid-column: 2;
  justify-self: start;
  align-self: end;
}

.console-master-detail {
  display: grid;
  grid-template-columns: minmax(17rem, 29%) minmax(0, 1fr);
  min-height: 31rem;
  overflow: hidden;
}

/* Actualités and Missions intentionally share one manager content layout. */
.manager-content-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.manager-content-page__board {
  flex: 1;
  min-height: 34rem;
  padding: 0.75rem;
  overflow: hidden;
}

.manager-content-page__board > .console-master-detail {
  width: 100%;
  height: 100%;
  min-height: 32.5rem;
  border-radius: 0.45rem;
  box-shadow: none;
}

.console-master-list {
  min-width: 0;
  padding: 0.85rem;
  border-right: 1px solid var(--console-line);
  background: #fbfcfb;
}

label.console-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0 0.75rem;
  border: 1px solid #d7e1db;
  border-radius: 0.65rem;
  background: #fff;
  color: #789088;
}

label.console-search input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
}

.console-master-list__items {
  display: grid;
  gap: 0.35rem;
}

.console-master-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 3.7rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--console-ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.console-master-item:hover,
.console-master-item:focus-visible,
.console-master-item.is-active,
.console-master-item[aria-current="page"] {
  border-color: #9fcfc5;
  background: #fff;
  box-shadow: inset 3px 0 0 var(--console-teal);
}

.console-master-item:focus-visible {
  outline: 2px solid rgb(0 127 139 / 0.3);
  outline-offset: 2px;
}

.console-master-item > span {
  display: grid;
  min-width: 0;
}

.console-master-item strong,
.console-master-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-master-item strong {
  font-size: 0.76rem;
}

.console-master-item small {
  margin-top: 0.22rem;
  color: var(--console-muted);
  font-size: 0.65rem;
}

.console-status {
  flex: none;
  padding: 0.22rem 0.42rem;
  border-radius: 999px;
  background: #e7f3ef;
  color: #277052;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.console-status--draft,
.console-status--pending {
  background: #f7efda;
  color: #8b681c;
}

.console-master-panel {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.console-master-panel h2 {
  margin: 0.35rem 0;
  font-size: 1.4rem;
}

.console-master-panel > p:not(.console-eyebrow) {
  color: var(--console-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.console-master-panel__meta {
  display: flex;
  gap: 0.65rem;
  margin: 1rem 0;
  color: #6f8078;
  font-size: 0.7rem;
}

.console-master-panel__placeholder {
  height: 100%;
}

.console-dialog {
  width: min(58rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(54rem, calc(100vh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  box-shadow: 0 25px 80px rgb(0 0 0 / 0.25);
}

.console-dialog::backdrop {
  background: rgb(7 26 22 / 0.58);
  backdrop-filter: blur(4px);
}

.console-dialog__surface {
  display: flex;
  flex-direction: column;
  max-height: min(54rem, calc(100vh - 2rem));
  margin: 0;
  background: #fff;
}

.console-dialog__surface--small {
  width: min(28rem, calc(100vw - 2rem));
}

.console-dialog__header,
.console-dialog__footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-color: var(--console-line);
  background: #fff;
}

.console-dialog__header {
  justify-content: space-between;
  border-bottom: 1px solid var(--console-line);
}

.console-dialog__header h2 {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
}

.console-dialog__header > button {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--console-soft);
  color: #4f6259;
  font-size: 1.2rem;
  cursor: pointer;
}

.console-dialog__body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  padding: 1.25rem;
  overflow-y: auto;
}

.console-dialog__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--console-line);
}

.console-dialog__spacer {
  flex: 1;
}

.console-form-section {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--console-line);
  border-radius: 0.8rem;
}

.console-form-section h2,
.console-form-section h3 {
  margin: 0;
  color: #27463c;
  font-size: 0.9rem;
}

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

.console-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #41564e;
  font-size: 0.69rem;
  font-weight: 750;
}

.console-field--wide {
  grid-column: 1 / -1;
}

.console-field input,
.console-field textarea,
.console-field select {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfdbd4;
  border-radius: 0.58rem;
  outline: 0;
  background: #fff;
  color: var(--console-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
}

.console-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.console-rich-editor {
  gap: 0.45rem;
}

.console-rich-editor > label {
  color: #41564e;
  font-size: 0.69rem;
  font-weight: 750;
}

.console-rich-editor .console-form-hint {
  margin: 0;
}

.console-rich-editor .wp-editor-wrap {
  overflow: hidden;
  border: 1px solid #cfdbd4;
  border-radius: 0.65rem;
  background: #fff;
}

.console-rich-editor .wp-editor-container,
.console-rich-editor .mce-panel,
.console-rich-editor .mce-toolbar-grp {
  border: 0;
}

.console-rich-editor .mce-toolbar-grp {
  padding: 0.3rem;
  border-bottom: 1px solid #dce5e0;
  background: #f7faf8;
}

.console-rich-editor .mce-btn button {
  min-width: 2rem;
  min-height: 2rem;
}

.console-rich-editor .wp-editor-area {
  min-height: 16rem;
  border: 0;
  border-radius: 0;
}

.console-rich-editor .wp-editor-wrap:focus-within {
  border-color: var(--console-teal);
  box-shadow: 0 0 0 3px rgb(0 127 139 / 0.1);
}

.console-field input:focus,
.console-field textarea:focus,
.console-field select:focus {
  border-color: var(--console-teal);
  box-shadow: 0 0 0 3px rgb(0 127 139 / 0.1);
}

.console-choice-group {
  display: grid;
  gap: 0.55rem;
  color: #41564e;
  font-size: 0.7rem;
}

.console-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.console-choice-grid label,
.console-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--console-line);
  border-radius: 0.55rem;
  background: #fbfcfb;
  color: #41564e;
  font-size: 0.68rem;
}

.console-form-hint {
  margin: 0;
  color: var(--console-muted);
  font-size: 0.72rem;
}

.console-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.admin-associations__filters {
  margin-bottom: 1rem;
}

.admin-associations__toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-associations__count {
  margin: 0;
  color: var(--console-muted);
  font-size: 0.75rem;
}

.console-association-admin-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.15rem 0.75rem 0.75rem;
  list-style: none;
}

.console-association-admin-list a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto 1.5rem;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--console-line);
  border-radius: 0.75rem;
  color: var(--console-ink);
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.console-association-admin-list a:hover,
.console-association-admin-list a:focus-visible {
  border-color: #9dcac2;
  background: #fff;
  box-shadow: 0 7px 20px rgb(28 75 60 / 0.06);
}

.console-association-admin-list a:focus-visible {
  outline: 2px solid rgb(0 127 139 / 0.3);
  outline-offset: 2px;
}

.console-media-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.console-media-field {
  align-content: start;
  padding: 0.85rem;
  border: 1px solid var(--console-line);
  border-radius: 0.75rem;
  background: #fbfcfb;
}

.console-media-field__preview {
  display: block;
  width: 100%;
  height: 8rem;
  margin: 0.3rem 0 0.75rem;
  border-radius: 0.65rem;
  background: #edf5f2;
  object-fit: cover;
}

.console-media-field__preview--logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

.console-media-field small {
  color: var(--console-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.console-session-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.2rem 0 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #e7f3ef;
  color: #277052;
}

.console-association-admin-list img,
.console-association-admin-list__monogram {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #e7f4f1;
  object-fit: contain;
  color: var(--console-teal-dark);
  font-weight: 900;
}

.console-association-admin-list a > span:nth-child(2) {
  display: grid;
}

.console-association-admin-list strong {
  font-size: 0.83rem;
}

.console-association-admin-list small {
  margin-top: 0.2rem;
  color: var(--console-muted);
  font-size: 0.68rem;
}

.console-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.console-directory-grid article {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--console-line);
  border-radius: 0.75rem;
}

.console-directory-grid img,
.console-directory-grid__monogram {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #e8f4f1;
  object-fit: contain;
  color: var(--console-teal-dark);
  font-weight: 900;
}

.console-directory-grid h2 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}

.console-directory-grid p {
  margin: 0.1rem 0;
  overflow-wrap: anywhere;
  color: var(--console-muted);
  font-size: 0.64rem;
}

.console-directory-grid a {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--console-teal-dark);
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
}

.console-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
  padding: 0.3rem;
  border-radius: 0.7rem;
  background: #e5ebe7;
}

.console-tabs a {
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  color: #52655d;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.console-tabs a.is-active {
  background: #fff;
  box-shadow: 0 3px 10px rgb(20 60 47 / 0.08);
  color: var(--console-teal-dark);
}

.console-access-associations {
  margin: 1.1rem 0;
  padding: 0.9rem;
  border-radius: 0.7rem;
  background: var(--console-soft);
  font-size: 0.75rem;
}

.console-access-associations ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.console-inline-form {
  display: inline-flex;
  margin-left: 0.45rem;
}

.console-related-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.console-related-content > h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1rem;
}

.console-related-content__group {
  padding: 0.9rem;
  border: 1px solid var(--console-line);
  border-radius: 0.7rem;
}

.console-related-content__group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.console-related-content__group ul,
.console-response-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-related-content__group li,
.console-response-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--console-line);
}

.console-related-content__group li > span:first-child {
  display: grid;
}

.console-related-content__group strong,
.console-response-list strong {
  font-size: 0.72rem;
}

.console-related-content__group small {
  color: var(--console-muted);
  font-size: 0.62rem;
}

.console-response-list p {
  margin: 0.3rem 0 0;
  color: var(--console-muted);
  font-size: 0.7rem;
}

/* Documentation: faithful master/detail guide from guyane-asso. */
.console-documentation__page {
  display: flex;
  flex-direction: column;
  min-height: min(47rem, calc(100vh - 9rem));
}

.console-documentation__page > .console-page-header {
  flex: none;
}

.console-documentation__layout {
  display: grid;
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr);
  gap: 1rem;
  min-height: 35rem;
  flex: 1;
}

.console-documentation__sidebar,
.console-documentation__detail {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(18 75 59 / 0.09);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 38px rgb(25 58 46 / 0.055);
}

.console-documentation__sidebar {
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  background: #fbfcfb;
}

.console-documentation__sidebar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.4rem 0.45rem 0.9rem;
  border-bottom: 1px solid var(--console-line);
}

.console-documentation__sidebar-heading strong {
  color: #76867e;
  font-size: 0.65rem;
  font-weight: 750;
}

.console-documentation__categories {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.7rem;
}

.console-documentation__category {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.78rem;
  color: var(--console-ink);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.console-documentation__category:hover {
  border-color: #cfe0da;
  background: #fff;
}

.console-documentation__category.is-active {
  border-color: rgb(0 127 139 / 0.2);
  background:
    radial-gradient(circle at 100% 0, rgb(80 186 199 / 0.12), transparent 55%),
    #fff;
  box-shadow: 0 8px 20px rgb(22 73 59 / 0.07);
}

.console-documentation__category-index {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.68rem;
  background: #edf3f0;
  color: #668078;
  font-family: var(--ds-font-display, sans-serif);
  font-size: 0.72rem;
  font-weight: 850;
}

.console-documentation__category.is-active .console-documentation__category-index {
  background: linear-gradient(145deg, #007f8b, #3ebbc8);
  box-shadow: 0 7px 15px rgb(0 127 139 / 0.17);
  color: #fff;
}

.console-documentation__category-copy {
  display: grid;
  min-width: 0;
}

.console-documentation__category-copy strong {
  color: #1f3d34;
  font-size: 0.78rem;
  line-height: 1.25;
}

.console-documentation__category-copy small {
  margin-top: 0.25rem;
  color: #6d7c75;
  font-size: 0.65rem;
  line-height: 1.4;
}

.console-documentation__category-badge {
  grid-column: 2;
  justify-self: start;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: #e9f4ee;
  color: #28724f;
  font-size: 0.56rem;
  font-weight: 800;
}

.console-documentation__detail {
  display: flex;
  flex-direction: column;
}

.console-documentation__detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex: none;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--console-line);
  background:
    radial-gradient(circle at 95% 0, rgb(248 232 24 / 0.12), transparent 15rem),
    #fff;
}

.console-documentation__detail-copy {
  min-width: 0;
}

.console-documentation__detail-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.22rem;
}

.console-documentation__detail-title h2 {
  margin: 0;
  color: #10231a;
  font-family: var(--ds-font-display, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.15;
}

.console-documentation__detail-title span {
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: #e5f4ec;
  color: #1d7047;
  font-size: 0.59rem;
  font-weight: 850;
}

.console-documentation__detail-copy > p:last-child {
  margin: 0.4rem 0 0;
  color: #617169;
  font-size: 0.75rem;
}

.console-documentation__panel-body {
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.console-documentation__topics {
  display: grid;
  gap: 1.25rem;
}

.console-documentation__topic {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
  border: 1px solid #dfe8e3;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgb(251 214 162 / 0.2), transparent 32%),
    #fff;
  box-shadow: 0 9px 24px rgb(16 35 26 / 0.05);
}

.console-documentation__topic-heading {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.console-documentation__topic-number {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #007f8b, #3ebbc8);
  box-shadow: 0 8px 18px rgb(0 127 139 / 0.18);
  color: #fff;
  font-family: var(--ds-font-display, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
}

.console-documentation__topic h3 {
  margin: 0;
  color: #10231a;
  font-family: var(--ds-font-display, sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.console-documentation__topic-heading p {
  margin: 0.4rem 0 0;
  color: #5b6b63;
  font-size: 0.78rem;
  line-height: 1.55;
}

.console-documentation__steps {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-documentation__steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgb(7 123 58 / 0.09);
  border-radius: 0.75rem;
  background: #f8fbf9;
}

.console-documentation__steps li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #e4f4e9;
  color: #056832;
  font-size: 0.76rem;
  font-weight: 800;
}

.console-documentation__steps p {
  margin: 0.28rem 0 0;
  color: #263b31;
  font-size: 0.78rem;
  line-height: 1.52;
}

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

.console-help-grid article {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid var(--console-line);
  border-radius: 1rem;
  background: #fff;
}

.console-help-grid article > span {
  color: #7cbdb5;
  font-family: var(--ds-font-display, sans-serif);
  font-size: 1.5rem;
  font-weight: 900;
}

.console-help-grid h2 {
  margin: 1rem 0 0.45rem;
  font-size: 1rem;
}

.console-help-grid p,
.console-super-admin .console-panel p {
  color: var(--console-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.console-super-admin {
  display: grid;
  gap: 1rem;
}

.console-preflight {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.console-preflight__header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.console-preflight__header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.console-preflight__header p {
  max-width: 47rem;
  margin: 0.55rem 0 0;
}

.console-preflight__score {
  display: grid;
  min-width: 8rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(0 127 139 / 0.18);
  border-radius: 0.9rem;
  background: #f1fbfb;
  color: #075b59;
  text-align: center;
}

.console-preflight__score strong {
  font-family: var(--ds-font-display, sans-serif);
  font-size: 1.55rem;
  line-height: 1;
}

.console-preflight__score span {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.console-preflight__progress {
  width: 100%;
  height: 0.6rem;
  margin: 1rem 0 1.2rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e6ece9;
  color: #078657;
}

.console-preflight__progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e6ece9;
}

.console-preflight__progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #078657, #00a0aa);
}

.console-preflight__progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #078657, #00a0aa);
}

.console-preflight__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-preflight__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--console-line);
  border-radius: 0.9rem;
  background: #fff;
}

.console-preflight__item--done {
  border-color: rgb(7 134 87 / 0.2);
  background: #f6fcf8;
}

.console-preflight__item--todo {
  border-color: rgb(224 54 35 / 0.22);
  background: #fff9f7;
}

.console-preflight__item--manual {
  border-color: rgb(224 153 24 / 0.25);
  background: #fffbf1;
}

.console-preflight__marker {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #e8efec;
  color: #43564d;
  font-size: 0.9rem;
  font-weight: 900;
}

.console-preflight__item--done .console-preflight__marker {
  background: #dff3e8;
  color: #06703f;
}

.console-preflight__item--todo .console-preflight__marker {
  background: #ffe4df;
  color: #b82f1e;
}

.console-preflight__item--manual .console-preflight__marker {
  background: #fff0c7;
  color: #8b5b00;
}

.console-preflight__title-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.console-preflight__title-row h3 {
  margin: 0;
  font-size: 0.88rem;
}

.console-preflight__copy p {
  margin: 0.25rem 0 0;
}

.console-preflight__status {
  flex: 0 0 auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #43564d;
  font-size: 0.65rem;
  font-weight: 800;
}

.console-preflight__item--done .console-preflight__status {
  background: #dff3e8;
  color: #06703f;
}

.console-preflight__item--todo .console-preflight__status {
  background: #ffe4df;
  color: #9e2819;
}

.console-preflight__item--manual .console-preflight__status {
  background: #fff0c7;
  color: #765000;
}

.console-preflight__action {
  white-space: nowrap;
}

.console-super-admin__wordpress {
  padding: 1.25rem;
}

.master-detail-sidebar__filters > a.master-detail-sidebar__filter {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.console-super-actions {
  margin-top: 1rem;
}

.console-mobile-menu {
  display: none;
}

/* Login */
.unicipal-login-body {
  overflow: auto;
  background:
    linear-gradient(rgb(4 48 43 / 0.78), rgb(4 48 43 / 0.86)),
    url("/hero-slides/associations.webp") center / cover fixed;
}

.unicipal-login-body #main-content {
  padding: 0;
  background: var(--login-bg, #f4fbf8);
}

.console-login {
  display: grid;
  min-height: 100vh;
  padding: 1rem;
  place-items: center;
}

.console-login__card {
  width: min(27rem, 100%);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 25px 70px rgb(0 0 0 / 0.24);
}

.console-login__brand img {
  display: block;
  width: 12rem;
  max-height: 4.5rem;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.console-login__eyebrow {
  margin: 0;
  color: var(--console-teal);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-login h1 {
  margin: 0.25rem 0;
  color: #153b32;
  font-size: 2rem;
}

.console-login__card > p:not(.console-login__eyebrow) {
  margin: 0 0 1.2rem;
  color: var(--console-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.console-login form {
  display: grid;
  gap: 0.8rem;
}

.console-login form p {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: #42574e;
  font-size: 0.7rem;
  font-weight: 750;
}

.console-login form input[type="text"],
.console-login form input[type="password"] {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfdbd4;
  border-radius: 0.62rem;
  font: inherit;
}

.console-login form .login-remember label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.console-login form .login-submit input {
  width: 100%;
}

.console-login__forgot,
.console-login__back {
  display: block;
  color: var(--console-teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.console-login__forgot {
  margin-top: 0.8rem;
  text-align: center;
}

.console-login__back {
  margin-top: 1.5rem;
  color: #5c6f67;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .manager-shell__body {
    grid-template-columns: 14.5rem minmax(0, 1fr);
  }

  .console-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-prompts {
    grid-template-columns: 1fr;
  }

  .console-documentation__layout {
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .unicipal-console-body {
    overflow: auto;
  }

  .unicipal-console-body .admin-shell {
    height: auto;
    min-height: 100vh;
  }

  .unicipal-console-body .manager-topbar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 4rem;
    gap: 0.5rem;
  }

  .manager-topbar__badge,
  .manager-topbar__back,
  .manager-topbar__select {
    display: none;
  }

  .console-mobile-menu {
    position: absolute;
    top: 50%;
    right: 1rem;
    display: inline-flex !important;
    transform: translateY(-50%);
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--console-line);
    border-radius: 0.55rem;
    background: #fff;
    color: #24493f;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
  }

  .manager-topbar__brand {
    max-width: calc(100% - 5rem);
  }

  .manager-shell__body {
    display: block;
  }

  .manager-sidebar {
    position: fixed;
    z-index: 35;
    inset: 4rem auto 0 0;
    width: min(18rem, 88vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .manager-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgb(0 0 0 / 0.25);
  }

  .unicipal-console-body .admin-shell__main,
  .unicipal-console-body #main-content {
    min-height: calc(100vh - 4rem);
    overflow: visible;
  }

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

  .console-profile-card__identity {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .console-profile-card__logo,
  .console-profile-card__monogram {
    width: 4.5rem;
    height: 4.5rem;
  }

  .console-profile-grid,
  .console-related-content,
  .console-help-grid,
  .console-form-grid,
  .console-master-detail {
    grid-template-columns: 1fr;
  }

  .manager-content-page__board {
    min-height: 0;
    overflow: visible;
  }

  .manager-content-page__board > .console-master-detail {
    height: auto;
  }

  .console-documentation__page {
    min-height: auto;
  }

  .console-documentation__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .console-documentation__sidebar,
  .console-documentation__detail {
    overflow: visible;
  }

  .console-documentation__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-documentation__panel-body {
    overflow: visible;
  }

  .console-profile-grid article,
  .console-profile-grid article:nth-child(even) {
    border-right: 0;
  }

  .manager-engagement-prompt {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .manager-engagement-prompt__image {
    width: 5.5rem;
  }

  .console-master-list {
    max-height: 19rem;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }

  .console-directory-grid,
  .console-choice-grid,
  .console-media-fields {
    grid-template-columns: 1fr;
  }

  .console-association-admin-list a {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  }

  .console-association-admin-list a > b {
    display: none;
  }
}

@media (max-width: 480px) {
  .manager-topbar__app-name {
    font-size: 0.78rem;
  }

  .unicipal-console-body .admin-shell__main,
  .unicipal-console-body #main-content {
    padding: 1rem 0.75rem;
  }

  .manager-engagement-prompt {
    grid-template-columns: 1fr;
  }

  .manager-engagement-prompt__image {
    width: 100%;
    height: 7rem;
  }

  .manager-engagement-prompt__action {
    grid-column: 1;
  }

  .console-association-admin-list a {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .console-association-admin-list img,
  .console-association-admin-list__monogram {
    width: 2.8rem;
    height: 2.8rem;
  }

  .console-association-admin-list .console-status {
    display: none;
  }

  .console-documentation__categories {
    grid-template-columns: 1fr;
  }

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

  .console-documentation__topic-heading {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manager-sidebar__link,
  .unicipal-console-body .button,
  .unicipal-console-body input[type="submit"],
  .console-master-item,
  .console-association-admin-list a,
  .console-documentation__category {
    transition: none;
  }

  .console-documentation__category:hover {
    transform: none;
  }
}
}

/* WordPress has no React <Background> wrapper around the console outlet. */
.unicipal-console-body .admin-shell__main--documentation {
  padding: 0;
  overflow: hidden;
}

.admin-shell__main--documentation > .console-documentation {
  height: 100%;
  min-height: 0;
}

.unicipal-console-body .admin-shell__main--source-layout {
  padding: 0;
  overflow: hidden;
}

.admin-shell__main--source-layout > .background {
  height: 100%;
  min-height: 0;
}

.master-detail-sidebar__filter:is(a) {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.admin-access-detail__links > .directory-role__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border-bottom: 1px solid #eef2f0;
}

.admin-annuaire .admin-access-detail__body-header {
  border-radius: 0;
}

.admin-access-detail__links > .directory-role__row:last-child {
  border-bottom: 0;
}

.directory-role__row > .admin-access-detail__link {
  min-width: 0;
  padding: 0.55rem 0;
  border-bottom: 0;
}

.directory-role__delete {
  position: static;
  margin: 0;
  transform: none;
}

.directory-role__delete .button {
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.7rem;
}

.directory-role__form {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--console-border, #d8e0db);
  border-radius: 0.8rem;
  background: #fff;
}

@media (max-width: 560px) {
  .admin-access-detail__links > .directory-role__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-block: 0.5rem;
  }

  .directory-role__row > .admin-access-detail__link {
    padding: 0;
  }

  .directory-role__delete {
    justify-self: start;
  }
}

.master-detail-sidebar__item:is(a) {
  font: inherit;
  text-decoration: none;
}

.console-support-card:is(a),
.console-account__logout:is(a) {
  text-decoration: none;
}

/* Native WordPress dialogs must size their outer box and surface together. */
.console-dialog--small {
  width: min(28rem, calc(100vw - 2rem));
}

.console-dialog > .console-dialog__surface,
.console-dialog > .console-dialog__surface--small {
  width: 100%;
}

/* Closed native select matching ManagerAssociationSelect from guyane-asso. */
.manager-association-select__native-wrap {
  position: relative;
}

.manager-association-select__native {
  appearance: none;
  padding-right: 2.5rem;
}

.manager-association-select__native-wrap > .manager-association-select__chevron {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  pointer-events: none;
  transform: translateY(-50%);
}

/* Explicit console identity: red for admin, yellow for association managers. */
.admin-shell--manager:not(.admin-shell--admin) {
  --console-accent: #f7e816;
  --console-accent-ink: #1d1d1b;
  --console-active-icon-bg: #1d1d1b;
  --console-active-icon-ink: #f7e816;
}

.admin-shell--admin {
  --console-accent: #d63516;
  --console-accent-ink: #fff;
  --console-active-icon-bg: #fff;
  --console-active-icon-ink: #d63516;
}

.admin-shell--manager .manager-topbar__badge,
.admin-shell--manager .manager-sidebar__link--active {
  color: var(--console-accent-ink);
  border-color: var(--console-accent);
  background: var(--console-accent);
}

.admin-shell--manager .manager-sidebar__link--active {
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.22),
    0 7px 16px rgb(0 0 0 / 0.14);
}

.admin-shell--manager .manager-sidebar__link--active .manager-sidebar__link-icon {
  color: var(--console-active-icon-ink);
  background: var(--console-active-icon-bg);
  border-color: transparent;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
  transform: scale(1.06);
}

.console-support-card strong {
  white-space: nowrap;
}

/* Association administration uses the same stable AdminContentLayout on every tab. */
.admin-asso-detail .admin-content {
  flex: 1;
  min-height: 0;
}

.admin-asso-detail .admin-content__workspace--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-asso-detail .admin-content__titlebar--with-cover {
  position: relative;
  isolation: isolate;
  min-height: 6.5rem;
  overflow: hidden;
}

.admin-asso-detail .admin-content__titlebar-cover,
.admin-asso-detail .admin-content__titlebar-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.admin-asso-detail .admin-content__titlebar-cover {
  z-index: -2;
  object-fit: cover;
  object-position: center 45%;
}

.admin-asso-detail .admin-content__titlebar-cover-shade {
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 0.98) 0%,
    rgb(255 255 255 / 0.94) 38%,
    rgb(255 255 255 / 0.72) 68%,
    rgb(255 255 255 / 0.38) 100%
  );
}

.admin-asso-detail .admin-content__titlebar--with-cover > :not(.admin-content__titlebar-cover):not(.admin-content__titlebar-cover-shade) {
  position: relative;
  z-index: 1;
}

.admin-asso-detail .admin-content__nav-item:is(a) {
  color: var(--admin-content-ink);
  font: inherit;
  text-decoration: none;
}

.admin-asso-detail .admin-content__nav-item--active:is(a) {
  color: var(--admin-content-accent);
}

.admin-asso-detail .admin-content-section__body > .console-profile-card {
  margin: 0;
}

.admin-asso-detail .admin-association-tab__body--master {
  padding: 0.75rem;
  overflow: hidden;
}

.admin-asso-detail .admin-association-tab__body--master > .console-master-detail {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0.35rem;
  box-shadow: none;
}

.admin-asso-detail .admin-association-tab__body--master .console-master-list,
.admin-asso-detail .admin-association-tab__body--master .console-master-panel {
  min-height: 0;
  overflow: auto;
}

@media (max-width: 960px) {
  .admin-asso-detail .admin-association-tab__body--master {
    min-height: 32rem;
    overflow: auto;
  }

  .admin-asso-detail .admin-association-tab__body--master > .console-master-detail {
    height: auto;
  }
}

@media (max-width: 720px) {
  .admin-asso-detail .admin-content__titlebar-cover-shade {
    background: rgb(255 255 255 / 0.88);
  }
}

/* Compact manager shell: keep controls on one row and avoid sidebar overflow. */
.unicipal-console-body .console-skip-link {
  position: fixed !important;
  top: 0.5rem !important;
  left: 0.5rem !important;
  transform: translateY(-220%) !important;
}

.unicipal-console-body .console-skip-link:focus,
.unicipal-console-body .console-skip-link:focus-visible {
  transform: translateY(0) !important;
}

.unicipal-console-body .manager-topbar__select {
  width: min(32rem, 43vw);
  min-width: 0;
}

.unicipal-console-body .manager-topbar__select .manager-association-select--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.unicipal-console-body .manager-association-select__native-wrap {
  min-width: 0;
}

.unicipal-console-body .manager-association-select__native {
  min-width: 0;
}

.unicipal-console-body .manager-association-select__submit {
  width: auto;
  min-width: 6rem;
  min-height: 2.4rem;
  padding-inline: 0.9rem;
  white-space: nowrap;
}

.unicipal-console-body .manager-shell__body {
  grid-template-columns: 15.75rem minmax(0, 1fr);
}

.unicipal-console-body .manager-sidebar {
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0.45rem;
  overflow-x: hidden;
}

.unicipal-console-body .manager-sidebar__top,
.unicipal-console-body .manager-sidebar__footer,
.unicipal-console-body .manager-sidebar__nav {
  min-width: 0;
  max-width: 100%;
}

.unicipal-console-body .manager-sidebar__logo {
  max-height: 3.35rem;
  margin-bottom: 0.45rem;
  padding-block: 0.25rem;
}

.unicipal-console-body .manager-sidebar__asso {
  margin: 0 0.15rem 0.55rem;
  padding: 0.55rem 0.65rem;
}

.unicipal-console-body .manager-sidebar__asso-name {
  margin-bottom: 0.2rem;
  font-size: 0.76rem;
}

.unicipal-console-body .manager-sidebar__nav {
  gap: 0.08rem;
  padding: 0.15rem;
}

.unicipal-console-body .manager-sidebar__link {
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.42rem;
  font-size: 0.78rem;
}

.unicipal-console-body .manager-sidebar__link-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.unicipal-console-body .manager-sidebar__footer {
  gap: 0.4rem;
  padding-top: 0.45rem;
}

.unicipal-console-body .console-support-card {
  padding: 0.5rem 0.6rem;
}

.unicipal-console-body .console-account {
  gap: 0.4rem;
  padding: 0.5rem;
}

.unicipal-console-body .console-account__identity {
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
}

.unicipal-console-body .console-account__avatar {
  width: 2rem;
  height: 2rem;
}

.unicipal-console-body .console-account__name {
  font-size: 0.78rem;
}

.unicipal-console-body .console-account__email {
  font-size: 0.66rem;
}

.unicipal-console-body .console-account__logout {
  min-height: 1.9rem;
  padding-block: 0.3rem;
}

@media (max-width: 1024px) and (min-width: 961px) {
  .unicipal-console-body .manager-shell__body {
    grid-template-columns: 14.25rem minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .unicipal-console-body .manager-topbar__select {
    width: 100%;
  }

  .unicipal-console-body .manager-shell__body {
    display: block;
  }
}

/* Keep the manager association prompts aligned with AssociationAdminFiche. */
.admin-asso-fiche__engagement-prompts .manager-engagement-prompt {
  grid-template-columns: 4.75rem auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  min-height: 0;
  padding: 1.15rem;
}

.admin-asso-fiche__engagement-prompts .manager-engagement-prompt__image {
  grid-row: 1 / span 2;
  width: 4.75rem;
  height: 4.75rem;
  min-height: 0;
}

.admin-asso-fiche__engagement-prompts .manager-engagement-prompt__copy h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.admin-asso-fiche__engagement-prompts .manager-engagement-prompt__copy > p:last-child {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-asso-fiche__engagement-prompts .manager-engagement-prompt__action {
  grid-column: 3;
  align-self: auto;
}

@media (max-width: 520px) {
  .admin-asso-fiche__engagement-prompts .manager-engagement-prompt {
    grid-template-columns: 1fr;
  }

  .admin-asso-fiche__engagement-prompts .manager-engagement-prompt__image {
    grid-row: auto;
    width: 100%;
    height: 7rem;
  }

  .admin-asso-fiche__engagement-prompts .manager-engagement-prompt__action {
    grid-column: 1;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .console-preflight__header {
    display: grid;
  }

  .console-preflight__score {
    width: 100%;
  }

  .console-preflight__item {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .console-preflight__action {
    grid-column: 2;
    width: fit-content;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .console-preflight__title-row {
    display: grid;
    justify-items: start;
  }

  .console-preflight__item {
    grid-template-columns: 1fr;
  }

  .console-preflight__marker,
  .console-preflight__action {
    grid-column: 1;
  }

  .console-preflight__action {
    width: 100%;
  }
}

/* Directory role row: typographic hierarchy on the left, icon actions on the right. */
.admin-access-detail__links > .directory-role__row {
  padding: 0.35rem 0;
}

.directory-role__row > .directory-role__copy {
  display: grid;
  justify-content: initial;
  align-content: center;
  gap: 0.18rem;
  padding: 0.35rem 0;
}

.directory-role__copy .admin-access-detail__link-name {
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.25;
  color: #16231d;
}

.directory-role__copy .admin-access-detail__link-meta {
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.35;
  color: #6c7a74;
}

.directory-role__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.directory-role__icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid #dbe5df;
  border-radius: 0.55rem;
  color: #067b3a;
  background: #f4f9f6;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.directory-role__icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.directory-role__icon-button--edit:hover,
.directory-role__icon-button--edit:focus-visible {
  color: #045a2c;
  border-color: #a9d1b8;
  background: #e8f5ee;
}

.directory-role__icon-button--delete {
  color: #a73a32;
  background: #fff8f7;
  border-color: #f0d7d4;
}

.directory-role__icon-button--delete:hover,
.directory-role__icon-button--delete:focus-visible {
  color: #842b25;
  border-color: #e9aaa5;
  background: #ffefed;
}

.directory-role__delete {
  display: contents;
}

.directory-role__form--editing {
  border-color: #b7ddc6;
  background: #f7fbf8;
  box-shadow: inset 3px 0 0 #067b3a;
}

.directory-role__cancel {
  color: #65716c;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
}

.directory-role__cancel:hover {
  color: #067b3a;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .admin-access-detail__links > .directory-role__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .directory-role__actions {
    justify-self: end;
  }
}

/* Application dossiers and response workspace. */
.application-field{display:grid;gap:.4rem;font-size:.9rem;font-weight:600;min-width:0}
.application-field input,.application-field textarea,.console-response-search input{box-sizing:border-box;width:100%;min-width:0;border:1px solid #ceded7;border-radius:.65rem;padding:.7rem .8rem;font:inherit;font-weight:400;background:#fff;color:#10231a}
.application-field input:focus-visible,.application-field textarea:focus-visible{outline:2px solid #007f8b;outline-offset:2px}
.application-field input[readonly]{background:#f3f7f5}.application-field textarea{resize:vertical}
.unicipal-apply-dialog{box-sizing:border-box;width:min(34rem,calc(100% - 2rem));max-height:calc(100dvh - 3rem);overflow:auto;padding:1.4rem;border:0;border-radius:1.1rem;box-shadow:0 18px 70px rgb(0 0 0/.24);color:#10231a}
.unicipal-apply-dialog::backdrop{background:rgb(4 28 17/.6)}.unicipal-apply-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.unicipal-apply-dialog h2{font-size:1.3rem;margin:0}.unicipal-apply-dialog>header button{border:0;background:transparent;font-size:1.7rem;cursor:pointer}
.application-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.application-success{padding:1rem;border-radius:.6rem;background:#e5f6ed;color:#10472b}
.application-dossier__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.application-document{padding:1rem;background:#e4f4f5;border-radius:.8rem}.application-document--letter{background:#fff1df}
.application-document small,.application-privacy{font-size:.85rem;font-weight:400;line-height:1.5}.volunteer-app-form-shell{padding:2rem 1rem}.application-dossier .rm-btn{cursor:pointer}
@media(max-width:720px){.application-dossier__grid{grid-template-columns:minmax(0,1fr)}.unicipal-apply-dialog{padding:1rem}.volunteer-app-form-shell{padding:1rem .6rem}}


#mission-apply [hidden]{display:none!important}

/* Scoped response workspace: keep navigation, list and dossier scrolls separate. */
.unicipal-responses-body { min-height: 0; }
.unicipal-responses-body .admin-shell { height: 100vh; height: 100dvh; min-height: 0; }
.admin-shell__main--responses > .background { overflow: hidden; }
.content-layout--responses > .background__content {
  display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden;
}
.content-layout--responses .console-message { flex: none; }
.manager-responses { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.manager-responses > .console-page-header { flex: none; margin-bottom: 1rem; }
.console-response-layout {
  display: grid; flex: 1; min-width: 0; min-height: 0;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); gap: 1rem; align-items: stretch;
}
.console-response-layout > .console-panel {
  min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 1rem;
}
.console-response-sidebar, .console-response-detail { display: flex; flex-direction: column; overflow: hidden; }
.console-response-search { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .45rem; }
.console-response-search label { grid-column: 1 / -1; font-size: .85rem; font-weight: 650; }
.console-response-search input { height: 2.75rem; }
.console-response-search .rm-btn { width: auto; min-height: 2.75rem; padding: .6rem .7rem; font-size: .78rem; }
.console-response-filters { display: grid; flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: .85rem 0; }
.console-response-filters a {
  display: flex; justify-content: center; align-items: center; min-height: 2.5rem;
  padding: .4rem .3rem; border: 1px solid #dfe7e2; border-radius: .55rem;
  color: #006773; background: #f7faf8; font-size: .8rem; text-align: center; text-decoration: none;
}
.console-response-filters a[aria-current] { border-color: #006773; background: #006773; color: #fff; }
.console-response-results, .console-response-detail__body {
  flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain;
  scrollbar-gutter: stable; scroll-padding-block: .4rem;
}
.console-response-results { padding: .25rem .35rem .25rem .2rem; }
.console-response-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.console-response-list li { display: block; min-width: 0; padding: 0; border: 0; }
.console-response-list li > a {
  display: grid; gap: .45rem; width: 100%; padding: .85rem;
  border: 1px solid #dfe7e2; border-radius: .7rem; background: #fff;
  color: inherit; text-decoration: none; overflow-wrap: anywhere;
}
.console-response-list li > a:hover { border-color: #9bc8c5; background: #f3f9f7; }
.console-response-list li > a[aria-current] { background: #e7f3f2; border-color: #007f8b; outline: 0; }
.console-response-name { display: grid; grid-template-columns: .65rem minmax(0, 1fr); align-items: start; gap: .55rem; min-width: 0; }
.console-response-list .console-response-name { font-size: .88rem; font-weight: 750; line-height: 1.4; }
.console-response-dot { display: block; width: .6rem; height: .6rem; margin-top: .32em; border: 1px solid rgb(0 0 0 / .15); border-radius: 50%; }
.console-response-dot--pending { background: #bd610b; }
.console-response-dot--reviewed { background: #13804a; }
.console-response-dot--waiting { background: #627780; }
.console-response-mission { color: #52645c; font-size: .8rem; line-height: 1.45; }
.manager-responses .console-response-state {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; line-height: 1.35;
}
.console-response-state--pending { color: #844407; background: #fff0da; }
.console-response-state--reviewed { color: #12613a; background: #e0f3e8; }
.console-response-state--waiting { color: #455e68; background: #eaf1f4; }
.console-response-detail__header {
  display: flex; flex: none; justify-content: space-between; align-items: start; gap: .75rem;
  margin: 0 0 .8rem; padding-bottom: .85rem; border-bottom: 1px solid #dfe7e2;
}
.console-response-detail__header > div { min-width: 0; }
.console-response-detail__header p { margin: 0 0 .35rem; color: #52645c; font-size: .82rem; line-height: 1.4; }
.console-response-detail__header h2 { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; }
.console-response-detail__header .console-response-state { flex: none; }
.console-response-detail__body { padding: .2rem .6rem .45rem .2rem; }
.console-response-detail__body > h3 { margin: 1.25rem 0 .65rem; font-size: .95rem; }
.console-response-detail__body > h3:first-child { margin-top: 0; }
.console-response-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; }
.console-response-facts > div { display: grid; align-content: start; gap: .3rem; min-width: 0; padding: .7rem .8rem; border: 1px solid #e2eae5; border-radius: .6rem; background: #f7faf8; }
.console-response-facts dt { color: #52645c; font-size: .74rem; font-weight: 650; }
.console-response-facts dd { min-width: 0; margin: 0; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.console-response-detail__body a { color: #006773; text-underline-offset: .16em; }
.console-response-documents { display: flex; flex-wrap: wrap; gap: .5rem; }
.console-response-documents a { padding: .65rem .8rem; border: 1px solid #cce0d8; border-radius: .55rem; background: #f3f9f6; font-size: .82rem; }
.console-response-documents p { margin: 0; color: #52645c; }
.console-response-message { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.6; }
.console-response-message p { margin: 0 0 .65rem; }
.console-response-actions { display: grid; gap: .85rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid #dfe7e2; }
.console-response-actions textarea { resize: vertical; }
.console-response-actions button { justify-self: start; max-width: 100%; padding: .85rem 1.1rem; cursor: pointer; }
.console-response-waiting { padding: .75rem; border-radius: .6rem; background: #eaf1f4; color: #455e68; }
.console-response-back { display: none; }
@media (max-width: 1100px) {
  .admin-shell__main--responses > .background { overflow-y: auto; overscroll-behavior-y: contain; }
  .content-layout--responses > .background__content { display: block; height: auto; min-height: 100%; overflow: visible; }
  .manager-responses { display: block; }
  .console-response-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .console-response-layout > .console-panel { height: auto; overflow: visible; }
  .console-response-results, .console-response-detail__body { overflow: visible; scrollbar-gutter: auto; }
  .console-response-detail__header { flex-wrap: wrap; }
  .console-response-back { display: inline-flex; align-self: start; align-items: center; min-height: 2.5rem; margin-bottom: .65rem; color: #006773; font-size: .82rem; }
}
@media (max-width: 560px) {
  .console-response-facts { grid-template-columns: minmax(0, 1fr); }
  .console-response-layout > .console-panel { padding: .85rem; }
  .console-response-detail__body { padding-inline: 0; }
}
@media (forced-colors: active) {
  .console-response-dot { forced-color-adjust: none; }
}


/* The mobile sidebar must leave the document flow on this full-screen workspace. */
@media (max-width: 960px) {
  .unicipal-responses-body .manager-shell__body { display: flex; flex-direction: column; position: relative; overflow: hidden; }
  .unicipal-responses-body .admin-shell__sidebar {
    position: absolute; z-index: 35; inset: 0 auto 0 0; width: min(18rem, 88vw);
    height: 100%; max-height: 100%; overflow-y: auto; transform: translateX(-102%);
  }
  .unicipal-responses-body .manager-sidebar.is-open { transform: translateX(0); }
  .unicipal-responses-body .admin-shell__main { min-height: 0; height: 100%; overflow: hidden; }
}
.console-response-results, .console-response-detail__body { scrollbar-width: thin; scrollbar-color: #a6beb1 transparent; }
.console-response-results::-webkit-scrollbar, .console-response-detail__body::-webkit-scrollbar { width: 7px; }
.console-response-results::-webkit-scrollbar-thumb, .console-response-detail__body::-webkit-scrollbar-thumb { border-radius: 7px; background: #a6beb1; }
