/* Aether visual layer for Sweet Pregnancy. */

:root {
  --aether-ink: #202328;
  --aether-muted: #687180;
  --aether-pearl: #f4f7fa;
  --aether-glass: rgba(255, 255, 255, 0.78);
  --aether-glass-strong: rgba(255, 255, 255, 0.92);
  --aether-edge: rgba(255, 255, 255, 0.9);
  --aether-hairline: rgba(106, 124, 145, 0.17);
  --aether-blue: #9eb9d4;
  --aether-blue-strong: #53789e;
  --aether-blue-soft: rgba(158, 185, 212, 0.25);
  --aether-rose: #d78293;
  --aether-rose-soft: rgba(215, 130, 147, 0.14);
  --aether-green: #3f7b68;
  --aether-amber: #a36c2a;
  --aether-red: #9d3e4c;
  --aether-bevel: inset 1px 1px 0 rgba(255, 255, 255, 0.98), inset -1px -1px 0 rgba(48, 65, 82, 0.025);
  --aether-shadow: 0 22px 54px -38px rgba(39, 54, 72, 0.48), 0 2px 8px rgba(39, 54, 72, 0.035);
  --aether-shadow-raised: 0 30px 70px -42px rgba(39, 54, 72, 0.62), 0 5px 18px rgba(39, 54, 72, 0.055);
  --aether-radius: 24px;
  --aether-radius-small: 16px;
  color-scheme: light;
}

.identity-unlock-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 1px solid var(--aether-edge);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--aether-ink);
  box-shadow: 0 36px 100px -44px rgba(32, 35, 40, 0.72);
}

.identity-unlock-dialog::backdrop {
  background: rgba(45, 54, 66, 0.34);
  backdrop-filter: blur(8px);
}

.identity-unlock-dialog form {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 42px);
}

.identity-unlock-dialog h2,
.identity-unlock-dialog p {
  margin: 0;
}

.identity-unlock-dialog label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.identity-unlock-dialog input {
  width: 100%;
}

.identity-unlock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 719px) {
  .identity-unlock-actions > button {
    width: 100%;
  }
}

/* Registration, profile completion and audited exceptional access */
.profile-form-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}

.profile-form-heading h3,
.receipt-upload-panel h3 {
  margin: 0;
}

.receipt-upload-panel {
  display: grid;
  width: min(900px, 100%);
  margin: 20px auto 0;
  gap: 18px;
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  padding: clamp(20px, 4vw, 30px);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.receipt-upload-panel[hidden] {
  display: none;
}

.receipt-upload-panel > div,
.receipt-upload-form {
  display: grid;
  gap: 10px;
}

.receipt-upload-panel p {
  margin: 0;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.profile-data-grid > div {
  min-width: 0;
  border: 1px solid rgba(132, 151, 173, 0.16);
  border-radius: 13px;
  padding: 11px 12px;
  background: rgba(244, 247, 250, 0.64);
}

.profile-data-grid dt {
  color: var(--aether-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-data-grid dd {
  margin: 5px 0 0;
  color: var(--aether-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.exceptional-access-note,
.exceptional-access-active {
  border: 1px solid rgba(167, 118, 48, 0.24);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 246, 226, 0.82);
  color: #73572f;
}

.exceptional-access-active {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.request-actions .exceptional-action {
  grid-column: 1 / -1;
  border-color: rgba(167, 118, 48, 0.35);
  background: rgba(255, 246, 226, 0.86);
  color: #73572f;
}

.view[data-view="signup"] > .registration-steps {
  margin-bottom: 24px;
}

.view[data-view="signup"].is-active {
  display: block;
}

.view[data-view="signup"] > .signup-form {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.document-preview-backdrop {
  z-index: 80;
  padding: 14px;
}

.document-preview-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  height: min(90vh, 980px);
  overflow: hidden;
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  background: #fff;
  box-shadow: 0 32px 90px -36px rgba(32, 35, 40, 0.74);
}

.document-preview-header {
  position: relative;
  min-height: 62px;
  border-bottom: 1px solid var(--aether-hairline);
  padding: 18px 62px 14px 20px;
}

.document-preview-header h2 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.document-preview-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #eef2f6;
}

.document-preview-content iframe,
.document-preview-content img,
.document-preview-content video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 65vh;
  border: 0;
  background: #fff;
}

.document-preview-content img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.document-preview-content video {
  object-fit: contain;
  background: #111820;
}

@media (max-width: 719px) {
  .view[data-view="signup"].is-active {
    display: block;
  }

  .view[data-view="signup"] > .registration-steps {
    display: block;
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .view[data-view="signup"] > .signup-form {
    display: grid;
    width: 100%;
    clear: both;
  }

  .view[data-view="signup"] > .signup-form[hidden] {
    display: none;
  }

  .app-nav.has-more-left {
    box-shadow: var(--aether-bevel), 0 28px 64px -28px rgba(39, 54, 72, 0.65), inset 28px 0 24px -22px rgba(63, 88, 114, 0.5);
  }

  .app-nav.has-more-left.has-more-right {
    box-shadow: var(--aether-bevel), 0 28px 64px -28px rgba(39, 54, 72, 0.65), inset 28px 0 24px -22px rgba(63, 88, 114, 0.5), inset -28px 0 24px -22px rgba(63, 88, 114, 0.5);
  }

  .nav-more-hint.nav-previous-hint:not([hidden]) {
    right: auto;
    left: 10px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.96) 48%);
  }

  .profile-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-preview-backdrop {
    padding: 8px;
  }

  .document-preview-modal {
    height: calc(100dvh - 16px);
    border-radius: 20px;
  }
}

html {
  min-width: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(217, 228, 243, 0.74) 0, rgba(244, 247, 250, 0) 34%),
    linear-gradient(225deg, rgba(238, 222, 237, 0.64) 0, rgba(244, 247, 250, 0) 31%),
    var(--aether-pearl);
  background-attachment: fixed;
}

body {
  width: 100%;
  min-width: 0;
  border: 0;
  overflow-x: hidden;
  color: var(--aether-ink);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(83, 120, 158, 0.28);
  outline-offset: 3px;
}

.app-header,
.app-nav,
.access-shell,
.signup-form,
.unlock-panel,
.question-form,
.overview-block,
.admin-summary article,
.request-card,
.meeting-edit-row,
.message-card,
.upcoming-edition,
.history-edition,
.checklist-item,
.document-link,
.timeline article,
.video-grid article,
.live-result,
.bag-status,
.example-modal {
  border: 1px solid var(--aether-edge);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}

.app-header {
  position: fixed;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 50;
  width: auto;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 9px 12px 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--aether-bevel), var(--aether-shadow-raised);
}

.brand-block {
  gap: 12px;
}

.brand-home-button {
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-home-button:focus-visible {
  border-radius: 999px;
  outline: 3px solid rgba(75, 119, 157, 0.34);
  outline-offset: 4px;
}

.brand-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--aether-bevel), 0 9px 24px -18px rgba(48, 65, 82, 0.72);
}

.brand-block .eyebrow {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(106, 124, 145, 0.2);
  color: var(--aether-muted);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-block h1.brand-title {
  flex: 0 1 210px;
  width: clamp(160px, 13vw, 210px);
  margin: 0;
  line-height: 0;
}

.brand-title-mark {
  width: 100%;
  height: auto;
}

.header-actions {
  gap: 6px;
}

.pull-refresh-indicator svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pull-refresh-indicator.is-refreshing svg {
  animation: refresh-spin 780ms linear infinite;
}

.pull-refresh-indicator {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 9px 14px;
  color: #41566f;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--aether-bevel), 0 18px 38px -22px rgba(39, 54, 72, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 28px));
  transition: transform 180ms ease, opacity 180ms ease;
  white-space: nowrap;
}

.pull-refresh-indicator.is-pulling {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 28px + var(--pull-distance, 0px)));
  transition: none;
}

.pull-refresh-indicator.is-pulling svg {
  transform: rotate(var(--pull-rotation, 0deg));
}

.pull-refresh-indicator.is-ready,
.pull-refresh-indicator.is-refreshing {
  color: #2f6f5d;
}

.pull-refresh-indicator.is-refreshing {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pull-refresh-indicator.is-refreshing svg {
    animation-duration: 1600ms;
  }
}

.session-button,
.install-button,
.primary-action,
.secondary-action,
.download-link,
.text-action,
.request-actions button,
.message-actions button,
.message-actions a,
.request-filters button,
.bag-toolbar button,
.bag-toolbar a {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: var(--aether-bevel), 0 12px 28px -22px rgba(39, 54, 72, 0.6);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-action {
  background: #20242a;
  color: #fff;
  box-shadow: var(--aether-bevel), 0 16px 34px -22px rgba(22, 29, 38, 0.82);
}

.secondary-action,
.download-link,
.text-action,
.session-button,
.message-actions button,
.message-actions a,
.request-actions button,
.bag-toolbar button,
.bag-toolbar a {
  background: rgba(255, 255, 255, 0.76);
  color: #41566f;
}

.primary-action:hover,
.secondary-action:hover,
.download-link:hover,
.text-action:hover,
.session-button:hover,
.request-actions button:hover,
.message-actions button:hover,
.message-actions a:hover,
.request-filters button:hover {
  transform: translateY(-1px);
  box-shadow: var(--aether-bevel), 0 18px 36px -24px rgba(39, 54, 72, 0.72);
}

.primary-action:active,
.secondary-action:active,
.download-link:active,
.text-action:active,
.session-button:active,
.request-actions button:active,
.message-actions button:active,
.request-filters button:active {
  transform: translateY(0);
}

.install-button {
  background: var(--aether-rose-soft);
  color: var(--aether-red);
}

.app-main {
  width: min(1160px, 100%);
  min-width: 0;
  max-width: 100%;
  padding: 112px 16px 80px;
}

body.has-session .app-main {
  padding-top: 178px;
}

.view,
.access-shell,
.access-form,
.signup-form,
.question-form,
.live-result,
.unlock-panel,
.manager-panel,
.request-card,
.message-card,
.meeting-edit-row,
.upcoming-edition,
.history-edition {
  min-width: 0;
  max-width: 100%;
}

.app-nav {
  position: fixed;
  top: 94px;
  bottom: auto;
  left: 50%;
  z-index: 45;
  display: flex;
  width: min(620px, calc(100% - 24px));
  min-height: 64px;
  padding: 7px;
  transform: translateX(-50%);
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--aether-bevel), 0 28px 64px -28px rgba(39, 54, 72, 0.65);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.nav-more-hint {
  display: none;
}

.nav-item {
  flex: 0 0 66px;
  min-width: 66px;
  min-height: 48px;
  padding: 6px 8px;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  color: #657080;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.58);
  color: var(--aether-ink);
}

.nav-item.is-active {
  background: #20242a;
  color: #fff;
  box-shadow: var(--aether-bevel), 0 12px 26px -18px rgba(22, 29, 38, 0.84);
}

.nav-icon {
  width: 19px;
  height: 19px;
}

.nav-badge {
  min-width: 17px;
  min-height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--aether-rose);
  color: #fff;
}

