/* ==========================================================================
   IBIAPEX · Apple Liquid Glass Library & LinkedIn Social App Architecture
   Official Palette: Deep Forest (#173F35), Midnight (#0A221C), Lime (#D4EC76)
   ========================================================================== */

:root {
  --ag-forest: #173f35;
  --ag-forest-deep: #0b241e;
  --ag-lime: #d4ec76;
  --ag-lime-soft: #eef7c8;
  --ag-canvas: #eef2eb;
  --ag-glass-light: rgba(255, 255, 255, 0.78);
  --ag-glass-strong: rgba(255, 255, 255, 0.90);
  --ag-glass-dark: rgba(15, 45, 37, 0.78);
  --ag-glass-border: rgba(255, 255, 255, 0.68);
  --ag-glass-hairline: rgba(23, 63, 53, 0.10);
  --ag-shadow-ambient: 0 20px 50px -12px rgba(11, 36, 30, 0.14), 0 4px 14px rgba(11, 36, 30, 0.05);
  --ag-shadow-card: 0 8px 28px -6px rgba(11, 36, 30, 0.08), 0 1px 3px rgba(11, 36, 30, 0.04);
  --ag-specular-light: inset 0 1px 0 0 rgba(255, 255, 255, 0.92), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  --ag-specular-dark: inset 0 1px 0 0 rgba(212, 236, 118, 0.30), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  --ag-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

body.ibiapex-experience {
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 236, 118, 0.22), transparent 38%),
    radial-gradient(circle at 88% 14%, rgba(23, 63, 53, 0.09), transparent 42%),
    #eef2ec;
}

/* --------------------------------------------------------------------------
   1. Apple Liquid Glass Primitives
   -------------------------------------------------------------------------- */
.ag-card {
  background: var(--ag-glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--ag-glass-hairline);
  border-radius: 22px;
  box-shadow: var(--ag-specular-light), var(--ag-shadow-card);
  transition: transform 0.24s var(--ag-spring), box-shadow 0.24s var(--ag-spring), border-color 0.2s ease;
}

.ag-card--interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 63, 53, 0.24);
  box-shadow: var(--ag-specular-light), var(--ag-shadow-ambient);
}

.ag-card--dark {
  background: linear-gradient(145deg, rgba(23, 63, 53, 0.94), rgba(11, 36, 30, 0.96));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(212, 236, 118, 0.24);
  border-radius: 22px;
  color: #f4f9ec;
  box-shadow: var(--ag-specular-dark), var(--ag-shadow-ambient);
}

.ag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.4px;
  background: rgba(23, 63, 53, 0.07);
  color: #173f35;
  border: 1px solid rgba(23, 63, 53, 0.12);
}

.ag-pill--lime {
  background: #d4ec76;
  color: #0b241e;
  border-color: #e4f796;
}

.ag-pill--cdl {
  background: linear-gradient(135deg, #173f35, #215747);
  color: #d4ec76;
  border-color: rgba(212, 236, 118, 0.35);
}

/* --------------------------------------------------------------------------
   2. Direct App Gateway on /ibiapex/ (Apple Liquid Glass Entry + Signup)
   -------------------------------------------------------------------------- */
.ag-entry-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(212, 236, 118, 0.22), transparent 48%),
    radial-gradient(ellipse at 85% 75%, rgba(45, 116, 88, 0.35), transparent 52%),
    linear-gradient(155deg, #0b241e 0%, #173f35 55%, #0f2d25 100%);
  color: #f5fae8;
  padding: 36px 0 64px;
}

.ag-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 520px);
  gap: 44px;
  align-items: start;
}

.ag-entry-pitch {
  padding-top: 12px;
}

.ag-entry-pitch .ux-display {
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin: 14px 0 18px;
  color: #ffffff;
}

.ag-entry-pitch .ux-display em {
  color: #d4ec76;
  font-family: Georgia, serif;
  font-style: italic;
}

.ag-entry-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #c7d9c6;
  max-width: 520px;
  margin: 0 0 24px;
}

.ag-feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.ag-feature-mini {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.ag-feature-mini__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #d4ec76;
  color: #0b241e;
  flex-shrink: 0;
}

.ag-feature-mini__icon .ipx-icon {
  width: 18px;
  height: 18px;
}

.ag-feature-mini strong {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 2px;
}

.ag-feature-mini span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #bfd2be;
}

/* Apple Glass Signup / Auth Dock on the Entry Screen */
.ag-auth-dock {
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 28px 30px;
  color: #173f35;
  box-shadow:
    inset 0 1px 0 0 #ffffff,
    0 28px 70px -12px rgba(4, 22, 17, 0.42),
    0 0 0 1px rgba(212, 236, 118, 0.25);
}

