/* Static labels: keep every label above its field, with room for it */
.field-static { margin-top: 2rem; }
.field-legend {
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .5rem;
  padding: 0 .5rem;
}

.form-section + .form-section {
  border-top: 1px solid var(--bs-border-color, #ddd);
  padding-top: 2rem;
}

/* Keep multi-line help texts aligned with the label */
.field-static .form-text,
fieldset .form-text {
  display: block;
  padding: 0 .5rem;
}

/* Checkbox options with a short description under the label */
.checkbox-with-hint label {
  height: auto;
  line-height: 1.4;
}
.checkbox-hint {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: var(--bs-secondary-color, #5c6f82);
}

/* Ateneo logo (white on transparent) beside the application name */
.it-brand-wrapper .brand-logo {
  height: 56px;
  width: auto;
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, .5);
}
@media (max-width: 767.98px) {
  .it-brand-wrapper .brand-logo { height: 40px; }
}

/* Login: two-panel card centered on the page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  /* Dotted grid fading towards the edges */
  background-color: #f4f6f8;
  background-image:
    radial-gradient(ellipse at center, rgba(244, 246, 248, 0) 35%, #f4f6f8 85%),
    radial-gradient(circle, #8fa5bd 1.5px, transparent 2px);
  background-size: 100% 100%, 24px 24px;
  background-attachment: fixed;
}
.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1016px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(23, 50, 77, .12);
}
.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem;
  color: #fff;
  background: linear-gradient(160deg, #14406a 0%, #1f5f9e 60%, #2468ad 100%);
}
/* Decorative rings in the bottom-right corner */
.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-brand::before {
  width: 280px; height: 280px; right: -90px; bottom: -140px;
  border: 72px solid rgba(255, 255, 255, .08);
}
.login-brand::after {
  width: 136px; height: 136px; right: -18px; bottom: -68px;
  background: rgba(255, 255, 255, .06);
}
/* Dots on the blue panel too */
.login-brand > * { position: relative; }
.login-brand {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .14) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(160deg, #14406a 0%, #1f5f9e 60%, #2468ad 100%);
}
.login-logo { width: 240px; height: auto; margin-bottom: 3rem; }
.login-eyebrow {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.login-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.login-subtitle { font-size: 1.125rem; margin-bottom: 1.5rem; }
.login-text { font-size: 1rem; line-height: 1.5; margin-bottom: 0; opacity: .92; }
.login-form { padding: 4rem 3.5rem; }
.login-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.login-heading h1 { font-size: 2rem; margin: 0; }
.login-heading .login-eyebrow { margin-bottom: .25rem; }
.login-heading-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #e8f1fb;
}
.login-sso {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 1.5rem 0;
  padding: .9rem 1.5rem;
  font-size: 1rem;
  text-align: left;
}
.login-note {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  font-size: .875rem;
  background: #e9f2fb;
  border-left: 4px solid #0066cc;
}
.login-note p { margin: 0; font-size: .875rem; line-height: 1.5; }
.login-note .icon { flex: none; fill: #17324d; }
.login-help-title { font-weight: 700; margin-bottom: .25rem; }
.login-help { font-size: .875rem; line-height: 1.4; color: #5d7083; }
.login-admin summary { font-size: .875rem; color: #5d7083; cursor: pointer; }
@media (max-width: 767.98px) {
  .login-card { grid-template-columns: 1fr; }
  .login-brand, .login-form { padding: 2rem 1.5rem; }
  .login-logo { width: 180px; margin-bottom: 2rem; }
  .login-title { font-size: 2rem; }
  .login-heading h1 { font-size: 1.5rem; }
}

/* Read-only impersonation banner, under the header */
.impersonation-bar {
  background: #ffe8a3;
  color: #3d2e00;
  border-bottom: 2px solid #e0a800;
}
.impersonation-bar .icon { fill: #3d2e00; }

/* Text fields and text areas use the full width of their column */
.field-static input:not([type=checkbox]):not([type=radio]):not([type=file]),
.field-static textarea {
  width: 100%;
}
.field-static textarea { min-height: 6rem; }

/* ---- Consultation page: header, numbered steps, documents, comments (mobile first) ---- */
.consultation-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dde3ea;
}
.consultation-title {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.consultation-deadline,
.on-behalf {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: 1rem;
}
.consultation-deadline .icon,
.on-behalf .icon { flex-shrink: 0; margin-top: .15rem; fill: #5c6f82; }
.on-behalf {
  display: inline-flex;
  padding: .5rem .75rem;
  border-radius: 6px;
  background: #eef4fb;
  color: #17324d;
}
.on-behalf .icon { fill: #0066cc; }
.consultation-description {
  margin-top: 1rem;
  font-size: 1rem;
  color: #33485c;
}
.consultation-description p:last-child { margin-bottom: 0; }

.step-section + .step-section { margin-top: 2.5rem; }
.step-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-right: .75rem;
  border-radius: 50%;
  background: #0066cc;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.document-list { list-style: none; padding: 0; margin: 0; }
.document-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
}
.document-item + .document-item { margin-top: .75rem; }
.document-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #eef4fb;
  color: #0066cc;
  font-size: .7rem;
  font-weight: 700;
}
.document-body { min-width: 0; flex: 1; }
.document-title { font-size: 1.05rem; margin-bottom: .25rem; overflow-wrap: anywhere; }
.document-description { font-size: .95rem; margin-bottom: .25rem; color: #33485c; }
.document-meta { font-size: .8rem; color: #5c6f82; margin-bottom: .75rem; }
.document-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.comment-form-box {
  padding: 1.25rem;
  border-radius: 8px;
  background: #f5f7fa;
}
.comment-form-box .field-static:first-child { margin-top: 1rem; }
.comment-form-box textarea { background: #fff; min-height: 9rem; }

.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid #dde3ea;
}
.comment-item:first-of-type { padding-top: 0; }
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  font-size: .85rem;
  color: #5c6f82;
  margin-bottom: .5rem;
}
.comment-target { font-weight: 600; color: #17324d; }
.comment-text p:last-child { margin-bottom: .5rem; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.info-box {
  top: 1rem;
  padding: 1.25rem;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
}
.info-list { margin-bottom: 1rem; }
.info-list dt { font-size: .8rem; font-weight: 600; color: #5c6f82; }
.info-list dd { margin-bottom: .75rem; }

@media (max-width: 575.98px) {
  /* Phones: tighter boxes, document icon hidden to leave room for the text */
  .consultation-title { font-size: 1.5rem; }
  .document-icon { display: none; }
  .document-actions .btn { flex: 1; }
  .comment-form-box { padding: 1rem; margin: 0 -.5rem; }
}
@media (min-width: 992px) {
  .consultation-title { font-size: 2.25rem; }
}
.comment-about { margin: .25rem 0 0; font-size: .95rem; }
.comment-deadlines { margin: .5rem 0 0; font-size: .8rem; color: #5c6f82; }

/* Managers looking at a consultation from the participants' side */
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #0066cc;
  border-radius: 4px;
  background: #eef4fb;
  font-size: .9rem;
}

/* ---- Consultation edit form ---- */
.edit-form { padding-bottom: 5rem; }
.edit-index {
  top: 1rem;
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  border-left: 2px solid #dde3ea;
}
.edit-index li + li { margin-top: .75rem; }
.edit-index a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.edit-card {
  scroll-margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
}
.edit-card + .edit-card { margin-top: 1.5rem; }
.edit-card-title { font-size: 1.25rem; margin-bottom: .25rem; }
.edit-card-hint { font-size: .875rem; color: #5c6f82; margin-bottom: 1rem; }
.edit-card .field-static:first-of-type { margin-top: 1.5rem; }

.document-forms { display: grid; gap: 1rem; }
.document-form {
  padding: 1rem;
  border-radius: 6px;
  background: #f5f7fa;
}
.document-form.has-errors { outline: 2px solid #d9364f; }
.document-form .field-static { margin-top: 1.5rem; }
.document-form textarea { min-height: 4rem; background: #fff; }
.document-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}
.document-form-name { min-width: 0; overflow-wrap: anywhere; }
.document-remove { font-size: .85rem; font-weight: 400; color: #d9364f; white-space: nowrap; cursor: pointer; }
.document-remove input { margin-right: .25rem; }
.file-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .25rem; padding: 0 .5rem; }
.file-field .form-control { background: #fff; }

.choice-cards { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid #dde3ea;
  border-radius: 8px;
  cursor: pointer;
}
.choice-card:has(input:checked) { border-color: #0066cc; background: #eef4fb; }
.choice-card input { margin-top: .3rem; flex-shrink: 0; }
.choice-card-body { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.choice-card-body strong { font-size: 1rem; }

.toggle-field { margin-bottom: 1.25rem; }
.toggle-field .toggles label { font-size: 1rem; font-weight: 600; }
.toggle-field .form-text { display: block; margin-top: -.25rem; }

.save-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: .75rem 0;
  background: #fff;
  border-top: 1px solid #dde3ea;
  box-shadow: 0 -.25rem 1rem rgba(23, 50, 77, .08);
}
@media (max-width: 575.98px) {
  .edit-card { padding: 1rem; margin-left: -.5rem; margin-right: -.5rem; }
  .save-bar .btn { flex: 1; }
}
/* Bootstrap Italia toggles assume a one-line label: let long labels wrap beside the switch */
.toggle-field .toggles label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  height: auto;
  padding: 0;
  margin-bottom: .25rem;
  line-height: 1.4;
}
.toggle-field .toggles label input[type=checkbox] + .lever {
  float: none;
  flex-shrink: 0;
  margin: .2rem 0 0;
}
.toggle-field .form-text { margin-top: 0; padding: 0; }

/* Bootstrap Italia sets a serif font on callouts and card texts: keep the interface font everywhere */
.callout p,
.card .card-text { font-family: inherit; }

/* ---- Participants and invitations ---- */
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.people-item { padding: 1rem; border: 1px solid #dde3ea; border-radius: 8px; background: #fff; }
.people-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem 1rem; }
.people-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.code-badge { font-size: .95rem; padding: .2rem .5rem; border-radius: 4px; background: #eef4fb; color: #0066cc; }
.people-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .5rem; font-size: .85rem; color: #5c6f82; }
.people-users { list-style: none; padding: .5rem 0 0; margin: .5rem 0 0; border-top: 1px dashed #dde3ea; font-size: .9rem; }
.people-users li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.people-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }

.placeholders summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: #0066cc; }
.placeholders dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: .75rem 0 0; font-size: .85rem; }
.placeholders dd { margin: 0; }
.recipient-list { list-style: none; padding: 0; margin: 0; }
.recipient { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid #eef1f4; }
.recipient input { margin-top: .3rem; flex-shrink: 0; width: 1.1rem; height: 1.1rem; }
.recipient label { display: flex; flex-direction: column; cursor: pointer; }
.recipient.is-disabled { opacity: .6; }
.recipient-name { font-weight: 600; }
.recipient-meta { font-size: .8rem; color: #5c6f82; }
.recipient-sent { font-size: .8rem; color: #008758; font-weight: 600; }
.recipient-new { font-size: .8rem; color: #a66300; }

/* ---- Manage area: administrative layout with a left menu ---- */
.admin-shell { background: #f2f5f8; }
.admin-layout { display: flex; flex-direction: column; min-height: 70vh; }
.admin-sidebar { background: #fff; border-bottom: 1px solid #dde3ea; }
.admin-menu-toggle {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  padding: .85rem 1rem; border: 0; background: #fff; font-weight: 600; color: #17324d; text-align: left;
}
.admin-menu { padding: .5rem 0 1rem; }
.admin-menu ul { list-style: none; margin: 0; padding: 0; }
.admin-menu-title { margin: .75rem 1.25rem .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #0066cc; }
.admin-menu-section { margin: 1.25rem 1.25rem .35rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5c6f82; }
.admin-menu-current { margin: 0 1.25rem .35rem; font-size: .9rem; font-weight: 600; color: #17324d; line-height: 1.3; }
.admin-menu-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem 1.25rem; border-left: 3px solid transparent;
  color: #17324d; font-size: .95rem; text-decoration: none;
}
.admin-menu-link .icon { fill: #5c6f82; flex-shrink: 0; }
.admin-menu-link:hover { background: #f2f5f8; color: #0066cc; }
.admin-menu-link:hover .icon { fill: #0066cc; }
.admin-menu-link.active { border-left-color: #0066cc; background: #eef4fb; color: #0066cc; font-weight: 600; }
.admin-menu-link.active .icon { fill: #0066cc; }
.admin-menu-footer { margin-top: 1.25rem !important; padding-top: .75rem !important; border-top: 1px solid #dde3ea; }
.admin-content { flex: 1; min-width: 0; padding: 1.25rem 1rem 2rem; }
.admin-content > .breadcrumb-container .breadcrumb { padding-top: 0; }
@media (min-width: 992px) {
  .admin-layout { flex-direction: row; }
  .admin-sidebar { flex: 0 0 260px; border-bottom: 0; border-right: 1px solid #dde3ea; }
  .admin-menu { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
  .admin-content { padding: 1.5rem 2rem 3rem; }
}
/* Fixed save bar: leave the menu visible on wide screens */
@media (min-width: 992px) { .admin-shell .save-bar { left: 260px; } }

/* Cards and panels sit on the grey background of the manage area */
.admin-shell .edit-card,
.admin-shell .people-item { box-shadow: 0 1px 2px rgba(23, 50, 77, .04); }

.admin-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.admin-page-title { font-size: 1.75rem; margin: 0; }
.admin-page-subtitle { margin: .25rem 0 0; color: #5c6f82; font-size: .9rem; }

.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 1200px) { .stat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-tile {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem 1.25rem; border: 1px solid #dde3ea; border-radius: 8px; background: #fff; color: #17324d; text-decoration: none;
}
a.stat-tile:hover { border-color: #0066cc; }
.stat-tile.has-todo { border-left: 4px solid #cc7a00; }
.stat-label { font-size: .8rem; font-weight: 600; color: #5c6f82; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: #17324d; font-variant-numeric: tabular-nums; }
.stat-of { font-size: 1rem; font-weight: 600; color: #5c6f82; }
.stat-note { font-size: .8rem; color: #5c6f82; }

.admin-panel { padding: 1.25rem; border: 1px solid #dde3ea; border-radius: 8px; background: #fff; }
.admin-panel + .admin-panel { margin-top: 1.5rem; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.admin-panel-title { font-size: 1.1rem; margin: 0; }

.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-row { display: grid; gap: .75rem; padding: 1rem 0; border-top: 1px solid #eef1f4; }
.dash-row:first-child { border-top: 0; padding-top: .25rem; }
@media (min-width: 768px) { .dash-row { grid-template-columns: 2fr 1.2fr 1.2fr auto; align-items: center; gap: 1.25rem; } }
.dash-main { display: flex; flex-direction: column; min-width: 0; }
.dash-title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dash-meta { font-size: .8rem; color: #5c6f82; }
.dash-measure { display: flex; flex-direction: column; gap: .3rem; }
.dash-measure-label { font-size: .8rem; color: #5c6f82; }
.dash-measure-label strong { color: #17324d; }
.dash-count { font-size: .9rem; white-space: nowrap; }
/* Single-hue progress meter: a light track and a filled bar with rounded end */
.meter { display: block; height: 8px; border-radius: 4px; background: #e3e9f0; overflow: hidden; }
.meter > span { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: #0066cc; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: .75rem 0; border-top: 1px solid #eef1f4; }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed-meta { margin: 0 0 .25rem; font-size: .85rem; color: #5c6f82; }
.feed-meta strong { color: #17324d; }
.feed-time { float: right; font-size: .8rem; }
.feed-text { margin: 0; font-size: .95rem; }

.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid #eef1f4; font-size: .9rem; }
.todo-list li:first-child { border-top: 0; padding-top: 0; }
.todo-list .icon { flex-shrink: 0; margin-top: .15rem; }
.todo-ok { display: flex; gap: .5rem; align-items: center; color: #008758; font-weight: 600; }
.admin-content h1.h2 { font-size: 1.75rem; }
.admin-panel-head { flex-wrap: wrap; }
@media (max-width: 575.98px) { .admin-content h1.h2, .admin-page-title { font-size: 1.5rem; } }

/* ---- Manage area: one compact top bar instead of the three-band public header ---- */
.admin-topbar { background: #0066cc; color: #fff; }
.admin-topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: 0 1rem; }
.admin-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; color: #fff; text-decoration: none; }
.admin-brand:hover { color: #fff; }
.admin-brand img { height: 34px; width: auto; padding-right: .75rem; border-right: 1px solid rgba(255, 255, 255, .5); }
.admin-brand-text { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.admin-brand-name { overflow: hidden; text-overflow: ellipsis; }
.admin-brand-sub { padding: .05rem .45rem; border-radius: 4px; background: rgba(255, 255, 255, .18); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.admin-topnav { display: flex; gap: .25rem; margin-left: auto; }
.admin-topnav a, .admin-logout {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border-radius: 4px;
  color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; background: transparent; border: 0;
}
.admin-topnav a:hover, .admin-logout:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.admin-user { display: flex; align-items: center; gap: .25rem; padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .35); }
.admin-user-name { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; max-width: 14rem; }
.admin-user-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user form { margin: 0; }
.admin-footer { padding: 1rem; border-top: 1px solid #dde3ea; background: #fff; color: #5c6f82; font-size: .8rem; text-align: center; }
@media (max-width: 767.98px) {
  /* Phones: logo, name and icon-only buttons */
  .admin-brand-name, .admin-user-name, .admin-topnav a span, .admin-logout span { display: none; }
  .admin-brand img { height: 28px; }
  .admin-topbar-inner { gap: .5rem; padding: 0 .5rem 0 .75rem; }
  .admin-user { padding-left: .25rem; }
}
@media (max-width: 400px) { .admin-brand-text { font-size: .95rem; } }

/* First field right after a card title, also when it sits in a grid row */
.edit-card-title + .row .field-static:first-child { margin-top: 2rem; }

/* Invitations: preview of the email */
.email-preview { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.email-preview-head { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 0 0 .75rem; font-size: .875rem; }
.email-preview-head dt { color: #5c6f82; font-weight: 600; }
.email-preview-head dd { margin: 0; overflow-wrap: anywhere; }
.email-preview-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.5; background: #f5f7fa; border: 1px solid #e3e7eb; border-radius: 4px; padding: 1rem; max-height: 28rem; overflow-y: auto; }
.recipient-preview { flex-shrink: 0; white-space: nowrap; font-size: .8rem; }