.view {
  animation: aether-view-in 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes aether-view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-more-nudge {
  0%,
  100% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }
}

.eyebrow {
  color: var(--aether-blue-strong);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.section-heading {
  max-width: 760px;
  margin: 26px auto 32px;
  text-align: center;
}

.section-heading h2,
.home-access-heading h2 {
  margin: 0;
  color: var(--aether-ink);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading > p:not(.eyebrow),
.home-access-heading p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--aether-muted);
  line-height: 1.6;
}

/* Home */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(610px, calc(100svh - 150px), 700px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--aether-bevel), var(--aether-shadow-raised);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 36%, rgba(255, 255, 255, 0.2) 72%);
  pointer-events: none;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: #fff;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 2%, rgba(255, 255, 255, 0.75) 39%, rgba(255, 255, 255, 0.02) 72%);
}

.home-hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.home-hero-quote {
  top: 42px;
  right: auto;
  bottom: auto;
  left: clamp(24px, 6vw, 68px);
  max-width: 570px;
  padding: 12px 78px 12px 16px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 68%, rgba(255, 255, 255, 0) 100%);
  color: #43546a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.96rem, 2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
}

.home-hero-copy {
  position: absolute;
  inset: auto auto 48px clamp(24px, 6vw, 68px);
  z-index: 2;
  width: min(620px, 54%);
  padding: 0;
}

.home-hero-copy h2.home-title {
  width: min(100%, 460px);
  margin: 0 0 14px;
  line-height: 0;
  white-space: normal;
}

.home-title-mark {
  width: 100%;
  height: auto;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 10px;
  color: #555f6d;
  font-size: clamp(0.86rem, 1.2vw, 0.96rem);
  line-height: 1.55;
}

.home-access-button {
  min-width: 152px;
  margin-top: 14px;
}

.home-access {
  margin-top: 28px;
  padding: 52px 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-access-heading {
  margin-bottom: 26px;
  text-align: center;
}

.role-choice-grid {
  gap: 18px;
}

.role-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 32%);
  gap: clamp(16px, 3vw, 34px);
  min-height: 300px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  overflow: hidden;
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: var(--aether-bevel), var(--aether-shadow-raised);
}

.role-card-copy {
  z-index: 2;
  max-width: none;
  color: #263341;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.operator-card .role-card-copy {
  font-size: clamp(1.12rem, 2.3vw, 1.55rem);
}

.role-figure {
  width: 100%;
  height: clamp(126px, 17vw, 210px);
  justify-self: end;
}

.home-bottom-sections {
  margin-top: 70px;
  border-top-color: var(--aether-hairline);
}

.home-story,
.team-feature {
  gap: 34px;
  padding: 68px clamp(4px, 4vw, 44px);
}

.home-story {
  border-bottom-color: var(--aether-hairline);
}

.home-story h2,
.team-feature h2 {
  margin: 0;
  color: var(--aether-ink);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 620;
  line-height: 1.02;
}