.ag-auth-dock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(23, 63, 53, 0.10);
}

.ag-auth-dock__tabs {
  display: inline-flex;
  background: #e9efe4;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.ag-auth-dock__tab {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 750;
  color: #496052;
  text-decoration: none;
}

.ag-auth-dock__tab.is-active {
  background: #173f35;
  color: #d4ec76;
  box-shadow: 0 2px 8px rgba(23, 63, 53, 0.18);
}

.ag-auth-dock h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0b241e;
  margin: 0 0 4px;
}

.ag-auth-dock__sub {
  font-size: 13px;
  color: #52685a;
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   3. LinkedIn-Style 3-Column Social App Layout (Dashboard / Feed)
   -------------------------------------------------------------------------- */
.li-app-container {
  max-width: 1280px;
  margin: 0 auto;
}

.li-feed-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

/* Left Column: LinkedIn Profile Card */
.li-profile-card {
  overflow: hidden;
  padding: 0;
}

.li-profile-card__cover {
  height: 74px;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 236, 118, 0.45), transparent 60%),
    linear-gradient(135deg, #0b241e, #173f35 65%, #245b46);
  position: relative;
}

.li-profile-card__body {
  padding: 0 20px 20px;
  text-align: center;
}

.li-avatar-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin: -39px auto 10px;
  border-radius: 50%;
  padding: 3px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 36, 30, 0.16);
}

.li-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.li-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #173f35, #0b241e);
  color: #d4ec76;
  font-size: 26px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.li-avatar-edit-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d4ec76;
  color: #0b241e;
  border: 2px solid #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.li-profile-card__name {
  font-size: 16.5px;
  font-weight: 800;
  color: #0b241e;
  margin: 0 0 3px;
}

.li-profile-card__headline {
  font-size: 12.5px;
  color: #4f6557;
  line-height: 1.4;
  margin: 0 0 10px;
}

.li-profile-card__stats {
  border-top: 1px solid rgba(23, 63, 53, 0.08);
  border-bottom: 1px solid rgba(23, 63, 53, 0.08);
  padding: 12px 18px;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 12px;
}

.li-profile-card__stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4b6154;
  font-weight: 600;
}

.li-profile-card__stat-row strong {
  color: #173f35;
  font-weight: 800;
}

.li-profile-card__links {
  padding: 12px 16px 16px;
  display: grid;
  gap: 6px;
}

.li-profile-card__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #173f35;
  background: rgba(23, 63, 53, 0.04);
  transition: background-color 0.16s ease;
}

.li-profile-card__link:hover {
  background: #e9f2d8;
}

.li-profile-card__link .ipx-icon {
  width: 16px;
  height: 16px;
  color: #245b46;
}

/* Center Column: LinkedIn Composer & Feed Stream */
.li-composer {
  padding: 18px 20px;
  margin-bottom: 18px;
}

.li-composer__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.li-composer__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #173f35;
  color: #d4ec76;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
}

.li-composer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.li-composer__trigger {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 63, 53, 0.16);
  background: rgba(244, 247, 240, 0.85);
  color: #496052;
  font-size: 13.5px;
  font-weight: 650;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.li-composer__trigger:hover {
  background: #ffffff;
  border-color: #173f35;
  color: #173f35;
}

.li-composer__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 63, 53, 0.08);
}

.li-composer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #173f35;
  background: rgba(23, 63, 53, 0.04);
  text-align: center;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.li-composer__btn:hover {
  background: #e6f0d2;
  transform: translateY(-1px);
}

.li-composer__btn .ipx-icon {
  width: 16px;
  height: 16px;
  color: #245b46;
}

.li-composer__btn--cdl {
  background: #173f35;
  color: #d4ec76;
}

.li-composer__btn--cdl .ipx-icon {
  color: #d4ec76;
}

.li-composer__btn--cdl:hover {
  background: #0b241e;
  color: #ffffff;
}

/* Feed Post Cards */
.li-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.li-feed-card {
  padding: 20px 22px;
}

.li-feed-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.li-feed-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.li-feed-card__author strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #0b241e;
}

.li-feed-card__author small {
  display: block;
  font-size: 12px;
  color: #5a7062;
}

.li-feed-card__title {
  font-size: 17px;
  font-weight: 800;
  color: #0b241e;
  margin: 0 0 6px;
  line-height: 1.35;
}

.li-feed-card__title a:hover {
  color: #245b46;
  text-decoration: underline;
}

.li-feed-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: #394d41;
  margin: 0 0 14px;
}

.li-feed-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 63, 53, 0.08);
}

