:root {
  --purple: #5f3edc;
  --purple-2: #9654ee;
  --blue: #315fcf;
  --ink: #151844;
  --body: #1f2433;
  --muted: #5f6676;
  --line: #dedff0;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(36, 32, 91, 0.12);
}

/* Final HP2 dashboard overrides: keep these after the older social-dashboard rules. */
body[data-app="social"] {
  background: #f8f9ff;
  color: #070b23;
  padding-bottom: 92px;
}

body[data-app="social"] svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 22px;
}

.hp2-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

.hp2-sidebar {
  border-right: 1px solid #e8eaf4;
  gap: 22px;
  padding: 20px 14px 24px;
}

.hp2-sidebar .app-logo img {
  height: 50px;
  width: 50px;
}

.hp2-sidebar .side-nav {
  gap: 10px;
}

.hp2-sidebar .side-nav button {
  border-radius: 8px;
  color: #111542;
  font-size: 14px;
  min-height: 42px;
}

.hp2-sidebar .side-nav button.active {
  background: #eee9ff;
  color: #6a43eb;
}

.hp2-sidebar .side-nav button b,
.hp2-topbar .top-icon b {
  align-items: center;
  background: #6547f2;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  height: 17px;
  justify-content: center;
  margin-left: auto;
  min-width: 17px;
  padding: 0 4px;
}

.hp2-main {
  margin: 0 auto;
  max-width: 744px;
  padding: 22px 26px 36px;
  width: 100%;
}

.hp2-topbar {
  align-items: center;
  background: #f8f9ff;
  border-bottom: 1px solid #e7e9f2;
  display: grid;
  gap: 16px;
  grid-template-columns: 36px minmax(180px, 264px) 38px auto;
  margin: -22px -26px 28px;
  padding: 22px 26px 18px;
  position: sticky;
  top: 0;
  z-index: 12;
}

.hp2-search {
  align-items: center;
  background: #fff;
  border: 1px solid #f0f1f7;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(22, 24, 60, 0.04);
  color: #8b91a6;
  display: flex;
  gap: 10px;
  height: 40px;
  justify-self: center;
  max-width: 264px;
  padding: 0 17px;
  width: 100%;
}

.hp2-search input {
  background: transparent;
  border: 0;
  color: #222745;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.hp2-topbar .top-icon {
  position: relative;
}

.hp2-topbar .cart-top-button {
  display: none;
}

body[data-current-view="gear"] .hp2-topbar {
  grid-template-columns: 36px minmax(180px, 264px) 38px 38px auto;
}

body[data-current-view="gear"] .hp2-topbar .cart-top-button {
  display: inline-flex;
}

.hp2-topbar .top-icon b {
  position: absolute;
  right: -2px;
  top: -2px;
}

.hp2-heading-row {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.home-heading h1 {
  font-size: 31px;
  margin-bottom: 9px;
}

.home-heading h1 span {
  font-size: 24px;
}

.home-heading p {
  color: #5634e7;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.streak-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 22, 58, 0.05);
  color: #111542;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 28px auto 18px;
  min-width: 154px;
  padding: 14px 16px;
  text-align: left;
}

.streak-card > span:first-child {
  color: #ff642d;
  grid-row: span 2;
}

.streak-card strong {
  font-size: 24px;
  line-height: 1;
}

.streak-card small {
  color: #687087;
  font-size: 11px;
}

.streak-card > span:last-child {
  color: #798097;
  grid-column: 3;
  grid-row: 1 / span 2;
}

.hp2-hero {
  margin-bottom: 28px;
}

.hp2-sober {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 18, 49, 0.9), rgba(8, 18, 49, 0.54)),
    radial-gradient(circle at 83% 27%, rgba(255, 166, 117, 0.9), transparent 26%),
    linear-gradient(150deg, #183e74, #172d60 46%, #db8873);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 262px;
  padding: 36px 34px 22px;
}

.hp2-sober h2 {
  font-size: 39px;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hp2-sober p {
  font-size: 20px;
}

.hp2-sober small {
  max-width: 440px;
}

.hp2-sober button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.huddle-image {
  background:
    linear-gradient(90deg, rgba(7, 12, 44, 0.86), rgba(25, 22, 70, 0.54)),
    url("./assets/social-huddle-banner.svg") center / cover;
  color: #fff;
  padding: 34px;
}

.quick-actions {
  margin-bottom: 30px;
}

.quick-actions h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.quick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
}

.quick-grid button,
.option-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  color: #111542;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
  padding: 14px;
  text-align: center;
}

.quick-grid button > span,
.option-grid button > span {
  color: #7145ee;
  margin-bottom: 8px;
}

