/* Aether visual layer for Co-Chart. */

: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;
}

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-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;
}

.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-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;
}

.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);
}

.video-grid.is-locked article {
  filter: saturate(0.35);
}

/* 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);
}

.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;
}

.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);
}

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

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

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

.upcoming-dates {
  gap: 10px;
}

.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;
  }

  .nav-item[data-target="adminUpcoming"] {
    flex-basis: 108px;
    min-width: 108px;
  }

  .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;
  }
}