.li-feed-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #365042;
  background: rgba(23, 63, 53, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.li-feed-card__action:hover {
  background: #e6f0d0;
  color: #0b241e;
}

.li-feed-card__action .ipx-icon {
  width: 15px;
  height: 15px;
}

/* Right Column Widgets (Fórum Tianguá, Parceria CDL, Acervo CVs) */
.li-widget {
  padding: 20px;
  margin-bottom: 18px;
}

.li-widget__title {
  font-size: 15px;
  font-weight: 800;
  color: #0b241e;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.li-widget__sub {
  font-size: 12px;
  color: #586e60;
  margin: 0 0 14px;
}

.li-forum-rooms {
  display: grid;
  gap: 8px;
}

.li-forum-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(23, 63, 53, 0.04);
  border: 1px solid rgba(23, 63, 53, 0.08);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.li-forum-room:hover {
  background: #ecf5d8;
  border-color: #173f35;
}

.li-forum-room strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: #173f35;
}

.li-forum-room small {
  display: block;
  font-size: 11px;
  color: #5b7062;
}

/* --------------------------------------------------------------------------
   4. Forum Rooms Strip (Tianguá & Serra da Ibiapaba) + Invite Bar
   -------------------------------------------------------------------------- */
.ag-rooms-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ag-room-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--ag-glass-strong);
  border: 1px solid rgba(23, 63, 53, 0.12);
  box-shadow: var(--ag-specular-light), var(--ag-shadow-card);
  transition: transform 0.18s var(--ag-spring), border-color 0.18s ease;
}

.ag-room-card:hover,
.ag-room-card.is-active {
  transform: translateY(-2px);
  border-color: #173f35;
  background: #f3f9e2;
}

.ag-room-card.is-active {
  background: #173f35;
  color: #f4f9e8;
}

.ag-room-card.is-active strong,
.ag-room-card.is-active span {
  color: #ffffff;
}

.ag-room-card strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #0b241e;
}

.ag-room-card span {
  font-size: 12px;
  color: #556b5d;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   5. Responsive Rules (Tablet & Mobile App Mode)
   -------------------------------------------------------------------------- */
@media (max-width: 1140px) {
  .li-feed-grid {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .li-feed-grid > aside:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .ag-entry-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 780px) {
  .li-feed-grid {
    grid-template-columns: 1fr;
  }
  .li-feed-grid > aside:last-child {
    grid-template-columns: 1fr;
  }
  .li-composer__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ag-feature-mini-grid {
    grid-template-columns: 1fr;
  }
  .ag-auth-dock {
    padding: 22px 18px;
    border-radius: 22px;
  }
}

/* --------------------------------------------------------------------------
   6. Apple Liquid Glass Web App (PWA) Smart Banner & Install Sheet Modal
   -------------------------------------------------------------------------- */
.ag-pwa-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(212, 236, 118, 0.22);
  color: #173f35;
  border: 1.5px solid #173f35;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s var(--ag-spring), background-color 0.16s ease;
}

.ag-pwa-trigger:hover {
  background: #d4ec76;
  color: #0b241e;
  transform: translateY(-1px);
}

.ag-pwa-trigger--dark {
  background: rgba(212, 236, 118, 0.16);
  color: #d4ec76;
  border-color: rgba(212, 236, 118, 0.45);
}

.ag-pwa-trigger--dark:hover {
  background: #d4ec76;
  color: #0b241e;
}

.ag-pwa-trigger .ipx-icon {
  width: 15px;
  height: 15px;
}

/* Floating Smart Banner */
/* --------------------------------------------------------------------------
   7. Zero-Scroll Stage & Multi-Step Signup Wizard
   -------------------------------------------------------------------------- */
.ag-main-locked {
  overflow: hidden;
  max-height: 100svh;
}

.ag-zero-scroll-stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 15%, #1d4e42 0%, #0b241e 70%, #071813 100%);
  color: #f4f9e8;
  position: relative;
  overflow-y: auto;
}

.ag-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.ag-stage-brand img {
  display: block;
  height: 30px;
  width: auto;
}

.ag-stage-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ag-stage-login-pill {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ag-stage-login-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ag-stage-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 24px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.ag-stage-headline {
  text-align: center;
  margin-bottom: 14px;
}

.ag-stage-headline h1 {
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  font-weight: 850;
  color: #ffffff;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ag-stage-headline h1 em {
  font-style: italic;
  color: #d4ec76;
}

.ag-auth-dock--wizard {
  width: 100%;
  max-width: 530px;
  background: rgba(255, 255, 255, 0.96);
  color: #0b241e;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.5);
}

.ag-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ag-wizard-step-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 750;
  color: #7a9182;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ag-wizard-step-dot.is-active {
  color: #173f35;
  background: rgba(23, 63, 53, 0.08);
}

.ag-wizard-step-dot__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ccdcd2;
  color: #3b5344;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.ag-wizard-step-dot.is-active .ag-wizard-step-dot__num {
  background: #173f35;
  color: #d4ec76;
}