.home-story-copy p,
.team-feature-copy p:not(.eyebrow) {
  color: var(--aether-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.team-feature {
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}

.team-feature img {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Forms and access */
.access-shell,
.signup-form,
.question-form,
.unlock-panel {
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--aether-radius);
}

.access-form > *,
.signup-form > *,
.question-form > *,
.code-form > *,
.live-result > * {
  min-width: 0;
  max-width: 100%;
}

.access-form input,
.signup-form input,
.question-form input,
.question-form select,
.question-form textarea,
.code-form input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.access-form .primary-action,
.signup-form .primary-action,
.question-form .primary-action,
.code-form .primary-action,
.live-result .primary-action,
.live-result .secondary-action {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.access-form .primary-action,
.access-shell .live-result .primary-action,
.access-shell .live-result .secondary-action {
  width: 100%;
  min-width: 0;
  padding-right: 26px;
  padding-left: 26px;
  justify-content: center;
  text-align: center;
}

.access-form input {
  padding-right: 20px;
  padding-left: 20px;
}

.access-shell .live-result {
  padding-right: 4px;
  padding-left: 4px;
}

.access-shell .section-heading {
  margin-top: 0;
}

.access-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(132, 151, 173, 0.2);
  border-radius: 999px;
  background: rgba(235, 241, 247, 0.72);
  box-shadow: var(--aether-bevel);
}

.access-mode-tabs button {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: var(--aether-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.access-mode-tabs button.is-active {
  border: 1px solid rgba(75, 111, 148, 0.24);
  background: #dceaf7;
  color: #20384f;
  box-shadow: 0 9px 20px -15px rgba(63, 99, 135, 0.55);
}

.form-help {
  margin: -4px 0 0;
  color: var(--aether-muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.registration-invite {
  text-align: center;
}

.registration-invite .legal-inline-link {
  display: inline;
  padding: 0;
}

.registration-intro {
  margin-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.62;
}

.registration-intro[hidden],
.registration-password-fields[hidden],
.registration-back[hidden] {
  display: none;
}

.registration-password-fields {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(132, 151, 173, 0.2);
  border-radius: var(--aether-radius-small);
  padding: clamp(20px, 4vw, 30px);
  background: rgba(235, 241, 247, 0.58);
  box-shadow: var(--aether-bevel);
}

.registration-password-fields h3,
.registration-password-fields p {
  margin: 0;
}

.registration-password-fields > div > p:last-child {
  margin-top: 8px;
  color: var(--aether-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.registration-back {
  margin-top: 10px;
}

.account-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(22px, 4vw, 44px);
  width: min(980px, 100%);
  margin: 28px auto;
  border: 1px solid rgba(132, 151, 173, 0.18);
  border-radius: var(--aether-radius);
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.account-access-panel[hidden] {
  display: none;
}

.account-access-copy h3 {
  margin: 7px 0 10px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.account-access-copy p:last-child {
  margin: 0;
  color: var(--aether-muted);
  line-height: 1.55;
}

.account-password-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.account-password-form .secondary-action {
  justify-self: start;
}

.access-form,
.signup-form,
.question-form,
.code-form {
  gap: 18px;
}

label {
  color: #364150;
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 50px;
  border: 1px solid rgba(132, 151, 173, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--aether-ink);
  box-shadow: var(--aether-bevel), 0 12px 28px -26px rgba(39, 54, 72, 0.5);
}

textarea {
  min-height: 132px;
  border-radius: 18px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(83, 120, 158, 0.5);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(158, 185, 212, 0.18), var(--aether-bevel);
}

input[type="file"] {
  border-radius: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: #364150;
  font-size: 0.82rem;
  font-weight: 700;
}

.topic-select {
  position: relative;
  min-width: 0;
}

.topic-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(132, 151, 173, 0.22);
  border-radius: 999px;
  padding: 0 18px 0 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--aether-ink);
  font-weight: 650;
  text-align: left;
  box-shadow: var(--aether-bevel), 0 12px 28px -26px rgba(39, 54, 72, 0.5);
  cursor: pointer;
}

.topic-select-trigger:hover,
.topic-select-trigger[aria-expanded="true"] {
  border-color: rgba(83, 120, 158, 0.46);
  background: rgba(255, 255, 255, 0.96);
}

.topic-select-chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #53789e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.topic-select-trigger[aria-expanded="true"] .topic-select-chevron {
  transform: rotate(180deg);
}

.topic-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--aether-bevel), 0 24px 54px -24px rgba(39, 54, 72, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}

.topic-select-menu[hidden] {
  display: none;
}

.topic-select-option {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 13px;
  background: transparent;
  color: #364150;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.topic-select-option:hover,
.topic-select-option:focus-visible,
.topic-select-option[aria-selected="true"] {
  outline: 0;
  background: var(--aether-blue-soft);
  color: #2f4f70;
}

.topic-select.is-invalid .topic-select-trigger {
  border-color: rgba(157, 62, 76, 0.56);
  box-shadow: 0 0 0 4px rgba(215, 130, 147, 0.12), var(--aether-bevel);
}

.field-error {
  color: var(--aether-red);
  font-size: 0.78rem;
  font-weight: 650;
}

.check-field,
.checkline {
  border-color: rgba(132, 151, 173, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.custom-checkmark {
  border-color: rgba(83, 120, 158, 0.34);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--aether-bevel);
}

.check-field input:checked + .custom-checkmark,
.checkline input:checked + .custom-checkmark {
  background: var(--aether-blue-strong);
}

.demo-credentials {
  color: var(--aether-muted);
}

.live-result,
.bag-status {
  border-radius: var(--aether-radius-small);
}

/* Mother views */
.page-cover {
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.page-cover::after {
  background: linear-gradient(180deg, transparent 54%, rgba(26, 34, 43, 0.2));
}

.bag-toolbar,
.calendar-actions,
.admin-tools,
.manager-toolbar {
  gap: 10px;
}

.calendar-status-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  border: 1px solid rgba(83, 120, 158, 0.2);
  border-radius: 18px;
  padding: 15px 17px;
  background: rgba(219, 231, 244, 0.58);
  color: #35516d;
  box-shadow: var(--aether-bevel);
}

.calendar-status-notice[hidden] {
  display: none;
}

.calendar-status-notice strong,
.calendar-status-notice span {
  display: block;
}

.calendar-status-notice span {
  color: var(--aether-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.calendar-status-notice.is-confirmed {
  border-color: rgba(69, 138, 105, 0.24);
  background: rgba(213, 238, 225, 0.62);
  color: var(--aether-green);
}

.calendar-status-notice.is-exception {
  border-color: rgba(171, 119, 50, 0.24);
  background: rgba(255, 245, 220, 0.7);
  color: #815b29;
}

.bag-status {
  margin: 22px 0;
  padding: 18px 20px;
}

.bag-reminder {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: -6px 0 24px;
  border: 1px solid rgba(163, 108, 42, 0.2);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255, 248, 226, 0.72);
  color: #5f4b2f;
  box-shadow: var(--aether-bevel), 0 16px 34px -30px rgba(90, 66, 35, 0.42);
}

.bag-reminder-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(163, 108, 42, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: var(--aether-amber);
  font-weight: 800;
}

.bag-reminder p {
  margin: 2px 0 0;
  line-height: 1.5;
}

.bag-checklist,
.document-list,
.history-list,
.request-list,
.message-inbox,
.message-thread,
.upcoming-list {
  gap: 16px;
}

.bag-checklist {
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0;
  max-width: 100%;
}

.checklist-section,
.document-group,
.manager-panel {
  border: 0;
  border-radius: 0;
  padding: 24px 0;
  background: transparent;
  box-shadow: none;
}

.checklist-section,
.checklist-items,
.checklist-item,
.checkline,
.checkline > span {
  min-width: 0;
  max-width: 100%;
}

.item-actions {
  min-width: 0;
  max-width: calc(100% - 38px);
}

.checkline {
  grid-template-columns: 26px minmax(0, 1fr) minmax(48px, 62px);
}

.checkline > span,
.checklist-item small,
.item-actions .text-action {
  overflow-wrap: anywhere;
}

.checklist-section h3,
.document-group h3 {
  margin-bottom: 18px;
  color: var(--aether-ink);
  font-size: 1.55rem;
  font-weight: 620;
}

.checklist-section h3 {
  padding-left: 10px;
}

.checklist-items,
.document-links {
  gap: 10px;
}

.checklist-item,
.document-link {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.checklist-item {
  padding: 16px 18px;
  overflow: hidden;
}

.checklist-item:hover,
.document-link:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: var(--aether-bevel), 0 20px 38px -30px rgba(39, 54, 72, 0.56);
}

.checklist-icon {
  width: 100%;
  max-width: 62px;
  height: 62px;
  background: transparent;
}

.timeline article,
.video-grid article {
  border-radius: var(--aether-radius);
}

.date-badge {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: var(--aether-blue-soft);
  color: #38536f;
  box-shadow: var(--aether-bevel);
}

/* Manager */
.admin-summary {
  gap: 12px;
}

.admin-summary article,
.overview-block {
  min-height: 140px;
  border-radius: var(--aether-radius);
  background: rgba(255, 255, 255, 0.72);
}

.summary-number,
.overview-number {
  color: #273647;
  font-weight: 650;
  letter-spacing: 0;
}

.manager-toolbar {
  align-items: center;
}

.request-filters {
  display: inline-flex;
  max-width: 100%;
  padding: 5px;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  overflow-x: auto;
  scrollbar-width: none;
}

.request-filters::-webkit-scrollbar {
  display: none;
}

.request-filters button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--aether-muted);
}

.request-filters button.is-active {
  background: #20242a;
  color: #fff;
  box-shadow: var(--aether-bevel), 0 10px 22px -16px rgba(22, 29, 38, 0.8);
}

.request-card,
.message-card,
.upcoming-edition,
.history-edition,
.meeting-edit-row {
  border-radius: var(--aether-radius);
  background: rgba(255, 255, 255, 0.74);
}

.request-card {
  gap: 20px;
  padding: clamp(18px, 4vw, 26px);
}

.request-card-heading h4,
.message-card h3,
.history-edition h3 {
  color: var(--aether-ink);
  font-weight: 650;
}

.gestation-badge,
.status-pill,
.history-count {
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: var(--aether-bevel);
}

.gestation-badge {
  background: var(--aether-blue-soft);
  color: #3f5b77;
}

.status-pill.ok {
  background: rgba(94, 163, 130, 0.16);
  color: var(--aether-green);
}

.status-pill.wait {
  background: rgba(224, 167, 77, 0.17);
  color: var(--aether-amber);
}

.status-pill.danger {
  background: rgba(183, 76, 96, 0.14);
  color: #963e52;
}

.change-alert {
  border: 1px solid rgba(215, 130, 147, 0.18);
  border-radius: var(--aether-radius-small);
  background: var(--aether-rose-soft);
}

.request-actions,
.message-actions {
  gap: 7px;
}

.request-actions button,
.message-actions button,
.message-actions a {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.78rem;
}

.review-action {
  background: #20242a !important;
  color: #fff !important;
}

.manager-panel {
  padding-top: 10px;
}

.manager-panel-header {
  margin-bottom: 18px;
  padding: 0 4px;
}

.calendar-publish-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.calendar-publish-controls label {
  display: grid;
  gap: 6px;
  min-width: min(260px, 100%);
}

.calendar-publish-controls select {
  min-height: 44px;
  padding: 8px 38px 8px 14px;
}

.calendar-visibility-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.76rem;
}

.calendar-visibility-indicator strong,
.calendar-visibility-indicator span {
  color: inherit;
}

.calendar-visibility-indicator.is-published {
  background: rgba(94, 163, 130, 0.15);
  color: #367961;
}

.calendar-visibility-indicator.is-hidden {
  background: rgba(224, 167, 77, 0.16);
  color: #8a611f;
}

.calendar-hide-action {
  border-color: rgba(183, 76, 96, 0.26) !important;
  color: #963e52 !important;
}

.meeting-edit-row :is(input, select, textarea):disabled,
.upcoming-edition :is(input, select, textarea):disabled {
  opacity: 0.72;
  background: rgba(241, 244, 248, 0.72);
  color: var(--aether-muted);
  cursor: default;
}

.upcoming-visibility-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.upcoming-visibility-controls .calendar-visibility-indicator {
  margin: 0 auto 0 0;
}

.meeting-editor {
  gap: 14px;
}

.meeting-edit-row,
.message-card,
.upcoming-edition,
.history-edition {
  padding: clamp(18px, 4vw, 26px);
}

.message-card.is-unread {
  border-left: 4px solid var(--aether-blue-strong);
}

.message-filters {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
}

.message-inbox .message-card,
.message-thread .message-card {
  padding: 0;
  overflow: hidden;
}

.message-thread-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 0;
  gap: 18px;
  border: 0;
  border-radius: inherit;
  padding: clamp(18px, 4vw, 24px);
  background: transparent;
  color: var(--aether-ink);
  box-shadow: none;
  text-align: left;
}

.message-thread-toggle:hover {
  background: rgba(222, 233, 244, 0.34);
  transform: none;
}

.message-thread-toggle:focus-visible {
  outline: 3px solid rgba(77, 126, 172, 0.28);
  outline-offset: -4px;
}

.message-thread-main,
.message-thread-meta {
  display: grid;
  min-width: 0;
}

.message-thread-main {
  gap: 4px;
}

.message-thread-meta {
  align-content: start;
  justify-items: end;
  gap: 7px;
  min-width: 112px;
}

.message-thread-email,
.message-thread-preview,
.message-thread-meta time,
.message-count {
  color: var(--aether-muted);
  font-size: 0.74rem;
}

.message-thread-title {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 760;
}

.message-thread-preview {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.69rem;
  font-weight: 800;
  white-space: nowrap;
}

.message-status-pill.is-unread {
  background: rgba(208, 226, 244, 0.82);
  color: #355c82;
}

.message-status-pill.is-open {
  background: rgba(224, 167, 77, 0.17);
  color: var(--aether-amber);
}

.message-status-pill.is-resolved {
  background: rgba(94, 163, 130, 0.16);
  color: var(--aether-green);
}

.message-thread-chevron {
  margin: 4px 5px 0 0;
  color: #526d87;
}

.message-thread-panel {
  border-top: 1px solid var(--aether-hairline);
  padding: 0 clamp(18px, 4vw, 26px) clamp(20px, 4vw, 26px);
}

.message-thread-panel[hidden] {
  display: none;
}

.history-list {
  align-items: start;
}

.history-edition {
  align-self: start;
  width: 100%;
}

.message-reply-form,
.team-reply {
  border-top-color: var(--aether-hairline);
}

.conversation-history {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--aether-hairline);
  padding-top: 16px;
}

.conversation-complete {
  margin-top: 0;
  border-top: 0;
  padding-top: 18px;
}

.conversation-complete + .conversation-history {
  margin-top: 10px;
}

.conversation-message {
  width: min(92%, 620px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--aether-bevel);
}

.conversation-message.from-team {
  justify-self: end;
  background: rgba(205, 224, 242, 0.62);
}

.conversation-message.from-mother {
  justify-self: start;
  background: rgba(255, 255, 255, 0.7);
}

.conversation-message header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.conversation-message strong {
  color: var(--aether-ink);
  font-size: 0.82rem;
}

.conversation-message time {
  color: var(--aether-muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.conversation-message p {
  margin: 7px 0 0;
  color: var(--aether-ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.message-reply-form textarea {
  background: rgba(255, 255, 255, 0.76);
}

.upcoming-dates {
  align-items: start;
  gap: 10px;
}

.upcoming-meeting {
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--aether-hairline);
  border-radius: var(--aether-radius-small);
  background: rgba(255, 255, 255, 0.46);
}

.upcoming-meeting h4 {
  color: var(--aether-ink);
  font-size: 0.88rem;
}

.panel-note,
.filter-result {
  color: var(--aether-muted);
}

.empty-state {
  border: 1px dashed rgba(83, 120, 158, 0.28);
  border-radius: var(--aether-radius);
  background: rgba(255, 255, 255, 0.38);
}

.modal-backdrop {
  background: rgba(42, 52, 64, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.example-modal {
  border-radius: var(--aether-radius);
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(32, 36, 42, 0.9);
  box-shadow: 0 22px 48px -26px rgba(22, 29, 38, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

@media (max-width: 719px) {
  .app-header {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 10;
    width: calc(100% - 16px);
    min-height: 66px;
    margin: 8px auto 0;
  }

  .app-main {
    padding-top: 18px;
    padding-right: 12px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
    padding-left: 12px;
  }

  body.has-session .app-main {
    padding-top: 18px;
  }

  .app-nav {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    min-height: 58px;
  }

  .app-nav.has-more-right {
    box-shadow: var(--aether-bevel), 0 28px 64px -28px rgba(39, 54, 72, 0.65), inset -28px 0 24px -22px rgba(63, 88, 114, 0.5);
  }

  .nav-more-hint:not([hidden]) {
    position: fixed;
    right: 10px;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 12px);
    z-index: 47;
    display: grid;
    width: 36px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: #3f5872;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.96) 48%);
    pointer-events: none;
  }

  .nav-more-hint svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: nav-more-nudge 1.4s ease-in-out infinite;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-block h1.brand-title {
    width: clamp(135px, 42vw, 170px);
  }

  .brand-block .eyebrow {
    display: none;
  }

  .home-hero {
    display: grid;
    min-height: 0;
    border-radius: 28px;
  }

  .home-hero::before,
  .home-hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0.96) 58%, rgba(255, 255, 255, 0.99) 100%);
  }

  .home-hero-media {
    position: relative;
    inset: auto;
    height: 310px;
    min-height: 310px;
  }

  .home-hero-media > img {
    object-fit: cover;
    object-position: 64% center;
  }

  .home-hero-quote {
    top: auto;
    right: 16px;
    bottom: 14px;
    left: 16px;
    max-width: none;
    padding: 11px 18px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.9));
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
  }

  .home-hero-copy {
    position: relative;
    inset: auto;
    width: auto;
    padding: 24px 20px 26px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
  }

  .home-hero-copy h2.home-title {
    width: min(100%, 390px);
    margin-bottom: 14px;
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero-copy p:not(.eyebrow) {
    margin-bottom: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .home-access-button {
    width: 100%;
  }

  .role-card {
    min-height: 245px;
  }

  .role-card-copy {
    max-width: none;
  }

  .home-story,
  .team-feature {
    padding: 46px 4px;
  }

  .home-story {
    gap: 12px;
  }

  .home-story > div:first-child .eyebrow {
    margin-bottom: 16px;
  }

  .team-feature {
    padding-right: 22px;
    padding-left: 22px;
  }

  .manager-toolbar {
    align-items: stretch;
  }

  .request-filters {
    width: 100%;
  }

  .request-filters button {
    flex: 1 0 auto;
  }

  .checkline {
    grid-template-columns: 24px minmax(0, 1fr) minmax(44px, 54px);
  }

  .checklist-icon {
    max-width: 54px;
    height: 54px;
  }

  .item-actions {
    margin-left: 34px;
    max-width: calc(100% - 34px);
  }

  .question-form .primary-action,
  .message-actions > *,
  .message-reply-form .primary-action,
  .request-actions button {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .app-header {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 28px);
    margin: 14px auto 0;
  }

  .app-main {
    padding-top: 30px;
    padding-bottom: 70px;
  }

  body.has-session .app-main {
    padding-top: 30px;
  }

  .home-hero-quote {
    width: max-content;
    max-width: calc(100% - clamp(48px, 12vw, 136px));
    padding-right: 64px;
    white-space: nowrap;
    font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  }

  .app-nav {
    position: sticky;
    top: 14px;
    bottom: auto;
    left: auto;
    width: max-content;
    max-width: calc(100% - 24px);
    min-height: 56px;
    margin: 14px auto 0;
    transform: none;
  }

  .nav-item {
    flex-basis: auto;
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
    flex-direction: row;
    gap: 7px;
    font-size: 0.75rem;
  }

  .home-hero {
    min-height: clamp(610px, calc(100svh - 150px), 700px);
  }

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

  .home-story {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  }

  .home-story-copy {
    padding-top: 18px;
  }

  .team-feature {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .field-row,
  .meeting-edit-fields {
    gap: 12px;
  }
}

@media (min-width: 1000px) {
  .admin-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .request-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .request-actions {
    width: 330px;
    justify-content: flex-end;
  }
}

@media (min-width: 820px) {
  .bag-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

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

/* v40: contenuti definitivi, percorso di iscrizione e chat del corso. */

.home-story-copy {
  display: grid;
  gap: 15px;
}

.home-story-copy p,
.team-feature-copy p:not(.eyebrow) {
  margin: 0;
}

.team-feature {
  grid-template-columns: minmax(0, 1fr);
}

.team-feature-copy {
  display: grid;
  gap: 18px;
}

.team-feature img {
  width: min(100%, 470px);
  height: auto;
  aspect-ratio: 1760 / 894;
  object-fit: contain;
  justify-self: end;
}

.enrollment-intro,
.enrollment-steps,
.enrollment-progress,
.enrollment-note,
.course-chat-shell,
.profile-alert,
.payment-qr-panel {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.enrollment-intro {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  color: #4f5c6c;
  font-size: 1rem;
  line-height: 1.78;
}

.view[data-view="signup"] > .registration-intro {
  width: min(900px, 100%);
}

@media (min-width: 720px) {
  .view[data-view="signup"] > .registration-intro {
    grid-column: 1 / -1;
  }
}

.enrollment-intro p {
  margin: 0;
}

.enrollment-steps {
  margin-top: 20px;
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius-small);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  overflow: hidden;
}

.enrollment-steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 22px;
  color: #344b63;
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.enrollment-steps summary::-webkit-details-marker {
  display: none;
}

.enrollment-steps summary svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.enrollment-steps[open] summary svg {
  transform: rotate(180deg);
}

.enrollment-steps ol {
  display: grid;
  gap: 18px;
  margin: 0;
  border-top: 1px solid var(--aether-hairline);
  padding: 24px 28px 28px 50px;
  color: #536071;
  line-height: 1.7;
}

.enrollment-progress {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(158, 185, 212, 0.4);
  border-radius: var(--aether-radius-small);
  background: rgba(235, 243, 250, 0.76);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.enrollment-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #36536f;
}

.enrollment-progress-header span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 750;
}

.enrollment-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.enrollment-step-list span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--aether-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.enrollment-step-list i {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(83, 120, 158, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #fff;
  font-style: normal;
}

.enrollment-step-list .is-done {
  color: #376a5b;
}

.enrollment-step-list .is-done i {
  border-color: #4f8a77;
  background: #4f8a77;
}

.enrollment-note {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(186, 139, 76, 0.28);
  border-radius: var(--aether-radius-small);
  background: rgba(255, 248, 232, 0.82);
  color: #765b38;
  line-height: 1.62;
}

.profile-alert {
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(63, 123, 104, 0.26);
  border-radius: var(--aether-radius-small);
  background: rgba(231, 246, 239, 0.84);
  color: #315e50;
  line-height: 1.55;
}

.payment-qr-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(158, 185, 212, 0.4);
  border-radius: 18px;
  background: rgba(235, 243, 250, 0.76);
  margin-bottom: 18px;
}

.payment-qr-panel > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payment-qr-panel span {
  color: var(--aether-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.document-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-inline-actions button,
.request-file-action {
  min-height: 40px;
  border: 1px solid rgba(132, 151, 173, 0.2);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.86);
  color: #496785;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.request-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.request-file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.request-personal-data {
  color: var(--aether-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.completion-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #376a5b;
  font-weight: 750;
}

.completion-check span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #4f8a77;
  color: #fff;
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.course-chat-shell {
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  overflow: hidden;
}

.course-chat-nickname {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--aether-hairline);
  padding: 16px;
  background: rgba(235, 244, 251, 0.66);
}

.course-chat-nickname[hidden] {
  display: none;
}

.course-chat-nickname > label {
  color: #3f5269;
  font-weight: 800;
}

.course-chat-nickname > div {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.course-chat-nickname input {
  min-width: 0;
  flex: 1;
}

.course-chat-nickname button {
  flex: 0 0 auto;
}

.course-chat-nickname p {
  margin: 0;
  color: var(--aether-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.course-chat-messages {
  display: grid;
  gap: 12px;
  max-height: 480px;
  min-height: 280px;
  padding: clamp(18px, 4vw, 34px);
  overflow-y: auto;
}

.course-chat-message {
  justify-self: start;
  width: min(78%, 560px);
  border: 1px solid rgba(132, 151, 173, 0.16);
  border-radius: 18px 18px 18px 5px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.86);
}

.course-chat-message.is-mine {
  justify-self: end;
  border-radius: 18px 18px 5px 18px;
  background: rgba(218, 233, 246, 0.86);
}

.course-chat-message > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.course-chat-message time {
  color: var(--aether-muted);
  font-size: 0.7rem;
}

.course-chat-message p {
  margin: 0;
  color: #435062;
  line-height: 1.52;
  white-space: pre-wrap;
}

.course-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--aether-hairline);
  padding: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.course-chat-form textarea {
  min-height: 76px;
}

@media (min-width: 720px) {
  .home-hero::before {
    background: linear-gradient(90deg, #fff 0%, #fff 52%, rgba(255, 255, 255, 0.94) 57%, rgba(255, 255, 255, 0.16) 73%);
  }

  .home-hero-media::after {
    background: linear-gradient(90deg, #fff 0%, #fff 50%, rgba(255, 255, 255, 0.9) 57%, rgba(255, 255, 255, 0.02) 75%);
  }

  .home-hero-copy {
    width: min(650px, 49%);
  }

  .home-hero-copy p:not(.eyebrow) {
    max-width: 600px;
  }

  .team-feature {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    padding: 32px 44px;
  }

  .home-story {
    grid-template-columns: minmax(400px, 0.9fr) minmax(0, 1.1fr);
  }

  .team-feature h2 {
    font-size: clamp(2.25rem, 4vw, 3rem);
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .home-hero {
    display: grid;
    min-height: 0;
  }

  .home-hero::before,
  .home-hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.98) 100%);
  }

  .home-hero-media {
    position: relative;
    inset: auto;
    height: 460px;
    min-height: 460px;
  }

  .home-hero-media > img {
    object-fit: cover;
    object-position: 62% center;
  }

  .home-hero-quote {
    top: auto;
    right: 36px;
    bottom: 22px;
    left: 36px;
    width: auto;
    max-width: none;
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
    white-space: normal;
  }

  .home-hero-copy {
    position: relative;
    inset: auto;
    width: auto;
    padding: 34px 44px 42px;
    background: #fff;
  }

  .home-hero-copy h2.home-title {
    width: min(100%, 460px);
  }

  .home-story,
  .team-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-story-copy {
    padding-top: 0;
  }

  .team-feature img {
    width: min(100%, 500px);
    margin: 0 auto;
    justify-self: center;
  }
}

@media (max-width: 719px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }

  .account-access-panel {
    grid-template-columns: 1fr;
  }

  .account-password-form .secondary-action {
    width: 100%;
  }

  .team-feature img {
    width: min(100%, 420px);
    margin: 0 auto;
    justify-self: center;
  }

  .enrollment-step-list {
    grid-template-columns: 1fr;
  }

  .payment-qr-panel,
  .course-chat-form,
  .course-chat-nickname > div {
    grid-template-columns: 1fr;
  }

  .course-chat-nickname > div {
    display: grid;
  }

  .payment-qr-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .document-inline-actions button,
  .course-chat-form .primary-action,
  .course-chat-nickname button {
    flex: 1;
    width: 100%;
  }

  .course-chat-message {
    width: 88%;
  }
}

/* Manager clarity and identity-vault recovery. */
.identity-unlock-note {
  color: var(--aether-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.identity-unlock-error {
  border: 1px solid rgba(157, 62, 76, 0.2);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(157, 62, 76, 0.07);
  line-height: 1.45;
}

.identity-reset-action {
  flex-basis: 100%;
}

.admin-summary article {
  padding: 0;
}

.summary-link {
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 140px;
  border: 0;
  border-radius: inherit;
  padding: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.summary-link:hover {
  background: rgba(255, 255, 255, 0.5);
}

.summary-link:focus-visible {
  outline: 3px solid rgba(83, 120, 158, 0.3);
  outline-offset: -4px;
}

.password-reset-alerts {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.password-reset-alerts[hidden] {
  display: none;
}

.password-reset-alerts button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid rgba(176, 118, 43, 0.24);
  border-radius: 18px;
  padding: 15px 17px;
  background: rgba(255, 245, 220, 0.78);
  color: #5d472c;
  box-shadow: var(--aether-bevel), 0 18px 38px -32px rgba(93, 71, 44, 0.54);
  text-align: left;
  cursor: pointer;
}

.password-reset-alerts button:hover {
  background: rgba(255, 248, 229, 0.96);
}

.password-reset-alert-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #b4772b;
  color: #fff;
  font-weight: 900;
}

.password-reset-alerts strong,
.password-reset-alerts small {
  display: block;
}

.password-reset-alerts small {
  margin-top: 3px;
  color: #79664d;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.password-reset-alert-action {
  color: #76501f;
  font-size: 0.78rem;
  font-weight: 800;
}

.request-card {
  grid-template-columns: minmax(0, 1fr);
}

.request-card-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.request-card-heading {
  margin: 0;
}

.request-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.request-info-grid > div {
  min-width: 0;
  border: 1px solid rgba(132, 151, 173, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
}

.request-info-grid dt,
.request-meta-label,
.request-actions-title {
  color: var(--aether-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.request-info-grid dd {
  margin: 4px 0 0;
  color: var(--aether-ink);
  font-size: 0.84rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.request-meta-item {
  display: grid;
  align-content: start;
  justify-items: start;
  min-width: 0;
  gap: 7px;
  border: 1px solid rgba(132, 151, 173, 0.14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(244, 247, 250, 0.62);
}

.request-meta-item .status-pill {
  max-width: 100%;
  white-space: normal;
}

.request-status-detail {
  border-left: 3px solid var(--aether-blue);
  padding-left: 12px;
  font-size: 0.84rem;
}

.request-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 8px;
  border-top: 1px solid var(--aether-hairline);
  padding-top: 16px;
}

.request-actions-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.request-actions button,
.request-actions .request-file-action {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
}

.request-actions .danger-action,
.identity-unlock-actions .danger-action {
  border-color: rgba(157, 62, 76, 0.35);
  background: rgba(157, 62, 76, 0.06);
  color: var(--aether-red);
}

.request-actions .danger-action {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.request-actions .danger-action:hover,
.identity-unlock-actions .danger-action:hover {
  border-color: rgba(157, 62, 76, 0.55);
  background: rgba(157, 62, 76, 0.11);
}

@media (min-width: 600px) {
  .request-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1000px) {
  .request-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .request-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .request-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
  }
}

/* v55: sessione in Home e calendario gestore unificato. */
.home-session-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 520px);
  margin-top: 16px;
  border: 1px solid rgba(83, 120, 158, 0.18);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--aether-bevel), 0 18px 38px -30px rgba(39, 54, 72, 0.58);
  text-align: left;
}

.home-session-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--aether-blue-soft);
  color: var(--aether-blue-strong);
}

.home-session-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-session-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.home-session-copy > span {
  color: var(--aether-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.home-session-copy strong {
  color: var(--aether-ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.home-session-card .secondary-action {
  min-height: 40px;
  padding: 8px 14px;
}

.calendar-section-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(720px, 100%);
  margin: 0 auto 24px;
  border: 1px solid rgba(132, 151, 173, 0.2);
  border-radius: 18px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.calendar-section-switcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  padding: 9px 12px;
  background: transparent;
  color: var(--aether-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.calendar-section-switcher button:hover {
  background: rgba(255, 255, 255, 0.62);
  color: var(--aether-ink);
}

.calendar-section-switcher button.is-active {
  background: #20242a;
  color: #fff;
  box-shadow: var(--aether-bevel), 0 12px 25px -18px rgba(22, 29, 38, 0.84);
}

.calendar-section-switcher button:focus-visible {
  outline: 3px solid rgba(83, 120, 158, 0.3);
  outline-offset: 2px;
}

.calendar-section-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
}

.calendar-section-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-section-panel {
  min-width: 0;
  animation: aether-view-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.calendar-section-panel > .manager-panel {
  margin-top: 0;
}

.calendar-panel-heading {
  margin: 30px 0 18px;
  text-align: left;
}

.calendar-panel-heading h3 {
  margin: 5px 0 0;
  color: var(--aether-ink);
  font-size: clamp(1.4rem, 4vw, 2rem);
}

@media (max-width: 519px) {
  .home-session-card {
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
  }

  .home-session-card .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .calendar-section-switcher {
    border-radius: 16px;
  }

  .calendar-section-switcher button {
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    padding: 7px 4px;
    font-size: 0.69rem;
  }

  .calendar-section-icon {
    width: 20px;
    height: 20px;
  }

  .calendar-panel-heading {
    margin-top: 24px;
  }
}

.privacy-confirmation {
  display: grid;
  gap: 8px;
}

.legal-inline-link,
.legal-footer button {
  width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #315f88;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-inline-link {
  margin-left: 36px;
  font-size: 0.84rem;
}

.legal-view {
  width: min(920px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.legal-heading {
  text-align: left;
}

.legal-document {
  display: grid;
  gap: 10px;
  border: 1px solid var(--aether-hairline);
  border-radius: var(--aether-radius);
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.legal-document h3 {
  margin: 22px 0 0;
  color: var(--aether-ink);
  font-size: 1.04rem;
}

.legal-document h3:first-child {
  margin-top: 0;
}

.legal-document p {
  margin: 0;
  color: #455466;
  line-height: 1.72;
}

.legal-document a {
  color: #315f88;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 96px;
  border-top: 1px solid var(--aether-hairline);
  padding: 22px 4px;
  color: var(--aether-muted);
  font-size: 0.8rem;
}

.legal-footer nav {
  display: flex;
  gap: 18px;
}

.archive-manager {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(95, 126, 158, 0.2);
  border-radius: var(--aether-radius);
  padding: clamp(20px, 4vw, 30px);
  background: rgba(240, 246, 252, 0.72);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.archive-manager[hidden] {
  display: none;
}

.archive-manager-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.archive-manager-heading h3,
.archive-manager-heading p {
  margin: 5px 0 0;
}

.archive-reminder {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff0c8;
  color: #62490b;
  font-size: 0.76rem;
  font-weight: 800;
}

.archive-edition-list {
  display: grid;
  gap: 10px;
}

.archive-edition-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--aether-hairline);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.archive-edition-option input {
  width: 20px;
  height: 20px;
}

.archive-edition-option strong,
.archive-edition-option small {
  display: block;
}

.archive-edition-option small,
.archive-edition-meta {
  color: var(--aether-muted);
  font-size: 0.76rem;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-actions .danger-action {
  min-height: 44px;
  border: 1px solid rgba(157, 62, 76, 0.25);
  border-radius: 999px;
  padding: 10px 20px;
  background: rgba(157, 62, 76, 0.08);
  color: #8b3140;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 719px) {
  .legal-footer,
  .archive-manager-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-edition-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .archive-edition-meta {
    grid-column: 2;
  }

  .archive-actions > * {
    width: 100%;
  }
}

/* Long-form copy */
.home-hero-copy > p:not(.eyebrow),
.home-story-copy > p,
.team-feature-copy > p:not(.eyebrow),
.enrollment-intro > p,
.enrollment-steps li,
.enrollment-note,
.registration-password-fields p:not(.eyebrow),
.account-access-copy p:not(.eyebrow),
.legal-heading > p:not(.eyebrow),
.legal-document p,
.bag-reminder p,
.account-manager-heading p:not(.eyebrow) {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.home-access-heading h2,
.home-story h2,
.team-feature h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Account management */
.account-manager {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  padding: clamp(22px, 4vw, 34px);
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.account-manager-heading,
.account-card-title,
.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-manager-heading h3,
.account-card h4 {
  margin: 0;
  color: var(--aether-ink);
}

.account-manager-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--aether-muted);
  line-height: 1.6;
}

.account-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--aether-blue-soft);
  color: #315f88;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-card {
  align-items: flex-end;
  border: 1px solid var(--aether-hairline);
  border-radius: 18px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.72);
  scroll-margin-block: 120px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.account-card.is-password-reset-target {
  border-color: rgba(180, 119, 42, 0.58);
  background: rgba(255, 248, 228, 0.88);
  box-shadow: 0 0 0 4px rgba(180, 119, 42, 0.12), var(--aether-bevel), var(--aether-shadow);
}

.account-card.is-duplicate {
  border-color: rgba(183, 76, 96, 0.28);
  background: rgba(255, 246, 248, 0.82);
}

.account-duplicate-notice {
  margin: 0 0 13px;
  border-left: 3px solid rgba(183, 76, 96, 0.54);
  padding: 8px 11px;
  color: #784453;
  font-size: 0.8rem;
  line-height: 1.5;
}

.account-card-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.account-card-title {
  justify-content: flex-start;
  margin-bottom: 13px;
}

.account-card h4 {
  overflow-wrap: anywhere;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.account-info-grid div {
  min-width: 0;
}

.account-info-grid dt {
  color: var(--aether-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-info-grid dd {
  margin: 4px 0 0;
  color: var(--aether-ink);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.account-card > .danger-action {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(157, 62, 76, 0.25);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(157, 62, 76, 0.08);
  color: #8b3140;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.forgot-password-link,
.password-recovery-request > .legal-inline-link {
  justify-self: center;
  margin-top: -3px;
}

.password-recovery-copy {
  display: grid;
  gap: 7px;
}

.password-recovery-copy h3,
.password-recovery-copy p,
.password-reset-account {
  margin: 0;
}

.password-recovery-copy p,
.password-reset-shell .section-heading > p:not(.eyebrow) {
  color: var(--aether-muted);
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.password-reset-account {
  border: 1px solid var(--aether-hairline);
  border-radius: 14px;
  padding: 12px 15px;
  background: rgba(230, 240, 250, 0.62);
  color: var(--aether-muted);
  overflow-wrap: anywhere;
}

.password-reset-account strong {
  color: var(--aether-ink);
}

/* v65: password leggibile su richiesta, senza alterare il valore del campo. */
.password-control {
  position: relative;
  display: block;
  min-width: 0;
}

.password-control > input {
  width: 100%;
  padding-right: 3.35rem !important;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 0.62rem;
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  min-height: 0;
  translate: 0 -50%;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(232, 240, 248, 0.9);
  color: #49657f;
  box-shadow: none;
  cursor: pointer;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: rgba(214, 229, 243, 0.96);
  color: #263f58;
}

.password-visibility-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* Le azioni quotidiane vivono direttamente negli stati della richiesta. */
.request-meta-item .status-action,
.request-meta-item .status-file-action {
  width: auto;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  padding: 5px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.request-meta-item .status-action:hover,
.request-meta-item .status-file-action:hover,
.request-meta-item .status-action:focus-visible,
.request-meta-item .status-file-action:focus-within {
  filter: brightness(0.96);
  box-shadow: var(--aether-bevel), 0 10px 22px -17px rgba(38, 60, 82, 0.72);
}

.status-file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.course-pdf-section {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.course-pdf-section h3 {
  margin: 4px 0 0;
  color: var(--aether-ink);
  font-size: 1.55rem;
}

.course-pdf-grid {
  display: grid;
  gap: 10px;
}

.course-pdf-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid var(--aether-hairline);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--aether-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.course-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--aether-hairline);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--aether-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.course-video-card > span:first-child {
  display: grid;
  gap: 5px;
}

.course-video-card small {
  color: var(--aether-muted);
}

.course-video-card:hover,
.course-video-card:focus-visible,
.course-pdf-card:hover,
.course-pdf-card:focus-visible {
  border-color: rgba(74, 108, 143, 0.45);
  background: #fff;
}

.course-pdf-card > span:last-child {
  display: grid;
  gap: 3px;
}

.course-pdf-card small {
  color: var(--aether-muted);
}

.course-pdf-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--aether-blue-soft);
  color: #3f5b77;
  font-size: 0.72rem;
  font-weight: 900;
}

.document-preview-content.is-read-only {
  -webkit-user-select: none;
  user-select: none;
}

.document-preview-content.allows-live-text,
.document-preview-content.allows-live-text img {
  -webkit-user-select: auto;
  user-select: auto;
  -webkit-touch-callout: default;
}

.document-preview-content .live-text-document {
  touch-action: pan-x pan-y;
}

body.document-preview-open {
  position: fixed;
  top: var(--document-preview-scroll-offset, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.document-preview-backdrop {
  overscroll-behavior: none;
}

.document-preview-modal,
.document-preview-content {
  overscroll-behavior: contain;
}

.document-preview-content {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.course-video-card.has-preview,
.course-pdf-card.has-preview {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.course-video-card.has-preview {
  grid-template-columns: minmax(0, 59%) minmax(0, 41%);
  grid-template-rows: minmax(0, 1fr);
  aspect-ratio: 16 / 9;
  border-color: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--aether-bevel), 0 20px 44px -30px rgba(38, 58, 82, 0.72);
}

.material-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eef5, #f8fafc);
  pointer-events: none;
}

.material-card-preview video,
.material-card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #17202a;
}

.course-video-card.has-preview .material-card-preview {
  height: 100%;
  min-height: 0;
}

.material-video-preview img {
  object-position: center 43%;
}

.material-video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 38, 0.04), rgba(18, 28, 38, 0.26));
}

.material-card-preview .play-icon {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  box-shadow: 0 14px 34px -14px rgba(14, 24, 36, 0.82);
}

.material-pdf-preview canvas {
  display: block;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 18px);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 13px 28px -18px rgba(35, 47, 62, 0.72);
}

.material-pdf-preview img {
  width: calc(100% - 20px);
  height: calc(100% - 18px);
  border-radius: 5px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 13px 28px -18px rgba(35, 47, 62, 0.72);
}

.material-pdf-preview canvas[data-preview-state="loading"] {
  min-width: 64%;
  min-height: 70%;
  opacity: 0.48;
}

.material-pdf-preview .course-pdf-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 22px -15px rgba(27, 43, 61, 0.8);
}

.material-card-copy {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.material-card-copy strong {
  overflow-wrap: anywhere;
}

.material-card-copy small {
  color: var(--aether-muted);
}

.timeline .calendar-meeting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.calendar-meeting-heading {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.calendar-meeting-heading h3,
.calendar-meeting-heading p {
  margin-top: 0;
}

.calendar-meeting-heading .eyebrow {
  margin-bottom: 4px;
}

.calendar-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.calendar-material-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--aether-hairline);
  border-radius: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--aether-ink);
  font: inherit;
  text-align: left;
  align-self: start;
}

.calendar-material-tile:not(:disabled) {
  cursor: pointer;
}

.calendar-material-tile:not(:disabled):hover,
.calendar-material-tile:not(:disabled):focus-visible {
  border-color: rgba(74, 108, 143, 0.5);
  background: #fff;
}

.calendar-material-tile.is-locked {
  opacity: 0.72;
}

.calendar-material-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 168px;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #e8eef5, #f8fafc);
}

.calendar-material-preview img {
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 18px);
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 13px 28px -18px rgba(35, 47, 62, 0.72);
}

.calendar-material-preview canvas {
  display: block;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 18px);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 13px 28px -18px rgba(35, 47, 62, 0.72);
}

.calendar-material-preview .course-pdf-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
}

.calendar-material-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(240, 244, 248, 0.58);
  font-size: 1.5rem;
}

.calendar-material-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px 16px;
}

.calendar-material-copy strong {
  overflow-wrap: anywhere;
}

.calendar-material-copy small,
.calendar-material-empty {
  color: var(--aether-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.calendar-material-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.meeting-material-editor {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--aether-hairline);
  padding-top: 12px;
}

.meeting-material-editor-heading {
  display: grid;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.meeting-material-editor-heading > div:first-child {
  display: grid;
  gap: 3px;
}

.meeting-material-editor-heading small {
  color: var(--aether-muted);
}

.meeting-material-picker {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.meeting-material-picker select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.meeting-material-assignments {
  display: grid;
  gap: 8px;
}

.meeting-material-assignment {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--aether-hairline);
  border-radius: 14px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.meeting-material-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--aether-blue-soft);
}

.meeting-material-thumb img,
.meeting-material-thumb canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.meeting-material-assignment strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.meeting-material-remove {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--aether-hairline);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: #963e52;
  font: inherit;
  font-weight: 900;
}

.meeting-material-remove:hover,
.meeting-material-remove:focus-visible {
  border-color: rgba(183, 76, 96, 0.38);
  background: rgba(252, 238, 242, 0.9);
}

.material-video-copy {
  position: relative;
  align-content: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  padding: clamp(14px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 112% -8%, rgba(165, 192, 218, 0.7) 0 27%, transparent 27.5%),
    radial-gradient(ellipse at 50% 116%, rgba(205, 220, 235, 0.78) 0 34%, transparent 34.5%),
    linear-gradient(145deg, #ffffff 10%, #f5f8fb 62%, #e8eff6 100%);
}

.material-video-copy::after {
  content: "";
  position: absolute;
  right: -34%;
  bottom: -43%;
  width: 150%;
  height: 66%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  pointer-events: none;
}

.material-video-copy strong,
.material-video-copy small {
  position: relative;
  z-index: 1;
}

.material-video-copy strong {
  color: #173652;
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1.12;
}

.material-video-copy small {
  font-size: clamp(0.64rem, 1vw, 0.78rem);
  line-height: 1.3;
}

.material-upload-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
  border: 1px solid var(--aether-edge);
  border-radius: var(--aether-radius);
  padding: 22px;
  background: var(--aether-glass);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.material-upload-heading,
.material-upload-progress > div,
.catalog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.material-upload-heading h3,
.catalog-section-heading h3 {
  margin: 4px 0 0;
  color: var(--aether-ink);
  font-size: 1.35rem;
}

.material-upload-lock {
  border: 1px solid rgba(75, 124, 107, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(225, 241, 234, 0.82);
  color: #3f7462;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.material-upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.material-upload-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--aether-ink-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.material-upload-form input,
.material-upload-form select {
  width: 100%;
  min-width: 0;
}

.material-file-field {
  grid-column: 1 / -1;
}

.material-upload-form .primary-action {
  grid-column: 1 / -1;
  justify-self: start;
}

.material-upload-progress {
  display: grid;
  gap: 9px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(232, 240, 248, 0.72);
}

.material-upload-progress progress {
  width: 100%;
  height: 12px;
  accent-color: #5c7f9f;
}

.material-upload-progress p {
  margin: 0;
  color: var(--aether-muted);
  font-size: 0.8rem;
}

.admin-material-catalog {
  display: grid;
  gap: 30px;
}

@media (min-width: 720px) {
  .course-pdf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.document-preview-modal {
  width: min(1180px, 100%);
  height: min(90dvh, 980px);
}

.document-preview-content.pdf-pages-viewer {
  display: block;
  overflow: auto;
  padding: 12px;
  background: #dce3ea;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pdf-viewer-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: min(100%, 310px);
  margin: 0 auto 10px;
  border-radius: 999px;
  padding: 6px;
  background: rgba(35, 47, 61, 0.92);
  box-shadow: 0 10px 24px -16px rgba(21, 31, 43, 0.85);
}

.pdf-viewer-status {
  position: static;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(35, 47, 61, 0.88);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: none;
}

.pdf-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pdf-zoom-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.94);
  color: #263c52;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.pdf-zoom-controls button:disabled {
  opacity: 0.4;
}

.pdf-zoom-controls output {
  min-width: 42px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.pdf-viewer-status.is-error {
  position: static;
  width: min(520px, 100%);
  border-radius: 16px;
  padding: 16px;
  background: #fff3f2;
  color: #8b3140;
  text-align: center;
}

.pdf-native-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  min-height: 48px;
  margin: 12px auto;
  border: 1px solid rgba(58, 88, 118, 0.22);
  border-radius: 999px;
  padding: 11px 18px;
  background: #fff;
  color: #315b80;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 30px -24px rgba(35, 53, 74, 0.7);
}

.pdf-native-fallback:hover,
.pdf-native-fallback:focus-visible {
  border-color: rgba(58, 88, 118, 0.48);
  background: #f7fbff;
}

.pdf-page {
  width: fit-content;
  max-width: none;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px -24px rgba(26, 38, 52, 0.72);
}

.pdf-page canvas,
.pdf-page .pdf-live-text-page {
  display: block;
  max-width: none;
  height: auto !important;
  background: #fff;
}

.pdf-page .pdf-live-text-page {
  object-fit: fill;
  -webkit-touch-callout: default;
}

.pdf-page figcaption {
  border-top: 1px solid rgba(57, 76, 96, 0.12);
  padding: 7px 10px;
  color: #66788a;
  font-size: 0.72rem;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 719px) {
  .pdf-viewer-toolbar {
    justify-content: space-between;
    width: min(100%, 330px);
  }
  .material-card-preview {
    height: 154px;
  }

  .calendar-material-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-material-tile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .calendar-material-preview {
    height: 154px;
    min-height: 0;
  }

  .meeting-material-assignment {
    grid-template-columns: 48px minmax(0, 1fr) 34px;
  }

  .meeting-material-thumb {
    width: 48px;
    height: 44px;
  }

  .course-video-card.has-preview {
    min-height: 176px;
  }

  .course-video-card.has-preview .material-card-preview {
    height: 100%;
  }

  .material-video-copy {
    padding: 13px;
  }

  .material-upload-panel {
    padding: 17px;
  }

  .material-upload-heading,
  .catalog-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .material-upload-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-upload-form label,
  .material-file-field,
  .material-upload-form .primary-action {
    grid-column: 1;
  }

  .material-upload-form .primary-action {
    width: 100%;
  }

  .document-preview-content.pdf-pages-viewer {
    padding: 8px;
  }

  .pdf-page {
    margin-bottom: 9px;
    border-radius: 5px;
  }
}

.account-card-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 180px;
}

.account-card-actions > button {
  width: 100%;
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.78rem;
}

.account-card-actions > .danger-action {
  border: 1px solid rgba(157, 62, 76, 0.25);
  border-radius: 999px;
  background: rgba(157, 62, 76, 0.08);
  color: #8b3140;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-info-grid .account-reset-info {
  grid-column: 1 / -1;
}

@media (max-width: 719px) {
  .account-manager-heading,
  .account-card {
    align-items: stretch;
    flex-direction: column;
  }

  .account-count {
    align-self: flex-start;
  }

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

  .account-card > .danger-action,
  .account-card-actions {
    width: 100%;
  }

  .password-reset-alerts button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .password-reset-alert-action {
    grid-column: 2;
  }
}

/* Assignment transparency, reviews and social links */
.request-sort-controls,
.request-sort-controls label,
.request-assignment-controls,
.footer-links,
.social-links {
  display: flex;
  align-items: center;
}

.request-sort-controls {
  gap: 10px;
}

.manager-toolbar {
  flex-wrap: wrap;
}

.patient-directory-controls {
  display: grid;
  flex: 1 1 100%;
  grid-template-columns: minmax(240px, 1.7fr) minmax(220px, 1fr);
  gap: 10px;
}

.patient-search-field,
.patient-edition-field {
  display: grid;
  gap: 7px;
  color: var(--aether-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.patient-search-field input,
.patient-edition-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(91, 119, 148, 0.2);
  border-radius: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--aether-ink);
  font: inherit;
  font-size: 0.9rem;
  box-shadow: var(--aether-bevel);
}

.patient-search-field input {
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556f88' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 19px;
}

.patient-search-field input:focus,
.patient-edition-field select:focus {
  border-color: rgba(57, 103, 148, 0.55);
  outline: 3px solid rgba(100, 151, 199, 0.18);
}

.request-sort-controls label {
  gap: 8px;
  color: var(--aether-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.request-sort-controls select,
.request-assignment select {
  min-height: 42px;
  border: 1px solid rgba(91, 119, 148, 0.2);
  border-radius: 999px;
  padding: 8px 34px 8px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--aether-ink-soft);
  font: inherit;
  font-weight: 750;
}

.request-edition-group {
  display: grid;
  gap: 14px;
}

.request-edition-group + .request-edition-group {
  margin-top: 30px;
}

.request-edition-group > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--aether-hairline);
  padding: 0 4px 12px;
}

.request-edition-group > header span,
.request-assignment > div:first-child span,
.request-date {
  display: block;
  color: var(--aether-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.request-edition-group > header h3 {
  margin: 3px 0 0;
  color: var(--aether-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.request-edition-group > header > strong {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--aether-blue-soft);
  color: #3f5b77;
  font-size: 0.76rem;
}

.request-edition-list {
  display: grid;
  gap: 16px;
  padding-top: 14px;
}

.request-edition-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--aether-hairline);
  padding: 4px 4px 12px;
  cursor: pointer;
  list-style: none;
}

.request-edition-group > summary::-webkit-details-marker {
  display: none;
}

.request-edition-group > summary span:first-child {
  display: block;
  color: var(--aether-muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.request-edition-group > summary h3 {
  margin: 3px 0 0;
  color: var(--aether-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.request-edition-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.request-edition-summary-meta > strong {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--aether-blue-soft);
  color: #3f5b77;
  font-size: 0.76rem;
  white-space: nowrap;
}

.request-edition-chevron,
.message-thread-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.request-edition-group[open] .request-edition-chevron,
.message-card.is-expanded .message-thread-chevron {
  transform: rotate(225deg);
}

.request-card-heading > div:first-child {
  min-width: 0;
}

.request-date {
  margin-top: 4px;
}

.request-assignment {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  border: 1px solid rgba(75, 111, 148, 0.2);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(225, 238, 249, 0.82), rgba(255, 255, 255, 0.8));
}

.request-assignment > div:first-child strong {
  display: block;
  margin-top: 3px;
  color: #29445e;
}

.request-assignment-controls {
  align-items: stretch;
  gap: 8px;
}

.request-assignment-controls select {
  flex: 1 1 auto;
  min-width: 0;
}

.request-assignment-controls button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 16px;
}

.request-assignment small {
  color: var(--aether-muted);
  line-height: 1.45;
}

.edition-participants {
  margin-top: 18px;
  border: 1px solid rgba(91, 119, 148, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.edition-participants summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  color: #36536d;
  font-weight: 850;
  cursor: pointer;
}

.edition-participants summary strong {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--aether-blue-soft);
}

.edition-participants ul {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--aether-hairline);
  padding: 0;
  list-style: none;
}

.edition-participants li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 17px;
}

.edition-participants li + li {
  border-top: 1px solid var(--aether-hairline);
}

.edition-participants li strong {
  color: var(--aether-muted);
  font-size: 0.78rem;
}

.edition-participants > p {
  margin: 0;
  border-top: 1px solid var(--aether-hairline);
  padding: 14px 17px;
  color: var(--aether-muted);
}

.mothers-section-panel[hidden],
.patient-search-panel[hidden],
.request-filter-menu[hidden] {
  display: none;
}

.edition-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.edition-directory-heading h3 {
  margin: 4px 0 5px;
  color: var(--aether-ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.edition-directory-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--aether-muted);
}

.edition-directory {
  display: grid;
  gap: 18px;
}

.edition-roster-card {
  border: 1px solid rgba(91, 119, 148, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
  overflow: hidden;
}

.edition-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.edition-roster-header span {
  color: var(--aether-blue-deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-roster-header h3,
.edition-roster-header p {
  margin: 4px 0 0;
}

.edition-roster-header h3 {
  color: var(--aether-ink);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.edition-roster-header p {
  color: var(--aether-muted);
  font-size: 0.84rem;
}

.edition-export-action {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
}

.edition-roster-list {
  border-top: 1px solid var(--aether-hairline);
}

.edition-roster-list > summary,
.edition-roster-person > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.edition-roster-list > summary::-webkit-details-marker,
.edition-roster-person > summary::-webkit-details-marker {
  display: none;
}

.edition-roster-list > summary {
  padding: 14px 20px;
  color: #36536d;
  font-weight: 850;
}

.edition-roster-list > summary strong {
  min-width: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--aether-blue-soft);
  text-align: center;
}

.edition-roster-people {
  border-top: 1px solid var(--aether-hairline);
}

.edition-roster-person + .edition-roster-person {
  border-top: 1px solid var(--aether-hairline);
}

.edition-roster-person > summary {
  padding: 15px 20px;
}

.edition-roster-person > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.edition-roster-person > summary strong {
  color: var(--aether-ink);
}

.edition-roster-person > summary small {
  color: var(--aether-muted);
  font-size: 0.76rem;
}

.edition-person-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border-top: 1px solid var(--aether-hairline);
  padding: 16px 20px 10px;
  background: rgba(232, 240, 248, 0.38);
}

.edition-person-details div {
  min-width: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.edition-person-details dt {
  color: var(--aether-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edition-person-details dd {
  margin: 4px 0 0;
  color: var(--aether-ink);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.compact-action {
  min-height: 38px;
  margin: 0 20px 16px;
  padding: 8px 13px;
}

.edition-roster-empty {
  margin: 0;
  border-top: 1px solid var(--aether-hairline);
  padding: 16px 20px;
  color: var(--aether-muted);
}

.request-command-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.request-command {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid rgba(91, 119, 148, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #36536d;
  font: inherit;
  font-weight: 850;
  box-shadow: var(--aether-bevel);
}

.request-command svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.request-filter-badge {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--aether-blue-soft);
  font-size: 0.7rem;
}

.patient-search-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 4px;
  border: 1px solid rgba(57, 103, 148, 0.45);
  border-radius: 16px;
  padding: 3px;
  background: #fff;
  box-shadow: 0 12px 30px -22px rgba(22, 36, 50, 0.7);
}

.patient-search-panel label,
.patient-search-panel input {
  width: 100%;
  min-width: 0;
}

.patient-search-panel input {
  min-height: 40px;
  border: 0;
  padding: 6px 10px 6px 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556f88' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 12px center / 18px;
  color: var(--aether-ink);
  font: inherit;
}

.patient-search-panel input:focus {
  outline: 0;
}

.patient-search-panel button {
  border: 0;
  border-radius: 12px;
  background: var(--aether-blue-soft);
  color: #36536d;
  font-size: 1.5rem;
}

.request-filter-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin: -2px 0 14px;
  border: 1px solid rgba(91, 119, 148, 0.18);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.request-filter-menu label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--aether-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.request-filter-menu select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(91, 119, 148, 0.2);
  border-radius: 13px;
  padding: 8px 30px 8px 11px;
  background: #fff;
  color: var(--aether-ink);
  font: inherit;
  font-size: 0.82rem;
}

.request-filter-menu .secondary-action {
  align-self: end;
  min-height: 42px;
}

.request-filter-reset {
  grid-column: 1 / -1;
  justify-self: end;
}

.upcoming-meeting-fields textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
}

.upcoming-meeting > *,
.upcoming-meeting-fields,
.upcoming-meeting-fields label,
.upcoming-meeting-fields :is(input, select, textarea),
.meeting-material-editor {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.upcoming-list .upcoming-edition {
  padding: 0;
  overflow: hidden;
}

.upcoming-edition-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 4vw, 24px);
  cursor: pointer;
  list-style: none;
}

.upcoming-edition-summary::-webkit-details-marker {
  display: none;
}

.upcoming-edition-summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.upcoming-edition-summary strong {
  color: var(--aether-ink);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.upcoming-edition-summary small {
  color: var(--aether-muted);
  font-size: 0.76rem;
}

.upcoming-edition-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.upcoming-edition-summary .status-pill {
  margin: 0;
}

.upcoming-edition[open] .upcoming-edition-summary {
  border-bottom: 1px solid var(--aether-hairline);
}

.upcoming-edition[open] .upcoming-edition-summary .request-edition-chevron {
  transform: rotate(225deg);
}

.upcoming-edition-body {
  padding: clamp(18px, 4vw, 26px);
}

@media (min-width: 720px) {
  .upcoming-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-reviews {
  display: grid;
  gap: 24px;
  padding: 68px clamp(4px, 4vw, 44px);
}

.home-reviews-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.home-reviews-heading h2 {
  margin: 4px 0 0;
  color: var(--aether-ink);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 620;
  line-height: 1.03;
}

.home-reviews-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--aether-muted);
  line-height: 1.6;
}

.home-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-review-card,
.review-form-shell {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--aether-radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--aether-bevel), var(--aether-shadow);
}

.home-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: clamp(18px, 3vw, 24px);
  overflow: hidden;
}

.review-quote {
  position: absolute;
  top: -18px;
  right: 18px;
  color: rgba(109, 142, 174, 0.14);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
}

.home-review-card > p {
  position: relative;
  flex: 1;
  margin: 0;
  color: var(--aether-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
  white-space: pre-line;
}

.home-review-card footer {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  border-top: 1px solid var(--aether-hairline);
  padding-top: 12px;
}

.home-review-card footer span,
.home-review-card footer small {
  color: var(--aether-muted);
  font-size: 0.78rem;
}

.review-form-shell {
  padding: clamp(20px, 4vw, 32px);
}

.review-form-shell[hidden] {
  display: none;
}

.review-form-shell form {
  display: grid;
  gap: 16px;
}

.review-form-shell h3,
.review-form-shell p {
  margin: 0;
}

.review-form-shell label,
.review-form-shell fieldset {
  color: var(--aether-ink-soft);
  font-weight: 750;
}

.review-form-shell textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid rgba(91, 119, 148, 0.22);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--aether-ink);
  font: inherit;
  resize: vertical;
}

.review-form-shell fieldset {
  display: flex;
  gap: 18px;
  margin: 0;
  border: 0;
  padding: 0;
}

.review-form-shell fieldset label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.review-identity-options input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  flex: 0 0 20px;
  inline-size: 20px;
  block-size: 20px;
  min-inline-size: 20px;
  min-block-size: 20px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
  accent-color: #267fbe;
}

.review-identity-options label span {
  line-height: 1.3;
}

.footer-links {
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}

.social-links {
  gap: 9px;
}

.social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(91, 119, 148, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: #345a7c;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.admin-security-center {
  display: grid;
  gap: 22px;
  margin: 22px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(83, 115, 146, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(57, 79, 103, 0.1);
}

.admin-security-heading,
.admin-security-actions,
.admin-recovery-code-forms form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-security-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.admin-security-actions button {
  flex: 1 1 240px;
}

.admin-security-heading h3,
.admin-security-heading p {
  margin: 0;
}

.admin-security-heading > div {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.admin-security-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-security-item {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(83, 115, 146, 0.16);
  border-radius: 18px;
  background: rgba(241, 246, 252, 0.78);
}

.admin-security-item strong,
.admin-security-item span {
  overflow-wrap: anywhere;
}

.admin-security-item small.is-verified {
  color: #27755d;
  font-weight: 800;
}

.admin-security-item small.is-pending {
  color: #9b6426;
  font-weight: 800;
}

.admin-recovery-code-forms {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(83, 115, 146, 0.16);
}

.admin-recovery-code-forms form {
  align-items: end;
}

.admin-recovery-code-forms label {
  display: grid;
  flex: 1;
  gap: 8px;
}

.admin-recovery-code-forms input {
  letter-spacing: 0.24em;
  text-align: center;
}

.admin-account-recovery {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(83, 115, 146, 0.16);
}

.admin-account-recovery[hidden] {
  display: none;
}

@media (max-width: 719px) {
  .upcoming-edition-summary {
    align-items: flex-start;
  }

  .upcoming-edition-summary-meta {
    align-items: flex-end;
    flex-direction: column;
  }

  .edition-roster-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .edition-export-action {
    width: 100%;
  }

  .edition-person-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .edition-roster-person > summary {
    align-items: flex-start;
  }

  .request-filter-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-filter-menu .secondary-action,
  .request-filter-reset {
    width: 100%;
  }

  .request-filter-reset {
    grid-column: auto;
    justify-self: stretch;
  }

  .patient-directory-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-sort-controls,
  .request-assignment-controls,
  .home-reviews-heading,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .request-sort-controls,
  .request-sort-controls label,
  .request-sort-controls select,
  .request-sort-controls button,
  .request-assignment-controls button {
    width: 100%;
  }

  .request-edition-group > header {
    align-items: flex-start;
  }

  .request-edition-group > summary {
    align-items: flex-start;
  }

  .request-edition-summary-meta {
    align-items: flex-end;
    flex-direction: column;
  }

  .message-filters {
    width: 100%;
  }

  .message-thread-toggle {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .message-thread-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .message-thread-chevron {
    margin: 0 4px 4px auto;
  }

  .edition-participants li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .home-reviews {
    padding: 42px 0;
  }

  .home-review-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-form-shell fieldset {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .calendar-publish-controls,
  .calendar-publish-controls label,
  .calendar-publish-controls select,
  .calendar-publish-controls button {
    width: 100%;
  }

  .upcoming-visibility-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .upcoming-visibility-controls .calendar-visibility-indicator {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    border-radius: 16px;
  }

  .upcoming-visibility-controls button {
    width: 100%;
  }

  .social-links {
    flex-direction: row;
  }

  .admin-security-heading,
  .admin-security-actions,
  .admin-recovery-code-forms form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-security-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-security-actions button,
  .admin-recovery-code-forms button {
    flex: 0 0 auto;
    width: 100%;
  }
}