.quick-grid button:nth-child(2) > span { color: #67c746; }
.quick-grid button:nth-child(3) > span { color: #ff861c; }

.quick-grid strong,
.option-grid strong {
  font-size: 12px;
  margin-bottom: 4px;
}

.quick-grid small,
.option-grid small {
  color: #687087;
  font-size: 11px;
  line-height: 1.35;
}

.group-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.group-card {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  overflow: hidden;
}

.group-card::before {
  background: url("./assets/group-day.svg") center / cover;
  content: "";
  display: block;
  height: 98px;
}

.group-card.coffee::before {
  background-image: url("./assets/group-coffee.svg");
}

.group-card.mountains::before {
  background-image: url("./assets/group-mountains.svg");
}

.group-card.dharma::before {
  background-image: url("./assets/group-dharma.svg");
}

.group-card span {
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: -28px 14px 12px;
  position: relative;
}

.group-card h3,
.group-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.group-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.group-card p {
  color: #687087;
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
}

.group-card button,
.meeting-list button,
.library-layout button,
.contacts-list button,
.journal-page button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 8px;
  color: #5634e7;
  font-weight: 800;
  height: 36px;
  margin: 0 16px 14px;
  width: calc(100% - 32px);
}

.home-two-column {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.schedule-list,
.note-stack {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
}

.schedule-list article,
.contacts-list article,
.privacy-list article {
  align-items: center;
  border-bottom: 1px solid #edf0f6;
  display: grid;
  gap: 12px;
  grid-template-columns: 10px 1fr auto auto;
  padding: 16px;
}

.schedule-list article:last-child,
.contacts-list article:last-child,
.privacy-list article:last-child {
  border-bottom: 0;
}

.schedule-list p {
  font-weight: 800;
  margin: 0;
}

.schedule-list small {
  color: #687087;
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.live-dot {
  background: #f0002d;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.schedule-list button,
.contacts-list button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  height: 34px;
  padding: 0 20px;
}

.schedule-list button.quiet {
  background: #fff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

.note-stack {
  display: grid;
  gap: 12px;
  padding: 0;
}

.note-stack article {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 35px 1fr 24px;
  padding: 18px;
}

.note-stack article + article {
  border-top: 1px solid #edf0f6;
}

.note-stack > article > span,
.note-stack button {
  align-items: center;
  background: #eee9ff;
  border-radius: 7px;
  color: #6742ec;
  display: flex;
  height: 35px;
  justify-content: center;
  width: 35px;
}

.note-stack button {
  background: transparent;
  border: 0;
  color: #7a8097;
  height: 24px;
  width: 24px;
}

.note-stack h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.note-stack small {
  color: #687087;
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}

.note-stack p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.encouragement-banner {
  align-items: center;
  background: linear-gradient(135deg, #eee9ff, #fff);
  border: 1px solid #e7e2ff;
  border-radius: 10px;
  display: flex;
  gap: 22px;
  margin-top: 12px;
  padding: 24px;
}

.encouragement-banner > span {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.encouragement-banner h2 {
  color: #6b55dc;
  font-size: 18px;
  margin: 0 0 8px;
}

.encouragement-banner p {
  color: #687087;
  margin: 0;
}

.page-view {
  padding-top: 8px;
}

.page-head {
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.page-head p {
  color: #687087;
  margin: 0;
}

.page-grid,
.option-grid,
.library-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.option-grid button {
  align-items: flex-start;
  min-height: 148px;
  text-align: left;
}

.meeting-list,
.contacts-list,
.privacy-list {
  display: grid;
  gap: 14px;
}

.meeting-list article,
.library-layout article {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  padding: 18px;
}

.meeting-list time {
  color: #5634e7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-list h3,
.library-layout h3,
.contacts-list h3,
.privacy-list h3 {
  margin: 7px 0 5px;
}

.meeting-list p,
.library-layout p,
.contacts-list p,
.privacy-list p {
  color: #687087;
  margin: 0 0 14px;
}

.library-layout article > span {
  color: #6547f2;
}

.journal-page {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  padding: 22px;
}

.journal-page label {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.journal-page textarea {
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  min-height: 320px;
  padding: 18px;
  resize: vertical;
  width: 100%;
}

.section-title-button,
.name-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
}

.post-feed,
.note-library {
  display: grid;
  gap: 16px;
}

.post-feed {
  grid-template-columns: repeat(2, 1fr);
}

.feed-post {
  min-height: 220px;
}

.note-library {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.note-library button {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  color: #111542;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 128px;
  padding: 18px;
  text-align: left;
}

.note-library span {
  color: #6547f2;
}

.note-library small {
  color: #687087;
}

.app-modal {
  align-items: center;
  background: rgba(9, 12, 37, 0.46);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 40;
}

.app-modal.open {
  display: flex;
}

.app-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(6, 9, 34, 0.26);
  max-height: min(760px, calc(100vh - 36px));
  max-width: 560px;
  overflow: auto;
  padding: 28px;
  position: relative;
  width: min(100%, 560px);
}

.modal-x {
  align-items: center;
  background: #f4f2ff;
  border: 0;
  border-radius: 50%;
  color: #4f35df;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
}

.app-dialog h2 {
  font-size: 28px;
  margin: 0 44px 8px 0;
}

.app-dialog p {
  color: #596178;
  line-height: 1.45;
}

.modal-form,
.comment-box {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.modal-form label,
.comment-box {
  color: #111542;
  font-weight: 800;
}

.modal-form input,
.modal-form textarea,
.comment-box textarea {
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  display: block;
  font: inherit;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.comment-box textarea {
  min-height: 110px;
  resize: vertical;
}

.modal-form textarea {
  min-height: 140px;
  resize: vertical;
}

.modal-form button,
.modal-primary,
.success-state button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  min-height: 46px;
  padding: 0 24px;
}

.streak-calendar {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, 1fr);
  margin: 20px 0;
}

.streak-calendar button {
  aspect-ratio: 1;
  background: #f3f5fb;
  border: 1px solid #e3e6f0;
  border-radius: 10px;
  color: #626a80;
  font-weight: 800;
}

.streak-calendar button.checked {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  color: #fff;
}

.streak-clock {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.streak-clock span {
  background: #f7f5ff;
  border-radius: 10px;
  color: #596178;
  padding: 12px;
  text-align: center;
}

.streak-clock strong {
  color: #111542;
  display: block;
  font-size: 24px;
}

.streak-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.streak-actions button,
.form-actions button {
  border-radius: 999px;
  font-weight: 900;
  min-height: 48px;
  padding: 12px 24px;
}

.streak-actions button:first-child,
.form-actions button:last-child {
  background: #f7f4ff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

.streak-reflection-form textarea {
  min-height: 130px;
  resize: vertical;
}

.modal-post,
.note-reader {
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  color: #111542;
  font-size: 16px;
  line-height: 1.55;
  margin: 18px 0;
  padding: 18px;
}

.modal-kicker {
  color: #6547f2 !important;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.modal-actions,
.permission-grid,
.event-meta {
  display: grid;
  gap: 10px;
}

.modal-actions,
.permission-grid {
  grid-template-columns: repeat(2, 1fr);
}

.modal-actions button,
.permission-grid button {
  align-items: center;
  background: #f6f3ff;
  border: 1px solid #e4dcff;
  border-radius: 10px;
  color: #5634e7;
  display: flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
}

.permission-grid button.selected {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  color: #fff;
}

.profile-pop {
  text-align: center;
}

.event-meta {
  background: #f8f9ff;
  border-radius: 12px;
  color: #596178;
  grid-template-columns: 1fr;
  margin: 18px 0;
  padding: 16px;
}

.journal-page button {
  margin: 16px 0 0;
  max-width: 220px;
}

.contacts-list article,
.privacy-list article {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  grid-template-columns: 44px 1fr auto;
  padding: 16px;
}

.privacy-list article > span {
  color: #6547f2;
}


/* HP2 Parachute social dashboard */
body[data-app="social"] {
  background: #f8f9ff;
}

.hp2-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

.hp2-sidebar {
  border-right: 1px solid #e8eaf4;
  gap: 22px;
  padding: 20px 14px 24px;
}

.hp2-sidebar .app-logo img {
  height: 50px;
  width: 50px;
}

.hp2-sidebar .side-nav {
  gap: 10px;
}

.hp2-sidebar .side-nav button {
  border-radius: 8px;
  color: #111542;
  font-size: 14px;
  min-height: 42px;
}

.hp2-sidebar .side-nav button.active {
  background: #eee9ff;
  color: #6a43eb;
}

.hp2-sidebar .side-nav button b,
.hp2-topbar .top-icon b {
  align-items: center;
  background: #6547f2;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  height: 17px;
  justify-content: center;
  margin-left: auto;
  min-width: 17px;
  padding: 0 4px;
}

.hp2-main {
  max-width: 744px;
  padding: 22px 26px 36px;
}

.hp2-topbar {
  border-bottom: 1px solid #e7e9f2;
  margin: -22px -26px 28px;
  padding: 22px 26px 18px;
}

.hp2-search {
  align-items: center;
  background: #fff;
  border: 1px solid #f0f1f7;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(22, 24, 60, 0.04);
  color: #8b91a6;
  display: flex;
  gap: 10px;
  height: 40px;
  justify-self: center;
  max-width: 264px;
  padding: 0 17px;
  width: 100%;
}

.hp2-search input {
  border: 0;
  color: #222745;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.hp2-topbar .top-icon b {
  position: absolute;
  right: 0;
  top: 1px;
}

.hp2-heading-row {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.home-heading h1 {
  font-size: 31px;
  margin-bottom: 9px;
}

.home-heading h1 span {
  font-size: 24px;
}

.home-heading p {
  color: #5634e7;
  text-decoration: none;
}

.streak-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 22, 58, 0.05);
  color: #111542;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 28px auto 18px;
  min-width: 154px;
  padding: 14px 16px;
  text-align: left;
}

.streak-card > span:first-child {
  color: #ff642d;
  grid-row: span 2;
}

.streak-card strong {
  font-size: 24px;
  line-height: 1;
}

.streak-card small {
  color: #687087;
  font-size: 11px;
}

.streak-card > span:last-child {
  color: #798097;
  grid-column: 3;
  grid-row: 1 / span 2;
}

.hp2-hero {
  margin-bottom: 28px;
}

.hp2-sober {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 18, 49, 0.88), rgba(8, 18, 49, 0.52)),
    radial-gradient(circle at 82% 30%, rgba(255, 166, 117, 0.85), transparent 25%),
    linear-gradient(150deg, #163d73, #172c5d 46%, #db8873);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 262px;
  padding: 36px 34px 22px;
}

.hp2-sober h2 {
  font-size: 39px;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hp2-sober p {
  font-size: 20px;
}

.hp2-sober small {
  max-width: 440px;
}

.hp2-sober button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.quick-actions {
  margin-bottom: 30px;
}

.quick-actions h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.quick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
}

.quick-grid button,
.option-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  color: #111542;
  display: flex;
  flex-direction: column;
  min-height: 100px;
  justify-content: center;
  padding: 14px;
  text-align: center;
}

.quick-grid button > span,
.option-grid button > span {
  color: #7145ee;
  margin-bottom: 8px;
}

.quick-grid button:nth-child(2) > span { color: #67c746; }
.quick-grid button:nth-child(3) > span { color: #ff861c; }

.quick-grid strong,
.option-grid strong {
  font-size: 12px;
  margin-bottom: 4px;
}

.quick-grid small,
.option-grid small {
  color: #687087;
  font-size: 11px;
  line-height: 1.35;
}

.group-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.group-card {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  overflow: hidden;
}

.group-card::before {
  background: linear-gradient(135deg, #ff9b77, #523bd8);
  content: "";
  display: block;
  height: 98px;
}

.group-card.coffee::before {
  background: radial-gradient(circle at 50% 45%, #8b552b, transparent 28%), linear-gradient(135deg, #6d3f22, #d8a77e);
}

.group-card.mountains::before {
  background: linear-gradient(135deg, #1e426f, #d6e8f6);
}

.group-card.dharma::before {
  background: linear-gradient(135deg, #f3bc61, #6e43e5);
}

.group-card span {
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: -28px 14px 12px;
  position: relative;
}

.group-card h3,
.group-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.group-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.group-card p {
  color: #687087;
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
}

.group-card button,
.meeting-list button,
.library-layout button,
.contacts-list button,
.journal-page button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 8px;
  color: #5634e7;
  font-weight: 800;
  height: 36px;
  margin: 0 16px 14px;
  width: calc(100% - 32px);
}

.home-two-column {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.schedule-list,
.note-stack {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
}

.schedule-list article,
.contacts-list article,
.privacy-list article {
  align-items: center;
  border-bottom: 1px solid #edf0f6;
  display: grid;
  gap: 12px;
  grid-template-columns: 10px 1fr auto auto;
  padding: 16px;
}

.schedule-list article:last-child,
.contacts-list article:last-child,
.privacy-list article:last-child {
  border-bottom: 0;
}

.schedule-list p {
  font-weight: 800;
  margin: 0;
}

.schedule-list small {
  color: #687087;
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.live-dot {
  background: #f0002d;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.schedule-list button,
.contacts-list button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  height: 34px;
  padding: 0 20px;
}

.schedule-list button.quiet {
  background: #fff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

.note-stack {
  display: grid;
  gap: 12px;
  padding: 0;
}

.note-stack article {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 35px 1fr 24px;
  padding: 18px;
}

.note-stack article + article {
  border-top: 1px solid #edf0f6;
}

.note-stack > article > span,
.note-stack button {
  align-items: center;
  background: #eee9ff;
  border-radius: 7px;
  color: #6742ec;
  display: flex;
  height: 35px;
  justify-content: center;
  width: 35px;
}

.note-stack button {
  background: transparent;
  border: 0;
  color: #7a8097;
  height: 24px;
  width: 24px;
}

.note-stack h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.note-stack small {
  color: #687087;
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}

.note-stack p {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.encouragement-banner {
  align-items: center;
  background: linear-gradient(135deg, #eee9ff, #fff);
  border: 1px solid #e7e2ff;
  border-radius: 10px;
  display: flex;
  gap: 22px;
  margin-top: 12px;
  padding: 24px;
}

.encouragement-banner > span {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.encouragement-banner h2 {
  color: #6b55dc;
  font-size: 18px;
  margin: 0 0 8px;
}

.encouragement-banner p {
  color: #687087;
  margin: 0;
}

.page-view {
  padding-top: 8px;
}

.page-head {
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.page-head p {
  color: #687087;
  margin: 0;
}

.page-grid,
.option-grid,
.library-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.option-grid button {
  align-items: flex-start;
  min-height: 148px;
  text-align: left;
}

.meeting-list,
.contacts-list,
.privacy-list {
  display: grid;
  gap: 14px;
}

.meeting-list article,
.library-layout article {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  padding: 18px;
}

.meeting-list time {
  color: #5634e7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-list h3,
.library-layout h3,
.contacts-list h3,
.privacy-list h3 {
  margin: 7px 0 5px;
}

.meeting-list p,
.library-layout p,
.contacts-list p,
.privacy-list p {
  color: #687087;
  margin: 0 0 14px;
}

.library-layout article > span {
  color: #6547f2;
}

.journal-page {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  padding: 22px;
}

.journal-page label {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.journal-page textarea {
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  min-height: 320px;
  padding: 18px;
  resize: vertical;
  width: 100%;
}

.journal-page button {
  margin: 16px 0 0;
  max-width: 220px;
}

.contacts-list article,
.privacy-list article {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  grid-template-columns: 44px 1fr auto;
  padding: 16px;
}

.privacy-list article > span {
  color: #6547f2;
}

.privacy-list input {
  accent-color: #6547f2;
  height: 22px;
  width: 22px;
}

.logout-modal {
  align-items: center;
  background: rgba(10, 13, 36, 0.42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 30;
}

.logout-modal.open {
  display: flex;
}

.logout-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(7, 9, 35, 0.24);
  max-width: 380px;
  padding: 26px;
  width: 100%;
}

.logout-dialog h2 {
  margin: 0 0 8px;
}

.logout-dialog p {
  color: #687087;
  margin: 0 0 22px;
}

.logout-dialog div {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.logout-dialog button {
  border-radius: 999px;
  font-weight: 800;
  height: 42px;
  padding: 0 20px;
}

.logout-dialog button:first-child {
  background: #fff;
  border: 1px solid #dfe2ee;
  color: #29304a;
}

.logout-dialog button:last-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

@media (max-width: 980px) {
  .quick-grid,
  .group-card-grid,
  .home-two-column,
  .page-grid,
  .post-feed,
  .note-library,
  .option-grid,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .hp2-search {
    justify-self: stretch;
  }

  .streak-card {
    display: grid;
    margin-top: 14px;
    max-width: 180px;
  }
}

body[data-app="social"] {
  background: #f7f8fc;
  color: #070b23;
  min-height: 100vh;
  overflow-x: hidden;
}

body[data-app="social"] button,
body[data-app="social"] a {
  font: inherit;
}

.social-shell {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  min-height: 100vh;
}

.social-sidebar {
  background: #ffffff;
  border-right: 1px solid #e6e8f2;
  box-shadow: 10px 0 26px rgba(24, 25, 66, 0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 18px 16px 28px;
  position: sticky;
  top: 0;
}

.app-logo img {
  border-radius: 50%;
  height: 40px;
  width: 40px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav-secondary {
  border-top: 1px solid #f0f1f6;
  margin-top: 24px;
  padding-top: 20px;
}

.side-nav button,
.mobile-menu,
.top-icon,
.profile-chip {
  background: transparent;
  border: 0;
  color: #11142f;
}

.side-nav button {
  align-items: center;
  border-radius: 8px;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 14px;
  min-height: 44px;
  padding: 0 12px;
  position: relative;
  text-align: left;
}

.side-nav button.active {
  background: #eee9ff;
  color: #4e36db;
}

.side-nav button i,
.top-icon i {
  background: #ec001a;
  border-radius: 50%;
  height: 7px;
  margin-left: auto;
  width: 7px;
}

[data-social-icon] svg {
  display: block;
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 22px;
}

.invite-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 233, 255, 0.82)),
    linear-gradient(145deg, #fff, #ede8ff 58%, #c6d8ff);
  border-radius: 4px;
  margin-top: auto;
  min-height: 266px;
  overflow: hidden;
  padding: 20px 16px;
  position: relative;
}

.invite-card::after {
  background: linear-gradient(135deg, transparent 0 28%, #6e4aea 29% 36%, transparent 37%), linear-gradient(150deg, #bba8ff, #543ad6);
  bottom: 0;
  clip-path: polygon(0 42%, 32% 66%, 51% 49%, 72% 72%, 100% 36%, 100% 100%, 0 100%);
  content: "";
  height: 92px;
  left: 0;
  position: absolute;
  right: 0;
}

.invite-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.invite-card p {
  color: #5e6380;
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.invite-card button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.social-main {
  margin: 0 auto;
  max-width: 790px;
  overflow: hidden;
  padding: 24px 26px 52px;
  width: 100%;
}

.social-topbar {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto auto;
  margin-bottom: 26px;
}

.mobile-menu {
  display: none;
}

.top-icon {
  align-items: center;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
}

.top-icon i {
  position: absolute;
  right: 5px;
  top: 4px;
}

.profile-chip {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
}

.avatar-photo {
  align-items: center;
  background: linear-gradient(145deg, #7fd6e7, #5f55d8);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: none;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.home-heading h1 {
  font-size: 32px;
  letter-spacing: -0.5px;
  line-height: 1;
  margin: 0 0 10px;
}

.home-heading p {
  color: #6c6f79;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin: 0 0 28px;
  text-decoration: underline;
  text-transform: uppercase;
}

.carousel-viewport,
.rail-viewport,
.book-viewport {
  overflow: hidden;
}

.carousel-track,
.rail-track,
.book-track {
  display: flex;
  gap: 16px;
  transition: transform 0.42s ease;
  will-change: transform;
}

.hero-carousel {
  margin-bottom: 34px;
}

.hero-carousel .carousel-track {
  gap: 0;
}

.slide-card {
  border-radius: 8px;
  flex: 0 0 100%;
  min-height: 250px;
}

.sober-ad {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 9, 33, 0.96), rgba(25, 19, 56, 0.76), rgba(24, 18, 44, 0.58)),
    radial-gradient(circle at 88% 28%, #ff9a73 0 10%, transparent 34%),
    linear-gradient(150deg, #181037, #30235c 46%, #e17584);
  color: #ffffff;
  display: grid;
  gap: 24px;
  grid-template-columns: 150px 1fr auto;
  padding: 24px 36px;
}

.sober-logo span,
.sober-logo strong {
  display: block;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 0.9;
}

.sober-logo span {
  color: #6846ff;
  text-shadow: -12px -8px 0 #d4dd28;
}

.sober-logo strong {
  color: #ff8b1f;
}

.sober-copy h2,
.notice-ad h2 {
  font-size: 25px;
  letter-spacing: -0.35px;
  margin: 0 0 8px;
}

.sober-copy p,
.notice-ad p {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
}

.sober-copy small {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  max-width: 430px;
}

.meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
}

.meta-row [data-social-icon] {
  margin-right: -20px;
}

.sober-ad button,
.notice-ad button,
.huddle-banner button,
.event-card a {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.sober-ad button {
  align-self: end;
  height: 48px;
  padding: 0 25px;
}

.notice-ad {
  background: linear-gradient(135deg, #e9e6ff, #ffffff);
  color: #11184e;
  padding: 46px 42px;
}

.notice-ad.resource {
  background: linear-gradient(135deg, #dfeaff, #f8f6ff);
}

.notice-ad button {
  height: 44px;
  padding: 0 22px;
}

.dashboard-section {
  margin: 0 0 34px;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h1 {
  font-size: 24px;
  letter-spacing: -0.2px;
  margin: 0;
}

.section-head a {
  align-items: center;
  color: #1466ac;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 4px;
}

.rail-wrap {
  position: relative;
}

.rail-viewport.small .rail-track {
  gap: 18px;
}

.post-card,
.event-card,
.note-card {
  background: #ffffff;
  border: 1px solid #eef0f6;
  border-radius: 9px;
  box-shadow: 0 7px 18px rgba(26, 28, 64, 0.07);
  flex: 0 0 calc((100% - 32px) / 3);
  min-height: 220px;
  padding: 18px;
}

.post-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.post-head p {
  display: grid;
  min-width: 0;
}

.post-head .name-link {
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-head p,
.post-card p,
.event-card p,
.note-card p {
  margin: 0;
}

.post-head strong {
  display: block;
  font-size: 14px;
}

.post-head small {
  color: #6d7285;
  font-size: 12px;
  line-height: 1.35;
}

.post-head button,
.event-card > button,
.note-card > button {
  background: transparent;
  border: 0;
  font-weight: 800;
}

.post-card > p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  min-height: 78px;
}

.post-card a {
  color: #2d62aa;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin: 14px 0;
}

.avatar.dan { background: linear-gradient(135deg, #f1d178, #4338ca); }
.avatar.megan { background: linear-gradient(135deg, #ffe0e9, #365fd8); }
.avatar.chris { background: linear-gradient(135deg, #7dd9e8, #4d5d6f); }
.avatar.nina { background: linear-gradient(135deg, #f69680, #9431dc); }

.mini-avatars {
  align-items: center;
  display: flex;
}

.mini-avatars span {
  background: linear-gradient(135deg, #f2b46c, #3447c9);
  border: 2px solid #ffffff;
  border-radius: 50%;
  height: 25px;
  margin-right: -7px;
  width: 25px;
}

.mini-avatars em {
  color: #6c7190;
  font-size: 13px;
  font-style: normal;
  margin-left: 13px;
}

.rail-arrow {
  align-items: center;
  background: transparent;
  border: 0;
  color: #676b78;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 2;
}

.rail-arrow.left {
  left: -34px;
}

.rail-arrow.right {
  right: -34px;
}

.book-track {
  gap: 18px;
}

.book-card {
  align-items: center;
  border-radius: 7px;
  color: #ffffff;
  display: flex;
  flex: 0 0 122px;
  flex-direction: column;
  font-family: Georgia, serif;
  font-size: 17px;
  height: 198px;
  justify-content: center;
  line-height: 1.2;
  padding: 14px;
  text-align: center;
  text-transform: uppercase;
}

.book-card small {
  font-size: 13px;
  margin-top: 30px;
  text-transform: none;
}

.book-card.teal { background: linear-gradient(150deg, #003946, #0d7383); }
.book-card.sky { background: linear-gradient(150deg, #9ec2df, #dfeeff); color: #e6e069; text-transform: none; }
.book-card.yellow { background: linear-gradient(150deg, #08154b, #492353); color: #f7c854; }
.book-card.navy { background: #071b5f; }
.book-card.lake { background: linear-gradient(180deg, #d8e6ee, #8eaec0); color: #27364b; }
.book-card.violet { background: linear-gradient(180deg, #7455e7, #20156a); }

.huddle-banner {
  align-items: center;
  background: linear-gradient(135deg, #efebff, #ffffff);
  border: 1px solid #edeef7;
  border-radius: 9px;
  box-shadow: 0 7px 18px rgba(26, 28, 64, 0.05);
  display: grid;
  gap: 26px;
  grid-template-columns: 138px 1fr auto;
  margin: 14px 0 30px;
  padding: 30px 44px 30px 30px;
}

.bubble-art {
  height: 94px;
  position: relative;
}

.bubble-art span {
  background: linear-gradient(135deg, #b55cf2, #2e6fe8);
  border-radius: 50%;
  display: block;
  height: 76px;
  position: absolute;
  width: 76px;
}

.bubble-art span::after {
  background: inherit;
  bottom: -7px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: "";
  height: 20px;
  left: 17px;
  position: absolute;
  width: 20px;
}

.bubble-art span:nth-child(2) {
  height: 58px;
  left: 57px;
  top: 38px;
  width: 58px;
}

.huddle-banner small {
  color: #4363b5;
  font-weight: 700;
}

.huddle-banner h2 {
  color: #1f57d8;
  font-size: 28px;
  margin: 4px 0 8px;
}

.huddle-banner p {
  color: #606681;
  margin: 0;
}

.huddle-banner button {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
}

.event-card,
.note-card {
  flex: 0 0 calc((100% - 18px) / 2);
  min-height: 126px;
  position: relative;
}

.event-card > button,
.note-card > button {
  position: absolute;
  right: 18px;
  top: 16px;
}

.event-card h3,
.note-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.event-card p,
.note-card small {
  color: #697085;
  display: block;
  font-size: 13px;
  margin-bottom: 22px;
}

.event-card p i {
  background: #f0002d;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 8px;
  width: 6px;
}

.event-card footer {
  align-items: center;
  color: #343951;
  display: flex;
  font-weight: 700;
  gap: 9px;
}

.event-card footer .avatar {
  height: 28px;
  width: 28px;
}

.event-card a {
  align-items: center;
  display: inline-flex;
  height: 34px;
  margin-left: auto;
  padding: 0 19px;
}

.note-card p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.42;
}

.profile-cover {
  background: linear-gradient(135deg, #4834d4, #9a4fe8);
  border-radius: 10px;
  height: 180px;
}

.profile-panel {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 22, 58, 0.08);
  margin: -52px auto 28px;
  max-width: 560px;
  padding: 0 30px 30px;
  text-align: center;
}

.avatar-photo.large {
  border: 5px solid #ffffff;
  height: 104px;
  transform: translateY(-28px);
  width: 104px;
}

.profile-panel h1 {
  margin: -18px 0 8px;
}

.profile-panel p {
  color: #686f84;
  margin: 0 0 24px;
}

.profile-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.profile-stats span {
  background: #f7f6ff;
  border-radius: 8px;
  color: #636985;
  font-size: 13px;
  padding: 14px;
}

.profile-stats strong {
  color: #10133e;
  display: block;
  font-size: 22px;
}

.notification-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #eef0f6;
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: 42px 1fr;
  margin-bottom: 12px;
  padding: 18px;
}

.notification-row > span {
  align-items: center;
  background: #eee9ff;
  border-radius: 10px;
  color: #6238e6;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.notification-row.unread {
  border-color: #d8d0ff;
}

.notification-row p {
  margin: 0;
}

.notification-row small {
  color: #73798c;
  display: block;
  margin-top: 4px;
}

.home-return {
  width: 180px;
}

@media (max-width: 980px) {
  .social-shell {
    grid-template-columns: 1fr;
  }

  .social-sidebar {
    display: none;
  }

  .social-main {
    padding: 18px 16px 42px;
  }

  .social-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px auto;
  }

  .mobile-menu {
    align-items: center;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
  }

  .sober-ad {
    grid-template-columns: 1fr;
  }

  .sober-ad button {
    justify-self: start;
  }

  .post-card {
    flex-basis: min(280px, 82vw);
  }

  .rail-arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eceef7;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(18, 20, 58, 0.08);
    height: 38px;
    width: 38px;
  }

  .rail-arrow.left {
    left: 2px;
  }

  .rail-arrow.right {
    right: 2px;
  }

  .huddle-banner {
    grid-template-columns: 1fr;
  }

  .event-card,
  .note-card {
    flex-basis: min(340px, 88vw);
  }
}

@media (max-width: 620px) {
  .profile-chip span:not(.avatar-photo):not([data-social-icon]) {
    display: none;
  }

  .profile-chip {
    gap: 0;
  }

  .avatar-photo {
    height: 38px;
    width: 38px;
  }

  .slide-card {
    min-height: 330px;
  }

  .sober-copy h2,
  .notice-ad h2,
  .huddle-banner h2 {
    font-size: 24px;
  }

  .sober-logo span,
  .sober-logo strong {
    font-size: 32px;
  }

  .section-head h2,
  .section-head h1 {
    font-size: 22px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Inter, Arial, sans-serif;
}

body[data-flow="onboarding"] {
  background: #ffffff;
  color: #080d3d;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.onboarding-shell {
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 900px;
  overflow: hidden;
  position: relative;
}

.screen.active {
  display: block;
}

.mockup-hero {
  background:
    linear-gradient(180deg, rgba(15, 23, 96, 0.01), rgba(15, 23, 96, 0.01)),
    url("./assets/onboarding/header-source.png") center top / 1536px 1024px no-repeat;
  color: #ffffff;
  height: 330px;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.mockup-hero .mockup-nav,
.mockup-hero .brand-mini.floating,
.mockup-hero .floating-cta,
.mockup-hero .mockup-copy {
  display: none;
}

.mockup-hero.short {
  height: 330px;
}

.mockup-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 40px;
  position: absolute;
  right: 48px;
  top: 24px;
  z-index: 2;
}

.brand-mini {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 500;
  gap: 9px;
}

.brand-mini.floating {
  left: 40px;
  position: absolute;
  top: 32px;
  z-index: 2;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.ghost-link {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 0;
}

.pill-link {
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(28, 17, 69, 0.16);
  color: #6335e8;
  font-size: 15px;
  font-weight: 700;
  height: 38px;
  padding: 0 25px;
}

.floating-cta {
  position: absolute;
  right: 48px;
  top: 24px;
  z-index: 2;
}

.mockup-copy {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 84px;
  transform: translateX(-50%);
  width: min(620px, 80vw);
}

.word-logo {
  display: block;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1;
  margin-bottom: 22px;
  position: relative;
}

.mockup-copy h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 13px;
}

.mockup-copy p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.logo-mark {
  background: url("./assets/onboarding/parachute-icon.png") center / contain no-repeat;
  border-radius: 50%;
  display: inline-block;
  height: 32px;
  position: relative;
  width: 32px;
}

.logo-mark::before {
  content: none;
}

.logo-mark::after {
  content: none;
}

.hero-logo,
.step-badge {
  align-items: center;
  background: linear-gradient(145deg, #2f73e9, #8f38e8);
  border-radius: 50%;
  display: inline-flex;
  height: 86px;
  justify-content: center;
  width: 86px;
}

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

.hero-logo .logo-mark,
.step-badge .logo-mark {
  background: transparent;
  height: 62px;
  width: 62px;
}

.hero-logo .logo-mark::before,
.step-badge .logo-mark::before {
  height: 30px;
  left: 11px;
  top: 17px;
  width: 40px;
}

.hero-logo .logo-mark::after,
.step-badge .logo-mark::after {
  border-bottom-width: 24px;
  border-left-width: 23px;
  border-right-width: 23px;
  bottom: 11px;
  left: 8px;
}

.step-badge {
  border: 6px solid #ffffff;
  height: 88px;
  left: 50%;
  position: absolute;
  top: -48px;
  transform: translateX(-50%);
  width: 88px;
}

.step-card {
  margin: 0 auto;
  padding-top: 48px;
  position: relative;
  text-align: center;
  width: min(572px, calc(100vw - 48px));
  z-index: 1;
}

.step-card h1,
.final-card h1,
.welcome-panel h1 {
  color: #090d3d;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.18;
  margin: 0;
}

.step-subtitle,
.lead {
  color: #555b91;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin: 11px 0 24px;
}

.compact-form {
  padding-top: 89px;
}

.input-row,
.field-label input,
.field-label select {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9dbee;
  border-radius: 9px;
  color: #121744;
  display: flex;
  height: 53px;
  text-align: left;
  width: 100%;
}

.input-row {
  gap: 17px;
  margin: 0 auto 14px;
  padding: 0 17px;
}

.input-row.full {
  margin-top: 9px;
}

.input-row input,
.field-label input,
.field-label select {
  border: 0;
  color: #161a47;
  flex: 1;
  min-width: 0;
  outline: 0;
}

.field-label input,
.field-label select {
  margin-top: 8px;
  padding: 0 15px;
}

.input-row input::placeholder,
.field-label input::placeholder {
  color: #5d6397;
  opacity: 1;
}

.eye {
  align-items: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2359608f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")
    center / 23px 23px no-repeat;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  flex: none;
  height: 36px;
  justify-content: center;
  margin-right: -6px;
  position: relative;
  width: 36px;
}

.eye:hover,
.eye:focus-visible {
  background-color: #f5f2ff;
  outline: 2px solid #dcd6ff;
  outline-offset: 2px;
}

.eye.is-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2359608f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.7 5.1A10.9 10.9 0 0 1 12 5c6.5 0 10 7 10 7a17.2 17.2 0 0 1-3.1 4.1'/%3E%3Cpath d='M6.6 6.6A17.7 17.7 0 0 0 2 12s3.5 7 10 7a10.7 10.7 0 0 0 4.3-.9'/%3E%3Cpath d='M14.1 14.1a3 3 0 0 1-4.2-4.2'/%3E%3Cpath d='m2 2 20 20'/%3E%3C/svg%3E");
}

.primary {
  align-items: center;
  background: linear-gradient(135deg, #8f38e8 0%, #3939df 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 13px 24px rgba(82, 58, 215, 0.2);
  color: #ffffff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  padding: 0 38px;
  text-decoration: none;
}

.primary.wide,
.form-submit {
  width: min(388px, 100%);
}

.compact-form .form-submit {
  margin-top: 19px;
}

.terms {
  color: #4e5587;
  font-size: 14px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.terms a {
  color: #6335e8;
  text-decoration: underline;
}

.profile-form {
  padding-top: 56px;
  width: min(570px, calc(100vw - 48px));
}

.profile-form .step-subtitle {
  font-size: 16px;
  margin-bottom: 16px;
}

.field-label {
  color: #070b3c;
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 18px;
  text-align: left;
}

.outline-action {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #6e44ee;
  border-radius: 8px;
  color: #5634df;
  display: flex;
  font-weight: 800;
  gap: 11px;
  height: 45px;
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}

.outline-action.active {
  background: #f7f3ff;
}

.avatar-picker {
  align-items: center;
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr auto 1fr;
  margin: 48px auto 20px;
}

.avatar-picker > span {
  background: #dfe1ee;
  height: 1px;
}

.avatar-picker p {
  color: #65699b;
  font-size: 15px;
  margin: 0;
}

.avatar-picker button {
  border: 0;
  border-radius: 50%;
  height: 68px;
  width: 68px;
}

.avatar-picker .avatar {
  grid-row: 2;
}

.avatar.selected {
  background: radial-gradient(circle at 50% 37%, #2454ba 0 15%, transparent 16%), radial-gradient(circle at 50% 83%, #4732cc 0 31%, transparent 32%), linear-gradient(#62c4ee, #eceafe);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #6844ef;
}

.scenic.purple {
  background: linear-gradient(150deg, #693ce1, #f186b0 55%, #47226d);
}

.scenic.sunset {
  background: linear-gradient(160deg, #f394a7, #f46291 46%, #33225d 47%, #572073);
}

.scenic.blue {
  background: radial-gradient(circle at 52% 74%, #07112c 0 36%, transparent 37%), linear-gradient(150deg, #063e8f, #061036);
}

.scenic.water {
  background: linear-gradient(#c7d4f0 0 45%, #ef99a4 46% 52%, #7bc7e4 53%);
}

.avatar.leaf {
  background: #d7dfc8;
  position: relative;
}

.avatar.leaf::before {
  color: #8aa26d;
  content: "leaf";
  font-size: 0;
}

.avatar.leaf::after {
  background: #8aa26d;
  border-radius: 80% 0 80% 0;
  content: "";
  height: 33px;
  left: 31px;
  position: absolute;
  top: 17px;
  transform: rotate(33deg);
  width: 15px;
}

.avatar.more {
  background: #dcdeee;
  color: #7d819d;
  font-size: 0;
  position: relative;
}

.avatar.more::before {
  content: "...";
  font-size: 24px;
  font-weight: 800;
  left: 0;
  letter-spacing: 3px;
  position: absolute;
  right: 0;
  top: 18px;
}

body[data-flow="onboarding"] .avatar-picker {
  align-items: center;
  column-gap: 18px;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  justify-content: center;
  margin: 44px auto 24px;
  max-width: 690px;
  row-gap: 18px;
  text-align: center;
}

body[data-flow="onboarding"] .avatar-picker > p {
  color: #5c6395;
  font-size: 18px;
  font-weight: 600;
  justify-self: center;
  white-space: nowrap;
}

body[data-flow="onboarding"] .avatar-picker > span {
  background: #d9ddec;
  width: 100%;
}

body[data-flow="onboarding"] .avatar-upload-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

body[data-flow="onboarding"] .avatar-picker .avatar {
  align-items: center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 20, 58, 0.08);
  display: inline-flex;
  grid-row: 2;
  height: 76px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  width: 76px;
}

body[data-flow="onboarding"] .avatar-picker .avatar:hover,
body[data-flow="onboarding"] .avatar-picker .avatar:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

body[data-flow="onboarding"] .avatar-picker .avatar.selected {
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px #6844ef, 0 14px 24px rgba(86, 52, 231, 0.18);
}

body[data-flow="onboarding"] .avatar.upload {
  background:
    linear-gradient(#f8f9ff, #f8f9ff) padding-box,
    linear-gradient(135deg, #8b35e9, #343ee7) border-box;
  border: 2px dashed transparent;
}

body[data-flow="onboarding"] .avatar.upload > span {
  color: #6547f2;
  height: 30px;
  position: relative;
  width: 30px;
}

body[data-flow="onboarding"] .avatar.upload > span::before {
  border: 3px solid currentColor;
  border-radius: 8px;
  bottom: 0;
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  width: 26px;
}

body[data-flow="onboarding"] .avatar.upload > span::after {
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  content: "";
  height: 14px;
  left: 9px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 14px;
}

body[data-flow="onboarding"] .avatar.upload.has-image {
  background-position: center;
  background-size: cover;
  border: 0;
}

body[data-flow="onboarding"] .avatar.upload.has-image > span {
  display: none;
}

body[data-flow="onboarding"] .icon-avatar > span {
  color: #ffffff;
  height: 38px;
  position: relative;
  width: 38px;
}

body[data-flow="onboarding"] .icon-avatar.sunrise {
  background: linear-gradient(145deg, #ff8a73, #8b35e9);
}

body[data-flow="onboarding"] .icon-avatar.mountain {
  background: linear-gradient(145deg, #123c7c, #77c7e7);
}

body[data-flow="onboarding"] .icon-avatar.waves {
  background: linear-gradient(145deg, #2f73e9, #7ad7c4);
}

body[data-flow="onboarding"] .icon-avatar.coffee {
  background: linear-gradient(145deg, #7a4d2f, #d8a77e);
}

body[data-flow="onboarding"] .icon-avatar.leaf {
  background: linear-gradient(145deg, #cdd8bc, #6f9b5c);
}

body[data-flow="onboarding"] .icon-avatar.stars {
  background: linear-gradient(145deg, #3b2a7a, #9b6bff);
}

body[data-flow="onboarding"] [data-avatar-icon="sunrise"]::before {
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  bottom: 10px;
  content: "";
  height: 18px;
  left: 4px;
  position: absolute;
  width: 30px;
}

body[data-flow="onboarding"] [data-avatar-icon="sunrise"]::after {
  background: currentColor;
  border-radius: 999px;
  bottom: 8px;
  box-shadow: 0 8px 0 currentColor;
  content: "";
  height: 3px;
  left: 1px;
  position: absolute;
  width: 36px;
}

body[data-flow="onboarding"] [data-avatar-icon="mountain"]::before {
  border-bottom: 25px solid currentColor;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  bottom: 5px;
  content: "";
  left: 2px;
  position: absolute;
}

body[data-flow="onboarding"] [data-avatar-icon="mountain"]::after {
  border-bottom: 18px solid rgba(255, 255, 255, 0.72);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  bottom: 5px;
  content: "";
  position: absolute;
  right: 0;
}

body[data-flow="onboarding"] [data-avatar-icon="waves"]::before,
body[data-flow="onboarding"] [data-avatar-icon="waves"]::after {
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  content: "";
  height: 16px;
  position: absolute;
  width: 26px;
}

body[data-flow="onboarding"] [data-avatar-icon="waves"]::before {
  left: 3px;
  top: 8px;
}

body[data-flow="onboarding"] [data-avatar-icon="waves"]::after {
  bottom: 7px;
  right: 3px;
  transform: rotate(180deg);
}

body[data-flow="onboarding"] [data-avatar-icon="coffee"]::before {
  border: 3px solid currentColor;
  border-radius: 0 0 10px 10px;
  bottom: 7px;
  content: "";
  height: 20px;
  left: 6px;
  position: absolute;
  width: 24px;
}

body[data-flow="onboarding"] [data-avatar-icon="coffee"]::after {
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  bottom: 12px;
  content: "";
  height: 12px;
  position: absolute;
  right: 0;
  width: 10px;
}

body[data-flow="onboarding"] [data-avatar-icon="leaf"]::before {
  background: currentColor;
  border-radius: 80% 0 80% 0;
  content: "";
  height: 30px;
  left: 14px;
  position: absolute;
  top: 4px;
  transform: rotate(35deg);
  width: 15px;
}

body[data-flow="onboarding"] [data-avatar-icon="leaf"]::after {
  background: rgba(255, 255, 255, 0.75);
  content: "";
  height: 24px;
  left: 19px;
  position: absolute;
  top: 8px;
  transform: rotate(35deg);
  width: 2px;
}

body[data-flow="onboarding"] [data-avatar-icon="stars"]::before {
  color: currentColor;
  content: "*";
  font-size: 42px;
  font-weight: 800;
  left: 3px;
  line-height: 1;
  position: absolute;
  top: -1px;
}

body[data-flow="onboarding"] [data-avatar-icon="stars"]::after {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 14px 8px 0 currentColor, 25px -2px 0 currentColor;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  top: 27px;
  width: 5px;
}

body[data-flow="onboarding"] .avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

body[data-flow="onboarding"] .avatar-picker > span {
  flex: 1 1 88px;
  max-width: 160px;
  order: 1;
}

body[data-flow="onboarding"] .avatar-picker > p {
  flex: 0 0 auto;
  order: 1;
  white-space: nowrap !important;
}

body[data-flow="onboarding"] .avatar-picker .avatar {
  flex: 0 0 auto;
  order: 2;
}

body[data-flow="onboarding"] .avatar.upload,
body[data-flow="onboarding"] .avatar.upload.selected {
  background:
    linear-gradient(#f8f9ff, #f8f9ff) padding-box,
    linear-gradient(135deg, #8b35e9, #343ee7) border-box !important;
  border: 2px dashed transparent;
}

body[data-flow="onboarding"] .avatar.upload.has-image,
body[data-flow="onboarding"] .avatar.upload.has-image.selected {
  background-position: center !important;
  background-size: cover !important;
  border: 0;
}

body[data-flow="onboarding"] .avatar-picker {
  display: block;
  margin: 42px auto 24px;
  max-width: 720px;
  text-align: center;
}

body[data-flow="onboarding"] .avatar-picker > span,
body[data-flow="onboarding"] .avatar-picker > p {
  display: none;
}

body[data-flow="onboarding"] .avatar-heading {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  margin: 0 auto 24px;
}

body[data-flow="onboarding"] .avatar-heading span {
  background: #d9ddec;
  height: 1px;
}

body[data-flow="onboarding"] .avatar-heading p {
  color: #5c6395;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

body[data-flow="onboarding"] .avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

body[data-flow="onboarding"] .avatar-picker .avatar {
  align-items: center;
  background: #f8f9ff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(18, 20, 58, 0.08);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 74px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  width: 74px;
}

body[data-flow="onboarding"] .avatar-picker .avatar:hover,
body[data-flow="onboarding"] .avatar-picker .avatar:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

body[data-flow="onboarding"] .avatar-picker .avatar.selected {
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px #6844ef, 0 16px 26px rgba(86, 52, 231, 0.16);
}

body[data-flow="onboarding"] .avatar svg {
  fill: none;
  height: 36px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 36px;
}

body[data-flow="onboarding"] .avatar.upload,
body[data-flow="onboarding"] .avatar.upload.selected {
  background:
    linear-gradient(#f8f9ff, #f8f9ff) padding-box,
    linear-gradient(135deg, #8b35e9, #343ee7) border-box !important;
  border: 2px dashed transparent;
  color: #6547f2;
}

body[data-flow="onboarding"] .avatar.upload.has-image,
body[data-flow="onboarding"] .avatar.upload.has-image.selected {
  background-position: center !important;
  background-size: cover !important;
  border: 0;
}

body[data-flow="onboarding"] .avatar.upload.has-image svg {
  display: none;
}

body[data-flow="onboarding"] .avatar.dog {
  background: linear-gradient(145deg, #8b5e3c, #d7a177);
}

body[data-flow="onboarding"] .avatar.cat {
  background: linear-gradient(145deg, #5d3fd3, #b36cff);
}

body[data-flow="onboarding"] .avatar.mountain {
  background: linear-gradient(145deg, #123c7c, #54b7df);
}

body[data-flow="onboarding"] .avatar.tree {
  background: linear-gradient(145deg, #527c40, #a6c77e);
}

body[data-flow="onboarding"] .avatar.coffee {
  background: linear-gradient(145deg, #6b452f, #c58d60);
}

body[data-flow="onboarding"] .avatar.eight-ball {
  background: linear-gradient(145deg, #111735, #2f3d73);
}

body[data-flow="onboarding"] .profile-nav-row {
  margin-top: 28px;
}

/* Keep the details-step date field from inheriting generic text-input styling. */
body[data-flow="onboarding"] .profile-more label.field-label .input-row.full {
  align-items: center;
  background: #fff;
  border: 1px solid var(--onboard-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.035);
  display: flex;
  gap: 16px;
  height: 58px;
  margin-top: 10px;
  padding: 0 18px;
  width: 100%;
}

body[data-flow="onboarding"] .profile-more label.field-label .input-row.full input[type="date"] {
  appearance: auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111542;
  display: block;
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  height: 100%;
  margin: 0 !important;
  min-width: 0;
  outline: 0;
  padding: 0 !important;
  width: auto;
}

body[data-flow="onboarding"] .profile-more label.field-label .input-row.full input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

body[data-flow="onboarding"] .profile-more label.field-label .input-row.full input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  display: block;
  margin-left: auto;
  opacity: 0.75;
}

body[data-flow="onboarding"] .profile-more fieldset {
  margin-bottom: 26px;
}

body[data-flow="onboarding"] .profile-more .field-label {
  margin-bottom: 26px;
}

body[data-flow="onboarding"] .profile-more .input-row.full {
  align-items: center;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.035);
  display: flex;
  gap: 16px;
  height: 58px;
  margin-top: 10px;
  padding: 0 18px;
}

body[data-flow="onboarding"] .profile-more .input-row.full .line-icon {
  color: #111747;
  height: 26px;
  width: 26px;
}

body[data-flow="onboarding"] .profile-more .input-row.full input[type="date"] {
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #111542;
  display: block;
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  height: 100%;
  margin: 0;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: auto;
}

body[data-flow="onboarding"] .profile-more .input-row.full input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

body[data-flow="onboarding"] .profile-more .input-row.full input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  margin-left: auto;
  opacity: 0.65;
}

body[data-flow="onboarding"] .profile-more .choice-grid label > span {
  min-height: 58px;
}

/* Final popup spacing override */
body[data-app="social"] .app-dialog .modal-actions {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

body[data-app="social"] .app-dialog .modal-actions button,
body[data-app="social"] .app-dialog .modal-primary,
body[data-app="social"] .app-dialog .modal-form button {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  justify-content: center;
  min-height: 60px;
  padding: 16px 30px;
}

/* Composer and modal comfort pass */
body[data-app="social"] .profile-edit-link {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  box-shadow: 0 14px 30px rgba(74, 54, 219, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  justify-content: center;
  margin: 16px auto 6px;
  min-height: 50px;
  padding: 13px 28px;
}

body[data-app="social"] .post-composer-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 20, 58, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: 58px 1fr;
  margin: 26px 0;
  padding: 16px 18px;
}

body[data-app="social"] .post-composer-card > button {
  background: #f1f2f6;
  border: 0;
  border-radius: 999px;
  color: #687087;
  font-size: 20px;
  min-height: 56px;
  padding: 0 26px;
  text-align: left;
  width: 100%;
}

body[data-app="social"] .inline-post-form {
  display: grid;
  gap: 12px;
  grid-column: 2;
}

body[data-app="social"] .inline-post-form[hidden] {
  display: none;
}

body[data-app="social"] .inline-post-form textarea {
  border: 1px solid #dfe3f3;
  border-radius: 16px;
  color: #111542;
  font: inherit;
  min-height: 112px;
  padding: 16px;
  resize: vertical;
}

body[data-app="social"] .inline-post-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-app="social"] .inline-post-form button {
  border-radius: 999px;
  min-height: 46px;
  padding: 10px 22px;
  width: auto;
}

body[data-app="social"] .inline-post-form button:first-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

body[data-app="social"] .inline-post-form button:last-child {
  background: #f7f4ff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

body[data-app="social"] .article-submit-card {
  margin-top: 18px;
}

body[data-app="social"] .article-submit-card p {
  color: #687087;
  line-height: 1.5;
  margin: -6px 0 12px;
}

body[data-app="social"] .article-submit-card button {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  width: fit-content;
}

body[data-app="social"] .inline-article-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

body[data-app="social"] .inline-article-form[hidden] {
  display: none;
}

body[data-app="social"] .topic-button-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

body[data-app="social"] .topic-button-grid button {
  background: #f7f4ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
}

body[data-app="social"] .topic-button-grid button.selected {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border-color: transparent;
  color: #fff;
}

body[data-app="social"] .inline-article-form input,
body[data-app="social"] .inline-article-form textarea {
  border: 1px solid #dfe3f3;
  border-radius: 14px;
  color: #111542;
  font: inherit;
  padding: 14px 16px;
}

body[data-app="social"] .inline-article-form textarea {
  min-height: 150px;
  resize: vertical;
}

body[data-app="social"] .inline-article-form > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-app="social"] .inline-article-form > div:last-child button {
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 24px;
}

body[data-app="social"] .inline-article-form > div:last-child button:first-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

body[data-app="social"] .inline-article-form > div:last-child button:last-child {
  background: #f7f4ff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

body[data-app="social"] .app-dialog .join-meeting-button {
  display: inline-flex;
  margin-top: 26px;
  min-width: 220px;
}

body[data-app="social"] .photo-edit-row {
  align-items: center;
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  padding: 16px;
}

body[data-app="social"] .photo-edit-row .avatar-photo {
  height: 82px;
  width: 82px;
}

body[data-app="social"] .edit-form small {
  color: #687087;
  font-size: 13px;
  font-weight: 600;
}

body[data-app="social"] .composer-tools {
  display: flex;
  gap: 12px;
}

body[data-app="social"] .composer-tools span {
  align-items: center;
  background: #f7f4ff;
  border-radius: 12px;
  color: #5634e7;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

body[data-app="social"] .app-dialog {
  padding-bottom: 34px;
}

body[data-app="social"] .modal-actions {
  align-items: stretch;
  gap: 18px;
  margin-top: 22px;
}

body[data-app="social"] .modal-actions button,
body[data-app="social"] .modal-primary,
body[data-app="social"] .modal-form button,
body[data-app="social"] .success-state button {
  border-radius: 16px;
  font-size: 16px;
  min-height: 58px;
  padding: 16px 28px;
}

body[data-app="social"] .modal-form {
  gap: 16px;
}

body[data-app="social"] .modal-form input,
body[data-app="social"] .modal-form select,
body[data-app="social"] .modal-form textarea {
  margin-top: 4px;
}

@media (max-width: 780px) {
  body[data-app="social"] .post-composer-card {
    grid-template-columns: 48px 1fr;
  }

  body[data-app="social"] .post-composer-card > button {
    font-size: 16px;
    padding: 0 18px;
  }

  body[data-app="social"] .inline-post-form {
    grid-column: 1 / -1;
  }

}

body[data-flow="onboarding"] .profile-more .choice-grid.four {
  grid-template-columns: 1.2fr 1fr 0.86fr 1fr;
}

body[data-flow="onboarding"] .profile-more select {
  background-position:
    calc(100% - 24px) 25px,
    calc(100% - 17px) 25px,
    0 0;
  color: #111542;
  font-size: 16px;
  font-weight: 800;
  height: 58px;
}

.wide-card {
  padding-top: 52px;
  width: min(652px, calc(100vw - 48px));
}

.profile-more .step-subtitle {
  font-size: 16px;
  margin-bottom: 30px;
}

fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
}

legend {
  color: #070b3c;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 9px;
}

.choice-grid {
  display: grid;
  gap: 13px;
}

.choice-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid.four {
  grid-template-columns: 1.35fr 1.1fr 0.95fr 1.05fr;
}

.choice-grid label {
  min-width: 0;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
}

.choice-grid label > span {
  align-items: center;
  border: 1px solid #d7daee;
  border-radius: 8px;
  color: #575b99;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  height: 53px;
  justify-content: center;
  line-height: 1.2;
  padding: 0 12px;
  text-align: center;
}

.choice-grid input:checked + span {
  background: #f7f3ff;
  border-color: #6944ee;
  color: #5132dc;
}

.profile-more select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #7047eb 50%) calc(100% - 24px) 23px / 8px 8px no-repeat,
    linear-gradient(135deg, #7047eb 50%, transparent 50%) calc(100% - 17px) 23px / 8px 8px no-repeat,
    #ffffff;
  color: #61659d;
}

.nav-row {
  align-items: center;
  display: flex;
  gap: 46px;
  justify-content: flex-end;
  margin-top: 42px;
  padding-top: 0;
}

.back {
  background: transparent;
  border: 0;
  color: #5a5d83;
  font-size: 18px;
  font-weight: 800;
  height: 48px;
  padding: 0;
}

.next-small {
  height: 54px;
  width: 156px;
}

.toggle-card {
  padding-top: 52px;
  width: min(646px, calc(100vw - 48px));
}

.toggle-card .step-subtitle {
  margin-bottom: 18px;
}

.setting {
  align-items: center;
  border: 1px solid #dfe1ee;
  border-radius: 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: 58px 1fr 52px;
  margin-bottom: 6px;
  min-height: 97px;
  padding: 18px 24px 18px 16px;
  text-align: left;
}

.setting.simple {
  min-height: 80px;
}

.setting strong {
  color: #080d3d;
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.setting span:nth-child(2) {
  color: #444a7d;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.setting input[type="checkbox"] {
  appearance: none;
  background: #aaadbd;
  border-radius: 999px;
  height: 30px;
  margin: 0;
  position: relative;
  width: 50px;
}

.setting input[type="checkbox"]::after {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(17, 18, 54, 0.17);
  content: "";
  height: 25px;
  left: 2px;
  position: absolute;
  top: 2.5px;
  transition: transform 0.18s ease;
  width: 25px;
}

.setting input[type="checkbox"]:checked {
  background: #11b668;
}

.setting input[type="checkbox"]:checked::after {
  transform: translateX(21px);
}

.privacy-card .setting {
  margin-bottom: 5px;
  min-height: 102px;
}

.privacy-card .setting.simple {
  min-height: 80px;
}

.soft-icon {
  align-items: center;
  background: #eee9ff;
  border-radius: 14px;
  color: #6338e6;
  display: inline-flex;
  flex: none;
  height: 58px;
  justify-content: center;
  position: relative;
  width: 58px;
}

.soft-icon::before,
.line-icon::before {
  content: attr(data-icon);
  font-size: 0;
}

.line-icon,
.soft-icon {
  --icon: #6338e6;
}

.line-icon {
  color: var(--icon);
  display: inline-block;
  flex: none;
  height: 24px;
  position: relative;
  width: 24px;
}

.line-icon svg,
.soft-icon svg {
  display: block;
  fill: none;
  height: 100%;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 100%;
}

.input-row .line-icon,
.field-label .line-icon,
.choice-grid .line-icon {
  --icon: #111747;
}

.outline-action .line-icon,
.choice-grid input:checked + span .line-icon {
  --icon: #6338e6;
}

.soft-icon svg {
  height: 31px;
  width: 31px;
}

.welcome-item .soft-icon svg {
  height: 40px;
  width: 40px;
}

.line-icon.large svg {
  stroke-width: 1.65;
}

.step-badge .line-icon.large {
  --icon: #ffffff;
  height: 46px;
  width: 46px;
}

.hero-logo .line-icon[data-icon="parachute"] {
  height: 58px;
  width: 58px;
}

.hero-logo .line-icon[data-icon="parachute"] svg {
  stroke-width: 2.3;
}

.line-icon::before,
.line-icon::after,
.soft-icon::before,
.soft-icon::after {
  content: none !important;
  display: none !important;
}

.line-icon.large {
  --icon: #ffffff;
  height: 44px;
  width: 44px;
}

.line-icon[data-icon="user"]::after,
.soft-icon[data-icon="user"]::after,
.line-icon[data-icon="profile"]::after {
  border: 3px solid var(--icon);
  border-radius: 50% 50% 44% 44%;
  content: "";
  height: 11px;
  left: 5px;
  position: absolute;
  top: 4px;
  width: 11px;
}

.line-icon[data-icon="user"]::before,
.soft-icon[data-icon="user"]::before,
.line-icon[data-icon="profile"]::before {
  border: 3px solid var(--icon);
  border-radius: 50% 50% 0 0;
  bottom: 3px;
  content: "";
  height: 10px;
  left: 2px;
  position: absolute;
  width: 18px;
}

.line-icon.large[data-icon="profile"]::after {
  height: 19px;
  left: 11px;
  top: 5px;
  width: 19px;
}

.line-icon.large[data-icon="profile"]::before {
  bottom: 5px;
  height: 17px;
  left: 6px;
  width: 30px;
}

.line-icon[data-icon="mail"]::after {
  border: 2px solid #0b103f;
  border-radius: 3px;
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 5px;
  width: 20px;
}

.line-icon[data-icon="mail"]::before {
  border-bottom: 2px solid #0b103f;
  border-right: 2px solid #0b103f;
  content: "";
  height: 9px;
  left: 6px;
  position: absolute;
  top: 4px;
  transform: rotate(45deg);
  width: 9px;
  z-index: 1;
}

.line-icon[data-icon="phone"]::after {
  border: 2px solid #0b103f;
  border-left-width: 4px;
  border-radius: 8px 8px 8px 2px;
  content: "";
  height: 17px;
  left: 7px;
  position: absolute;
  top: 3px;
  transform: rotate(-32deg);
  width: 8px;
}

.line-icon[data-icon="lock"]::after,
.soft-icon[data-icon="lock"]::after,
.line-icon[data-icon="shield-lock"]::before {
  border: 3px solid var(--icon);
  border-radius: 3px;
  bottom: 3px;
  content: "";
  height: 13px;
  left: 4px;
  position: absolute;
  width: 16px;
}

.line-icon[data-icon="lock"]::before,
.soft-icon[data-icon="lock"]::before {
  border: 3px solid var(--icon);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
  height: 10px;
  left: 7px;
  position: absolute;
  top: 2px;
  width: 10px;
}

.line-icon.large[data-icon="shield-lock"]::after {
  border: 4px solid #ffffff;
  border-radius: 50% 50% 44% 44%;
  content: "";
  inset: 3px 5px 1px;
  position: absolute;
}

.line-icon.large[data-icon="shield-lock"]::before {
  border-color: #ffffff;
  bottom: 11px;
  left: 14px;
}

.line-icon[data-icon="calendar"]::after,
.soft-icon[data-icon="calendar"]::after {
  border: 3px solid var(--icon);
  border-radius: 3px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 4px;
  width: 19px;
}

.line-icon[data-icon="calendar"]::before,
.soft-icon[data-icon="calendar"]::before {
  background: var(--icon);
  content: "";
  height: 3px;
  left: 4px;
  position: absolute;
  top: 10px;
  width: 17px;
}

.line-icon[data-icon="bell"]::after {
  border: 4px solid #ffffff;
  border-radius: 18px 18px 8px 8px;
  content: "";
  height: 25px;
  left: 10px;
  position: absolute;
  top: 5px;
  width: 24px;
}

.line-icon[data-icon="bell"]::before {
  background: #ffffff;
  border-radius: 99px;
  bottom: 4px;
  content: "";
  height: 4px;
  left: 18px;
  position: absolute;
  width: 10px;
}

.soft-icon[data-icon="people"]::after {
  border: 3px solid var(--icon);
  border-radius: 8px 8px 3px 3px;
  content: "";
  height: 22px;
  left: 13px;
  position: absolute;
  top: 23px;
  width: 32px;
}

.soft-icon[data-icon="people"]::before {
  border: 3px solid var(--icon);
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 22px;
  position: absolute;
  top: 12px;
  width: 9px;
}

.soft-icon[data-icon="chat"]::after,
.soft-icon[data-icon="post"]::after {
  border: 3px solid var(--icon);
  border-radius: 6px;
  content: "";
  height: 24px;
  left: 14px;
  position: absolute;
  top: 14px;
  width: 30px;
}

.soft-icon[data-icon="chat"]::before,
.soft-icon[data-icon="post"]::before {
  border-bottom: 3px solid var(--icon);
  border-left: 3px solid var(--icon);
  bottom: 13px;
  content: "";
  height: 8px;
  left: 22px;
  position: absolute;
  transform: rotate(-35deg);
  width: 8px;
}

.soft-icon[data-icon="shield"]::after,
.soft-icon[data-icon="shield-lock"]::after {
  border: 3px solid var(--icon);
  border-radius: 50% 50% 45% 45%;
  content: "";
  inset: 10px 13px 8px;
  position: absolute;
}

.soft-icon[data-icon="tag"]::after {
  border: 3px solid var(--icon);
  border-radius: 6px 6px 6px 0;
  content: "";
  height: 24px;
  left: 17px;
  position: absolute;
  top: 15px;
  transform: rotate(-45deg);
  width: 24px;
}

.soft-icon[data-icon="globe"]::after {
  border: 3px solid var(--icon);
  border-radius: 50%;
  content: "";
  inset: 13px;
  position: absolute;
}

.soft-icon[data-icon="globe"]::before {
  border-left: 3px solid var(--icon);
  border-right: 3px solid var(--icon);
  content: "";
  height: 29px;
  left: 23px;
  position: absolute;
  top: 14px;
  width: 9px;
}

.line-icon[data-icon="male"]::after {
  border: 3px solid var(--icon);
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 2px;
  position: absolute;
  top: 10px;
  width: 10px;
}

.line-icon[data-icon="male"]::before {
  border-right: 3px solid var(--icon);
  border-top: 3px solid var(--icon);
  content: "";
  height: 12px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 12px;
}

.line-icon[data-icon="female"]::after {
  border: 3px solid var(--icon);
  border-radius: 50%;
  content: "";
  height: 11px;
  left: 6px;
  position: absolute;
  top: 2px;
  width: 11px;
}

.line-icon[data-icon="female"]::before {
  background: var(--icon);
  box-shadow: 0 6px 0 var(--icon);
  content: "";
  height: 10px;
  left: 11px;
  position: absolute;
  top: 14px;
  width: 3px;
}

.line-icon[data-icon="building"]::after,
.line-icon[data-icon="home"]::after {
  border: 3px solid var(--icon);
  content: "";
  height: 15px;
  left: 4px;
  position: absolute;
  top: 7px;
  width: 16px;
}

.line-icon[data-icon="home"]::before {
  border-left: 3px solid var(--icon);
  border-top: 3px solid var(--icon);
  content: "";
  height: 13px;
  left: 5px;
  position: absolute;
  top: 4px;
  transform: rotate(45deg);
  width: 13px;
}

.line-icon[data-icon="no"]::after {
  border: 3px solid var(--icon);
  border-radius: 50%;
  content: "";
  inset: 2px;
  position: absolute;
}

.line-icon[data-icon="no"]::before {
  background: var(--icon);
  content: "";
  height: 3px;
  left: 4px;
  position: absolute;
  top: 11px;
  transform: rotate(-45deg);
  width: 17px;
}

.line-icon[data-icon="mask"]::after {
  background: var(--icon);
  border-radius: 2px 2px 10px 10px;
  content: "";
  height: 12px;
  left: 1px;
  position: absolute;
  top: 8px;
  width: 22px;
}

.line-icon[data-icon="mask"]::before {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 10px 0 0 #ffffff;
  content: "";
  height: 5px;
  left: 5px;
  position: absolute;
  top: 11px;
  width: 5px;
  z-index: 1;
}

.split-welcome {
  background: #21194d;
  display: none;
  grid-template-columns: minmax(360px, 48%) minmax(480px, 720px);
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.split-welcome.active {
  display: grid;
}

.welcome-visual {
  background-image: url("./assets/onboarding/welcome-split.png");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 210% 100%;
  border-radius: 0;
  min-height: calc(100vh - 48px);
}

.welcome-panel {
  align-self: start;
  background: #ffffff;
  border-radius: 24px;
  margin-left: -1px;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  padding: clamp(52px, 5vw, 84px) clamp(42px, 6vw, 96px) clamp(48px, 5vw, 70px);
  text-align: center;
}

.hero-logo-large {
  height: 100px;
  margin-bottom: 26px;
  width: 100px;
}

.welcome-panel h1 {
  font-size: clamp(32px, 3vw, 46px);
}

.welcome-panel .lead {
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
  line-height: 1.45;
  margin: 20px 0 32px;
}

.welcome-list {
  border-top: 0;
  margin: 0 auto 60px;
  max-width: 620px;
  padding-top: 18px;
  text-align: left;
}

.welcome-item {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 74px 1fr;
  margin-bottom: 38px;
}

.welcome-item .soft-icon {
  height: 78px;
  width: 78px;
}

.welcome-item p {
  color: #5a5f98;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.welcome-item strong {
  color: #080d3d;
  display: block;
  font-size: clamp(17px, 1.35vw, 22px);
  margin-bottom: 3px;
}

.final-welcome {
  min-height: 900px;
}

.final-card {
  margin: 50px auto 0;
  text-align: center;
  width: min(690px, calc(100vw - 48px));
}

.final-card .hero-logo {
  height: 88px;
  margin-bottom: 31px;
  width: 88px;
}

.final-card h1 {
  font-size: 40px;
  line-height: 1.24;
}

.final-card p {
  color: #51578d;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  margin: 35px 0 38px;
}

.onboarding-footer {
  display: none;
}

body[data-flow="onboarding"] .onboarding-footer {
  display: block;
}

body[data-flow="onboarding"] .site-footer {
  border-top: 0;
  margin-top: 0;
}

.site-header {
  align-items: center;
  display: grid;
  grid-template-columns: 48px 230px 1fr auto;
  gap: 26px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 16px 35px;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: 7px;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.menu-button span {
  background: #222430;
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 30px;
}

.brand {
  align-items: center;
  color: var(--purple);
  display: inline-flex;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1;
  position: relative;
}

.brand-word {
  margin-left: -1px;
}

.parachute-mark,
.cta-mark {
  background: url("./assets/onboarding/parachute-icon.png") center / contain no-repeat;
  display: inline-block;
  height: 38px;
  position: relative;
  width: 39px;
}

.parachute-mark .canopy,
.parachute-mark .cords,
.cta-mark .canopy,
.cta-mark .cords {
  display: none;
}

.parachute-mark .canopy,
.cta-mark .canopy {
  background: linear-gradient(135deg, var(--blue), var(--purple-2));
  border-radius: 100px 100px 14px 14px;
  display: block;
  height: 22px;
  left: 6px;
  position: absolute;
  top: 0;
  width: 28px;
}

.parachute-mark .canopy::after,
.cta-mark .canopy::after {
  background: var(--paper);
  border-radius: 0 0 16px 16px;
  bottom: -2px;
  content: "";
  height: 13px;
  left: -1px;
  position: absolute;
  width: 30px;
}

.parachute-mark .cords,
.cta-mark .cords {
  border-bottom: 14px solid var(--purple);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  bottom: 3px;
  height: 0;
  left: 6px;
  position: absolute;
  transform: rotate(180deg);
  width: 28px;
}

.parachute-mark .cords::before,
.parachute-mark .cords::after,
.cta-mark .cords::before,
.cta-mark .cords::after {
  background: var(--paper);
  content: "";
  height: 18px;
  position: absolute;
  top: -1px;
  width: 5px;
}

.parachute-mark .cords::before,
.cta-mark .cords::before {
  left: -4px;
  transform: rotate(-20deg);
}

.parachute-mark .cords::after,
.cta-mark .cords::after {
  right: -4px;
  transform: rotate(20deg);
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 39px;
  justify-content: center;
}

.main-nav a {
  color: #1f2230;
  font-size: 13px;
  font-weight: 500;
}

.auth-actions,
.hero-actions,
.store-buttons {
  align-items: center;
  display: flex;
  gap: 22px;
}

.button {
  align-items: center;
  border-radius: 16px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  min-width: 104px;
  padding: 0 28px;
  white-space: nowrap;
}

.button-outline {
  background: var(--paper);
  border: 1.5px solid var(--purple);
  color: var(--purple);
}

.button-solid {
  background: linear-gradient(135deg, var(--blue), var(--purple-2));
  box-shadow: 0 12px 23px rgba(95, 62, 220, 0.24);
  color: var(--paper);
}

.button-large {
  border-radius: 18px;
  height: 57px;
  min-width: 147px;
}

.button-white {
  background: var(--paper);
  color: var(--purple);
  height: 60px;
  min-width: 228px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 360px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 26px 16px 92px;
}

.hero-copy {
  padding-left: 18px;
}

.hero h1 {
  color: var(--ink);
  font-size: 49px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.23;
  margin: 0 0 18px;
}

.hero h1 span,
.features h2 {
  color: var(--purple);
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 45px;
  max-width: 385px;
}

.hero-media {
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.09));
}

.hero-media img {
  margin-left: auto;
  width: min(100%, 690px);
}

.features {
  margin: 0 auto;
  max-width: 1070px;
  padding: 0 16px 104px;
  text-align: center;
}

.features h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 55px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  min-height: 152px;
  padding: 0 36px;
  position: relative;
}

.feature + .feature {
  border-left: 1px solid var(--line);
}

.feature svg {
  fill: none;
  height: 56px;
  margin: 0 auto 26px;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  width: 56px;
}

.feature h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
}

.feature p {
  color: #384057;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mission {
  border-top: 1px solid #f1f1f5;
  min-height: 313px;
}

.split-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.split-copy {
  align-content: center;
  justify-self: start;
  max-width: 475px;
  padding: 52px 34px 52px 112px;
}

.eyebrow {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.split-copy h2,
.download h2 {
  color: var(--ink);
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.18;
  margin: 0;
}

.short-line {
  background: var(--purple);
  display: block;
  height: 3px;
  margin: 28px 0 26px;
  width: 56px;
}

.split-copy p:last-child,
.download-copy p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.download {
  background: #fbfaf8;
  min-height: 302px;
  overflow: hidden;
}

.download-copy {
  align-content: center;
  padding: 58px 28px 54px max(88px, calc((100vw - 1120px) / 2 + 16px));
}

.download h2 {
  font-size: 31px;
  margin-bottom: 23px;
}

.store-buttons {
  gap: 25px;
  margin-top: 29px;
}

.store-badge {
  align-items: center;
  background: #050505;
  border-radius: 6px;
  color: var(--paper);
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  gap: 9px;
  height: 42px;
  justify-content: center;
  min-width: 131px;
  padding: 5px 10px;
}

.store-badge small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: none;
}

.store-icon {
  display: block;
  height: 25px;
  position: relative;
  width: 24px;
}

.store-icon.apple::before {
  color: var(--paper);
  content: "●";
  font-size: 25px;
  left: 0;
  position: absolute;
  top: -4px;
}

.store-icon.play {
  background: conic-gradient(from 0.12turn, #00e0ff, #1ec85a, #ffd338, #ff4438, #00e0ff);
  clip-path: polygon(6% 0, 100% 50%, 6% 100%);
}

.phone-hand {
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
}

.phone-hand img {
  height: 100%;
  object-fit: cover;
  object-position: left center;
  width: 100%;
}

.cta {
  align-items: center;
  background: linear-gradient(135deg, #315fcf 0%, #a959e9 100%);
  border-radius: 10px;
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 24px auto 26px;
  max-width: 1040px;
  min-height: 141px;
  overflow: hidden;
  padding: 31px 187px 31px 53px;
  position: relative;
}

.cta h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 13px;
}

.cta p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 405px;
}

.cta-mark {
  bottom: 28px;
  height: 112px;
  opacity: 0.18;
  position: absolute;
  right: 28px;
  transform: scale(2.4);
  width: 116px;
}

.cta-mark .canopy {
  background: var(--paper);
}

.cta-mark .canopy::after {
  background: transparent;
}

.cta-mark .cords {
  border-bottom-color: var(--paper);
}

.site-footer {
  border-top: 1px solid #e7e8ef;
  margin: 0 auto;
  max-width: 1040px;
  padding: 46px 0 51px;
}

.footer-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 232px 1fr 160px 170px;
  gap: 50px;
}

.nickelsense {
  align-items: center;
  color: #4b4c58;
  display: inline-flex;
  font-size: 28px;
  font-weight: 500;
  gap: 9px;
}

.nickel-mark {
  background:
    radial-gradient(circle at center, transparent 0 31%, var(--purple) 32% 45%, transparent 46%),
    repeating-conic-gradient(from 0deg, var(--purple) 0 9deg, transparent 9deg 22deg);
  display: block;
  height: 51px;
  width: 51px;
}

.footer-grid p,
.footer-grid a {
  color: #696d79;
  display: block;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.footer-grid h2 {
  color: #303341;
  font-size: 13px;
  line-height: 1;
  margin: 0 0 14px;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 25px;
}

.social-links a {
  color: #555861;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.copyright {
  color: #9a9da8;
  font-size: 12px;
  margin: 55px 0 0;
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    gap: 18px;
    grid-template-columns: 38px 190px 1fr auto;
  }

  .brand {
    font-size: 32px;
  }

  .main-nav {
    gap: 18px;
  }

  .button {
    min-width: 90px;
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 38px 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-media img {
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .feature:nth-child(3) {
    border-left: 0;
  }

  .split-copy {
    padding-left: 52px;
  }

  .cta,
  .site-footer {
    margin-left: 16px;
    margin-right: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body[data-flow="onboarding"] {
    overflow-x: hidden;
  }

  body[data-flow="onboarding"] .screen {
    min-height: auto;
    overflow: visible;
  }

  .mockup-hero,
  .mockup-hero.short {
    background-size: 1339px 893px;
    height: 288px;
  }

  .mockup-nav {
    left: 24px;
    right: 24px;
    top: 24px;
  }

  .brand-mini,
  .brand-mini.floating {
    font-size: 0;
    gap: 0;
    left: 24px;
    top: 27px;
  }

  .brand-mini .logo-mark {
    height: 32px;
    width: 32px;
  }

  .ghost-link {
    display: none;
  }

  .pill-link {
    height: 38px;
    padding: 0 23px;
  }

  .floating-cta {
    right: 24px;
    top: 24px;
  }

  .mockup-copy {
    top: 78px;
    width: calc(100vw - 48px);
  }

  .word-logo {
    font-size: 42px;
    letter-spacing: 0;
    margin-bottom: 16px;
  }

  .mockup-copy h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .mockup-copy p {
    font-size: 13px;
  }

  .step-badge {
    height: 78px;
    top: -42px;
    width: 78px;
  }

  .hero-logo .logo-mark,
  .step-badge .logo-mark {
    height: 52px;
    width: 52px;
  }

  .compact-form,
  .profile-form,
  .wide-card,
  .toggle-card {
    padding-top: 66px;
    width: calc(100vw - 32px);
  }

  .step-card h1,
  .final-card h1,
  .welcome-panel h1 {
    font-size: 30px;
    letter-spacing: 0;
  }

  .step-subtitle,
  .lead {
    font-size: 16px;
  }

  .input-row,
  .field-label input,
  .field-label select {
    height: 53px;
  }

  .choice-grid.three,
  .choice-grid.four {
    grid-template-columns: 1fr;
  }

  .choice-grid label > span {
    justify-content: flex-start;
    text-align: left;
  }

  .setting {
    gap: 12px;
    grid-template-columns: 48px 1fr 50px;
    min-height: 88px;
    padding: 14px 12px;
  }

  .soft-icon {
    border-radius: 12px;
    height: 48px;
    width: 48px;
  }

  .setting strong {
    font-size: 15px;
  }

  .setting span:nth-child(2) {
    font-size: 13px;
  }

  .nav-row {
    gap: 22px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 32px;
  }

  .split-welcome {
    min-height: auto;
    padding: 0;
  }

  .split-welcome.active {
    display: block;
  }

  .welcome-visual {
    display: none;
  }

  .welcome-panel {
    border-radius: 0;
    margin: 0;
    min-height: auto;
    padding: 54px 28px 44px;
  }

  .welcome-panel .lead {
    font-size: 19px;
  }

  .welcome-item {
    gap: 18px;
    grid-template-columns: 60px 1fr;
  }

  .welcome-item .soft-icon {
    height: 60px;
    width: 60px;
  }

  .welcome-item p,
  .welcome-item strong {
    font-size: 16px;
  }

  .final-card {
    margin-top: 46px;
  }

  .final-card p {
    font-size: 18px;
  }

  .site-header {
    gap: 14px;
    padding-bottom: 24px;
  }

  .brand {
    font-size: 30px;
  }

  .auth-actions {
    display: none;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .store-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button-large,
  .button-white {
    width: 100%;
  }

  .feature-grid,
  .split-section,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    border-left: 0 !important;
    padding: 0 20px;
  }

  .split-copy,
  .download-copy {
    padding: 44px 24px;
  }

  .cta {
    gap: 28px;
    padding: 30px 28px;
  }

  .site-footer {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* HP2 final pass: these rules intentionally sit last to beat the earlier prototype styles. */
body[data-app="social"] {
  background: #f8f9ff;
  color: #070b23;
}

body[data-app="social"] svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 22px;
}

.hp2-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

.hp2-sidebar {
  gap: 22px;
  padding: 20px 14px 24px;
}

.hp2-sidebar .app-logo img {
  height: 50px;
  width: 50px;
}

.hp2-main {
  margin: 0 auto;
  max-width: 744px;
  padding: 22px 26px 36px;
  width: 100%;
}

.hp2-topbar {
  align-items: center;
  border-bottom: 1px solid #e7e9f2;
  display: grid;
  gap: 16px;
  grid-template-columns: 36px minmax(180px, 264px) 38px auto;
  margin: -22px -26px 28px;
  padding: 22px 26px 18px;
}

.hp2-search {
  align-items: center;
  background: #fff;
  border: 1px solid #f0f1f7;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(22, 24, 60, 0.04);
  color: #8b91a6;
  display: flex;
  gap: 10px;
  height: 40px;
  justify-self: center;
  max-width: 264px;
  padding: 0 17px;
  width: 100%;
}

.hp2-search input {
  background: transparent;
  border: 0;
  color: #222745;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.hp2-topbar .top-icon {
  position: relative;
}

.hp2-topbar .top-icon b {
  position: absolute;
  right: -2px;
  top: -2px;
}

.hp2-heading-row {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.home-heading h1 {
  font-size: 31px;
  margin-bottom: 9px;
}

.home-heading p {
  color: #5634e7;
  font-weight: 800;
  text-transform: uppercase;
}

.streak-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 22, 58, 0.05);
  color: #111542;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 28px auto 18px;
  min-width: 154px;
  padding: 14px 16px;
  text-align: left;
}

.hp2-hero,
.quick-actions,
.dashboard-section {
  margin-bottom: 30px;
}

.hp2-sober {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 18, 49, 0.9), rgba(8, 18, 49, 0.54)),
    radial-gradient(circle at 83% 27%, rgba(255, 166, 117, 0.9), transparent 26%),
    linear-gradient(150deg, #183e74, #172d60 46%, #db8873);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 262px;
  padding: 36px 34px 22px;
}

.hp2-sober h2 {
  font-size: 39px;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hp2-sober p {
  font-size: 20px;
}

.hp2-sober small {
  max-width: 440px;
}

.hp2-sober button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.quick-actions h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.quick-grid,
.group-card-grid {
  display: grid;
  gap: 12px;
}

.quick-grid {
  grid-template-columns: repeat(5, 1fr);
}

.group-card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.group-search {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 20, 58, 0.06);
  color: #7b8299;
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
  max-width: 680px;
  padding: 8px 10px 8px 18px;
}

.group-search svg {
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.group-search input {
  background: transparent;
  border: 0;
  color: #111542;
  font: inherit;
  min-height: 46px;
  outline: 0;
  width: 100%;
}

.group-search input::placeholder {
  color: #8b91a7;
}

.group-search button {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.group-search button svg {
  height: 20px;
  width: 20px;
}

.quick-grid button,
.option-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  color: #111542;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
  padding: 14px;
  text-align: center;
}

.quick-grid button > span,
.option-grid button > span {
  color: #7145ee;
  margin-bottom: 8px;
}

.quick-grid strong,
.option-grid strong {
  font-size: 12px;
  margin-bottom: 4px;
}

.quick-grid small,
.option-grid small {
  color: #687087;
  font-size: 11px;
  line-height: 1.35;
}

.group-card {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  overflow: hidden;
}

.group-card::before {
  background: linear-gradient(135deg, #ff9b77, #523bd8);
  content: "";
  display: block;
  height: 98px;
}

.group-card.coffee::before {
  background: radial-gradient(circle at 50% 45%, #8b552b, transparent 28%), linear-gradient(135deg, #6d3f22, #d8a77e);
}

.group-card.mountains::before {
  background: linear-gradient(135deg, #1e426f, #d6e8f6);
}

.group-card.dharma::before {
  background: linear-gradient(135deg, #f3bc61, #6e43e5);
}

.group-card span {
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: -28px 14px 12px;
  position: relative;
}

.group-card h3,
.group-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.group-card p {
  color: #687087;
  font-size: 13px;
  line-height: 1.45;
}

.group-card button,
.meeting-list button,
.library-layout button,
.contacts-list button,
.journal-page button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 8px;
  color: #5634e7;
  font-weight: 800;
  height: 36px;
  margin: 0 16px 14px;
  width: calc(100% - 32px);
}

.home-two-column {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.schedule-list,
.note-stack,
.meeting-list article,
.library-layout article,
.contacts-list article,
.privacy-list article,
.journal-page {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
}

.schedule-list article,
.contacts-list article,
.privacy-list article {
  align-items: center;
  border-bottom: 1px solid #edf0f6;
  display: grid;
  gap: 12px;
  grid-template-columns: 10px 1fr auto auto;
  padding: 16px;
}

.note-stack article {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 35px 1fr 24px;
  padding: 18px;
}

.page-grid,
.option-grid,
.library-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.page-head h1 {
  font-size: 34px;
  margin: 0 0 8px;
}

.journal-page {
  padding: 22px;
}

.journal-page textarea {
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  min-height: 320px;
  padding: 18px;
  resize: vertical;
  width: 100%;
}

.logout-modal {
  align-items: center;
  background: rgba(10, 13, 36, 0.42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 30;
}

.logout-modal.open {
  display: flex;
}

@media (max-width: 980px) {
  .quick-grid,
  .group-card-grid,
  .home-two-column,
  .page-grid,
  .option-grid,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .hp2-search {
    justify-self: stretch;
    max-width: none;
  }

  .streak-card {
    display: grid;
    margin-top: 14px;
    max-width: 180px;
  }
}

@media (max-width: 780px) {
  .hp2-shell {
    display: block;
  }

  .hp2-sidebar {
    display: none;
  }

  .hp2-shell.nav-open::before {
    background: rgba(8, 10, 35, 0.34);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 18;
  }

  .hp2-shell.nav-open .hp2-sidebar {
    bottom: 0;
    display: flex;
    left: 0;
    max-width: 292px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 82vw;
    z-index: 19;
  }

  .emergency-logo .logo-wordmark {
    display: none;
  }

  .emergency-logo .logo-mark-img {
    border-radius: 50%;
    display: block;
    height: 54px;
    width: 54px;
  }

  .hp2-main {
    max-width: none;
    padding: 16px;
  }

  .hp2-topbar {
    grid-template-columns: 36px minmax(0, 1fr) 38px 48px;
    margin: -16px -16px 24px;
    padding: 16px;
  }

  .hp2-sober {
    grid-template-columns: 1fr;
    min-height: 300px;
    padding: 28px 24px;
  }

  .hp2-sober h2 {
    font-size: 31px;
  }

  .quick-grid,
  .option-grid,
  .group-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-grid button,
  .option-grid button {
    aspect-ratio: 1;
    min-height: 0;
  }

  .group-card::before {
    height: auto;
    aspect-ratio: 1.2;
  }

  .group-card p {
    display: none;
  }
}

@media (max-width: 560px) {
  .hp2-heading-row {
    display: block;
  }

  .hp2-topbar {
    grid-template-columns: 34px minmax(0, 1fr) 36px 42px;
    gap: 10px;
  }

  .profile-chip span:not(.avatar-photo):not([data-social-icon]) {
    display: none;
  }

  .hp2-sober button {
    justify-content: center;
    width: 100%;
  }

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

  .quick-grid button,
  .option-grid button {
    aspect-ratio: 1;
    min-height: 0;
  }

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

  .group-search {
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 7px 8px 7px 14px;
  }

  .group-search input {
    font-size: 14px;
    min-height: 42px;
  }

  .group-search button {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
  }

  .group-card {
    min-height: 0;
  }

  .group-card::before {
    height: auto;
    aspect-ratio: 1.2;
  }

  .group-card p {
    display: none;
  }

  .group-actions {
    gap: 8px;
    grid-template-columns: 1fr;
    margin: 12px 12px 14px;
  }

  .group-card .group-actions button {
    font-size: 14px;
    line-height: 1.1;
    margin: 0;
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
    width: 100%;
  }

  .streak-clock,
  .modal-actions,
  .permission-grid {
    grid-template-columns: 1fr;
  }
}

.hp2-topbar {
  background: #f8f9ff;
  position: sticky;
  top: 0;
  z-index: 12;
}

/* Interaction pass overrides */
.emergency-logo {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  min-height: 0;
  padding: 0;
  width: max-content;
}

.emergency-logo .logo-wordmark {
  border-radius: 0;
  display: block;
  height: auto;
  max-width: 156px;
  width: 156px;
}

.emergency-logo .logo-mark-img {
  display: none;
}

.hp2-sidebar {
  box-sizing: border-box;
  overflow-x: hidden;
}

.hp2-sidebar .side-nav,
.side-nav {
  box-sizing: border-box;
  width: 100%;
}

.hp2-sidebar .side-nav button,
.side-nav button {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.gear-image {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    url("./assets/sober-gear.svg") center / cover;
  color: #111542;
  padding: 34px;
}

.gear-image button,
.event-actions button,
.gear-grid button {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
}

.event-hero {
  background:
    linear-gradient(90deg, rgba(8, 18, 49, 0.9), rgba(8, 18, 49, 0.5)),
    radial-gradient(circle at 80% 28%, rgba(255, 166, 117, 0.78), transparent 28%),
    linear-gradient(150deg, #183e74, #172d60 46%, #db8873);
  border-radius: 16px;
  color: #fff;
  margin-bottom: 18px;
  padding: 36px;
}

.event-hero h1 {
  font-size: 40px;
  margin: 0 0 10px;
}

.event-hero p {
  max-width: 560px;
}

.event-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.info-grid,
.gear-grid,
.settings-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.info-grid article,
.gear-grid article,
.settings-list article {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  display: grid;
  gap: 12px;
  grid-template-columns: 46px 1fr auto;
  padding: 16px;
}

.info-grid article,
.gear-grid article {
  align-items: start;
  grid-template-columns: 46px 1fr;
}

.info-grid article p,
.gear-grid article p,
.gear-grid article button {
  grid-column: 2;
}

.gear-grid article {
  grid-template-columns: 82px 1fr;
}

.info-grid span,
.settings-list span {
  color: #6547f2;
}

.gear-grid article > span {
  background: url("./assets/sober-gear.svg") center / cover;
  border-radius: 10px;
  display: block;
  height: 72px;
  width: 72px;
}

.settings-list input {
  accent-color: #6547f2;
  height: 22px;
  width: 22px;
}

.settings-list button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 18px;
}

.account-settings-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.account-settings-panel article {
  align-items: center;
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 1fr auto;
  padding: 14px;
}

.account-settings-panel article > span {
  align-items: center;
  background: #f1ecff;
  border-radius: 12px;
  color: #5634e7;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.account-settings-panel h3,
.account-settings-panel p {
  margin: 0;
}

.account-settings-panel p {
  color: #687087;
  line-height: 1.4;
}

.account-settings-panel button {
  background: #fff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 18px;
}

.note-editor {
  border: 1px solid #dfe2ee;
  border-radius: 12px;
  color: #111542;
  font: inherit;
  line-height: 1.55;
  margin: 18px 0 12px;
  min-height: 210px;
  padding: 18px;
  resize: vertical;
  width: 100%;
}

.save-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.save-status {
  color: #14a557;
  font-weight: 800;
}

.zoom-preview,
.zoom-room,
.audio-room {
  background: #111542;
  border-radius: 14px;
  color: #fff;
  margin: 18px 0;
  padding: 16px;
}

.video-tile {
  align-items: center;
  background: linear-gradient(135deg, #6bb7e8, #5f3edc);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

.video-tile.large {
  min-height: 210px;
}

.video-tile span,
.audio-room span {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  font-size: 34px;
  font-weight: 800;
  height: 74px;
  justify-content: center;
  width: 74px;
}

.video-row,
.zoom-room {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.video-row span {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 12px;
  text-align: center;
}

.zoom-room {
  grid-template-columns: repeat(2, 1fr);
}

.audio-room {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.ticket-card {
  align-items: center;
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  padding: 18px;
}

.ticket-card span {
  color: #5634e7;
  font-size: 24px;
  font-weight: 800;
}

.emergency-grid {
  display: grid;
  gap: 12px;
}

.emergency-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid #e4dcff;
  border-radius: 12px;
  color: #111542;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 42px 1fr;
  padding: 16px;
  text-align: left;
}

.emergency-grid span {
  color: #6547f2;
  grid-row: span 2;
}

.emergency-grid small {
  color: #687087;
}

@media (min-width: 981px) {
  .mobile-menu {
    visibility: hidden;
  }

  .hp2-main {
    max-width: 1040px;
  }

  .hp2-topbar {
    grid-template-columns: 1fr 340px 42px auto;
  }

  .hp2-search {
    grid-column: 2;
    justify-self: end;
    max-width: 340px;
  }
}

@media (max-width: 780px) {
  .quick-grid button,
  .option-grid button {
    aspect-ratio: 1.35;
    min-height: 0;
  }

  .zoom-room,
  .video-row,
  .modal-actions,
  .permission-grid {
    grid-template-columns: 1fr;
  }
}

/* May 5 polish pass */
.hp2-topbar {
  border-bottom: 0;
}

.hp2-sober {
  background:
    linear-gradient(90deg, rgba(8, 18, 49, 0.9), rgba(8, 18, 49, 0.48)),
    url("./assets/sobercon-banner.svg") center / cover;
  background-position: center;
}

.notebook-image {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7)),
    url("./assets/notebook-banner.svg") center / cover;
  color: #111542;
  padding: 34px;
}

.huddle-image {
  background:
    linear-gradient(90deg, rgba(7, 12, 44, 0.98) 0%, rgba(7, 12, 44, 0.9) 45%, rgba(25, 22, 70, 0.42) 100%),
    url("./assets/social-huddle-banner.svg") center / cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gear-image {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    url("./assets/sober-gear.svg") center / cover;
}

.podcast-image {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(47, 111, 228, 0.54)),
    url("./assets/library-podcast.svg") right center / contain no-repeat,
    linear-gradient(135deg, #0f172a, #312e81);
  color: #fff;
}

.podcast-image h2,
.podcast-image p,
.podcast-image small {
  max-width: 560px;
}

.podcast-image small {
  display: block;
  font-weight: 750;
  margin-bottom: 14px;
  opacity: 0.82;
}

.podcast-image button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.group-card::before {
  background: url("./assets/group-day.svg") center / cover;
}

.group-card.coffee::before {
  background-image: url("./assets/group-coffee.svg");
}

.group-card.mountains::before {
  background-image: url("./assets/group-mountains.svg");
}

.group-card.dharma::before {
  background-image: url("./assets/group-dharma.svg");
}

.huddle-list {
  display: grid;
  gap: 14px;
}

.huddle-list article {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr auto;
  padding: 16px;
}

.huddle-list article > span {
  align-items: center;
  background: #eee9ff;
  border-radius: 12px;
  color: #6547f2;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.huddle-list time {
  color: #5634e7;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.huddle-list h3 {
  margin: 0 0 5px;
}

.huddle-list p {
  color: #687087;
  margin: 0;
}

.huddle-list button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  min-height: 38px;
  padding: 0 18px;
  white-space: nowrap;
}

.library-layout article {
  display: grid;
  gap: 10px;
}

.library-layout article > span {
  align-items: center;
  background: #eee9ff;
  border-radius: 12px;
  color: #6547f2;
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.library-layout button {
  display: inline-flex;
  justify-content: center;
  margin: 0;
  width: auto;
}

.library-layout article button + button {
  margin-top: -2px;
}

.podcast-player {
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  text-align: center;
}

.album-art {
  align-items: center;
  background: linear-gradient(135deg, #71b9e8, #6547f2);
  border-radius: 18px;
  color: #fff;
  display: flex;
  height: 112px;
  justify-content: center;
  justify-self: center;
  width: 112px;
}

.album-art svg {
  height: 48px;
  width: 48px;
}

.progress-bar {
  background: #e1e5f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar span {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 38%;
}

.player-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.player-controls button {
  background: #fff;
  border: 1px solid #e4dcff;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 800;
  min-height: 38px;
  padding: 0 16px;
}

.connecting-panel {
  align-items: center;
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
}

.pulse-dot {
  background: #14a557;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(20, 165, 87, 0.12);
  height: 14px;
  width: 14px;
}

.notice-ad.huddle-image h2,
.notice-ad.huddle-image p {
  color: #fff;
  max-width: 620px;
  position: relative;
  text-shadow: 0 2px 16px rgba(3, 6, 26, 0.58);
  z-index: 1;
}

.notice-ad.huddle-image h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.notice-ad.huddle-image p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 26px);
}

.notice-ad.huddle-image button {
  align-self: flex-start;
  min-width: 190px;
  position: relative;
  width: auto;
  z-index: 1;
}

.brian-photo {
  background: url("./assets/brian-photo.svg") center / cover;
  color: transparent;
}

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

.meeting-list.tile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meeting-list.tile-list article {
  display: grid;
  gap: 10px;
  grid-template-columns: 46px 1fr;
  min-height: 220px;
}

.meeting-list.tile-list article > span,
.notification-row > span {
  align-items: center;
  background: #eee9ff;
  border-radius: 12px;
  color: #6547f2;
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.meeting-list.tile-list time,
.meeting-list.tile-list h3,
.meeting-list.tile-list p,
.meeting-list.tile-list button {
  grid-column: 1 / -1;
}

.meeting-list.tile-list button {
  align-self: end;
  margin: 8px 0 0;
  width: 100%;
}

.huddle-list.tile-list article {
  align-items: start;
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 220px;
}

.huddle-list.tile-list button {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

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

.notification-row {
  align-items: start;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  display: grid;
  gap: 12px;
  grid-template-columns: 46px 1fr;
  padding: 16px;
}

.notification-row.unread {
  border-color: #dcd2ff;
  box-shadow: 0 12px 30px rgba(86, 52, 231, 0.1);
}

.notification-row p {
  margin: 0;
}

.notification-row small {
  color: #687087;
  display: block;
  font-weight: 600;
  margin-top: 4px;
}

.notification-row div {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.notification-row button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 800;
  min-height: 36px;
  padding: 0 16px;
}

.notification-row button:first-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.library-card {
  overflow: hidden;
  position: relative;
}

.library-card .library-image {
  background: url("./assets/library-article.svg") center / cover;
  border-radius: 10px;
  height: 132px;
  margin: -2px -2px 4px;
}

.library-card.book-cover .library-image {
  background-image: url("./assets/notebook-banner.svg");
}

.library-card.podcast-cover .library-image {
  background-image: url("./assets/library-podcast.svg");
}

.library-card.article-cover .library-image {
  background-image: url("./assets/library-article.svg");
}

.module-card .library-image {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55), transparent 20%),
    linear-gradient(135deg, #6aaee8, #6c49ee);
}

.module-card.smart .library-image {
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(135deg, #4fc187, #4054e9);
}

.module-card.lifering .library-image {
  background:
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.55), transparent 20%),
    linear-gradient(135deg, #f4b35c, #6c49ee);
}

.module-card.sos .library-image,
.module-card.opfob .library-image {
  background:
    linear-gradient(135deg, rgba(15, 21, 66, 0.12), transparent),
    linear-gradient(135deg, #111542, #4e42d8);
}

.module-card.hams .library-image {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #62b6cb, #243b76);
}

.module-card.women .library-image {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55), transparent 20%),
    linear-gradient(135deg, #e78fb3, #7450e7);
}

.module-card.rational .library-image {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(135deg, #4054e9, #111542);
}

.module-card.refuge .library-image {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(135deg, #f0bd5e, #6c49ee);
}

.module-card.celebrate .library-image {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(135deg, #7bc96f, #4054e9);
}

.module-card.waypoint .library-image {
  background:
    radial-gradient(circle at 22% 25%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(135deg, #243b76, #6aaee8);
}

.module-about > span[data-social-icon] {
  align-items: center;
  background: linear-gradient(135deg, #6aaee8, #6c49ee);
  border-radius: 24px;
  color: #fff;
  display: inline-flex;
  height: 74px;
  justify-content: center;
  margin-bottom: 16px;
  width: 74px;
}

.module-about > span[data-social-icon] svg {
  height: 34px;
  width: 34px;
}

.payment-choice {
  align-items: center;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  text-align: center;
}

.payment-choice button {
  align-items: center;
  background: #111542;
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
}

.payment-choice span {
  color: #687087;
  font-weight: 800;
}

.form-split {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.module-course-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(135deg, #111542, #4832d7);
  border-radius: 22px;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr;
  margin-bottom: 24px;
  padding: 30px;
}

.module-course-hero > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  display: inline-flex;
  height: 84px;
  justify-content: center;
  width: 84px;
}

.module-course-hero svg {
  height: 38px;
  width: 38px;
}

.module-course-hero small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-course-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  margin: 6px 0 8px;
}

.module-course-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.module-course-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.course-main-panel,
.course-side-panel article,
.step-work {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 20, 58, 0.06);
}

.course-main-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.course-video {
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.3), transparent 20%),
    linear-gradient(135deg, #1a1f5c, #6c49ee);
  border-radius: 16px;
  color: #fff;
  display: grid;
  min-height: 300px;
  padding: 28px;
  place-items: center;
  text-align: center;
}

.course-video svg {
  height: 52px;
  width: 52px;
}

.course-video strong {
  font-size: 26px;
}

.course-video p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 380px;
}

.course-video button,
.step-work button,
.course-side-panel button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  min-height: 46px;
  padding: 10px 22px;
}

.step-work {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.step-work h2 {
  margin: 0;
}

.step-work label {
  color: #111542;
  display: grid;
  font-weight: 900;
  gap: 8px;
}

.step-work textarea,
.step-work input {
  border: 1px solid #dfe3f3;
  border-radius: 14px;
  color: #111542;
  font: inherit;
  padding: 14px 16px;
}

.step-work textarea {
  min-height: 130px;
  resize: vertical;
}

.course-side-panel {
  display: grid;
  gap: 14px;
}

.course-side-panel article {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  padding: 18px;
}

.course-side-panel article > span {
  align-items: center;
  background: #f1ecff;
  border-radius: 14px;
  color: #5634e7;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.course-side-panel h3,
.course-side-panel p {
  margin: 0;
}

.course-side-panel p {
  color: #687087;
  line-height: 1.45;
}

.course-side-panel button {
  grid-column: 2;
  justify-self: start;
}

.video-modal {
  display: grid;
  gap: 16px;
}

.video-player-frame {
  align-items: center;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.24), transparent 20%),
    linear-gradient(135deg, #070b2e, #4c34d9);
  border-radius: 18px;
  color: #fff;
  display: grid;
  min-height: 300px;
  padding: 28px;
  place-items: center;
  text-align: center;
}

.video-player-frame svg {
  height: 58px;
  width: 58px;
}

.video-player-frame strong {
  font-size: 24px;
}

.video-player-frame p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.video-progress {
  background: #e6e8f2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.video-progress span {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  display: block;
  height: 100%;
  width: 36%;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.video-controls button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 18px;
}

.video-controls button.selected {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.tile-x {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e1dcfb;
  border-radius: 50%;
  color: #5634e7;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  z-index: 2;
}

.library-layout .tile-x {
  border-radius: 50%;
  font-size: 18px;
  height: 30px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.library-layout .icon-actions button {
  align-items: center;
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  width: auto;
}

.library-layout .icon-actions button:first-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.library-layout .icon-actions svg {
  height: 16px;
  width: 16px;
}

.huddle-count {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.huddle-count strong {
  color: #111542;
  font-size: 13px;
}

.profile-cover {
  background:
    linear-gradient(0deg, rgba(8, 12, 37, 0.14), rgba(8, 12, 37, 0.02)),
    url("./assets/profile-wallpaper.svg") center / cover;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-list.contact-grid article {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr;
  min-height: 230px;
  padding: 16px;
}

.contacts-list.contact-grid article > div,
.contacts-list.contact-grid button {
  grid-column: 1 / -1;
}

.contacts-list.contact-grid .contact-open {
  align-items: center;
  background: transparent;
  border: 0;
  color: #111542;
  cursor: pointer;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  height: auto;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  text-align: left;
  width: auto;
}

.contact-open strong {
  font-size: 20px;
}

.contact-photo {
  background: url("./assets/contact-dan.svg") center / cover;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(42, 48, 120, 0.13);
  display: block;
  height: 72px;
  width: 72px;
}

.dan-photo {
  background-image: url("./assets/contact-dan.svg");
}

.megan-photo {
  background-image: url("./assets/contact-megan.svg");
}

.chris-photo {
  background-image: url("./assets/contact-chris.svg");
}

.priya-photo {
  background-image: url("./assets/contact-priya.svg");
}

.sarah-photo {
  background-image: url("./assets/contact-sarah.svg");
}

.nina-photo {
  background-image: url("./assets/contact-priya.svg");
}

.alex-photo {
  background-image: url("./assets/contact-sarah.svg");
}

.jordan-photo {
  background-image: url("./assets/contact-dan.svg");
}

.post-head .contact-photo {
  height: 34px;
  width: 34px;
}

.profile-pop-photo {
  height: 118px;
  margin: 0 auto 18px;
  width: 118px;
}

.contacts-list.contact-grid h3 {
  margin-top: 0;
}

.contacts-list.contact-grid small {
  color: #687087;
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
}

.contacts-list.contact-grid button {
  margin: auto 0 0;
  width: 100%;
}

.contacts-list.contact-grid button.contact-open {
  margin: 0;
  width: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: auto;
}

.contacts-list.contact-grid .contact-actions button,
.profile-contact-actions button {
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  width: auto;
}

.contacts-list.contact-grid .contact-actions button:first-child,
.profile-contact-actions button:first-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.contacts-list.contact-grid .contact-actions button:last-child,
.profile-contact-actions button:last-child {
  background: #fff5f7;
  border-color: #ffd8df;
  color: #b3233e;
}

.profile-contact-actions {
  justify-content: flex-end;
}

.profile-edit-link {
  background: #f7f4ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 800;
  margin: 12px auto 0;
  min-height: 42px;
  padding: 10px 20px;
}

.edit-form {
  display: grid;
  gap: 12px;
}

.edit-form label {
  color: #111542;
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
  border: 1px solid #dfe3f3;
  border-radius: 12px;
  color: #111542;
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
}

.edit-form textarea {
  min-height: 92px;
  resize: vertical;
}

.inline-profile-link {
  background: transparent;
  border: 0;
  color: #5634e7;
  cursor: pointer;
  display: inline;
  font: inherit;
  font-weight: 900;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

.contact-profile-head {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  display: grid;
  gap: 18px;
  grid-template-columns: 96px 1fr auto;
  margin-bottom: 20px;
  padding: 20px;
}

.profile-contact-photo {
  height: 96px;
  width: 96px;
}

.contact-profile-head h1 {
  margin: 0 0 6px;
}

.contact-profile-head p {
  color: #596178;
  margin: 0 0 6px;
}

.contact-profile-head button,
.back-link,
.content-card-grid button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 800;
  min-height: 38px;
  padding: 0 16px;
}

.contact-profile-head > button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.back-link {
  margin-bottom: 16px;
}

.cert-list {
  color: #596178;
  line-height: 1.6;
  margin: 0;
  padding-left: 18px;
}

.content-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.content-card-grid article {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  padding: 16px;
}

.content-card-grid h3 {
  margin: 0 0 8px;
}

.content-card-grid p {
  color: #596178;
  line-height: 1.45;
  margin: 0 0 14px;
}

.content-card-grid button + button {
  margin-left: 8px;
}

.article-reader {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.04);
  padding: 26px;
}

.article-reader h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  margin: 22px 0;
}

.article-reader > p {
  color: #36405f;
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-author {
  align-items: center;
  display: flex;
  gap: 14px;
}

.article-author .avatar-photo {
  height: 58px;
  width: 58px;
}

.article-author strong,
.article-author small {
  display: block;
}

.article-author small {
  color: #687087;
  margin-top: 2px;
}

.book-reader-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(240px, 420px);
  justify-content: space-between;
  margin-bottom: 16px;
}

.book-reader-toolbar .back-link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.book-search {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e4f0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 20, 58, 0.05);
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr) 38px;
  padding: 8px 8px 8px 16px;
}

.book-search > span {
  color: #8990a5;
  display: inline-flex;
}

.book-search input {
  background: transparent;
  border: 0;
  color: #070b23;
  font: inherit;
  min-width: 0;
  outline: 0;
}

.book-search button {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #3347ef);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.book-reader {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(18, 20, 58, 0.06);
  display: grid;
  gap: 26px;
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 4vw, 46px);
}

.book-reader header small {
  color: #5634e7;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.book-reader h1 {
  color: #070b23;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  margin: 12px 0;
}

.book-reader header p {
  color: #596178;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  margin: 0;
}

.book-page-copy {
  border-top: 1px solid #e1e4f0;
  padding-top: 24px;
}

.book-page-copy h2 {
  color: #070b23;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 18px;
}

.book-page-copy p {
  color: #36405f;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.75;
  margin: 0 0 18px;
}

.book-page-copy mark {
  background: #f4e77a;
  border-radius: 6px;
  color: #070b23;
  padding: 0 3px;
}

.book-page-nav {
  align-items: center;
  border-top: 1px solid #e1e4f0;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding-top: 22px;
}

.book-page-nav button {
  align-items: center;
  background: #f3efff;
  border: 1px solid #ded5ff;
  border-radius: 999px;
  color: #5634e7;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  min-width: 128px;
  padding: 12px 18px;
}

.book-page-nav button:first-child {
  justify-self: start;
}

.book-page-nav button:last-child {
  justify-self: end;
}

.book-page-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.book-page-nav span {
  color: #687087;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .book-reader-toolbar {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .book-reader {
    border-radius: 18px;
    padding: 22px;
  }

  .book-page-nav {
    grid-template-columns: 1fr 1fr;
  }

  .book-page-nav span {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

.group-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin: 14px 16px 16px;
}

.group-card .group-actions button {
  margin: 0;
  width: 100%;
}

.group-card .group-actions button:last-child {
  background: #fff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

.group-about {
  text-align: left;
}

.group-about .contact-photo {
  height: 82px;
  margin-bottom: 14px;
  width: 82px;
}

.share-choice {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.modal-form .share-choice button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

.modal-form .share-choice button.selected {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.podcast-bar {
  align-items: center;
  background: #fff;
  border: 1px solid #e4dcff;
  border-radius: 16px;
  bottom: 18px;
  box-shadow: 0 18px 48px rgba(20, 22, 58, 0.2);
  display: none;
  gap: 12px;
  left: 50%;
  max-width: min(680px, calc(100vw - 28px));
  padding: 12px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 35;
}

.podcast-bar.open {
  display: flex;
}

.podcast-bar-art {
  align-items: center;
  background: url("./assets/library-podcast.svg") center / cover;
  border-radius: 12px;
  color: #fff;
  display: flex;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.podcast-bar div {
  flex: 1;
  min-width: 0;
}

.podcast-bar strong,
.podcast-bar small {
  display: block;
}

.podcast-bar small {
  color: #687087;
  margin-top: 2px;
}

.podcast-bar button {
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: #5634e7;
  font-weight: 800;
  min-height: 36px;
  padding: 0 14px;
}

.podcast-bar button:first-of-type {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
}

.event-meta span {
  display: grid;
  gap: 2px;
}

.event-meta strong {
  color: #111542;
}

.request-sent {
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 12px 0 20px;
  padding: 28px 22px;
  text-align: center;
}

.request-sent > span {
  align-items: center;
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border-radius: 999px;
  color: #fff;
  display: flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.request-sent h2,
.request-sent p {
  margin: 0;
}

.request-sent small {
  color: #5634e7;
  font-weight: 800;
}

body[data-app="social"] button:not(.modal-x):not(.tile-x):not(.rail-arrow):not(.mobile-menu):not(.top-icon):not(.section-title-button):not(.name-link):not(.contact-open):not(.app-logo) {
  min-height: 42px;
  padding-left: 18px;
  padding-right: 18px;
}

.modal-actions button,
.permission-grid button,
.notification-row button,
.library-layout .icon-actions button,
.group-card .group-actions button,
.contacts-list.contact-grid button,
.podcast-bar button {
  min-height: 44px;
  padding-left: 18px;
  padding-right: 18px;
}

.modal-primary {
  min-height: 48px;
  padding-left: 28px;
  padding-right: 28px;
}

.profile-panel .large.brian-photo {
  box-shadow: 0 12px 34px rgba(42, 48, 120, 0.18);
}

.profile-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  text-align: left;
}

.profile-detail-grid article {
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  padding: 16px;
}

.profile-detail-grid h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.profile-detail-grid p {
  color: #596178;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.settings-list,
.privacy-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-list article,
.privacy-list article {
  min-height: 108px;
}

@media (max-width: 780px) {
  .hp2-topbar {
    gap: 12px;
  }

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

  .quick-grid button,
  .option-grid button {
    aspect-ratio: 1;
    padding: 10px;
  }

  .quick-grid small {
    display: none;
  }

  .huddle-list article {
    align-items: start;
    grid-template-columns: 48px 1fr;
  }

  .huddle-list button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .library-layout article {
    min-height: 0;
  }

  .tile-list,
  .meeting-list.tile-list,
  .notification-grid,
  .settings-list,
  .privacy-list,
  .contact-grid,
  .content-card-grid,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-profile-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .podcast-bar {
    align-items: stretch;
    border-radius: 14px 14px 0 0;
    bottom: 0;
    flex-wrap: wrap;
    max-width: 100vw;
  }

  .notice-ad.huddle-image button {
    width: auto;
  }
}

@media (max-width: 520px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* White-label foundation: admin-controlled tokens that can be persisted per tenant. */
:root {
  --brand-primary: #5634e7;
  --brand-accent: #8b35e9;
  --brand-surface: #f8f9ff;
  --brand-ink: #070b23;
  --brand-radius: 12px;
  --brand-line: #e7e9f2;
}

body[data-app="social"] {
  background: var(--brand-surface);
  color: var(--brand-ink);
}

body[data-app="social"] .hp2-topbar {
  background: var(--brand-surface);
}

.hp2-sidebar .side-nav button.active,
.home-heading p,
.group-card .group-actions button:last-child,
.content-card-grid button,
.back-link,
.podcast-bar button {
  color: var(--brand-primary);
}

.hp2-sidebar .side-nav button b,
.hp2-topbar .top-icon b,
.request-sent > span,
.group-search button,
.modal-form .share-choice button.selected,
.modal-primary,
.modal-form button,
.join-meeting-button {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
}

.quick-grid button,
.option-grid button,
.dashboard-section,
.post-composer-card,
.content-card-grid article,
.article-reader,
.settings-list article,
.privacy-list article,
.tile-list article {
  border-radius: var(--brand-radius);
}

body[data-huddles-feature="off"] [data-view-link="huddles"],
body[data-huddles-feature="off"] [data-view="huddles"],
body[data-library-feature="off"] [data-view-link="library"],
body[data-library-feature="off"] [data-view="library"],
body[data-groups-feature="off"] [data-view-link="groups"],
body[data-groups-feature="off"] [data-view="groups"],
body[data-meetings-feature="off"] [data-view-link="meetings"],
body[data-meetings-feature="off"] [data-view="meetings"],
body[data-commerce-feature="off"] [data-view-link="sobercon"],
body[data-commerce-feature="off"] [data-view-link="gear"],
body[data-publishing-feature="off"] .article-submit-card {
  display: none !important;
}

body:has(.admin-view.active) .hp2-main,
body:has(.reports-view.active) .hp2-main {
  max-width: 1180px;
}

.admin-view,
.reports-view {
  color: var(--brand-ink);
}

.admin-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.admin-head button,
.report-role-tabs button.active {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
}

.tenant-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.tenant-strip button,
.admin-panel,
.admin-preview,
.report-kpi-grid article,
.report-grid article {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius);
  box-shadow: 0 10px 28px rgba(18, 20, 58, 0.05);
}

.tenant-strip button {
  align-items: center;
  color: #202542;
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 34px 1fr;
  justify-items: start;
  min-height: 76px;
  text-align: left;
}

.tenant-strip button > span {
  color: var(--brand-primary);
  grid-row: span 2;
}

.tenant-strip button.active {
  border-color: color-mix(in srgb, var(--brand-primary) 38%, #fff);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

.tenant-strip strong,
.tenant-strip small {
  display: block;
}

.tenant-strip small {
  color: #687087;
}

.admin-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-panel {
  padding: 18px;
}

.admin-section-title {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-section-title > span {
  align-items: center;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  border-radius: 999px;
  color: var(--brand-primary);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.admin-section-title h2 {
  font-size: 18px;
  margin: 0;
}

.brand-asset-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 154px 1fr;
}

.brand-upload-preview {
  align-content: center;
  background: var(--brand-surface);
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 36%, var(--brand-line));
  border-radius: var(--brand-radius);
  display: grid;
  justify-items: center;
  min-height: 180px;
  padding: 18px;
  text-align: center;
}

.brand-upload-preview img {
  height: 74px;
  object-fit: contain;
  width: 74px;
}

.brand-upload-preview strong {
  margin-top: 12px;
}

.admin-form-grid,
.token-grid,
.design-control-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid label,
.token-grid label,
.design-control-grid label {
  color: #4f566d;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.admin-form-grid input,
.admin-form-grid select,
.token-grid input,
.token-grid select,
.design-control-grid select {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  color: var(--brand-ink);
  min-height: 42px;
  padding: 0 12px;
}

.token-grid input[type="color"] {
  height: 42px;
  padding: 4px;
}

.feature-flag-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-flag-grid label {
  align-items: center;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.feature-flag-grid input {
  accent-color: var(--brand-primary);
  height: 20px;
  width: 20px;
}

.feature-flag-grid strong,
.feature-flag-grid small {
  display: block;
}

.feature-flag-grid small {
  color: #687087;
  margin-top: 3px;
}

.admin-preview {
  display: grid;
  gap: 16px;
  grid-template-columns: 310px 1fr;
  margin-top: 16px;
  padding: 18px;
}

.preview-phone {
  background: #101426;
  border-radius: 28px;
  color: #fff;
  display: grid;
  gap: 18px;
  min-height: 420px;
  padding: 18px;
}

.preview-phone header,
.preview-phone nav {
  align-items: center;
  display: flex;
}

.preview-phone header {
  gap: 10px;
}

.preview-phone header img {
  background: #fff;
  border-radius: 50%;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.preview-phone section {
  align-self: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 86%, #000), color-mix(in srgb, var(--brand-accent) 82%, #111));
  border-radius: 20px;
  padding: 24px;
}

.preview-phone h2 {
  font-size: 28px;
  line-height: 1.08;
  margin: 8px 0;
}

.preview-phone p,
.admin-change-log p {
  line-height: 1.5;
}

.preview-phone button {
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: var(--brand-primary);
  font-weight: 900;
  margin-top: 12px;
}

.preview-phone nav {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  justify-content: space-around;
  padding: 12px;
}

.admin-change-log {
  align-self: center;
}

.admin-change-log h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.report-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.report-role-tabs button {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: #46506a;
  font-weight: 800;
}

.report-kpi-grid,
.report-grid {
  display: grid;
  gap: 14px;
}

.report-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.report-kpi-grid article,
.report-grid article {
  padding: 18px;
}

.report-kpi-grid span {
  color: var(--brand-primary);
}

.report-kpi-grid small,
.report-kpi-grid p,
.report-grid p {
  color: #687087;
}

.report-kpi-grid strong {
  display: block;
  font-size: 30px;
  margin: 6px 0;
}

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

.report-grid article > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
}

.report-grid article > div:first-child span {
  color: var(--brand-primary);
}

.report-grid h2 {
  font-size: 19px;
  margin: 0;
}

.report-bars {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-bars span {
  background: var(--brand-surface);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.report-bars span::before {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--bar);
}

@media (max-width: 980px) {
  .admin-layout,
  .admin-preview,
  .report-grid,
  .report-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tenant-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-head,
  .brand-asset-row {
    align-items: stretch;
    display: grid;
  }

  .admin-form-grid,
  .token-grid,
  .design-control-grid,
  .feature-flag-grid {
    grid-template-columns: 1fr;
  }
}

/* Final interaction polish */
.hp2-sidebar .emergency-logo .logo-wordmark {
  border-radius: 0;
  display: block;
  height: auto;
  max-width: 158px;
  object-fit: contain;
  width: 158px;
}

.hp2-sidebar .emergency-logo .logo-mark-img {
  display: none;
}

.hp2-sidebar .side-nav button {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  padding-left: 14px;
  padding-right: 14px;
  width: 100%;
}

.modal-actions button,
.permission-grid button {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  gap: 14px;
  justify-content: center;
  min-height: 58px;
  padding: 14px 24px;
}

.modal-actions {
  gap: 14px;
}

.modal-primary,
.modal-form button,
.success-state button,
.logout-dialog button,
.notification-row button,
.group-card .group-actions button,
.contacts-list.contact-grid button,
.library-layout .icon-actions button,
.podcast-bar button {
  min-height: 48px;
  padding: 12px 22px;
}

.quick-grid button,
.option-grid button {
  padding: 16px 14px;
}

.primary,
.outline-action,
.pill-link,
.ghost-link,
.nav-row button {
  min-height: 48px;
  padding-left: 22px;
  padding-right: 22px;
}

@media (max-width: 780px) {
  .module-course-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .module-course-grid {
    grid-template-columns: 1fr;
  }

  .hp2-sidebar .emergency-logo .logo-wordmark {
    display: none;
  }

  .hp2-sidebar .emergency-logo .logo-mark-img {
    border-radius: 50%;
    display: block;
    height: 54px;
    width: 54px;
  }

  .quick-grid button,
  .option-grid button {
    padding: 12px;
  }
}

/* Sidebar width correction */
body[data-app="social"] .social-shell,
body[data-app="social"] .hp2-shell {
  grid-template-columns: 244px minmax(0, 1fr);
}

body[data-app="social"] .social-sidebar,
body[data-app="social"] .hp2-sidebar {
  padding-left: 24px;
  padding-right: 24px;
}

.hp2-sidebar .emergency-logo {
  align-self: center;
  justify-content: center;
  margin: 18px 0 20px;
  width: 164px;
}

.hp2-sidebar .emergency-logo .logo-wordmark {
  max-width: 164px;
  width: 164px;
}

.hp2-sidebar .side-nav {
  gap: 14px;
}

.gear-page .product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

body[data-app="social"] .gear-page .gear-product {
  align-items: stretch;
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(18, 20, 58, 0.06);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto 1fr auto;
  overflow: hidden;
  padding: 0 18px 18px;
}

body[data-app="social"] .gear-page .gear-product > span {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.44), transparent 18%),
    url("./assets/sober-gear.svg") center / cover;
  border-radius: 0;
  display: block;
  grid-column: 1;
  height: 156px;
  margin: 0 -18px 4px;
  width: auto;
}

body[data-app="social"] .gear-page .gear-product.tshirt > span {
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #6aaee8, #6c49ee);
}

body[data-app="social"] .gear-page .gear-product.cap > span {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.5), transparent 20%),
    linear-gradient(135deg, #111542, #4054e9);
}

body[data-app="social"] .gear-page .gear-product.journal > span {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.52), transparent 18%),
    linear-gradient(135deg, #f4b35c, #6c49ee);
}

body[data-app="social"] .gear-page .gear-product.stickers > span {
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.54), transparent 18%),
    linear-gradient(135deg, #e78fb3, #6c49ee);
}

body[data-app="social"] .gear-page .gear-product.bracelet > span,
body[data-app="social"] .gear-page .gear-product.necklace > span {
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, 0.55), transparent 20%),
    linear-gradient(135deg, #243b76, #6aaee8);
}

body[data-app="social"] .gear-page .gear-product.phonecase > span {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #111542, #8b35e9);
}

body[data-app="social"] .gear-page .gear-product.pen > span {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.52), transparent 18%),
    linear-gradient(135deg, #7bc96f, #4054e9);
}

body[data-app="social"] .gear-page .gear-product.soberbooks > span {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.55), transparent 18%),
    url("./assets/library-article.svg") center / cover;
}

body[data-app="social"] .gear-page .gear-product small {
  color: #5634e7;
  display: block;
  font-size: 15px;
  font-weight: 900;
  grid-column: 1;
  margin: 0;
}

body[data-app="social"] .gear-page .gear-product h3,
body[data-app="social"] .gear-page .gear-product p {
  grid-column: 1;
  margin: 0;
}

body[data-app="social"] .gear-page .gear-product h3 {
  font-size: 20px;
  line-height: 1.15;
}

body[data-app="social"] .gear-page .gear-product p {
  color: #687087;
  font-size: 14px;
  line-height: 1.45;
}

body[data-app="social"] .gear-page .gear-product button {
  border-radius: 999px;
  grid-column: 1;
  justify-self: start;
  margin: 2px 0 0;
  min-height: 40px;
  padding: 9px 18px;
  width: auto;
}

body[data-app="social"] .cart-top-button b {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
}

body[data-app="social"] .gear-page .gear-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-column: 1;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  width: 100%;
}

body[data-app="social"] .gear-page .gear-actions button {
  font-size: 14px;
  justify-self: stretch;
  line-height: 1.1;
  min-height: 44px;
  padding: 10px 12px;
  text-align: center;
  width: 100%;
}

body[data-app="social"] .gear-page .gear-actions button:first-child {
  background: #fff;
  border: 1px solid #ded8ff;
  color: #5634e7;
}

.product-detail-modal {
  display: grid;
  gap: 14px;
}

.product-detail-modal h2,
.product-detail-modal p {
  margin: 0;
}

.product-title-with-logo {
  align-items: center;
  display: flex;
  gap: 12px;
}

.product-title-with-logo img {
  border-radius: 50%;
  height: 42px;
  width: 42px;
}

.product-preview {
  align-items: center;
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.46), transparent 18%),
    linear-gradient(135deg, #111542, #5634e7);
  border-radius: 18px;
  color: #fff;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  min-height: 250px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-align: center;
}

.product-preview::before {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  content: "";
  height: 112px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 150px;
}

.product-detail-modal[data-preview-index="2"] .product-preview {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.48), transparent 18%),
    linear-gradient(135deg, #6aaee8, #6c49ee);
}

.product-detail-modal[data-preview-index="3"] .product-preview {
  background:
    radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.5), transparent 20%),
    linear-gradient(135deg, #f4b35c, #8b35e9);
}

.product-preview button {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 40px;
  z-index: 1;
}

.product-preview strong {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.product-actions,
.cart-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.product-actions button,
.cart-actions button,
.shop-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  text-decoration: none;
  width: auto;
}

.product-detail-modal label {
  color: #111542;
  display: grid;
  font-weight: 900;
  gap: 8px;
}

.product-detail-modal select {
  background: #fff;
  border: 1px solid #ded8ff;
  border-radius: 12px;
  color: #111542;
  min-height: 46px;
  padding: 0 14px;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.cart-list article {
  align-items: center;
  background: #f8f9ff;
  border: 1px solid #e7e9f2;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px 16px;
}

.cart-list span {
  color: #5b6278;
  font-weight: 800;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
}

.cart-item-actions button {
  background: #fff;
  border: 1px solid #ded8ff;
  border-radius: 999px;
  color: #5634e7;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 12px;
}

.shop-link {
  background: #fff;
  border: 1px solid #ded8ff;
  color: #5634e7;
  font-weight: 900;
}

@media (min-width: 761px) {
  body[data-app="social"] .hp2-topbar {
    grid-template-columns: 36px minmax(180px, 264px) 38px auto;
  }

  body[data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 36px minmax(180px, 264px) 38px 38px auto;
  }
}

@media (max-width: 760px) {
  body[data-app="social"] .hp2-topbar {
    grid-template-columns: 36px minmax(0, 1fr) 38px 48px;
  }

  body[data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 36px minmax(0, 1fr) 38px 38px 48px;
  }
}

@media (max-width: 560px) {
  body[data-app="social"] .hp2-topbar {
    grid-template-columns: 34px minmax(0, 1fr) 36px 42px;
  }

  body[data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 34px minmax(0, 1fr) 36px 36px 42px;
  }

  body[data-app="social"] .gear-page .gear-actions {
    gap: 8px;
  }

  body[data-app="social"] .gear-page .gear-actions button {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cart-list article {
    grid-template-columns: 1fr;
  }

  .cart-item-actions {
    width: 100%;
  }

  .cart-item-actions button {
    flex: 1;
  }
}

.profile-view .profile-panel {
  text-align: left;
}

.profile-view .profile-panel > .avatar-photo,
.profile-view .profile-panel > h1,
.profile-view .profile-panel > p,
.profile-view .profile-panel > .profile-edit-link {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.profile-view .section-head {
  margin: 28px 0 14px;
}

.profile-view .section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  margin: 0;
}

.profile-view .content-card-grid {
  align-items: stretch;
  gap: 18px;
  margin-bottom: 34px;
}

.profile-view .content-card-grid article {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 24px;
  text-align: left;
}

.profile-view .content-card-grid h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.profile-view .content-card-grid p {
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
}

.profile-view .content-card-grid button {
  justify-self: start;
  margin: 0;
  min-height: 42px;
  padding: 10px 18px;
  width: auto;
}

.profile-view .content-card-grid button + button {
  margin-left: 0;
}

@media (max-width: 560px) {
  .group-card .group-actions {
    gap: 8px;
    grid-template-columns: 1fr;
    margin: 12px;
  }

  .group-card .group-actions button {
    font-size: 14px;
    line-height: 1.1;
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
  }
}

.hp2-sidebar .side-nav button {
  border-radius: 12px;
  font-size: 16px;
  gap: 18px;
  min-height: 56px;
  padding-left: 22px;
  padding-right: 18px;
}

.hp2-sidebar .side-nav button b {
  margin-left: auto;
}

@media (max-width: 780px) {
  body[data-app="social"] .social-shell,
  body[data-app="social"] .hp2-shell {
    grid-template-columns: 1fr;
  }

  body[data-app="social"] .hp2-shell.nav-open .hp2-sidebar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hp2-sidebar .emergency-logo {
    align-self: flex-start;
    margin: 0 0 8px;
    width: auto;
  }

  .hp2-sidebar .side-nav button {
    font-size: 14px;
    min-height: 46px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Restore centered icon-only menu logo */
.hp2-sidebar .emergency-logo {
  align-self: center;
  display: flex;
  justify-content: center;
  margin: 18px 0 22px;
  width: 100%;
}

.hp2-sidebar .emergency-logo .menu-logo-icon {
  border-radius: 50%;
  display: block;
  height: 72px;
  object-fit: contain;
  width: 72px;
}

@media (max-width: 780px) {
  .hp2-sidebar .emergency-logo {
    align-self: flex-start;
    justify-content: flex-start;
    margin: 0 0 8px;
    width: auto;
  }

  .hp2-sidebar .emergency-logo .menu-logo-icon {
    height: 54px;
    width: 54px;
  }
}

/* Live huddle action polish */
.huddle-host {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.huddle-list.tile-list .huddle-host .name-link {
  background: transparent;
  border: 0;
  color: #5634e7;
  font-size: inherit;
  font-weight: 800;
  grid-column: auto;
  justify-self: auto;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: auto;
}

.huddle-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.huddle-list.tile-list .huddle-actions button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  width: auto;
}

.huddle-list.tile-list .huddle-actions button:first-child {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border: 0;
  color: #fff;
  min-width: 88px;
}

.huddle-list.tile-list .huddle-actions button:last-child {
  background: #f7f4ff;
  border: 1px solid #e1dcfb;
  color: #5634e7;
}

/* Onboarding refresh: align with the Parachute dashboard surface language. */
body[data-flow="onboarding"] {
  --onboard-canvas: #f8f9ff;
  --onboard-panel: #ffffff;
  --onboard-ink: #070b23;
  --onboard-muted: #687087;
  --onboard-line: #e7e9f2;
  --onboard-accent: #6547f2;
  --onboard-soft: #eee9ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(101, 71, 242, 0.08), transparent 28%),
    var(--onboard-canvas);
  color: var(--onboard-ink);
}

body[data-flow="onboarding"] *,
body[data-flow="onboarding"] *::before,
body[data-flow="onboarding"] *::after {
  box-sizing: border-box;
}

body[data-flow="onboarding"].modal-open {
  overflow: hidden;
}

body[data-flow="onboarding"] .onboarding-shell {
  min-height: 100vh;
}

body[data-flow="onboarding"] .screen {
  min-height: 100vh;
  padding: 26px;
}

body[data-flow="onboarding"] .screen:not(.split-welcome) {
  display: none;
}

body[data-flow="onboarding"] .screen.active:not(.split-welcome) {
  display: grid;
  grid-template-rows: auto 1fr;
}

body[data-flow="onboarding"] .mockup-hero,
body[data-flow="onboarding"] .mockup-hero.short {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 86px;
  margin: 0 auto;
  max-width: 744px;
  overflow: visible;
  width: 100%;
}

body[data-flow="onboarding"] .mockup-hero .mockup-nav,
body[data-flow="onboarding"] .mockup-hero .brand-mini.floating {
  display: flex;
}

body[data-flow="onboarding"] .mockup-hero .top-actions,
body[data-flow="onboarding"] .mockup-hero .floating-cta,
body[data-flow="onboarding"] .mockup-hero .mockup-copy {
  display: none;
}

body[data-flow="onboarding"] .mockup-nav {
  left: 0;
  right: auto;
  top: 0;
}

body[data-flow="onboarding"] .brand-mini {
  align-items: flex-start;
  display: inline-flex;
  line-height: 1;
}

body[data-flow="onboarding"] .brand-mini.floating {
  left: 0;
  top: 0;
}

body[data-flow="onboarding"] .logo-mark {
  height: 34px;
  width: 34px;
}

body[data-flow="onboarding"] .brand-logo-image {
  display: block;
  height: auto;
  width: clamp(157px, 13.6vw, 195px);
}

body[data-flow="onboarding"] .pill-link,
body[data-flow="onboarding"] .ghost-link {
  font-size: 14px;
  font-weight: 800;
}

body[data-flow="onboarding"] .pill-link {
  box-shadow: 0 8px 24px rgba(20, 22, 58, 0.12);
  color: var(--onboard-accent);
  height: 38px;
  padding: 0 20px;
}

body[data-flow="onboarding"] .floating-cta {
  right: 24px;
  top: 20px;
}

body[data-flow="onboarding"] .mockup-copy {
  left: 34px;
  max-width: 430px;
  text-align: left;
  top: 82px;
  transform: none;
  width: calc(100% - 68px);
}

body[data-flow="onboarding"] .word-logo {
  display: none;
}

body[data-flow="onboarding"] .mockup-copy h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 10px;
}

body[data-flow="onboarding"] .mockup-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

body[data-flow="onboarding"] .step-card,
body[data-flow="onboarding"] .step-card.compact-form,
body[data-flow="onboarding"] .step-card.profile-form,
body[data-flow="onboarding"] .step-card.wide-card,
body[data-flow="onboarding"] .step-card.toggle-card {
  align-self: start;
  background: var(--onboard-panel);
  border: 1px solid var(--onboard-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 20, 58, 0.06);
  margin: 16px auto 34px;
  max-width: 744px;
  padding: 32px 28px 28px;
  width: min(744px, 100%);
}

body[data-flow="onboarding"] .compact-form {
  max-width: 520px;
}

body[data-flow="onboarding"] .step-badge,
body[data-flow="onboarding"] .hero-logo {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  box-shadow: 0 10px 24px rgba(86, 52, 231, 0.2);
}

body[data-flow="onboarding"] .step-badge {
  border: 6px solid var(--onboard-canvas);
  display: none;
  height: 78px;
  top: -40px;
  width: 78px;
}

body[data-flow="onboarding"] .step-badge .line-icon.large {
  height: 38px;
  width: 38px;
}

body[data-flow="onboarding"] .step-card h1,
body[data-flow="onboarding"] .final-card h1,
body[data-flow="onboarding"] .welcome-panel h1 {
  color: var(--onboard-ink);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0;
}

body[data-flow="onboarding"] .step-subtitle,
body[data-flow="onboarding"] .lead {
  color: var(--onboard-muted);
  font-size: 16px;
  font-weight: 600;
}

body[data-flow="onboarding"] .input-row,
body[data-flow="onboarding"] .field-label input,
body[data-flow="onboarding"] .field-label select,
body[data-flow="onboarding"] .choice-grid label > span,
body[data-flow="onboarding"] .setting,
body[data-flow="onboarding"] .outline-action {
  border-color: var(--onboard-line);
  border-radius: 8px;
}

body[data-flow="onboarding"] .input-row,
body[data-flow="onboarding"] .field-label input,
body[data-flow="onboarding"] .field-label select {
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.035);
}

body[data-flow="onboarding"] .input-row input,
body[data-flow="onboarding"] .field-label input,
body[data-flow="onboarding"] .field-label select {
  min-width: 0;
}

body[data-flow="onboarding"] .terms {
  font-size: 13px;
  margin-left: auto;
  margin-right: auto;
  max-width: 280px;
  overflow-wrap: anywhere;
}

body[data-flow="onboarding"] .password-help {
  color: var(--onboard-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin: -4px auto 14px;
  max-width: 420px;
  text-align: center;
}

body[data-flow="onboarding"] .terms button {
  background: transparent;
  border: 0;
  color: #4f35ff;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}

body[data-flow="onboarding"] .field-label,
body[data-flow="onboarding"] legend {
  color: #111542;
  font-size: 14px;
}

body[data-flow="onboarding"] .choice-grid input:checked + span,
body[data-flow="onboarding"] .outline-action.active {
  background: var(--onboard-soft);
  border-color: #dcd6ff;
  color: var(--onboard-accent);
}

body[data-flow="onboarding"] .primary {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(86, 52, 231, 0.2);
  font-size: 16px;
  height: 48px;
}

body[data-flow="onboarding"] .back {
  color: var(--onboard-muted);
  font-size: 16px;
}

body[data-flow="onboarding"] .soft-icon {
  background: var(--onboard-soft);
  border-radius: 8px;
  color: var(--onboard-accent);
}

body[data-flow="onboarding"] .setting {
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.035);
  margin-bottom: 10px;
  min-height: 92px;
}

body[data-flow="onboarding"] .setting strong {
  color: #111542;
  font-size: 15px;
}

body[data-flow="onboarding"] .setting span:nth-child(2) {
  color: var(--onboard-muted);
  font-size: 14px;
}

body[data-flow="onboarding"] .setting input[type="checkbox"] {
  background: #d7dae7;
}

body[data-flow="onboarding"] .setting input[type="checkbox"]:checked {
  background: var(--onboard-accent);
}

body[data-flow="onboarding"] .split-welcome {
  background: var(--onboard-canvas);
  grid-template-columns: minmax(320px, 0.78fr) minmax(440px, 640px);
  gap: 0;
  padding: 26px;
}

body[data-flow="onboarding"] .split-welcome.active {
  display: grid;
}

body[data-flow="onboarding"] .welcome-visual {
  background:
    linear-gradient(135deg, rgba(12, 18, 54, 0.18), rgba(36, 32, 91, 0.05)),
    url("./assets/mission-photo.png") center / cover no-repeat;
  border: 1px solid var(--onboard-line);
  border-radius: 12px 0 0 12px;
  min-height: calc(100vh - 52px);
}

body[data-flow="onboarding"] .welcome-panel {
  border: 1px solid var(--onboard-line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 12px 32px rgba(18, 20, 58, 0.06);
  min-height: calc(100vh - 52px);
  padding: clamp(42px, 5vw, 72px);
}

body[data-flow="onboarding"] .welcome-panel .lead {
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 700;
}

body[data-flow="onboarding"] .welcome-list {
  margin-bottom: 44px;
  max-width: 560px;
}

body[data-flow="onboarding"] .welcome-item {
  gap: 18px;
  grid-template-columns: 58px 1fr;
  margin-bottom: 22px;
}

body[data-flow="onboarding"] .welcome-item .soft-icon {
  height: 58px;
  width: 58px;
}

body[data-flow="onboarding"] .welcome-item p,
body[data-flow="onboarding"] .welcome-item strong {
  font-size: 16px;
}

body[data-flow="onboarding"] .final-welcome.active {
  grid-template-rows: auto auto;
}

body[data-flow="onboarding"] .final-card {
  background: #fff;
  border: 1px solid var(--onboard-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 20, 58, 0.06);
  margin: 16px auto 34px;
  max-width: 744px;
  padding: 58px 28px 32px;
}

body[data-flow="onboarding"] .final-card p {
  color: var(--onboard-muted);
  font-size: 18px;
  line-height: 1.55;
}

body[data-flow="onboarding"] .site-footer {
  background: #fff;
  border-top: 1px solid var(--onboard-line);
  max-width: none;
  padding-left: max(24px, calc((100vw - 1040px) / 2));
  padding-right: max(24px, calc((100vw - 1040px) / 2));
}

body[data-flow="onboarding"] .nickelsense {
  display: inline-flex;
  line-height: 1;
}

body[data-flow="onboarding"] .nickelsense-logo-image {
  display: block;
  height: auto;
  width: 150px;
}

body[data-flow="onboarding"] .legal-modal {
  align-items: center;
  background: rgba(7, 11, 35, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

body[data-flow="onboarding"] .legal-modal[hidden] {
  display: none;
}

body[data-flow="onboarding"] .legal-dialog {
  background: #fff;
  border: 1px solid var(--onboard-line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(7, 11, 35, 0.24);
  max-height: min(760px, calc(100vh - 48px));
  max-width: 720px;
  overflow: hidden;
  width: min(100%, 720px);
}

body[data-flow="onboarding"] .legal-dialog:focus,
body[data-flow="onboarding"] .legal-dialog:focus-visible {
  outline: 0 !important;
}

body[data-flow="onboarding"] .legal-dialog header {
  align-items: flex-start;
  border-bottom: 1px solid var(--onboard-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px 18px;
}

body[data-flow="onboarding"] .legal-kicker {
  color: var(--onboard-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

body[data-flow="onboarding"] .legal-dialog h2 {
  color: var(--onboard-ink);
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}

body[data-flow="onboarding"] .legal-close {
  align-items: center;
  background: #f5f2ff;
  border: 1px solid #e1dcfb;
  border-radius: 999px;
  color: var(--onboard-accent);
  display: inline-flex;
  flex: none;
  font-size: 26px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

body[data-flow="onboarding"] .legal-copy {
  color: #27304a;
  max-height: calc(min(760px, 100vh - 48px) - 102px);
  overflow-y: auto;
  padding: 22px 24px 28px;
}

body[data-flow="onboarding"] .legal-copy p {
  color: #4c556f;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 16px;
}

body[data-flow="onboarding"] .legal-copy h3 {
  color: #111542;
  font-size: 16px;
  margin: 22px 0 8px;
}

@media (max-width: 760px) {
  body[data-flow="onboarding"] .screen {
    padding: 16px;
  }

  body[data-flow="onboarding"] .mockup-hero,
  body[data-flow="onboarding"] .mockup-hero.short {
    height: 64px;
  }

  body[data-flow="onboarding"] .top-actions,
  body[data-flow="onboarding"] .floating-cta {
    display: none;
  }

  body[data-flow="onboarding"] .mockup-copy {
    left: 22px;
    top: 76px;
    width: calc(100% - 44px);
  }

  body[data-flow="onboarding"] .brand-logo-image {
    width: 134px;
  }

  body[data-flow="onboarding"] .legal-modal {
    padding: 14px;
  }

  body[data-flow="onboarding"] .legal-dialog header {
    padding: 18px 18px 14px;
  }

  body[data-flow="onboarding"] .legal-dialog h2 {
    font-size: 24px;
  }

  body[data-flow="onboarding"] .legal-copy {
    padding: 18px;
  }

  body[data-flow="onboarding"] .avatar-picker > p {
    font-size: 16px;
  }

  body[data-flow="onboarding"] .avatar-picker .avatar {
    height: 62px;
    width: 62px;
  }

  body[data-flow="onboarding"] .avatar-heading {
    gap: 14px;
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
  }

  body[data-flow="onboarding"] .avatar-heading p {
    font-size: 15px;
  }

  body[data-flow="onboarding"] .avatar-options {
    gap: 14px;
  }

  body[data-flow="onboarding"] .avatar svg {
    height: 31px;
    width: 31px;
  }

  body[data-flow="onboarding"] .icon-avatar > span {
    transform: scale(0.82);
  }

  body[data-flow="onboarding"] .word-logo {
    display: none;
  }

  body[data-flow="onboarding"] .mockup-copy h2 {
    font-size: 22px;
    max-width: 310px;
    overflow-wrap: break-word;
  }

  body[data-flow="onboarding"] .mockup-copy p {
    display: none;
  }

  body[data-flow="onboarding"] .step-card,
  body[data-flow="onboarding"] .step-card.compact-form,
  body[data-flow="onboarding"] .step-card.profile-form,
  body[data-flow="onboarding"] .step-card.wide-card,
  body[data-flow="onboarding"] .step-card.toggle-card,
  body[data-flow="onboarding"] .final-card {
    margin-top: 14px;
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
  }

  body[data-flow="onboarding"] .choice-grid.three,
  body[data-flow="onboarding"] .choice-grid.four {
    grid-template-columns: 1fr;
  }

  body[data-flow="onboarding"] .choice-grid label > span {
    justify-content: flex-start;
    text-align: left;
  }

  body[data-flow="onboarding"] .setting {
    gap: 12px;
    grid-template-columns: 44px 1fr 48px;
    padding: 14px 12px;
  }

  body[data-flow="onboarding"] .split-welcome {
    padding: 16px;
  }

  body[data-flow="onboarding"] .split-welcome.active {
    display: block;
  }

  body[data-flow="onboarding"] .welcome-visual {
    display: none;
  }

  body[data-flow="onboarding"] .welcome-panel {
    border: 1px solid var(--onboard-line);
    border-radius: 12px;
    min-height: auto;
    padding: 38px 22px 28px;
  }

  body[data-flow="onboarding"] .welcome-list {
    margin-bottom: 28px;
  }
}

/* Final details-step alignment overrides. Keep after responsive onboarding rules. */
body[data-flow="onboarding"] .profile-more label.field-label .input-row.full {
  align-items: center;
  background: #fff;
  border: 1px solid var(--onboard-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 58, 0.035);
  display: flex;
  gap: 16px;
  height: 58px;
  margin-top: 10px;
  padding: 0 18px;
  width: 100%;
}

body[data-flow="onboarding"] .profile-more label.field-label .input-row.full input[type="date"] {
  appearance: auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111542;
  display: block;
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  height: 100%;
  margin: 0 !important;
  min-width: 0;
  outline: 0;
  padding: 0 !important;
  width: auto;
}

body[data-flow="onboarding"] .profile-more label.field-label .input-row.full input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

body[data-flow="onboarding"] .profile-more label.field-label .input-row.full input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  display: block;
  margin-left: auto;
  opacity: 0.75;
}

body[data-flow="onboarding"] .profile-more select {
  color: #111542;
  font-size: 16px;
  font-weight: 800;
  height: 58px;
}

body[data-flow="onboarding"] .profile-more .choice-grid.three,
body[data-flow="onboarding"] .profile-more .choice-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

body[data-flow="onboarding"] .profile-more .choice-grid label > span {
  min-height: 58px;
}

body[data-flow="onboarding"] .profile-more .other-substance {
  margin-top: -10px;
}

body[data-flow="onboarding"] .profile-more .other-substance[hidden] {
  display: none;
}

/* Library filter and modal close clarity pass. */
.library-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 24px;
}

.library-filter-bar button {
  background: #fff;
  border: 1px solid #ded8ff;
  border-radius: 999px;
  color: #5634e7;
  font-size: 14px;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 16px;
}

.library-filter-bar button.active {
  background: linear-gradient(135deg, #8b35e9, #5634e7);
  border-color: transparent;
  color: #fff;
}

.library-card[hidden] {
  display: none !important;
}

body[data-app="social"] .modal-x {
  background: #ffffff;
  border: 2px solid #5634e7;
  box-shadow: 0 10px 26px rgba(18, 20, 58, 0.18);
  color: #5634e7;
  font-size: 30px;
  font-weight: 900;
  height: 52px;
  right: 18px;
  top: 18px;
  width: 52px;
  z-index: 3;
}

.meeting-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -8px 0 24px;
  max-width: 900px;
}

.meeting-filter-grid label {
  color: #111542;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
}

.meeting-filter-grid input,
.meeting-filter-grid select {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 14px;
  color: #111542;
  font: inherit;
  min-height: 48px;
  outline: 0;
  padding: 0 14px;
}

@media (max-width: 780px) {
  .meeting-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Final social header/menu alignment pass. */
body[data-app="social"] .hp2-sidebar .side-nav button.active {
  font-weight: 900;
}

body[data-app="social"] .hp2-sidebar .side-nav button.active span:not([data-social-icon]),
body[data-app="social"] .hp2-sidebar .side-nav button.active {
  color: #5634e7;
}

@media (min-width: 981px) {
  body[data-app="social"] .hp2-main {
    max-width: 1040px;
  }

  body[data-app="social"] .hp2-topbar {
    grid-template-columns: 1fr 340px 42px auto;
  }

  body[data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 1fr 340px 42px 42px auto;
  }

  body[data-app="social"] .hp2-search {
    grid-column: 2;
    justify-self: end;
    max-width: 340px;
  }

  body[data-app="social"] .hp2-topbar .top-icon {
    justify-self: center;
  }

body[data-app="social"] .profile-chip {
    justify-self: end;
  }
}

/* Final search arrow placement. */
body[data-app="social"] .hp2-search,
body[data-app="social"] .group-search {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 22px;
}

body[data-app="social"] .hp2-search {
  height: 44px;
  padding: 0 10px 0 16px;
}

body[data-app="social"] .hp2-search button,
body[data-app="social"] .group-search button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #5634e7;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 20px;
}

body[data-app="social"] .group-search button {
  background: linear-gradient(135deg, #8b35e9, #343ee7);
  color: #fff;
  height: 44px;
  width: 44px;
}

body[data-app="social"] .hp2-search button svg {
  height: 15px;
  width: 15px;
}

/* Messages page */
.messages-view {
  max-width: 1180px;
}

.messages-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.messages-list-pane,
.message-conversation-pane {
  min-width: 0;
}

.message-conversation-pane {
  position: sticky;
  top: 22px;
}

.message-search {
  align-items: center;
  background: #f0f1f4;
  border: 0;
  border-radius: 999px;
  color: #6c7280;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0 0 26px;
  padding: 0 22px;
  width: 100%;
}

.message-search input {
  background: transparent;
  border: 0;
  color: #111542;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  min-height: 64px;
  outline: 0;
}

.message-favorites {
  display: grid;
  gap: 26px 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 34px;
}

.message-favorites button {
  align-items: center;
  background: transparent !important;
  border: 0;
  color: #62666f !important;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 0;
  padding: 0;
}

.message-favorites .contact-photo,
.message-favorites .message-initial {
  height: 118px;
  width: 118px;
}

.message-favorites strong {
  font-size: 19px;
  line-height: 1.2;
}

.message-initial {
  align-items: center;
  background: linear-gradient(145deg, #b8d4f4, #8798d0);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 52px;
  font-weight: 800;
  justify-content: center;
}

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

.message-thread-list article {
  border-radius: 14px;
}

.message-thread-list article.selected button,
.message-favorites button.selected {
  background: #eef4ff !important;
  border-radius: 16px;
  color: #2f5fd9 !important;
}

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

.message-thread-list article button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #111542;
  display: grid;
  gap: 14px;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.message-thread-list article.unread button {
  background: #148df4;
  border-radius: 14px;
  color: #fff;
}

.message-thread-list .contact-photo,
.message-thread-list .message-initial {
  height: 56px;
  width: 56px;
}

.message-thread-list .message-initial {
  font-size: 24px;
}

.message-thread-list strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}

.message-thread-list p {
  color: #666b76;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-list article.unread p {
  color: rgba(255, 255, 255, 0.92);
}

.message-thread-list time {
  align-self: start;
  color: #6c7280;
  font-size: 17px;
  font-weight: 800;
  padding-top: 4px;
}

.message-thread-list article.unread time {
  color: #fff;
}

@media (max-width: 620px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .message-conversation-pane {
    display: none;
    position: static;
  }

  .messages-view.thread-open .page-head,
  .messages-view.thread-open .message-search,
  .messages-view.thread-open .messages-list-pane {
    display: none;
  }

  .messages-view.thread-open .message-conversation-pane {
    display: block;
  }

  .message-favorites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .message-favorites .contact-photo,
  .message-favorites .message-initial {
    height: 86px;
    width: 86px;
  }

  .message-search input {
    font-size: 18px;
    min-height: 54px;
  }

  .message-thread-list article button {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
}

/* Final messages/topbar pass. */
.message-favorites {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.message-favorites .contact-photo,
.message-favorites .message-initial {
  height: 82px;
  width: 82px;
}

.message-favorites .message-initial {
  font-size: 34px;
}

.message-favorites strong {
  font-size: 16px;
}

/* Phone-style message thread modal. */
.phone-thread {
  background: #f7f9ff;
  border: 1px solid #e1e7f2;
  border-radius: 24px;
  display: grid;
  max-height: min(70vh, 640px);
  overflow: hidden;
}

.phone-thread-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e1e7f2;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 14px 16px;
}

.message-back-button {
  align-items: center;
  background: #eef4ff;
  border: 0;
  border-radius: 14px;
  color: #2f6fe4;
  display: none;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

.message-back-button svg {
  height: 18px;
  width: 18px;
}

.app-dialog .message-back-button {
  display: none !important;
}

.phone-thread-head .contact-photo,
.phone-thread-head .message-initial {
  height: 48px;
  width: 48px;
}

.phone-thread-head .message-initial {
  font-size: 22px;
}

.phone-thread-head h2 {
  font-size: 24px;
  margin: 0 0 2px;
}

.phone-thread-head p {
  color: #5e667a;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.phone-thread-body {
  display: grid;
  gap: 10px;
  max-height: min(46vh, 430px);
  overflow-y: auto;
  padding: 18px 16px;
}

.thread-date {
  color: #7b8397;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.chat-bubble {
  display: grid;
  gap: 4px;
  max-width: min(78%, 420px);
}

.chat-bubble span {
  border-radius: 20px;
  display: block;
  font-weight: 750;
  line-height: 1.35;
  padding: 12px 14px;
}

.chat-bubble time {
  color: #7b8397;
  font-size: 11px;
  font-weight: 800;
  padding: 0 4px;
}

.chat-bubble.incoming {
  justify-self: start;
}

.chat-bubble.incoming span {
  background: #fff;
  border: 1px solid #e1e7f2;
  color: #101734;
}

.chat-bubble.outgoing {
  justify-self: end;
}

.chat-bubble.outgoing span {
  background: linear-gradient(135deg, #7e35e8, #2f6fe4);
  color: #fff;
}

.chat-bubble.outgoing time {
  text-align: right;
}

.phone-message-composer {
  align-items: end;
  background: #fff;
  border: 1px solid #e1e7f2;
  border-radius: 22px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 46px;
  margin-top: 14px;
  padding: 10px;
}

.phone-message-composer textarea {
  background: #f4f7fb;
  border: 0;
  border-radius: 16px;
  color: #101734;
  font: inherit;
  font-weight: 700;
  min-height: 46px;
  outline: 0;
  padding: 13px 14px;
  resize: vertical;
}

.phone-message-composer button {
  align-items: center;
  background: linear-gradient(135deg, #7e35e8, #2f6fe4);
  border: 0;
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  min-height: 46px;
  padding: 0;
  width: 46px;
}

.phone-message-composer button svg {
  height: 18px;
  width: 18px;
}

@media (max-width: 620px) {
  .messages-view.thread-open .phone-thread-head {
    grid-template-columns: 40px 44px minmax(0, 1fr);
    padding: 12px;
  }

  .messages-view.thread-open .message-back-button {
    display: inline-flex;
  }

  .phone-thread-head h2 {
    font-size: 20px;
  }

  .chat-bubble {
    max-width: 88%;
  }

  .phone-thread-body {
    max-height: 52vh;
    padding: 14px 12px;
  }
}

@media (min-width: 981px) {
  body[data-app="social"] .hp2-topbar {
    grid-template-columns: 1fr 340px 42px 42px auto;
  }

  body[data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 1fr 340px 42px 42px 42px auto;
  }
}

@media (max-width: 980px) {
  body[data-app="social"] .hp2-topbar {
    grid-template-columns: 34px minmax(0, 1fr) 36px 36px 42px;
  }

  body[data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 34px minmax(0, 1fr) 36px 36px 36px 42px;
  }
}

@media (max-width: 620px) {
  .message-favorites {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .message-favorites .contact-photo,
  .message-favorites .message-initial {
    height: 64px;
    width: 64px;
  }

  .message-favorites .message-initial {
    font-size: 26px;
  }

  .message-favorites strong {
    font-size: 13px;
  }
}

/* 2026 redesign layer: new folder only. */
body[data-redesign="2026"] {
  --purple: #4d34d4;
  --purple-2: #7d4af2;
  --blue: #2368d8;
  --ink: #090d2c;
  --body: #32384d;
  --muted: #697086;
  --line: #e4e7f2;
  --paper: #ffffff;
  --soft: #f4f6fb;
  --mint: #18a97b;
  --sun: #ffb662;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 18px 55px rgba(30, 33, 78, 0.11);
  --shadow-soft: 0 10px 28px rgba(31, 35, 80, 0.08);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body[data-redesign="2026"] * {
  box-sizing: border-box;
}

body[data-redesign="2026"] button,
body[data-redesign="2026"] input,
body[data-redesign="2026"] textarea,
body[data-redesign="2026"] select {
  font-family: inherit;
}

/* Refreshed onboarding and login */
body[data-redesign="2026"][data-flow="onboarding"],
body[data-redesign="2026"][data-flow="login"] {
  background:
    radial-gradient(circle at 12% 0%, rgba(125, 74, 242, 0.14), transparent 32%),
    radial-gradient(circle at 86% 9%, rgba(35, 104, 216, 0.12), transparent 34%),
    #f7f8fc;
}

body[data-redesign="2026"] .onboarding-shell {
  min-height: 100vh;
}

body[data-redesign="2026"] .screen {
  background: transparent;
}

body[data-redesign="2026"] .split-welcome {
  background: #11153a;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.74fr);
  min-height: 100vh;
  padding: 18px;
}

body[data-redesign="2026"] .welcome-visual {
  background:
    linear-gradient(180deg, rgba(9, 13, 44, 0.06), rgba(9, 13, 44, 0.72)),
    url("./assets/onboarding/welcome-split.png") center / cover;
  border-radius: 30px;
  min-height: calc(100vh - 36px);
  overflow: hidden;
}

body[data-redesign="2026"] .welcome-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(7, 10, 39, 0.24);
  margin: 0 0 0 -76px;
  max-width: 610px;
  padding: 56px;
  position: relative;
}

body[data-redesign="2026"] .hero-logo,
body[data-redesign="2026"] .step-badge {
  background: linear-gradient(145deg, #74b7eb, #4f36df);
  box-shadow: 0 18px 34px rgba(79, 54, 223, 0.25);
}

body[data-redesign="2026"] .hero-logo img,
body[data-redesign="2026"] .step-badge img {
  border-radius: 50%;
}

body[data-redesign="2026"] .welcome-panel h1,
body[data-redesign="2026"] .step-card h1,
body[data-redesign="2026"] .final-card h1 {
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 4.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

body[data-redesign="2026"] .welcome-panel .lead,
body[data-redesign="2026"] .step-subtitle,
body[data-redesign="2026"] .final-card p {
  color: #5d6482;
  font-size: clamp(1.02rem, 1.5vw, 1.34rem);
  line-height: 1.55;
}

body[data-redesign="2026"] .welcome-item,
body[data-redesign="2026"] .setting,
body[data-redesign="2026"] .input-row,
body[data-redesign="2026"] .field-label input,
body[data-redesign="2026"] .field-label select,
body[data-redesign="2026"] .outline-action {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e5e8f3;
  border-radius: 18px;
  box-shadow: none;
}

body[data-redesign="2026"] .welcome-item {
  padding: 17px 18px;
}

body[data-redesign="2026"] .soft-icon {
  background: linear-gradient(145deg, #f2edff, #e7efff);
  border-radius: 16px;
  color: #5436e4;
}

body[data-redesign="2026"] .primary,
body[data-redesign="2026"] .pill-link,
body[data-redesign="2026"] .form-submit {
  background: linear-gradient(135deg, #8b35e9, #2645e7);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(79, 54, 223, 0.22);
  color: #fff;
  font-weight: 800;
  min-height: 54px;
  padding: 0 28px;
}

body[data-redesign="2026"] .ghost-link {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
  text-decoration: none;
}

body[data-redesign="2026"] .mockup-hero {
  background:
    linear-gradient(180deg, rgba(8, 13, 48, 0.1), rgba(8, 13, 48, 0.38)),
    url("./assets/onboarding/mountain-header.png") center / cover;
  border-radius: 0 0 38px 38px;
  min-height: 330px;
  overflow: hidden;
}

body[data-redesign="2026"] .mockup-hero.short {
  min-height: 270px;
}

body[data-redesign="2026"] .mockup-nav {
  padding: 26px 34px;
}

body[data-redesign="2026"] .brand-mini {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  min-height: 44px;
  padding: 6px 12px;
}

body[data-redesign="2026"] .brand-logo-image {
  height: 32px;
  object-fit: contain;
  width: auto;
}

body[data-redesign="2026"] .word-logo {
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

body[data-redesign="2026"] .mockup-copy h2,
body[data-redesign="2026"] .mockup-copy p {
  text-shadow: 0 2px 16px rgba(7, 10, 40, 0.18);
}

body[data-redesign="2026"] .step-card,
body[data-redesign="2026"] .final-card,
body[data-redesign="2026"] .legal-dialog {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 224, 239, 0.86);
  border-radius: 30px;
  box-shadow: var(--shadow);
  margin-top: -48px;
  padding: 52px;
}

body[data-redesign="2026"] .step-card {
  max-width: 650px;
}

body[data-redesign="2026"] .profile-more,
body[data-redesign="2026"] .wide-card {
  max-width: 820px;
}

body[data-redesign="2026"] .setting {
  align-items: center;
  padding: 18px;
}

body[data-redesign="2026"] .choice-grid label > span {
  background: #fff;
  border: 1px solid #e4e7f2;
  border-radius: 16px;
}

body[data-redesign="2026"] input:focus,
body[data-redesign="2026"] textarea:focus,
body[data-redesign="2026"] select:focus {
  border-color: rgba(79, 54, 223, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(79, 54, 223, 0.1) !important;
  outline: none;
}

body[data-redesign="2026"] .site-footer {
  background: #fff;
  border-top: 1px solid #e8ebf5;
}

/* Login refresh */
.login-refresh-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  min-height: 100vh;
  padding: 22px;
}

.login-refresh-art {
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(8, 12, 42, 0.16), rgba(8, 12, 42, 0.72)),
    url("./assets/onboarding/welcome-split.png") center / cover;
  border-radius: 34px;
  color: #fff;
  display: grid;
  overflow: hidden;
  padding: 34px;
}

.login-brand {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 26px;
  font-weight: 800;
  gap: 12px;
  text-decoration: none;
}

.login-brand img {
  height: 42px;
  width: 42px;
}

.login-refresh-art h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 22px;
  max-width: 760px;
}

.login-refresh-art p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1.5;
  max-width: 610px;
}

.login-kicker {
  color: #5b3df1;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.login-refresh-art .login-kicker {
  color: #d9d4ff;
}

.login-refresh-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e6e9f4;
  border-radius: 34px;
  box-shadow: var(--shadow);
  margin-left: -70px;
  padding: 52px;
}

.login-panel-logo {
  display: block;
  height: 86px;
  margin: 0 0 28px;
  width: 86px;
}

.login-refresh-panel h2 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 28px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 9px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  background: #f7f8fc;
  border: 1px solid #e0e4f0;
  border-radius: 18px;
  color: var(--ink);
  font-size: 17px;
  min-height: 58px;
  padding: 0 18px;
}

.login-options {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.login-options label {
  align-items: center;
  color: #626a80;
  display: flex;
  font-weight: 700;
  gap: 8px;
}

.login-options a {
  color: #4d34d4;
  font-weight: 800;
}

.login-form button {
  background: linear-gradient(135deg, #8b35e9, #2645e7);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  min-height: 58px;
}

/* Main app refresh */
body[data-redesign="2026"][data-app="social"] {
  background:
    radial-gradient(circle at 15% -10%, rgba(125, 74, 242, 0.14), transparent 35%),
    radial-gradient(circle at 92% 5%, rgba(35, 104, 216, 0.09), transparent 32%),
    #f6f8fc;
  color: var(--ink);
}

body[data-redesign="2026"] .hp2-shell {
  grid-template-columns: 238px minmax(0, 1fr);
}

body[data-redesign="2026"] .hp2-sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid #e7ebf4;
  box-shadow: 12px 0 40px rgba(25, 29, 69, 0.04);
  gap: 24px;
  padding: 26px 18px;
}

body[data-redesign="2026"] .hp2-sidebar .app-logo {
  align-self: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  height: auto;
  margin: 0 0 4px;
  padding: 0;
  width: auto;
}

body[data-redesign="2026"] .hp2-sidebar .app-logo img {
  height: 76px;
  width: 76px;
}

body[data-redesign="2026"] .hp2-sidebar .side-nav {
  gap: 8px;
}

body[data-redesign="2026"] .hp2-sidebar .side-nav button {
  border-radius: 16px;
  color: #171b41;
  font-size: 15px;
  font-weight: 720;
  gap: 14px;
  min-height: 50px;
  padding: 0 16px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body[data-redesign="2026"] .hp2-sidebar .side-nav button:hover {
  background: #f5f2ff;
  transform: translateX(2px);
}

body[data-redesign="2026"] .hp2-sidebar .side-nav button.active {
  background: #ece7ff;
  color: #5132e5;
  font-weight: 900;
}

body[data-redesign="2026"] .hp2-sidebar .side-nav button.active svg {
  stroke-width: 2.8;
}

body[data-redesign="2026"] .hp2-main {
  max-width: 1180px;
  padding: 34px 42px 56px;
}

body[data-redesign="2026"] .hp2-topbar {
  background: rgba(246, 248, 252, 0.88);
  backdrop-filter: blur(22px);
  border-bottom: 0;
  gap: 14px;
  grid-template-columns: 1fr minmax(280px, 430px) 42px 42px auto;
  margin: -34px -42px 34px;
  padding: 24px 42px 18px;
}

body[data-redesign="2026"][data-current-view="gear"] .hp2-topbar {
  grid-template-columns: 1fr minmax(280px, 430px) 42px 42px 42px auto;
}

body[data-redesign="2026"] .hp2-search {
  background: #fff;
  border: 1px solid #e8ebf4;
  box-shadow: 0 12px 34px rgba(22, 28, 64, 0.06);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30px;
  height: 54px;
  justify-self: end;
  max-width: 430px;
  padding: 0 10px 0 18px;
}

body[data-redesign="2026"] .hp2-search input {
  font-size: 16px;
}

body[data-redesign="2026"] .hp2-search button {
  background: #5132e5 !important;
  border-radius: 50% !important;
  color: #fff !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  width: 30px !important;
}

body[data-redesign="2026"] .hp2-search button svg {
  height: 14px;
  width: 14px;
}

body[data-redesign="2026"] .top-icon {
  background: #fff;
  border: 1px solid #e7ebf4;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(22, 28, 64, 0.06);
  color: var(--ink);
  height: 42px;
  width: 42px;
}

body[data-redesign="2026"] .profile-chip {
  background: transparent;
  border: 0;
  color: var(--ink);
  gap: 10px;
  padding: 0;
}

body[data-redesign="2026"] .profile-chip .avatar-photo {
  height: 46px;
  width: 46px;
}

body[data-redesign="2026"] .hp2-heading-row {
  align-items: center;
  margin-bottom: 28px;
}

body[data-redesign="2026"] .home-heading h1,
body[data-redesign="2026"] .page-head h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

body[data-redesign="2026"] .home-heading p {
  color: #5132e5;
  font-size: 14px;
  letter-spacing: 0.04em;
}

body[data-redesign="2026"] .streak-card {
  border-radius: 20px;
  min-width: 178px;
  padding: 18px 20px;
}

body[data-redesign="2026"] .slide-card,
body[data-redesign="2026"] .hp2-sober,
body[data-redesign="2026"] .notice-ad {
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

body[data-redesign="2026"] .hp2-sober {
  background:
    linear-gradient(90deg, rgba(5, 9, 32, 0.9), rgba(15, 20, 58, 0.35)),
    url("./assets/sobercon-banner.svg") center / cover,
    linear-gradient(145deg, #1a3777, #7c4ff0);
  min-height: 300px;
}

body[data-redesign="2026"] .hp2-sober h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

body[data-redesign="2026"] .hp2-sober button,
body[data-redesign="2026"] .notice-ad button,
body[data-redesign="2026"] .quick-grid button,
body[data-redesign="2026"] .schedule-list button,
body[data-redesign="2026"] .gear-actions button,
body[data-redesign="2026"] .group-actions button,
body[data-redesign="2026"] .modal-actions button,
body[data-redesign="2026"] .modal-primary,
body[data-redesign="2026"] .modal-form button {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
}

body[data-redesign="2026"] .quick-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-redesign="2026"] .quick-grid button,
body[data-redesign="2026"] .post-composer-card,
body[data-redesign="2026"] .post-card,
body[data-redesign="2026"] .group-card,
body[data-redesign="2026"] .schedule-list,
body[data-redesign="2026"] .note-stack article,
body[data-redesign="2026"] .page-view .library-tile,
body[data-redesign="2026"] .module-card,
body[data-redesign="2026"] .settings-panel article,
body[data-redesign="2026"] .contact-card,
body[data-redesign="2026"] .gear-product {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e7ebf4;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

body[data-redesign="2026"] .quick-grid button {
  min-height: 128px;
  padding: 18px 14px;
}

body[data-redesign="2026"] .quick-grid button span {
  background: #f1edff;
  border-radius: 16px;
  color: #5132e5;
  display: inline-grid;
  height: 44px;
  margin-bottom: 8px;
  place-items: center;
  width: 44px;
}

body[data-redesign="2026"] .post-composer-card {
  align-items: center;
  gap: 16px;
  margin: 8px 0 30px;
  padding: 14px;
}

body[data-redesign="2026"] .post-composer-card > button {
  background: #f1f3f8;
  border-radius: 999px;
  color: #6c7388;
  font-size: 16px;
  min-height: 52px;
  text-align: left;
}

body[data-redesign="2026"] .section-head {
  margin-bottom: 16px;
}

body[data-redesign="2026"] .section-head h2,
body[data-redesign="2026"] .quick-actions h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body[data-redesign="2026"] .post-card {
  min-height: 230px;
  padding: 22px;
}

body[data-redesign="2026"] .post-card .avatar,
body[data-redesign="2026"] .avatar-photo,
body[data-redesign="2026"] .contact-photo {
  box-shadow: 0 8px 18px rgba(26, 30, 70, 0.12);
}

body[data-redesign="2026"] .group-card {
  overflow: hidden;
}

body[data-redesign="2026"] .group-card::before {
  min-height: 142px;
}

body[data-redesign="2026"] .group-actions {
  gap: 10px;
  margin-top: auto;
}

body[data-redesign="2026"] .home-two-column {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-redesign="2026"] .encouragement-banner {
  background:
    linear-gradient(135deg, rgba(83, 50, 229, 0.12), rgba(35, 104, 216, 0.1)),
    #fff;
  border: 1px solid #e7ebf4;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

body[data-redesign="2026"] .page-view {
  max-width: none;
}

body[data-redesign="2026"] .page-head {
  margin-bottom: 28px;
}

body[data-redesign="2026"] .page-head p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
  max-width: 760px;
}

body[data-redesign="2026"] .group-search,
body[data-redesign="2026"] .message-search {
  background: #fff;
  border: 1px solid #e7ebf4;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  min-height: 58px;
  padding: 0 12px 0 20px;
}

body[data-redesign="2026"] .group-search button {
  align-self: center;
  background: #5132e5;
  border-radius: 50%;
  color: #fff;
  height: 34px;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

body[data-redesign="2026"] .message-search input {
  font-size: 18px;
  min-height: 58px;
}

body[data-redesign="2026"] .message-favorites {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e7ebf4;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

body[data-redesign="2026"] .message-thread-list article button {
  border-radius: 20px;
}

body[data-redesign="2026"] .message-thread-list article.unread button {
  background: linear-gradient(135deg, #1b76d4, #5436e4);
}

body[data-redesign="2026"] .gear-grid,
body[data-redesign="2026"] .product-grid,
body[data-redesign="2026"] .page-grid,
body[data-redesign="2026"] .library-grid,
body[data-redesign="2026"] .module-grid {
  gap: 24px;
}

body[data-redesign="2026"] .gear-product {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
}

body[data-redesign="2026"] .gear-product > span:first-child {
  border-radius: 20px 20px 0 0;
  min-height: 210px;
}

body[data-redesign="2026"] .gear-product h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body[data-redesign="2026"] .gear-product p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

body[data-redesign="2026"] .gear-actions {
  gap: 12px;
  margin-top: auto;
}

body[data-redesign="2026"] .gear-actions button:first-child {
  background: #fff;
  border: 1px solid #ddd7ff;
  color: #5132e5;
}

body[data-redesign="2026"] .app-dialog,
body[data-redesign="2026"] .logout-dialog {
  border: 1px solid #e7ebf4;
  border-radius: 30px;
  box-shadow: 0 30px 120px rgba(7, 10, 35, 0.28);
  padding: 44px;
}

body[data-redesign="2026"] .modal-x,
body[data-redesign="2026"] .legal-close {
  background: #f0edff;
  border: 1px solid #dfd7ff;
  border-radius: 50%;
  color: #5132e5;
  font-size: 30px;
  font-weight: 800;
  height: 54px;
  width: 54px;
}

body[data-redesign="2026"] .modal-actions {
  gap: 16px;
}

body[data-redesign="2026"] .modal-actions button,
body[data-redesign="2026"] .modal-primary,
body[data-redesign="2026"] .modal-form button {
  font-size: 16px;
  min-height: 54px;
}

body[data-redesign="2026"] .modal-primary,
body[data-redesign="2026"] .modal-form button[type="submit"],
body[data-redesign="2026"] .modal-actions button:last-child {
  background: linear-gradient(135deg, #8b35e9, #2645e7);
  color: #fff;
}

@media (max-width: 1180px) {
  body[data-redesign="2026"] .hp2-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body[data-redesign="2026"] .hp2-main {
    padding: 28px 28px 44px;
  }

  body[data-redesign="2026"] .hp2-topbar {
    margin: -28px -28px 28px;
    padding: 22px 28px 16px;
  }

  body[data-redesign="2026"] .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-redesign="2026"] .split-welcome,
  .login-refresh-shell {
    display: block;
    padding: 14px;
  }

  body[data-redesign="2026"] .welcome-visual,
  .login-refresh-art {
    min-height: 42vh;
  }

  body[data-redesign="2026"] .welcome-panel,
  .login-refresh-panel {
    margin: -42px auto 0;
    max-width: 680px;
    padding: 34px;
  }

  body[data-redesign="2026"] .hp2-shell {
    display: block;
  }

  body[data-redesign="2026"] .hp2-sidebar {
    border-radius: 0 24px 24px 0;
    max-width: 280px;
  }

  body[data-redesign="2026"] .hp2-main {
    max-width: none;
    padding: 18px 16px 90px;
  }

  body[data-redesign="2026"] .hp2-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px 48px;
    margin: -18px -16px 24px;
    padding: 14px 16px;
  }

  body[data-redesign="2026"][data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px 40px 48px;
  }

  body[data-redesign="2026"] .hp2-search {
    height: 46px;
    max-width: none;
  }

  body[data-redesign="2026"] .hp2-heading-row,
  body[data-redesign="2026"] .home-two-column {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-redesign="2026"] .streak-card {
    justify-self: start;
  }

  body[data-redesign="2026"] .hp2-sober {
    display: block;
    min-height: 360px;
  }

  body[data-redesign="2026"] .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body[data-redesign="2026"] .step-card,
  body[data-redesign="2026"] .final-card,
  body[data-redesign="2026"] .legal-dialog,
  body[data-redesign="2026"] .app-dialog {
    border-radius: 24px;
    padding: 28px;
  }

  body[data-redesign="2026"] .mockup-hero {
    min-height: 270px;
  }

  body[data-redesign="2026"] .mockup-copy {
    padding: 0 22px 38px;
  }

  body[data-redesign="2026"] .word-logo {
    font-size: 3rem;
  }

  body[data-redesign="2026"] .quick-grid,
  body[data-redesign="2026"] .group-card-grid,
  body[data-redesign="2026"] .gear-grid,
  body[data-redesign="2026"] .library-grid,
  body[data-redesign="2026"] .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-redesign="2026"] .quick-grid button {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  body[data-redesign="2026"] .gear-product {
    min-height: 410px;
  }

  body[data-redesign="2026"] .gear-product > span:first-child {
    min-height: 138px;
  }

  body[data-redesign="2026"] .gear-product p {
    font-size: 14px;
  }

  body[data-redesign="2026"] .gear-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-redesign="2026"] .message-favorites {
    gap: 16px 10px;
    padding: 16px;
  }

  body[data-redesign="2026"] .message-favorites .contact-photo,
  body[data-redesign="2026"] .message-favorites .message-initial {
    height: 58px;
    width: 58px;
  }
}

@media (max-width: 460px) {
  body[data-redesign="2026"] .quick-grid,
  body[data-redesign="2026"] .group-card-grid,
  body[data-redesign="2026"] .gear-grid,
  body[data-redesign="2026"] .library-grid,
  body[data-redesign="2026"] .module-grid {
    grid-template-columns: 1fr;
  }

  body[data-redesign="2026"] .login-refresh-panel,
  body[data-redesign="2026"] .welcome-panel {
    padding: 26px;
  }
}

/* Redesign correction: remove mockup-on-mockup overlap from welcome and login. */
body[data-redesign="2026"][data-flow="onboarding"] .split-welcome {
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 74, 242, 0.18), transparent 34%),
    #11153a;
  display: none;
  gap: 14px;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 460px);
  padding: 14px;
}

body[data-redesign="2026"][data-flow="onboarding"] .split-welcome.active {
  display: grid;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual,
body[data-redesign="2026"][data-flow="login"] .login-refresh-art {
  background:
    linear-gradient(180deg, rgba(8, 12, 42, 0.02), rgba(8, 12, 42, 0.74)),
    url("./assets/mission-photo.png") center / cover no-repeat;
  border: 0;
  border-radius: 22px;
  min-height: calc(100vh - 28px);
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel {
  align-self: stretch;
  border: 1px solid rgba(231, 235, 244, 0.9);
  border-radius: 22px;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 28px);
  overflow: auto;
  padding: clamp(22px, 2.45vw, 36px);
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel h1 {
  font-size: clamp(2rem, 2.9vw, 3.55rem);
  max-width: 500px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel .lead {
  max-width: 520px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-list {
  max-width: 540px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel .hero-logo-large {
  height: clamp(58px, 5.3vw, 82px);
  margin-bottom: clamp(12px, 1.5vw, 20px);
  width: clamp(58px, 5.3vw, 82px);
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-item .soft-icon {
  height: 42px;
  width: 42px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel .primary.wide {
  margin-top: 10px;
}

body[data-redesign="2026"][data-flow="login"] .login-refresh-shell {
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  padding: 22px;
}

body[data-redesign="2026"][data-flow="login"] .login-refresh-art {
  align-content: end;
  padding: 44px;
}

body[data-redesign="2026"][data-flow="login"] .login-brand {
  display: none;
}

body[data-redesign="2026"][data-flow="login"] .login-refresh-art h1 {
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  letter-spacing: -0.045em;
  max-width: 680px;
  overflow-wrap: normal;
}

body[data-redesign="2026"][data-flow="login"] .login-refresh-art p {
  max-width: 560px;
}

body[data-redesign="2026"][data-flow="login"] .login-refresh-panel {
  align-self: center;
  margin: 0;
  max-width: none;
  padding: clamp(38px, 4.4vw, 58px);
}

body[data-redesign="2026"][data-flow="login"] .login-refresh-panel h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
}

/* Redesign correction: remove the visible topbar slab and reduce home headline scale. */
body[data-redesign="2026"][data-app="social"] .hp2-topbar {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

body[data-redesign="2026"][data-app="social"] .hp2-main {
  padding-top: 28px;
}

body[data-redesign="2026"][data-app="social"] .home-heading h1 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.035em;
}

body[data-redesign="2026"][data-app="social"] .page-head h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
}

body[data-redesign="2026"][data-app="social"] .hp2-shell {
  grid-template-columns: 286px minmax(0, 1fr);
}

body[data-redesign="2026"][data-app="social"] .hp2-sidebar {
  padding-left: 24px;
  padding-right: 24px;
}

body[data-redesign="2026"][data-app="social"] .hp2-sidebar .side-nav button {
  padding-left: 20px;
  padding-right: 18px;
}

body[data-redesign="2026"][data-app="social"] .hero-carousel .carousel-viewport {
  background: transparent;
  border-radius: 26px;
  overflow: hidden;
}

body[data-redesign="2026"][data-app="social"] .hero-carousel .carousel-track {
  background: transparent;
}

body[data-redesign="2026"][data-app="social"] .hero-carousel .slide-card,
body[data-redesign="2026"][data-app="social"] .hero-carousel .hp2-sober,
body[data-redesign="2026"][data-app="social"] .hero-carousel .notice-ad {
  border-radius: 0;
}

@media (max-width: 980px) {
  body[data-redesign="2026"][data-flow="onboarding"] .split-welcome,
  body[data-redesign="2026"][data-flow="login"] .login-refresh-shell {
    display: block;
    padding: 14px;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .split-welcome:not(.active) {
    display: none;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual,
  body[data-redesign="2026"][data-flow="login"] .login-refresh-art {
    min-height: 36vh;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel,
  body[data-redesign="2026"][data-flow="login"] .login-refresh-panel {
    margin: 14px 0 0;
    min-height: auto;
  }
}

/* Workspace onboarding cleanup: remove the oversized mockup backdrop behind forms. */
body[data-redesign="2026"][data-flow="onboarding"] .screen.active:not(.split-welcome) {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 26px;
}

body[data-redesign="2026"][data-flow="onboarding"] .screen:not(.split-welcome):not(.active) {
  display: none;
}

body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero,
body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero.short {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 82px;
  margin: 0 auto;
  max-width: 744px;
  min-height: 0;
  overflow: visible;
  width: min(744px, 100%);
}

body[data-redesign="2026"][data-flow="onboarding"] .mockup-nav {
  align-items: center;
  display: flex;
  inset: auto;
  justify-content: space-between;
  padding: 0;
  position: relative;
}

body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero .mockup-copy,
body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero .top-actions,
body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero .floating-cta {
  display: none;
}

body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero .brand-mini,
body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero .brand-mini.floating {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  left: auto;
  min-height: 0;
  padding: 0;
  position: relative;
  top: auto;
}

body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero .brand-logo-image {
  height: auto;
  width: clamp(150px, 14vw, 208px);
}

body[data-redesign="2026"][data-flow="onboarding"] .step-card,
body[data-redesign="2026"][data-flow="onboarding"] .step-card.compact-form,
body[data-redesign="2026"][data-flow="onboarding"] .step-card.profile-form,
body[data-redesign="2026"][data-flow="onboarding"] .step-card.wide-card,
body[data-redesign="2026"][data-flow="onboarding"] .step-card.toggle-card,
body[data-redesign="2026"][data-flow="onboarding"] .final-card {
  margin: 16px auto 34px;
}

body[data-redesign="2026"][data-flow="onboarding"] .compact-form {
  max-width: 760px;
}

body[data-redesign="2026"][data-flow="onboarding"] .step-card h1 {
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  text-align: center;
}

body[data-redesign="2026"][data-flow="onboarding"] .step-subtitle {
  text-align: center;
}

@media (max-width: 760px) {
  body[data-redesign="2026"][data-flow="onboarding"] .screen.active:not(.split-welcome) {
    padding: 16px;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero,
  body[data-redesign="2026"][data-flow="onboarding"] .mockup-hero.short {
    height: 62px;
    width: 100%;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .step-card h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }
}

/* Third option: calm recovery workspace. */
body[data-workspace-option="calm"] {
  --ws-ink: #111827;
  --ws-muted: #64748b;
  --ws-soft: #f4f7fb;
  --ws-line: #dde5ee;
  --ws-blue: #2f6fe4;
  --ws-teal: #14a78f;
  --ws-violet: #6750d8;
  --ws-amber: #f59e0b;
  --ws-card: #ffffff;
  background:
    linear-gradient(90deg, #fff 0 94px, transparent 94px),
    radial-gradient(circle at 88% 0%, rgba(20, 167, 143, 0.1), transparent 30%),
    #f6f8fb;
  color: var(--ws-ink);
}

body[data-workspace-option="calm"] .hp2-shell {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 100vh;
}

body[data-workspace-option="calm"] .hp2-sidebar {
  align-items: center;
  background: #fff;
  border-right: 1px solid var(--ws-line);
  box-shadow: none;
  gap: 18px;
  min-height: 100vh;
  overflow: visible;
  padding: 22px 12px;
  position: sticky;
  top: 0;
}

body[data-workspace-option="calm"] .hp2-sidebar .app-logo img {
  height: 54px;
  width: 54px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav {
  align-items: center;
  border: 0;
  display: grid;
  gap: 8px;
  width: 100%;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav-secondary {
  border-top: 1px solid var(--ws-line);
  padding-top: 14px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button {
  align-items: center;
  background: transparent;
  border-radius: 16px;
  color: #334155;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  justify-items: center;
  line-height: 1.1;
  min-height: 64px;
  padding: 7px 4px;
  text-align: center;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button span[data-social-icon] {
  color: inherit;
  height: 24px;
  width: 24px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button.active {
  background: #eaf1ff;
  color: var(--ws-blue);
  font-weight: 900;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button b {
  background: var(--ws-teal);
  border: 2px solid #fff;
  margin: -4px 0 0;
}

body[data-workspace-option="calm"] .hp2-invite {
  display: none;
}

body[data-workspace-option="calm"] .hp2-main {
  display: block;
  margin: 0 auto;
  max-width: 1320px;
  padding: 26px 34px 56px;
}

body[data-workspace-option="calm"] .hp2-topbar {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(260px, 460px) 42px 42px auto;
  margin: 0 0 26px;
  padding: 0;
  position: static;
}

body[data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar {
  grid-template-columns: 42px minmax(260px, 460px) 42px 42px 42px auto;
}

body[data-workspace-option="calm"] .hp2-search {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  box-shadow: none;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  height: 46px;
  justify-self: start;
  max-width: 460px;
  padding: 0 6px 0 14px;
}

body[data-workspace-option="calm"] .hp2-search button {
  background: var(--ws-blue) !important;
  border-radius: 10px !important;
  color: #fff !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  width: 34px !important;
}

body[data-workspace-option="calm"] .top-icon {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  box-shadow: none;
  color: #172033;
}

body[data-workspace-option="calm"] .top-icon b {
  background: var(--ws-teal);
}

body[data-workspace-option="calm"] .profile-chip {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  box-shadow: none;
  padding: 5px 10px 5px 5px;
}

body[data-workspace-option="calm"] .profile-chip .avatar-photo {
  height: 38px;
  width: 38px;
}

body[data-workspace-option="calm"] .app-view[data-view="home"].active {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

body[data-workspace-option="calm"] .hp2-heading-row,
body[data-workspace-option="calm"] .hero-carousel,
body[data-workspace-option="calm"] .quick-actions,
body[data-workspace-option="calm"] .post-composer-card,
body[data-workspace-option="calm"] .dashboard-section,
body[data-workspace-option="calm"] .home-two-column,
body[data-workspace-option="calm"] .encouragement-banner {
  grid-column: 1;
}

body[data-workspace-option="calm"] .workspace-panel {
  align-self: start;
  display: grid;
  gap: 16px;
  grid-column: 2;
  grid-row: 1 / span 20;
  position: sticky;
  top: 26px;
}

body[data-workspace-option="calm"] .workspace-panel section,
body[data-workspace-option="calm"] .hp2-heading-row,
body[data-workspace-option="calm"] .post-composer-card,
body[data-workspace-option="calm"] .dashboard-section,
body[data-workspace-option="calm"] .quick-actions,
body[data-workspace-option="calm"] .encouragement-banner,
body[data-workspace-option="calm"] .page-view {
  background: var(--ws-card);
  border: 1px solid var(--ws-line);
  border-radius: 20px;
  box-shadow: none;
}

body[data-workspace-option="calm"] .hp2-heading-row {
  align-items: center;
  margin: 0;
  padding: 22px;
}

body[data-workspace-option="calm"] .home-heading h1 {
  color: var(--ws-ink);
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  letter-spacing: -0.04em;
}

body[data-workspace-option="calm"] .home-heading p {
  color: var(--ws-teal);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

body[data-workspace-option="calm"] .streak-card {
  background: #fff8ed;
  border-color: #f4dfbd;
  border-radius: 18px;
  box-shadow: none;
  min-width: 170px;
}

body[data-workspace-option="calm"] .streak-card > span:first-child {
  color: var(--ws-amber);
}

body[data-workspace-option="calm"] .hero-carousel {
  background: transparent;
  border: 0;
  border-radius: 22px;
  margin: 0;
  overflow: hidden;
}

body[data-workspace-option="calm"] .hero-carousel .carousel-viewport {
  background: transparent;
  border-radius: 22px;
  clip-path: inset(0 round 22px);
  overflow: hidden;
  transform: translateZ(0);
}

body[data-workspace-option="calm"] .hero-carousel .carousel-track {
  background: transparent;
  gap: 0;
}

body[data-workspace-option="calm"] .hp2-sober,
body[data-workspace-option="calm"] .notice-ad {
  border-radius: 0;
  box-shadow: none;
  min-height: 178px;
  padding: 20px 26px;
}

body[data-workspace-option="calm"] .hp2-sober {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.5)),
    url("./assets/sobercon-banner.svg") center / cover;
}

body[data-workspace-option="calm"] .hp2-sober h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

body[data-workspace-option="calm"] .hp2-sober button,
body[data-workspace-option="calm"] .notice-ad button {
  background: var(--ws-teal);
  border-radius: 12px;
}

body[data-workspace-option="calm"] .quick-actions {
  padding: 20px;
}

body[data-workspace-option="calm"] .quick-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-workspace-option="calm"] .quick-grid button {
  background: var(--ws-soft);
  border: 1px solid #e3ebf3;
  border-radius: 16px;
  box-shadow: none;
  min-height: 118px;
}

body[data-workspace-option="calm"] .quick-grid button span {
  background: #fff;
  color: var(--ws-blue);
}

body[data-workspace-option="calm"] .post-composer-card {
  margin: 0;
  padding: 12px;
}

body[data-workspace-option="calm"] .post-composer-card > button {
  background: var(--ws-soft);
  border-radius: 14px;
  min-height: 48px;
}

body[data-workspace-option="calm"] .dashboard-section {
  margin: 0;
  padding: 20px;
}

body[data-workspace-option="calm"] .section-head h2,
body[data-workspace-option="calm"] .quick-actions h2 {
  color: var(--ws-ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}

body[data-workspace-option="calm"] .post-card,
body[data-workspace-option="calm"] .group-card,
body[data-workspace-option="calm"] .note-stack article,
body[data-workspace-option="calm"] .schedule-list {
  border-color: var(--ws-line);
  border-radius: 16px;
  box-shadow: none;
}

body[data-workspace-option="calm"] .post-card {
  min-height: 210px;
}

body[data-workspace-option="calm"] .post-head {
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
}

body[data-workspace-option="calm"] .post-head > button {
  justify-self: end;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

body[data-workspace-option="calm"] .home-two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body[data-workspace-option="calm"] .home-two-column .dashboard-section {
  margin: 0;
}

body[data-workspace-option="calm"] .note-stack {
  display: grid;
  gap: 12px;
}

body[data-workspace-option="calm"] .note-stack article {
  align-items: start;
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px;
}

body[data-workspace-option="calm"] .note-stack article + article {
  border-top: 1px solid var(--ws-line);
}

body[data-workspace-option="calm"] .note-stack > article > span {
  border-radius: 9px;
  height: 34px;
  width: 34px;
}

body[data-workspace-option="calm"] .note-stack h3 {
  font-size: 15px;
  line-height: 1.15;
  margin: 0 0 4px;
}

body[data-workspace-option="calm"] .note-stack small {
  margin-bottom: 8px;
}

body[data-workspace-option="calm"] .note-stack p {
  color: var(--ws-ink);
  font-size: 13px;
  line-height: 1.36;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body[data-workspace-option="calm"] .note-stack article > button {
  display: none;
}

body[data-workspace-option="calm"] .encouragement-banner {
  background:
    linear-gradient(135deg, rgba(20, 167, 143, 0.14), rgba(47, 111, 228, 0.08)),
    #fff;
}

body[data-workspace-option="calm"] .workspace-support-card {
  background: #0f172a !important;
  color: #fff;
  padding: 22px;
}

body[data-workspace-option="calm"] .workspace-support-card > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #bff4e8;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

body[data-workspace-option="calm"] .workspace-support-card h2,
body[data-workspace-option="calm"] .workspace-today-card h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0;
}

body[data-workspace-option="calm"] .workspace-support-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

body[data-workspace-option="calm"] .workspace-support-card button {
  background: var(--ws-teal);
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

body[data-workspace-option="calm"] .workspace-today-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

body[data-workspace-option="calm"] .workspace-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

body[data-workspace-option="calm"] .workspace-panel-head button,
body[data-workspace-option="calm"] .workspace-today-card article button {
  background: #eef5ff;
  border: 0;
  border-radius: 999px;
  color: var(--ws-blue);
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  padding: 0 11px;
}

body[data-workspace-option="calm"] .workspace-today-card article {
  border-top: 1px solid var(--ws-line);
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

body[data-workspace-option="calm"] .workspace-today-card article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

body[data-workspace-option="calm"] .workspace-today-card small {
  color: var(--ws-teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-workspace-option="calm"] .workspace-today-card span,
body[data-workspace-option="calm"] .workspace-today-card li {
  color: var(--ws-muted);
}

body[data-workspace-option="calm"] .workspace-today-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

body[data-workspace-option="calm"] .page-view {
  padding: 28px;
}

body[data-workspace-option="calm"] .page-head h1 {
  color: var(--ws-ink);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

/* Workspace nav revision: mature grouped side menu instead of tall icon tiles. */
body[data-workspace-option="calm"] {
  background:
    radial-gradient(circle at 88% 0%, rgba(20, 167, 143, 0.1), transparent 30%),
    #f6f8fb;
}

body[data-workspace-option="calm"] .hp2-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

body[data-workspace-option="calm"] .hp2-sidebar {
  align-items: stretch;
  gap: 16px;
  padding: 22px 18px;
}

body[data-workspace-option="calm"] .hp2-sidebar .app-logo {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin: 0 0 6px;
  width: 100%;
}

body[data-workspace-option="calm"] .hp2-sidebar .app-logo::after {
  color: var(--ws-ink);
  content: "Parachute";
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body[data-workspace-option="calm"] .hp2-sidebar .app-logo img {
  height: 42px;
  width: 42px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav {
  align-items: stretch;
  border-top: 1px solid var(--ws-line);
  gap: 5px;
  padding-top: 14px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav:first-of-type::before,
body[data-workspace-option="calm"] .hp2-sidebar .side-nav-secondary:first-of-type::before,
body[data-workspace-option="calm"] .hp2-sidebar .side-nav-secondary:last-of-type::before {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0 12px 4px;
  text-transform: uppercase;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav:first-of-type::before {
  content: "Workspace";
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav-secondary:first-of-type::before {
  content: "Account";
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav-secondary:last-of-type::before {
  content: "System";
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button {
  align-items: center;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  font-size: 14px;
  gap: 11px;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button span[data-social-icon] {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button b {
  font-size: 13px;
  height: 26px;
  margin: 0 0 0 auto;
  min-width: 26px;
  padding: 0 7px;
}

body[data-workspace-option="calm"] .top-icon b {
  font-size: 13px;
  height: 25px;
  min-width: 25px;
  padding: 0 7px;
  right: -7px;
  top: -8px;
}

body[data-workspace-option="calm"] .hp2-sidebar .side-nav button.active {
  background: #eaf1ff;
  box-shadow: inset 3px 0 0 var(--ws-blue);
}

body[data-workspace-option="calm"] .group-search,
body[data-workspace-option="calm"] .message-search {
  border-radius: 16px;
  box-shadow: none;
}

body[data-workspace-option="calm"] .app-dialog,
body[data-workspace-option="calm"] .logout-dialog {
  border-radius: 22px;
}

@media (max-width: 1180px) {
  body[data-workspace-option="calm"] .app-view[data-view="home"].active {
    grid-template-columns: 1fr;
  }

  body[data-workspace-option="calm"] .workspace-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 980px) {
  body[data-workspace-option="calm"] {
    background: #f6f8fb;
  }

  body[data-workspace-option="calm"] .hp2-shell {
    display: block;
  }

  body[data-workspace-option="calm"] .hp2-sidebar {
    align-items: stretch;
    min-height: 0;
    max-width: 300px;
    overflow-y: auto;
    position: fixed;
  }

  body[data-workspace-option="calm"] .hp2-sidebar .side-nav button {
    display: flex;
    font-size: 15px;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 16px;
    text-align: left;
  }

  body[data-workspace-option="calm"] .hp2-main {
    padding: 18px 16px 88px;
  }

  body[data-workspace-option="calm"] .hp2-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px 48px;
  }

  body[data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 40px 40px 40px 48px;
  }

  body[data-workspace-option="calm"] .quick-grid,
  body[data-workspace-option="calm"] .home-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body[data-workspace-option="calm"] .quick-grid,
  body[data-workspace-option="calm"] .home-two-column {
    grid-template-columns: 1fr;
  }
}

/* Welcome option: image-led split composition inspired by the login reference. */
body[data-redesign="2026"][data-flow="onboarding"] .split-welcome {
  align-items: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(125, 74, 242, 0.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(47, 111, 228, 0.12), transparent 34%),
    #eff3fb;
  gap: clamp(18px, 2vw, 30px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  min-height: 100vh;
  padding: clamp(16px, 1.8vw, 28px);
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual {
  align-self: center;
  border-radius: 26px;
  min-height: min(760px, calc(100vh - 56px));
  position: relative;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual::after {
  background: linear-gradient(180deg, rgba(7, 10, 35, 0.02) 42%, rgba(7, 10, 35, 0.72) 100%);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual::before {
  bottom: clamp(30px, 4vw, 62px);
  color: #fff;
  content: "You don't have to do this alone.";
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 900;
  left: clamp(28px, 4vw, 58px);
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 720px;
  position: absolute;
  text-shadow: 0 12px 35px rgba(5, 8, 30, 0.42);
  z-index: 1;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel {
  align-self: center;
  border-radius: 34px;
  max-width: 500px;
  min-height: 0;
  overflow: visible;
  padding: clamp(28px, 3.2vw, 48px);
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel .hero-logo-large {
  height: clamp(58px, 4.6vw, 82px);
  margin: 0 0 clamp(16px, 1.8vw, 26px);
  width: clamp(58px, 4.6vw, 82px);
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel h1 {
  font-size: clamp(2.35rem, 3.45vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: 14px;
  text-align: left;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel .lead {
  font-size: clamp(1rem, 1.15vw, 1.24rem);
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 24px;
  text-align: left;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-item {
  align-items: center;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  margin: 0;
  padding: 11px 13px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-item .soft-icon {
  height: 46px;
  width: 46px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-item p {
  font-size: 14px;
  line-height: 1.3;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 2px;
}

body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel .primary.wide {
  margin-top: 0;
  width: 100%;
}

@media (max-width: 980px) {
  body[data-redesign="2026"][data-flow="onboarding"] .split-welcome {
    display: block;
    padding: 14px;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .split-welcome:not(.active) {
    display: none;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual {
    min-height: 34vh;
  }

  body[data-redesign="2026"][data-flow="onboarding"] .welcome-visual::before {
    font-size: clamp(1.7rem, 7vw, 3.5rem);
  }

  body[data-redesign="2026"][data-flow="onboarding"] .welcome-panel {
    margin: 14px auto 0;
    max-height: none;
    max-width: 640px;
    overflow: visible;
  }
}

/* Workspace 2.0 home interaction and header alignment polish. */
body[data-workspace-option="calm"] .hp2-topbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  width: 100%;
}

body[data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar {
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
}

body[data-workspace-option="calm"] .hp2-topbar .mobile-menu,
body[data-workspace-option="calm"] .hp2-topbar .profile-chip {
  display: none;
}

body[data-workspace-option="calm"] .hp2-search {
  max-width: none;
  min-width: 0;
  width: 100%;
}

body[data-workspace-option="calm"] .quick-grid button {
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

body[data-workspace-option="calm"] .quick-grid button span {
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body[data-workspace-option="calm"] .quick-grid button:hover,
body[data-workspace-option="calm"] .quick-grid button:focus-visible {
  background: #fff;
  border-color: rgba(45, 111, 220, 0.34);
  box-shadow: 0 14px 26px rgba(35, 59, 112, 0.08);
  color: var(--ws-blue);
  outline: none;
  transform: translateY(-3px);
}

body[data-workspace-option="calm"] .quick-grid button:hover span,
body[data-workspace-option="calm"] .quick-grid button:focus-visible span {
  background: #eef4ff;
  color: var(--ws-blue);
  transform: scale(1.08);
}

@media (min-width: 981px) {
  body[data-workspace-option="calm"] .hp2-topbar {
    margin-bottom: 24px;
    width: min(100%, 770px);
  }
}

/* Keep the workspace header in the intended three-column layout at tablet widths. */
@media (max-width: 980px) {
  body[data-workspace-option="calm"] .hp2-topbar {
    align-items: center !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body[data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar {
    grid-template-columns: minmax(0, 1fr) 42px 42px 42px !important;
  }

  body[data-workspace-option="calm"] .hp2-topbar .mobile-menu,
  body[data-workspace-option="calm"] .hp2-topbar .profile-chip {
    display: none !important;
  }

  body[data-workspace-option="calm"] .hp2-search {
    display: grid !important;
    grid-column: 1 !important;
    grid-template-columns: 22px minmax(0, 1fr) 34px !important;
    height: 46px !important;
    justify-self: stretch !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-workspace-option="calm"] .hp2-search input {
    display: block !important;
    min-width: 0 !important;
  }

  body[data-workspace-option="calm"] .top-icon {
    display: inline-grid !important;
    height: 42px !important;
    justify-self: end !important;
    place-items: center !important;
    width: 42px !important;
  }
}

/* Hard fix: keep workspace 2.0 header matching the reference at all app widths. */
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
  align-items: center !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  width: min(100%, 770px) !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .mobile-menu,
body[data-app="social"][data-workspace-option="calm"]:not([data-current-view="gear"]) .hp2-topbar .cart-top-button {
  display: none !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-search {
  align-items: center !important;
  display: grid !important;
  flex: 1 1 auto !important;
  grid-column: auto !important;
  grid-template-columns: 22px minmax(0, 1fr) 34px !important;
  height: 46px !important;
  justify-self: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  order: 1 !important;
  padding: 0 6px 0 14px !important;
  width: auto !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-search input {
  display: block !important;
  min-width: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-search button {
  height: 34px !important;
  min-height: 34px !important;
  width: 34px !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .top-icon {
  display: inline-grid !important;
  flex: 0 0 42px !important;
  height: 42px !important;
  order: 2 !important;
  place-items: center !important;
  width: 42px !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .top-icon:nth-of-type(3) {
  order: 3 !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .cart-top-button {
  order: 4 !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  transform: translateY(calc(46px + 24px)) !important;
  z-index: 3 !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
  position: relative !important;
}

/* Final calm workspace header placement: left search group, right profile column. */
@media (min-width: 981px) {
  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
    display: grid !important;
    align-items: center !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px 24px 340px !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .mobile-menu,
  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .cart-top-button {
    display: none !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-search {
    grid-column: 1 !important;
    width: 100% !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Messages"] {
    grid-column: 2 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Notifications"] {
    grid-column: 3 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip {
    align-self: center !important;
    display: inline-flex !important;
    grid-column: 5 !important;
    justify-self: end !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
  }
}

/* Absolute final header alignment: Brian lives in the same row as search/icons. */
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
  align-items: center !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1fr) 42px 42px minmax(128px, 340px) !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  position: static !important;
  width: 100% !important;
}

body[data-app="social"][data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar {
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px minmax(128px, 340px) !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .mobile-menu,
body[data-app="social"][data-workspace-option="calm"]:not([data-current-view="gear"]) .hp2-topbar .cart-top-button {
  display: none !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-search {
  grid-column: 1 !important;
  order: initial !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Messages"] {
  grid-column: 2 !important;
  order: initial !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Notifications"] {
  grid-column: 3 !important;
  order: initial !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .cart-top-button {
  grid-column: 4 !important;
  order: initial !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip {
  align-self: center !important;
  display: inline-flex !important;
  grid-column: 4 !important;
  justify-self: end !important;
  margin: 0 !important;
  order: initial !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: auto !important;
}

body[data-app="social"][data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar .profile-chip {
  grid-column: 5 !important;
}

/* Prevent header icons from wrapping or dropping into a second row. */
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
  grid-auto-rows: 46px !important;
  flex-wrap: nowrap !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-search,
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Messages"],
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Notifications"],
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .cart-top-button,
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip {
  align-self: center !important;
  grid-row: 1 !important;
}

body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Messages"],
body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Notifications"] {
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

/* Mobile quick action grid: compact 2 / 2 / 1 layout. */
@media (max-width: 780px) {
  body[data-workspace-option="calm"] .quick-actions {
    padding: 16px !important;
  }

  body[data-workspace-option="calm"] .quick-grid {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 170px)) !important;
    justify-content: start !important;
  }

  body[data-workspace-option="calm"] .quick-grid button {
    aspect-ratio: auto !important;
    box-sizing: border-box !important;
    min-height: 74px !important;
    max-height: 84px !important;
    padding: 10px 8px !important;
    width: min(100%, 170px) !important;
  }

  body[data-workspace-option="calm"] .quick-grid button > span {
    height: 28px !important;
    margin-bottom: 5px !important;
    width: 28px !important;
  }

  body[data-workspace-option="calm"] .quick-grid strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body[data-workspace-option="calm"] .quick-grid small {
    display: none !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }
}

/* Final mobile sizing for quick actions: keep them as compact 2 / 2 / 1 tiles. */
@media (max-width: 980px) {
  body[data-workspace-option="calm"] .quick-actions {
    padding: 16px !important;
  }

  body[data-workspace-option="calm"] .quick-grid {
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }

  body[data-workspace-option="calm"] .quick-grid button {
    aspect-ratio: auto !important;
    min-height: 62px !important;
    max-height: 70px !important;
    padding: 8px 6px !important;
    width: 100% !important;
  }

  body[data-workspace-option="calm"] .quick-grid button > span {
    height: 24px !important;
    margin-bottom: 3px !important;
    width: 24px !important;
  }

  body[data-workspace-option="calm"] .quick-grid strong {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body[data-workspace-option="calm"] .quick-grid small {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body[data-workspace-option="calm"] .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile containment: prevent carousel and cards from pushing past the viewport. */
@media (max-width: 780px) {
  body[data-app="social"][data-workspace-option="calm"] {
    overflow-x: hidden !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-main,
  body[data-app="social"][data-workspace-option="calm"] .app-view,
  body[data-app="social"][data-workspace-option="calm"] .hero-carousel,
  body[data-app="social"][data-workspace-option="calm"] .carousel-viewport,
  body[data-app="social"][data-workspace-option="calm"] .post-composer-card,
  body[data-app="social"][data-workspace-option="calm"] .quick-actions {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-main {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .carousel-track {
    min-width: 0 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .slide-card,
  body[data-app="social"][data-workspace-option="calm"] .hp2-sober,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad {
    box-sizing: border-box !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 22px 20px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-sober h2,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad h2,
  body[data-app="social"][data-workspace-option="calm"] .hp2-sober p,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad p,
  body[data-app="social"][data-workspace-option="calm"] .hp2-sober small,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad small {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .notice-ad p {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-sober .meta-row {
    gap: 8px 18px !important;
  }
}

/* Restore mobile navigation access for Workspace 2.0. */
@media (max-width: 780px) {
  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px minmax(82px, auto) !important;
    margin-bottom: 18px !important;
    width: 100% !important;
  }

  body[data-app="social"][data-workspace-option="calm"][data-current-view="gear"] .hp2-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px minmax(82px, auto) !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .mobile-menu {
    align-self: center !important;
    background: #fff !important;
    border: 1px solid var(--ws-line) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: var(--ws-ink) !important;
    display: inline-grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 42px !important;
    justify-self: start !important;
    min-height: 42px !important;
    padding: 0 !important;
    place-items: center !important;
    width: 42px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-search {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Messages"] {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar button[aria-label="Notifications"] {
    grid-column: 4 !important;
    grid-row: 1 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip {
    align-self: center !important;
    display: inline-flex !important;
    grid-column: 5 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    max-width: 104px !important;
    padding-right: 8px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip .avatar-photo {
    height: 30px !important;
    width: 30px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip span:not(.avatar-photo):not([data-social-icon]) {
    font-size: 13px !important;
  }
}

@media (max-width: 430px) {
  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-topbar .profile-chip {
    grid-column: 1 / -1 !important;
    justify-self: end !important;
    margin-top: 4px !important;
  }
}

/* Final mobile fit pass: stacked home cards must stay inside the viewport. */
@media (max-width: 780px) {
  body[data-app="social"][data-workspace-option="calm"] .app-view[data-view="home"].active {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-heading-row,
  body[data-app="social"][data-workspace-option="calm"] .hero-carousel,
  body[data-app="social"][data-workspace-option="calm"] .post-composer-card,
  body[data-app="social"][data-workspace-option="calm"] .quick-actions,
  body[data-app="social"][data-workspace-option="calm"] .dashboard-section,
  body[data-app="social"][data-workspace-option="calm"] .home-two-column,
  body[data-app="social"][data-workspace-option="calm"] .encouragement-banner,
  body[data-app="social"][data-workspace-option="calm"] .workspace-panel,
  body[data-app="social"][data-workspace-option="calm"] .workspace-panel section {
    box-sizing: border-box !important;
    grid-column: 1 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-panel {
    display: grid !important;
    gap: 16px !important;
    overflow: hidden !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-support-card,
  body[data-app="social"][data-workspace-option="calm"] .workspace-today-card {
    overflow: hidden !important;
    padding: 18px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-support-card p,
  body[data-app="social"][data-workspace-option="calm"] .workspace-today-card strong,
  body[data-app="social"][data-workspace-option="calm"] .workspace-today-card span,
  body[data-app="social"][data-workspace-option="calm"] .workspace-today-card li {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-panel-head {
    gap: 12px !important;
    min-width: 0 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-panel-head h2 {
    min-width: 0 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-today-card article {
    align-items: start !important;
    display: grid !important;
    gap: 4px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .workspace-today-card article button {
    color: var(--ws-blue) !important;
    justify-self: start !important;
    margin-top: 6px !important;
    max-width: 150px !important;
    min-width: 92px !important;
    padding: 0 18px !important;
    width: auto !important;
  }
}

/* Compact mobile greeting card with streak beside Brian. */
@media (max-width: 780px) {
  body[data-app="social"][data-workspace-option="calm"] .hp2-heading-row {
    align-items: center !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 0 !important;
    padding: 18px 20px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .home-heading {
    min-width: 0 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .home-heading h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem) !important;
    line-height: 0.98 !important;
    margin: 0 0 8px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .home-heading p {
    font-size: 12px !important;
    margin: 0 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .streak-card {
    align-self: center !important;
    border-radius: 16px !important;
    grid-template-columns: 18px auto 16px !important;
    height: 76px !important;
    justify-self: end !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 146px !important;
    padding: 0 14px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .streak-card strong {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .streak-card small {
    font-size: 11px !important;
  }
}

@media (max-width: 390px) {
  body[data-app="social"][data-workspace-option="calm"] .hp2-heading-row {
    padding: 16px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .streak-card {
    min-width: 132px !important;
    padding: 0 10px !important;
  }
}

/* Shorter mobile carousel. */
@media (max-width: 780px) {
  body[data-app="social"][data-workspace-option="calm"] .hero-carousel .carousel-viewport {
    border-radius: 22px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .slide-card,
  body[data-app="social"][data-workspace-option="calm"] .hp2-sober,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad {
    min-height: 218px !important;
    padding: 20px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-sober h2,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem) !important;
    line-height: 1.02 !important;
    margin-bottom: 8px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-sober p,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad p {
    font-size: 17px !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-sober small {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .meta-row {
    margin-top: 14px !important;
  }

  body[data-app="social"][data-workspace-option="calm"] .hp2-sober button,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad button {
    min-height: 42px !important;
    padding: 0 18px !important;
  }
}

@media (max-width: 420px) {
  body[data-app="social"][data-workspace-option="calm"] .slide-card,
  body[data-app="social"][data-workspace-option="calm"] .hp2-sober,
  body[data-app="social"][data-workspace-option="calm"] .notice-ad {
    min-height: 204px !important;
  }
}