.ag-wizard-step-dot.is-passed .ag-wizard-step-dot__num {
  background: #276749;
  color: #ffffff;
}

.ag-wizard-step-line {
  width: 20px;
  height: 2px;
  background: #ccdcd2;
}

.ag-wizard-pane__title {
  font-size: 14px;
  font-weight: 800;
  color: #173f35;
  margin: 0 0 10px;
}

.ag-wizard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .ag-wizard-grid-2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.ag-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.ag-field label {
  font-size: 11.5px;
  font-weight: 750;
  color: #2b4536;
}

.ag-field input[type="text"],
.ag-field input[type="email"],
.ag-field input[type="password"],
.ag-field input[type="tel"] {
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid #c2d6c6;
  font-size: 13px;
  background: #ffffff;
}

.ag-inline-lookup {
  display: flex;
  gap: 6px;
}

.ag-inline-lookup input {
  flex: 1;
}

.ag-btn-mini {
  padding: 0 12px;
  border-radius: 10px;
  background: #173f35;
  color: #d4ec76;
  font-size: 12px;
  font-weight: 750;
  border: none;
  cursor: pointer;
}

.ag-field-hint {
  font-size: 11px;
  color: #4f6a5b;
}

.ag-compact-check {
  font-size: 11.5px;
  color: #3b5545;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  cursor: pointer;
}

.ag-compact-check input {
  margin-top: 2px;
}

.ag-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 63, 53, 0.1);
}

.ag-wizard-link {
  font-size: 12px;
  font-weight: 700;
  color: #173f35;
  text-decoration: underline;
}

.ag-wizard-btn-next,
.ag-wizard-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #173f35;
  color: #d4ec76;
  font-weight: 800;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
}

.ag-wizard-btn-next:hover,
.ag-wizard-btn-submit:hover {
  background: #0b241e;
  color: #ffffff;
}

.ag-wizard-btn-back {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #4b6657;
  cursor: pointer;
}

.ag-wizard-error {
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 700;
  margin: 4px 0 0;
}

.ag-logged-box {
  text-align: center;
  padding: 16px 0;
}

/* The installation sheet uses the native top layer for focus, Escape and touch. */
.ag-pwa-trigger[hidden], .ipx-install-sheet:not([open]) { display: none; }
.ipx-install-sheet {
  inset: 0;
  margin: auto;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #e0e9df;
  border-radius: 26px;
  color: #173f35;
  background: #fafcf6;
  box-shadow: 0 24px 100px #061e2247;
}
.ipx-install-sheet::backdrop { background: #0a241db3; }
.ipx-install-sheet img { border-radius: 14px; }
.ipx-install-sheet h2 { margin: 16px 0 8px; font-size: 1.65rem; letter-spacing: -.04em; }
.ipx-install-sheet p { color: #41564b; line-height: 1.6; margin: 8px 0 18px; }
.ipx-install-sheet summary { cursor: pointer; padding: 14px 0; font-weight: 750; border-top: 1px solid #d2dcd1; }
.ipx-sheet-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; color: #163d31; background: #e8efe4; font-size: 1.5rem; cursor: pointer;
}
.ag-zero-scroll-stage { min-height: min(78svh, 900px); overflow: visible; }
.ag-stage-center { height: auto; padding: 40px 16px 56px; }
.ag-auth-dock--wizard { padding: clamp(18px, 4vw, 32px); }
.ag-field input:not([type="hidden"]) { min-height: 44px; font-size: 16px; }
.ag-wizard-step-dot { min-height: 44px; font-size: .82rem; }
.ag-wizard-step-dot:disabled { cursor: default; color: #56675d; }
.ag-field label, .ag-compact-check { font-size: .84rem; }
.ipx-signup-form:not(.has-wizard) .ag-wizard-steps,
.ipx-signup-form:not(.has-wizard) [data-wizard-next],
.ipx-signup-form:not(.has-wizard) [data-wizard-prev] { display: none; }
.ipx-signup-form:has(#goal-company:checked) [data-goal-box="career"],
.ipx-signup-form:has(#goal-career:checked) [data-goal-box="company"] { display: none; }
@media (max-width: 780px) {
  .ipx-workspace-header .ipx-account {
    flex-wrap: wrap;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
  }
  .li-feed-grid > .li-feed-center { grid-row: 1; min-width: 0; }
  .ipx-install-sheet { margin-block: auto max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
  .ag-wizard-steps { gap: 2px; }
  .ag-wizard-step-dot { padding-inline: 4px; }
}

#profile-avatar-fallback[hidden],
#profile-avatar-preview[hidden],
#cv-panel-preview[hidden] { display: none !important; }
