:root {
  --blue: #188ff0;
  --ink: #304f60;
  --muted: #6b7e89;
  --line: #dfe7ed;
  --pale: #eaf5ff;
  --bg: #f5f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font:
    calc(15px * var(--wif-text-scale, 1))/1.5 Arial,
    Helvetica,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  outline-offset: 4px;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0b64ab;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  box-shadow: 0 2px 8px #304f6010;
  border-bottom: 1px solid var(--line);
}

.brandrow {
  max-width: 1440px;
  margin: auto;
  padding: 17px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img:first-child {
  width: 58px;
  height: 36px;
}

.brand img:last-child {
  width: 131px;
  height: 26px;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pale);
  color: #086bb5;
  display: grid;
  place-items: center;
  font-weight: bold;
}

.topwrap {
  border-top: 1px solid #f0f4f7;
}

.top {
  max-width: 1440px;
  margin: auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top a {
  padding: 15px 16px;
  font-weight: bold;
  position: relative;
  border-bottom: 3px solid transparent;
}

.top a:hover {
  background: #f4f9fd;
}

.top a.active {
  color: #0874c4;
  border-bottom-color: var(--blue);
  background: #f0f8ff;
}

.top a.game {
  background: var(--blue);
  color: white;
  border-radius: 7px;
  padding: 9px 17px;
  margin: 6px 9px 6px 0;
  border: 2px solid var(--blue);
}

.top a.game.active {
  background: #0873c8;
  border-color: #074f8a;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  max-width: 1440px;
  margin: auto;
  min-height: calc(100vh - 131px);
}

aside {
  padding: 27px 17px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.label {
  font-size: calc(11px * var(--wif-text-scale, 1));
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

aside .label {
  margin: 0 13px 15px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side a {
  padding: 11px 13px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.side a:hover {
  background: #f4f8fb;
}

.side a.active {
  background: var(--pale);
  color: #076fbf;
  font-weight: bold;
  box-shadow: inset 3px 0 var(--blue);
}

.side a span {
  width: 22px;
  text-align: center;
  font-size: calc(18px * var(--wif-text-scale, 1));
}

.sidefoot {
  margin: 32px 12px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
}

main {
  padding: 30px 34px 45px;
  min-width: 0;
}

.crumb {
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
  margin-bottom: 18px;
}

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

h1 {
  font-size: calc(29px * var(--wif-text-scale, 1));
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: calc(19px * var(--wif-text-scale, 1));
  margin: 0 0 7px;
}

h3 {
  font-size: calc(16px * var(--wif-text-scale, 1));
  margin: 0 0 6px;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: white;
  font-weight: bold;
  white-space: nowrap;
}

.btn.secondary {
  background: white;
  color: #0875c7;
  border-color: #c7dbe9;
}

.btn.small {
  font-size: calc(13px * var(--wif-text-scale, 1));
  padding: 7px 12px;
}

.banner {
  background: #eaf5ff;
  border: 1px solid #cce6fb;
  border-radius: 9px;
  padding: 22px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.banner p {
  margin: 5px 0 0;
}

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

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}

.card p:last-child {
  margin-bottom: 0;
}

.cardhead,
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cardhead {
  margin-bottom: 17px;
}

.row {
  padding: 16px 0;
  border-top: 1px solid #edf1f4;
}

.row:first-child {
  border: 0;
}

.eyebrow {
  font-size: calc(11px * var(--wif-text-scale, 1));
  color: #0873c3;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 12px;
}

.tag {
  font-size: calc(11px * var(--wif-text-scale, 1));
  background: #edf3f7;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag.blue {
  background: var(--pale);
  color: #096da9;
}

.eventtime {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.sectiontitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 13px;
}

.empty {
  text-align: center;
  padding: 45px 20px;
}

.iconbox {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--pale);
  border-radius: 10px;
  font-size: calc(23px * var(--wif-text-scale, 1));
  margin-bottom: 18px;
}

.toggle {
  appearance: none;
  width: 46px;
  height: 26px;
  background: #a9bac5;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  background: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: transform 0.15s;
}

.toggle:checked {
  background: var(--blue);
}

.toggle:checked:before {
  transform: translateX(20px);
}

.addonlabel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
}

.demo button {
  background: none;
  border: 0;
  color: #0872bf;
  padding: 0;
  text-decoration: underline;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cell {
  min-height: 88px;
  padding: 8px;
  border-right: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.cell.weekday {
  min-height: 32px;
  background: #eef5fa;
  text-align: center;
  font-weight: bold;
}

.calitem {
  display: block;
  background: var(--pale);
  color: #076aac;
  padding: 4px;
  border-radius: 4px;
  font-size: calc(10px * var(--wif-text-scale, 1));
  margin-top: 5px;
}

.task {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.task input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.task:has(input:checked) span {
  text-decoration: line-through;
  color: var(--muted);
}

.taskform {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.taskform input {
  min-width: 0;
  flex: 1;
  border: 1px solid #c7d7e3;
  border-radius: 5px;
  padding: 10px;
}

.notice {
  margin-top: 18px;
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
}

#status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #284c62;
  color: white;
  border-radius: 7px;
  padding: 12px 20px;
  box-shadow: 0 5px 20px #1233;
  z-index: 10;
}

#status:empty {
  display: none;
}

select {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: white;
}

.followrow {
  display: flex;
  gap: 14px;
  align-items: center;
}

.followrow .iconbox {
  margin: 0;
  flex-shrink: 0;
}

.no-wrap {
  white-space: nowrap;
}

@media (min-width: 1450px) {
  .layout {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .top {
    gap: 0;
    padding: 0 12px;
  }

  .top a {
    padding: 12px 10px;
    font-size: calc(13px * var(--wif-text-scale, 1));
  }

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

  main {
    padding: 24px 20px;
  }

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

  .brandrow {
    padding: 14px 20px;
  }
}

@media (max-width: 600px) {
  .brandrow {
    padding: 12px 16px;
  }

  .account .username {
    display: none;
  }

  .top {
    flex-wrap: nowrap;
    overflow: auto;
    white-space: nowrap;
  }

  .top a {
    flex-shrink: 0;
  }

  .layout {
    display: block;
  }

  aside {
    padding: 14px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  aside .label,
  .sidefoot {
    display: none;
  }

  .side {
    flex-direction: row;
    overflow: auto;
  }

  .side a {
    white-space: nowrap;
    padding: 8px 12px;
  }

  .side a span {
    display: none;
  }

  main {
    padding: 23px 16px;
  }

  .heading,
  .banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  h1 {
    font-size: calc(26px * var(--wif-text-scale, 1));
  }

  .card {
    padding: 18px;
  }

  .cell {
    padding: 4px;
    min-height: 70px;
  }

  .calitem {
    font-size: calc(9px * var(--wif-text-scale, 1));
    overflow-wrap: anywhere;
  }

  .brand img:last-child {
    width: 112px;
  }
}

.side.tree {
  display: block;
  overflow: visible;
}

.side.tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side.tree ul ul {
  margin-left: 12px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.side.tree a {
  font-size: calc(13px * var(--wif-text-scale, 1));
  gap: 7px;
  padding: 10px 8px;
  white-space: normal;
  min-height: 42px;
  margin-bottom: 3px;
}

.side.tree a span {
  width: 17px;
  flex-shrink: 0;
}

.side.tree > ul > li:first-child > a {
  font-weight: bold;
}

.planbadge {
  white-space: normal;
}

.addonstate {
  font-size: calc(12px * var(--wif-text-scale, 1));
  max-width: 170px;
}

.addonlabel {
  max-width: 230px;
}

#planDialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: 88dvh;
  overflow: hidden;
  background: #fff;
  color: #203d4e;
  box-shadow: 0 12px 44px #132f462b;
}

#planDialog::backdrop {
  background: rgba(255, 255, 255, 0.08);
}

.planbody {
  padding: 20px 26px;
  overflow-y: auto;
  min-height: 0;
}

.planhead {
  padding: 18px 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.planclose {
  border: 0;
  background: #edf3f7;
  border-radius: 50%;
  min-width: 74px;
  height: 44px;
  padding: 0 12px;
  font-size: calc(14px * var(--wif-text-scale, 1));
  font-weight: bold;
  color: #203d4e;
  flex-shrink: 0;
}

.planprice {
  font-size: calc(32px * var(--wif-text-scale, 1));
  font-weight: bold;
  color: #0874c4;
  margin: 12px 0 0;
}

.planfeatures {
  padding-left: 21px;
  font-size: calc(14px * var(--wif-text-scale, 1));
}

.planfeatures li {
  margin: 8px 0;
}

.planfooter {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.planfooter .btn {
  flex: 1 1 190px;
}

.paymentnotice {
  font-size: calc(12px * var(--wif-text-scale, 1));
  margin-top: 12px;
  color: var(--muted);
}

#checkoutNotice {
  margin: 0 26px 20px;
  padding: 12px;
  border-radius: 6px;
  background: #fff4d9;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

#checkoutNotice:empty {
  display: none;
}

#planDialog[open] {
  display: flex;
  flex-direction: column;
}

#planDialogContent {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 88dvh;
}

.plancloseform {
  margin: 0;
}

.planhead h2 {
  margin: 0;
}

.planfooter form {
  display: flex;
  flex: 1 1 100%;
}

.planfooter form button {
  width: 100%;
}

#planDialog .muted,
#planDialog .paymentnotice {
  color: #506573;
}

.layout:has(.hubside) {
  grid-template-columns: 300px minmax(0, 1fr);
}

.side.tree .teamrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 8px;
  border-radius: 0;
  border-bottom: 1px solid #eef2f6;
  box-shadow: none;
}

.side.tree .teamrow.selected {
  background: var(--pale);
  border-left: 3px solid var(--blue);
}

.teamavatar,
.side.tree .teamrow .teamavatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0f1ff;
  color: #0874c4;
  font-size: calc(12px * var(--wif-text-scale, 1));
  font-weight: bold;
}

.side.tree .teamrow .teamtext {
  width: auto;
  min-width: 0;
  flex: 1;
  font-size: calc(13px * var(--wif-text-scale, 1));
  text-align: left;
}

.teamtext strong,
.teamtext small {
  display: block;
}

.teamtext small {
  font-size: calc(11px * var(--wif-text-scale, 1));
  color: var(--muted);
  margin-top: 3px;
}

.teampreview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teammenutitle {
  margin-top: 20px;
  padding: 10px 8px;
  font-size: calc(12px * var(--wif-text-scale, 1));
  font-weight: bold;
  color: #0874c4;
  border-bottom: 1px solid var(--line);
}

.teamsub {
  padding-top: 8px !important;
}

.chatpanel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.chatheading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.chatheading small {
  display: block;
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
}

.chatmessages {
  padding: 22px;
  min-height: 270px;
  max-height: 440px;
  overflow: auto;
  background: #fbfdff;
}

.message {
  max-width: 78%;
  margin-bottom: 22px;
}

.message.mine {
  margin-left: auto;
}

.messageinfo {
  font-size: calc(11px * var(--wif-text-scale, 1));
  color: var(--muted);
  margin-bottom: 6px;
}

.mine .messageinfo {
  text-align: right;
}

.bubble {
  padding: 12px 16px;
  background: #edf3f7;
  border-radius: 0 12px 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mine .bubble {
  background: #e1f2ff;
  border-radius: 12px 0 12px 12px;
}

.chatform {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid var(--line);
}

.chatform input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cfdee8;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

.chatform button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .layout:has(.hubside) {
    display: block;
  }

  .teamlist {
    max-height: 240px;
    overflow: auto;
  }

  .chatmessages {
    padding: 16px;
  }

  .message {
    max-width: 92%;
  }
}

.hubtabs {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 13px;
  border-bottom: 1px solid var(--line);
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.hubtabs strong {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.hubtabs span {
  font-size: calc(11px * var(--wif-text-scale, 1));
  color: var(--muted);
}

.teamsearch {
  width: 100%;
  margin: 14px 0 7px;
  background: #f0f2f5;
  border: 1px solid #e9edf0;
  border-radius: 5px;
  padding: 12px;
  font: inherit;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.teamtime {
  float: right;
  font-size: calc(10px * var(--wif-text-scale, 1)) !important;
}

.side.tree .teamrow.selected {
  background: #f0f2f5;
}

.side.tree .teamrow[hidden] {
  display: none !important;
}

.teamentry[hidden] {
  display: none !important;
}

.teamentry .teamsub {
  padding: 8px 8px 12px 15px !important;
  margin: 0 0 8px 15px !important;
  border-left: 2px solid #cce6fb;
  background: #fbfdff;
}

.side.tree .teamrow .teamchevron {
  width: 15px;
  color: #0874c4;
  flex-shrink: 0;
}

.teamlist {
  max-height: calc(100dvh - 260px);
  min-height: 300px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .teamlist {
    max-height: 60dvh;
    min-height: 220px;
  }
}

main {
  padding-bottom: 110px;
}

.aihelpbutton {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #087acc;
  color: #fff;
  border: 2px solid white;
  border-radius: 15px;
  padding: 12px 17px;
  box-shadow: 0 4px 20px #17496b30;
  min-height: 60px;
  text-align: left;
}

.aihelpbutton strong {
  display: block;
  font-size: calc(16px * var(--wif-text-scale, 1));
}

.aihelpbutton small {
  display: block;
  font-size: calc(11px * var(--wif-text-scale, 1));
}

.aihelpbutton:hover {
  background: #0868b0;
}

#aiHelpDialog {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 12px 44px #132f462b;
}

#aiHelpDialog::backdrop {
  background: rgba(255, 255, 255, 0.1);
}

.helphead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 20px;
  background: #f0f8ff;
  position: sticky;
  top: 0;
}

.helphead p {
  font-size: calc(12px * var(--wif-text-scale, 1));
  margin: 0;
}

.helphead h2 {
  margin: 0 0 4px;
}

.helphead form {
  margin: 0;
}

.helpclose {
  border: 1px solid #b8d3e4;
  border-radius: 6px;
  background: white;
  padding: 10px;
  color: var(--ink);
  min-height: 44px;
  white-space: nowrap;
}

.helpbody {
  padding: 20px;
}

.helpquestions {
  display: grid;
  gap: 9px;
}

.helpquestions button {
  border: 1px solid #c8dfef;
  background: white;
  border-radius: 7px;
  padding: 12px;
  text-align: left;
  color: #086dad;
  min-height: 44px;
}

.helpquestions button:hover {
  background: #eef7ff;
}

.helpanswer:empty {
  display: none;
}

.helpanswer {
  background: #eef7ff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: calc(14px * var(--wif-text-scale, 1));
}

.helpanswer a {
  display: inline-block;
  color: #0569af;
  text-decoration: underline;
  margin-top: 8px;
}

.helpbottom {
  padding: 0 20px 20px;
}

.helpbottom button {
  width: 100%;
}

#status {
  bottom: 100px;
}

@media (max-width: 600px) {
  .aihelpbutton {
    right: 14px;
    bottom: 14px;
    padding: 9px 13px;
    min-height: 54px;
  }

  main {
    padding-bottom: 100px;
  }
}

.communitylayout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
}

.boardnav {
  background: white;
  border: 1px solid var(--line);
  padding: 18px 12px;
  align-self: start;
}

.boardnav .label {
  margin: 8px 8px 15px;
  font-size: calc(10px * var(--wif-text-scale, 1));
}

.boardnav .label:not(:first-child) {
  margin-top: 24px;
}

.boardnav button,
.boardnav > a {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  padding: 12px 8px;
  font-size: calc(13px * var(--wif-text-scale, 1));
  border-radius: 5px;
}

.boardnav button.chosen {
  background: #edf6fd;
  color: #0875bc;
}

.boardtip {
  margin: 22px 0 0;
  padding: 13px;
  background: #f6f8fa;
  border: 1px solid var(--line);
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.boardtip p {
  margin: 8px 0;
}

.boardmain {
  min-width: 0;
}

.boardhero {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 22px;
}

.boardhero .label {
  margin-bottom: 15px;
}

.boardhero h1 {
  font-size: calc(28px * var(--wif-text-scale, 1));
  font-weight: 500;
}

.boardhero .btn {
  margin-top: 6px;
}

.boardfilters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
}

.boardfilters label {
  font-size: calc(12px * var(--wif-text-scale, 1));
  display: flex;
  gap: 8px;
  align-items: center;
}

.boardfilters input {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 10px;
}

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

.agecard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 17px 13px;
}

.agecard h3 {
  font-size: calc(21px * var(--wif-text-scale, 1));
  font-weight: 400;
}

.agecard small {
  font-size: calc(10px * var(--wif-text-scale, 1));
  color: var(--muted);
}

.agecard .btn {
  font-size: calc(11px * var(--wif-text-scale, 1));
  padding: 8px;
}

.discussion {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 15px;
  background: white;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.discussion:last-child {
  border-bottom: 1px solid var(--line);
}

.discussion > div {
  flex: 1;
  min-width: 0;
}

.discussion p {
  font-size: calc(12px * var(--wif-text-scale, 1));
  margin: 6px 0 0;
}

.discussion .eyebrow {
  font-size: calc(10px * var(--wif-text-scale, 1));
  margin-bottom: 5px;
}

.discussiontitle {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-size: calc(16px * var(--wif-text-scale, 1));
  font-weight: bold;
}

.discussionbadge {
  background: #edf6fc;
  color: #347390;
  padding: 11px 7px;
  border-radius: 6px;
  font-size: calc(14px * var(--wif-text-scale, 1));
}

.discussion[hidden] {
  display: none;
}

#boardDialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: white;
  color: var(--ink);
  width: min(550px, calc(100vw - 24px));
  max-height: 85dvh;
  overflow: auto;
}

#boardDialog::backdrop {
  background: #ffffff30;
}

.boardform {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.boardform label {
  display: grid;
  gap: 6px;
}

.boardform input,
.boardform textarea,
.boardform select {
  width: 100%;
  border: 1px solid #c8d9e5;
  border-radius: 5px;
  padding: 10px;
  font: inherit;
}

@media (max-width: 1150px) {
  .communitylayout {
    grid-template-columns: 1fr;
  }

  .boardnav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
  }

  .boardnav .label,
  .boardtip {
    display: none;
  }

  .boardnav button,
  .boardnav > a {
    width: auto;
    padding: 9px;
    font-size: calc(12px * var(--wif-text-scale, 1));
  }

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

@media (max-width: 700px) {
  .boardcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agecard {
    padding: 12px;
    flex-wrap: wrap;
  }

  .discussion {
    flex-wrap: wrap;
  }

  .boardhero {
    padding: 20px;
  }

  .communitylayout {
    gap: 18px;
  }
}

#addonDialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: 88dvh;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 44px #132f462b;
}

#addonDialog[open] {
  display: flex;
  flex-direction: column;
}

#addonDialogContent {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 88dvh;
}

#addonDialog::backdrop {
  background: #ffffff30;
}

.addonclose {
  flex-shrink: 0;
}

#addonDialog .planbody {
  overflow: auto;
}

.welcomehero {
  padding: 24px 0 20px;
}

.welcomehero h1 {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.2;
  margin: 12px 0;
}

.welcomehero p {
  font-size: calc(17px * var(--wif-text-scale, 1));
}

.welcomegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.welcomecard {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid #d9e6ef;
  border-radius: 14px;
  background: white;
  padding: 25px;
  color: var(--ink);
  min-height: 136px;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}

.welcomecard:hover {
  box-shadow: 0 8px 24px #1875b41c;
  transform: translateY(-2px);
  border-color: var(--blue);
}

.welcomecard strong {
  display: block;
  font-size: calc(19px * var(--wif-text-scale, 1));
}

.welcomecard small {
  display: block;
  font-size: calc(14px * var(--wif-text-scale, 1));
  color: #607581;
  margin-top: 6px;
}

.welcomecard > span:last-child {
  margin-left: auto;
}

.welcomeicon {
  display: grid;
  place-items: center;
  background: #eaf5ff;
  color: #087acc;
  border-radius: 13px;
  width: 48px;
  height: 48px;
  font-size: calc(25px * var(--wif-text-scale, 1));
  flex-shrink: 0;
}

.resumebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #edf6fc;
  padding: 18px 22px;
  border-radius: 12px;
  margin: 16px 0;
}

.resumebar p {
  margin: 5px 0;
}

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

.guidewrap {
  max-width: 760px;
  margin: 18px auto;
}

.guidewrap form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.guidehead {
  margin: 24px 0;
}

.guidehead progress {
  width: 100%;
  height: 9px;
  accent-color: #188ff0;
}

.guidefield {
  display: block;
  margin: 20px 0;
  font-weight: bold;
}

.guidefield input,
.guidefield select,
.guidefield textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid #b9cbd8;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.guideactions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
  flex-wrap: wrap;
}

.guideactions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#guideError {
  color: #b42222;
}

.memoryphoto {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
}

.sampleScore {
  font-size: calc(38px * var(--wif-text-scale, 1));
  font-weight: bold;
}

.sampleScore span {
  color: #8b9ba7;
}

@media (max-width: 650px) {
  .welcomegrid {
    grid-template-columns: 1fr;
  }

  .welcomecard {
    padding: 20px;
    min-height: 114px;
  }

  .guidewrap form {
    padding: 20px;
  }

  .welcomehero {
    padding-top: 10px;
  }
}

/* V10: retain the existing WIF shell; adapt the group workspace. */
.groupfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}

.groupfilters button {
  border: 1px solid #d7e5ef;
  border-radius: 18px;
  background: white;
  color: #456274;
  padding: 7px 10px;
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.groupfilters button.active {
  background: #188ff0;
  color: white;
  border-color: #188ff0;
}

.groupcontext {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 17px;
  margin-bottom: 22px;
}

.groupcontext small {
  display: block;
  color: var(--muted);
}

.groupcontext a {
  margin-left: auto;
  color: #0874c4;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.mobilebar {
  display: none;
}

.mobilegroups {
  display: none;
}

.groupbanner {
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
  margin-bottom: 16px;
}

.top {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.top a {
  white-space: nowrap;
}

.hubside {
  position: relative;
}

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

.groupcards a {
  display: block;
}

.groupcards .card:hover {
  border-color: var(--blue);
}

@media (min-width: 761px) {
  .layout > aside {
    position: sticky;
    top: 132px;
    align-self: start;
    max-height: calc(100dvh - 132px);
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .layout,
  .layout:has(.hubside) {
    display: block;
  }

  .layout > aside {
    display: none;
  }

  .layout.groups-open > aside {
    display: block;
  }

  .mobilegroups {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    padding: 12px;
    background: white;
    color: #0874c4;
    border-radius: 6px;
    margin-bottom: 14px;
  }

  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--line);
    z-index: 22;
    padding: 7px 4px max(7px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }

  .mobilebar a {
    display: grid;
    text-align: center;
    gap: 3px;
    font-size: calc(11px * var(--wif-text-scale, 1));
    padding: 5px 8px;
  }

  .mobilebar a span {
    font-size: calc(19px * var(--wif-text-scale, 1));
  }

  .mobilebar a.active {
    color: #0874c4;
    font-weight: bold;
  }

  .top {
    padding: 0 8px;
  }

  .top a {
    padding: 10px;
    font-size: calc(12px * var(--wif-text-scale, 1));
  }

  .aihelpbutton {
    bottom: 80px;
    right: 12px;
  }

  .aihelpbutton small {
    display: none;
  }

  .aihelpbutton {
    min-height: 42px;
    padding: 7px 11px;
  }

  .aihelpbutton strong {
    font-size: calc(13px * var(--wif-text-scale, 1));
  }

  main {
    padding: 18px 14px 155px;
  }

  .teamlist {
    max-height: none;
  }

  .heading h1 {
    font-size: calc(25px * var(--wif-text-scale, 1));
  }

  .groupcards {
    grid-template-columns: 1fr;
  }

  .groupcontext {
    align-items: flex-start;
  }

  .groupcontext a {
    white-space: nowrap;
  }

  .side.tree .teamrow {
    min-height: 65px;
  }

  .brandrow {
    padding: 12px 16px;
  }

  .account {
    gap: 6px;
  }

  .account .username {
    display: none;
  }

  .groupcontext small {
    font-size: calc(11px * var(--wif-text-scale, 1));
  }
}

.typegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.typecard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  text-align: left;
  color: var(--ink);
}

button.typecard {
  width: 100%;
  font: inherit;
}

button.typecard.selected {
  border: 2px solid #188ff0;
  background: #f0f8ff;
  padding: 19px;
}

.typecard h3 {
  font-size: calc(19px * var(--wif-text-scale, 1));
  color: #0874c4;
}

.typecard p {
  font-size: calc(13px * var(--wif-text-scale, 1));
  color: #607581;
}

.typecard ul {
  padding-left: 20px;
  margin: 12px 0;
  font-size: calc(14px * var(--wif-text-scale, 1));
}

.typecard li {
  margin: 6px 0;
}

.typecard .tag {
  display: inline-block;
  white-space: normal;
}

.typesummary {
  margin: 30px 0;
}

.typesummary > p {
  color: var(--muted);
}

.typecard:focus-visible {
  outline: 3px solid #0874c4;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .typegrid {
    grid-template-columns: 1fr;
  }
}

.recordform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.recordform label {
  display: grid;
  gap: 6px;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.recordform input,
.recordform select {
  width: 100%;
  padding: 10px;
  border: 1px solid #c8d9e5;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.recordform fieldset {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.recordform fieldset label {
  display: inline-flex;
  align-items: center;
  margin: 7px 14px 7px 0;
}

.recordform input[type="checkbox"] {
  width: auto;
}

.recordform .wide {
  grid-column: 1/-1;
}

.contactcards {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contactcards p {
  overflow-wrap: anywhere;
}

.dateentry {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .recordform {
    grid-template-columns: 1fr;
  }
}

.planlist {
  display: grid;
  gap: 16px;
}

.planaccordion {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.planaccordion > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 23px;
  list-style: none;
}

.planaccordion > summary::-webkit-details-marker {
  display: none;
}

.planaccordion > summary:focus-visible {
  outline: 3px solid #0874c4;
  outline-offset: -4px;
}

.plansign {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #eaf5ff;
  border-radius: 50%;
  color: #0874c4;
  font-size: calc(26px * var(--wif-text-scale, 1));
}

.plansign:before {
  content: "+";
}

.planaccordion[open] .plansign:before {
  content: "−";
}

.planname {
  flex: 1;
}

.planname strong {
  display: block;
  font-size: calc(21px * var(--wif-text-scale, 1));
}

.planname small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.planamount {
  text-align: right;
  font-size: calc(20px * var(--wif-text-scale, 1));
  font-weight: bold;
  color: #0874c4;
}

.planamount small {
  display: block;
  font-size: calc(12px * var(--wif-text-scale, 1));
  font-weight: normal;
}

.planincluded {
  padding: 0 23px 24px;
  border-top: 1px solid var(--line);
}

.planincluded h3 {
  margin: 22px 0 10px;
}

.planfeature {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f4;
}

.planfeature .tag {
  align-self: center;
}

.plancta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.currentplan {
  font-size: calc(11px * var(--wif-text-scale, 1));
  color: #0874c4;
  background: #eaf5ff;
  border-radius: 4px;
  padding: 3px 7px;
  display: inline-block;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .planaccordion > summary {
    padding: 17px;
    gap: 10px;
  }

  .planname strong {
    font-size: calc(18px * var(--wif-text-scale, 1));
  }

  .planamount {
    font-size: calc(17px * var(--wif-text-scale, 1));
  }

  .planincluded {
    padding: 0 17px 20px;
  }

  .planfeature {
    font-size: calc(14px * var(--wif-text-scale, 1));
  }
}

.featureselect {
  flex-shrink: 0;
  align-self: center;
  min-width: 104px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #b9cbd8;
  border-radius: 6px;
  color: #456274;
  background: white;
  font-size: calc(13px * var(--wif-text-scale, 1));
  font-weight: bold;
}

.featureselect.selected {
  background: #eaf5ff;
  border-color: #188ff0;
  color: #0874c4;
}

.featureselect:disabled {
  opacity: 1;
  cursor: default;
  background: #eff5f8;
  border-color: #d5e2ea;
  color: #527082;
}

.featureselect:focus-visible {
  outline: 3px solid #0874c4;
  outline-offset: 3px;
}

.feature-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: calc(13px * var(--wif-text-scale, 1));
  font-weight: bold;
  color: #0874c4;
}

.feature-switch .toggle {
  margin: 0;
  min-width: 46px;
}

.feature-switch .toggle:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.upgradeReason {
  background: #eaf5ff;
  border: 1px solid #cce6fb;
  padding: 13px;
  border-radius: 7px;
  margin-bottom: 18px;
}

[data-person-name][hidden] {
  display: none !important;
}

.threadtools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.threadtools button {
  border: 1px solid #cedfea;
  border-radius: 6px;
  padding: 7px 11px;
  background: white;
  color: #0874c4;
}

.threadtools button.active {
  background: #eaf5ff;
  border-color: #188ff0;
}

.msgactions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.msgactions button {
  border: 0;
  background: none;
  color: #0874c4;
  font-size: calc(12px * var(--wif-text-scale, 1));
  padding: 3px;
}

.pinned {
  border-left: 3px solid #188ff0;
  padding-left: 10px;
}

.teamquick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.teamquick a {
  font-size: calc(12px * var(--wif-text-scale, 1));
  padding: 7px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #0874c4;
}

.replynote {
  background: #eaf5ff;
  padding: 10px;
  border-radius: 6px;
  margin: 8px 15px;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.wizardsteps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.wizardsteps span {
  padding: 8px 12px;
  border-radius: 20px;
  background: #edf2f6;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.wizardsteps .active {
  background: #188ff0;
  color: white;
}

.travelmap {
  width: 100%;
  height: 350px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 16px 0;
}

.travelerrow {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.traveloptions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.traveloptions label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.travelerrow small {
  display: block;
  color: var(--muted);
}

.uniformtablewrap {
  overflow-x: auto;
  margin: 20px 0;
}

.uniformtable {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.uniformtable th,
.uniformtable td {
  text-align: left;
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.uniformtable th {
  background: #edf6fc;
  color: #385f78;
}

.uniformtable td:first-child {
  font-weight: bold;
}

.uniformtable caption {
  text-align: left;
  padding: 10px 0;
  font-weight: bold;
  font-size: calc(16px * var(--wif-text-scale, 1));
}

.uniformactions {
  display: flex;
  gap: 7px;
}

.uniformform fieldset {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.uniformform fieldset .recordform {
  margin: 0;
}

.uniformcount {
  font-size: calc(13px * var(--wif-text-scale, 1));
  color: #0874c4;
  margin: 14px 0;
}

.layout:has(.hubside) main {
  padding-top: 16px;
}

.layout:has(.hubside) .chatpanel {
  margin-top: 0;
}

@media (max-width: 760px) {
  .layout:has(.hubside) main {
    padding-top: 12px;
  }
}

.chatworkspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  min-height: 560px;
  height: calc(100dvh - 175px);
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.chatworkspace.no-details {
  grid-template-columns: 1fr;
}

.conversation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.conversation .chatheading {
  flex-shrink: 0;
  background: #f5f7fb;
  padding: 12px 18px;
}

.chatheading .chatidentity {
  flex: 1;
}

.chatheading .chatidentity strong {
  display: block;
}

.conversation .chatmessages {
  flex: 1;
  min-height: 100px;
  max-height: none;
  padding: 18px;
  overflow-y: auto;
  background: #f5f7fb;
}

.conversation .threadtools {
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.conversation .message {
  max-width: 85%;
  margin-bottom: 16px;
}

.conversation .bubble {
  background: #fff;
  border-radius: 8px;
  padding: 10px 13px;
  white-space: pre-wrap;
}

.conversation .mine .bubble {
  background: #e4f1ff;
}

.conversation .msgactions {
  opacity: 0.7;
  flex-wrap: wrap;
}

.conversation .message:hover .msgactions {
  opacity: 1;
}

.chatdetails {
  border-left: 1px solid var(--line);
  padding: 18px;
  background: #f5f7fb;
  overflow: auto;
}

.chatdetails h3 {
  font-size: calc(14px * var(--wif-text-scale, 1));
  margin-top: 20px;
}

.chatdetails .detailnav {
  display: grid;
  gap: 6px;
}

.chatdetails a,
.chatdetails button {
  padding: 9px 7px;
  text-align: left;
  color: #426579;
  background: none;
  border: 0;
  font: inherit;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.chatdetails .detailclose {
  float: right;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: #f5f7fb;
  flex-shrink: 0;
}

.composer textarea {
  resize: none;
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 22px;
  background: #e0e8f3;
  padding: 13px 16px;
  color: var(--ink);
  font: inherit;
  max-height: 140px;
}

.composer button,
.attachbutton {
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e0e8f3;
  color: #436b8a;
  cursor: pointer;
}

.composer button[type="submit"] {
  background: #188ff0;
  color: white;
  font-size: calc(19px * var(--wif-text-scale, 1));
}

.attachmenthint {
  padding: 0 16px;
  font-size: calc(12px * var(--wif-text-scale, 1));
  color: var(--muted);
}

.emojioptions {
  display: flex;
  gap: 7px;
  padding: 8px 16px;
}

.emojioptions[hidden] {
  display: none;
}

.emojioptions button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: calc(21px * var(--wif-text-scale, 1));
  padding: 5px;
}

.chatlocalnote {
  font-size: calc(11px * var(--wif-text-scale, 1));
  color: var(--muted);
  padding: 0 16px 8px;
}

.chatworkspace .replynote {
  margin: 4px 14px;
}

.chatworkspace details {
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.chatworkspace details .taskform {
  padding: 0 14px 8px;
  margin: 0;
}

.chatworkspace details summary {
  padding: 4px 14px;
  cursor: pointer;
}

.chat-empty {
  padding: 30px;
  text-align: center;
}

.chatsearch {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0;
}

.chatdetails ul {
  padding-left: 20px;
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.chatworkspace .message[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .chatworkspace {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}

@media (max-width: 850px) {
  .chatworkspace {
    grid-template-columns: 1fr;
    position: relative;
    height: calc(100dvh - 230px);
  }

  .chatdetails {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(300px, 90%);
    z-index: 5;
    box-shadow: -8px 0 24px #1232;
  }

  .chatworkspace .message {
    max-width: 95%;
  }

  .composer {
    gap: 4px;
    padding: 10px 6px;
  }

  .chatlocalnote {
    padding-bottom: 6px;
  }

  .chatworkspace {
    min-height: 420px;
  }

  .aihelpbutton {
    bottom: 82px;
  }

  .conversation .chatheading {
    padding: 10px;
  }
}

.layout:has(.chatworkspace) {
  max-width: none;
  grid-template-columns: 310px minmax(0, 1fr);
}

.layout:has(.chatworkspace) > aside {
  background: #f5f7fb;
}

.layout:has(.chatworkspace) main {
  padding: 0 0 0;
}

.chatworkspace {
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  height: calc(100dvh - 130px);
  min-height: 500px;
}

.chatworkspace .chatheading .chatidentity strong {
  font-size: calc(16px * var(--wif-text-scale, 1));
}

.chatsearchbutton {
  border: 0;
  border-radius: 50%;
  background: #e0e8f3;
  color: #456274;
  font-size: calc(25px * var(--wif-text-scale, 1));
  width: 36px;
  height: 36px;
}

.voicepreview {
  padding: 0 15px;
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.voicepreview audio,
.bubble audio {
  max-width: 100%;
  height: 38px;
}

.chatworkspace ~ .demo {
  display: none;
}

.chatdetails {
  background: #f5f7fb;
}

.emojioptions {
  flex-wrap: wrap;
  max-height: 180px;
  overflow: auto;
}

.emoji-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
}

.emoji-tabs button {
  font-size: calc(12px * var(--wif-text-scale, 1));
  padding: 6px;
}

.emoji-tabs .active {
  background: #eaf5ff;
}

.conversation .chatmessages {
  scroll-behavior: smooth;
}

.hubtabs {
  align-items: center;
}

.chatworkspace .chatlocalnote {
  margin-top: 5px;
}

@media (max-width: 760px) {
  .layout:has(.chatworkspace) {
    display: block;
  }

  .chatworkspace {
    height: calc(100dvh - 255px);
    min-height: 420px;
  }

  .layout:has(.chatworkspace) main {
    padding-bottom: 70px;
  }

  .mobilegroups {
    margin: 8px;
    width: calc(100% - 16px);
  }

  .composer button,
  .attachbutton {
    width: 32px;
    height: 36px;
  }

  .composer textarea {
    padding: 11px 12px;
  }

  .chatdetails {
    max-width: 90%;
  }
}

/* V27: one page scroll, one team navigation, conversation first. */
.layout:has(.hubside) > aside {
  position: static;
  max-height: none;
  height: auto;
  overflow: visible;
  align-self: start;
}

.layout:has(.hubside) .teamlist {
  max-height: none;
  min-height: 0;
  height: auto;
  overflow: visible;
}

.layout:has(.hubside) .chatworkspace {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.layout:has(.hubside) .conversation .chatmessages {
  flex: none;
  max-height: none;
  height: auto;
  min-height: 280px;
  overflow: visible;
}

.layout:has(.hubside) .chatdetails {
  position: static;
  width: auto;
  max-width: none;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.layout:has(.hubside) .composer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .layout:has(.hubside) .composer {
    bottom: 65px;
  }

  .layout:has(.hubside) main {
    padding-bottom: 90px;
  }
}

/* Shared full-width application shell on every route. */
.brandrow,
.top,
.layout,
.layout:has(.hubside),
.layout:has(.chatworkspace) {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.layout,
.layout:has(.hubside),
.layout:has(.chatworkspace) {
  grid-template-columns: 310px minmax(0, 1fr);
}

.guidewrap {
  max-width: none;
  width: 100%;
  margin: 18px 0;
}

.layout > aside {
  position: static;
  max-height: none;
  overflow: visible;
}

main a:not(.btn):not(.card):not(.calitem) {
  color: #0874c4;
}

main a:not(.btn):hover {
  text-decoration: underline;
}

.btn {
  min-height: 38px;
}

.btn:hover {
  filter: brightness(0.96);
}

@media (max-width: 760px) {
  .layout,
  .layout:has(.hubside),
  .layout:has(.chatworkspace) {
    display: block;
  }

  .brandrow {
    padding: 12px 16px;
  }

  .top {
    padding: 0 8px;
  }
}

.nextstep {
  padding: 18px 20px;
  background: #edf6ff;
  border: 1px solid #d6e8f7;
  border-radius: 9px;
  margin-bottom: 22px;
}

.nextstephead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.nextstephead h2 {
  margin: 0;
  font-size: calc(20px * var(--wif-text-scale, 1));
}

.helptoggle {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.nextstepoptions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.nextstephelp {
  border-top: 1px solid #c9deef;
  margin-top: 16px;
  padding-top: 14px;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.aihelpbutton[hidden] {
  display: none !important;
}

.layout:has(.chatworkspace) .nextstep {
  margin: 16px;
}

.nextstepoptions .btn {
  white-space: normal;
  text-align: left;
}

@media (max-width: 600px) {
  .nextstep {
    padding: 14px;
  }

  .nextstephead h2 {
    font-size: calc(18px * var(--wif-text-scale, 1));
  }

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

  .nextstepoptions .btn {
    font-size: calc(12px * var(--wif-text-scale, 1));
    padding: 9px;
  }
}

.actionoptionscollapsed {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
  padding: 6px 0;
}

.actionoptionscollapsed .nextstephead {
  margin: 0;
}

.nextstepoptions[hidden] {
  display: none !important;
}

.layout:has(.chatworkspace) .actionoptionscollapsed {
  margin: 8px 16px;
}

/* V33: conversation styling matched to the signed-in Who I Follow example. */
.layout:has(.chatworkspace),
.layout:has(.chatworkspace) > aside,
.layout:has(.chatworkspace) main {
  background: #f5f6fb;
}

.layout:has(.chatworkspace) > aside {
  padding: 16px 10px;
}

.layout:has(.chatworkspace) .sidefoot,
.layout:has(.chatworkspace) #sideTitle {
  display: none;
}

.layout:has(.chatworkspace) .hubtabs {
  padding: 0 5px 10px;
  font-size: calc(20px * var(--wif-text-scale, 1));
}

.layout:has(.chatworkspace) .teamsearch {
  border: 0;
  border-radius: 22px;
  background: #edf1f7;
  padding: 10px 15px;
}

.layout:has(.chatworkspace) .teamrow {
  min-height: 65px;
  padding: 12px 8px;
  border-bottom: 0;
}

.layout:has(.chatworkspace) .teamrow.selected {
  background: #e4f1ff;
}

.layout:has(.chatworkspace) .teamavatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e5eef9;
  color: #416985;
}

.layout:has(.chatworkspace) .teamsub {
  background: transparent;
}

.layout:has(.hubside) .chatworkspace {
  background: #f5f6fb;
  border-left: 1px solid #d8dfe9;
  min-height: calc(100dvh - 190px);
}

.conversation .chatheading {
  background: #f5f6fb;
  padding: 15px 20px;
  border-bottom: 1px solid #d8dfe9;
  min-height: 72px;
}

.chatheading .chatidentity strong {
  color: #303842;
  font-size: calc(16px * var(--wif-text-scale, 1));
  font-weight: 600;
}

.chatheading small {
  color: #7c8490;
  margin-top: 4px;
}

.chatthreadpicker,
.newchatthread {
  background: #f5f6fb;
  color: #66778b;
}

.chatworkspace .chatthreadpicker summary,
.chatworkspace .newchatthread summary {
  padding: 7px 20px;
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.layout:has(.hubside) .conversation .chatmessages {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100dvh - 420px);
  padding: 24px 22px 10px;
  background: #f5f6fb;
}

.conversation .message {
  width: fit-content;
  max-width: 78%;
  min-width: 100px;
  margin: 0 0 14px 34px;
  position: relative;
}

.conversation .message.mine {
  margin-left: auto;
  margin-right: 0;
}

.conversation .messageinfo {
  position: relative;
  color: #456985;
  font-size: calc(12px * var(--wif-text-scale, 1));
  padding: 0 3px;
  margin-bottom: 5px;
}

.senderavatar {
  position: absolute;
  right: calc(100% + 9px);
  top: 0;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #dce9f4;
  color: #4a667d;
  border-radius: 50%;
  font-size: calc(10px * var(--wif-text-scale, 1));
  font-weight: bold;
}

.conversation .bubble {
  background: #fff;
  border-radius: 3px 12px 12px 12px;
  color: #394653;
  padding: 9px 14px;
  line-height: 1.5;
}

.conversation .mine .bubble {
  background: #e3f0fd;
  border-radius: 12px 3px 12px 12px;
}

.conversation .msgactions {
  opacity: 0;
  min-height: 19px;
  transition: opacity 0.15s;
}

.conversation .message:hover .msgactions,
.conversation .message:focus-within .msgactions {
  opacity: 1;
}

.layout:has(.hubside) .composer {
  margin: 12px 20px 6px;
  padding: 5px 8px;
  background: #dce5f0;
  border: 1px solid #d4deeb;
  border-radius: 28px;
  align-items: center;
  bottom: 12px;
}

.composer textarea {
  background: transparent;
  border-radius: 0;
  padding: 10px 5px;
  min-height: 38px;
}

.composer button,
.composer .attachbutton {
  background: transparent;
  color: #6b7d91;
  width: 32px;
  height: 34px;
  font-size: calc(19px * var(--wif-text-scale, 1));
}

.composer button[type="submit"] {
  background: #268dea;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.chatlocalnote {
  font-size: calc(10px * var(--wif-text-scale, 1));
  color: #83909c;
  text-align: center;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: #7b8592;
}

.chat-empty h3 {
  color: #39414c;
  font-weight: 500;
}

.emptychaticon {
  font-size: calc(48px * var(--wif-text-scale, 1));
  color: #48769a;
  margin-bottom: 15px;
}

@media (hover: none) {
  .conversation .msgactions {
    opacity: 0.7;
  }
}

@media (max-width: 760px) {
  .layout:has(.hubside) .composer {
    margin: 10px 8px;
    bottom: 72px;
  }

  .layout:has(.hubside) .conversation .chatmessages {
    padding: 18px 12px 8px;
    min-height: calc(100dvh - 460px);
  }

  .conversation .message {
    max-width: 85%;
  }

  .conversation .chatheading {
    padding: 12px;
  }

  .chatworkspace .chatthreadpicker summary {
    padding-left: 12px;
  }
}

.headerhelptoggle {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: calc(12px * var(--wif-text-scale, 1));
  padding: 7px 12px;
  margin-left: 5px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.headerhelptoggle strong {
  font-weight: 600;
}

.headerhelptoggle .toggle {
  margin: 0;
  width: 40px;
  height: 24px;
}

.headerhelptoggle .toggle:before {
  height: 18px;
  width: 18px;
}

.headerhelptoggle .toggle:checked:before {
  transform: translateX(16px);
}

#actionOptionsPanel[hidden] {
  display: none !important;
}

.teamview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0;
  min-height: calc(100dvh - 150px);
}

.teamviewbody {
  min-width: 0;
}

.teamrightmenu {
  padding: 20px 14px;
  border-left: 1px solid #d8dfe9;
  background: #f5f6fb;
  align-self: stretch;
}

.teamrightmenu h2 {
  font-size: calc(16px * var(--wif-text-scale, 1));
  margin-bottom: 16px;
}

.teamrightmenu .label {
  margin-bottom: 10px;
}

.teamrightmenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 9px;
  border-radius: 7px;
  color: #486079 !important;
  font-size: calc(13px * var(--wif-text-scale, 1));
}

.teamrightmenu a.active {
  background: #e1effe;
  color: #0874c4 !important;
  font-weight: bold;
}

.teamrightmenu a:hover {
  background: #eaf2fa;
  text-decoration: none !important;
}

.teamrightmenu a span {
  width: 20px;
  text-align: center;
}

.teamnames .teamrow {
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

.layout:has(.teamview) main {
  padding: 0;
}

.layout:has(.teamview) .demo {
  padding: 16px;
}

.layout:has(.teamview) .teamviewbody > .heading,
.layout:has(.teamview) .teamviewbody > .card,
.layout:has(.teamview) .teamviewbody > .wizardsteps {
  margin: 18px;
}

@media (max-width: 950px) {
  .teamview {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .teamrightmenu {
    padding: 16px 8px;
  }

  .layout:has(.teamview) {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .teamview {
    grid-template-columns: minmax(0, 1fr);
  }

  .teamrightmenu {
    grid-row: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .teamrightmenu h2 {
    width: 100%;
    margin: 0 0 5px;
  }

  .teamrightmenu .label {
    display: none;
  }

  .teamrightmenu a {
    padding: 7px;
    font-size: calc(12px * var(--wif-text-scale, 1));
  }

  .headerhelptoggle {
    padding: 6px;
  }

  .layout:has(.teamview) {
    display: block;
  }
}

.pagehelp {
  padding: 10px 0;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.pagehelp.nextstep {
  padding: 16px 20px;
}

.pagehelp .nextstephead {
  margin: 0;
}

.pagehelplabel {
  font-size: calc(13px * var(--wif-text-scale, 1));
  font-weight: 600;
  color: #657b8b;
}

.pagehelp h2 {
  margin: 14px 0 12px;
}

.layout:has(.teamview) .pagehelp {
  margin: 10px 16px;
}

.pagehelp .helptoggle {
  margin-left: auto;
}

.pagehelp:not(.nextstep) {
  background: transparent;
}

.titlehelptoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  vertical-align: middle;
  white-space: nowrap;
  font-size: calc(12px * var(--wif-text-scale, 1));
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  color: #60788b;
}

.titlehelptoggle strong {
  font-weight: 400;
}

.titlehelptoggle .toggle {
  margin: 0;
  width: 40px;
  height: 24px;
}

.titlehelptoggle .toggle:before {
  width: 18px;
  height: 18px;
}

.titlehelptoggle .toggle:checked:before {
  transform: translateX(16px);
}

.chatheading .chatidentity {
  flex: 0 1 auto;
}

.chatheading .titlehelptoggle {
  margin-left: 12px;
  margin-right: auto;
}

.nextstep h2 {
  margin-bottom: 12px;
}

.helptitlefallback {
  padding: 10px 0;
}

.helptitlefallback .titlehelptoggle {
  margin-left: 0;
}

@media (max-width: 600px) {
  h1 .titlehelptoggle {
    margin-left: 12px;
  }

  .chatheading {
    flex-wrap: wrap;
  }

  .chatheading .titlehelptoggle {
    margin-left: 4px;
    font-size: calc(11px * var(--wif-text-scale, 1));
  }
}

/* One title and help header directly beneath the main navigation. */
#globalPageHeader {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}

.pageheaderline {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 36px;
  flex-wrap: wrap;
}

.pageheaderline h1 {
  font-size: calc(22px * var(--wif-text-scale, 1));
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.3px;
}

.pageheaderline .titlehelptoggle {
  margin: 0;
  font-size: calc(12px * var(--wif-text-scale, 1));
}

.pageheaderline .titlehelptoggle strong {
  font-weight: 500;
}

#globalPageHeader .nextstep {
  margin: 14px 0 0;
  padding: 16px 20px;
}

.layout main > .heading:empty {
  display: none;
}

@media (max-width: 760px) {
  #globalPageHeader {
    padding: 12px 14px;
  }

  .pageheaderline {
    gap: 10px;
  }

  .pageheaderline h1 {
    font-size: calc(19px * var(--wif-text-scale, 1));
  }

  .pageheaderline .titlehelptoggle {
    font-size: calc(11px * var(--wif-text-scale, 1));
  }
}

/* Show help shares the existing header, without an extra title strip. */
.chatheading .titlehelptoggle {
  margin-left: 10px;
  margin-right: 0;
  flex-shrink: 0;
}

.chatheading .chatidentity {
  flex: 0 1 auto;
}

.chatheading .chatsearchbutton {
  margin-left: 12px;
}

.layout:has(.teamview) .teamviewbody > .heading {
  margin-top: 16px;
}

.helptitlefallback {
  border: 0;
  margin: 0;
  padding: 6px 0;
}

@media (max-width: 600px) {
  .chatheading .titlehelptoggle {
    margin-left: 0;
    gap: 5px;
  }

  .chatheading .chatsearchbutton {
    margin-left: auto;
  }
}

.textsizecontrol {
  border-top: 1px solid #c9deef;
  margin-top: 16px;
  padding-top: 14px;
}

.textsizecontrol > label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.textsizeslider {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.textsizeslider input[type="range"] {
  flex: 1;
  min-width: 140px;
  max-width: 380px;
  accent-color: #188ff0;
}

.textsizeslider output {
  min-width: 48px;
  font-weight: bold;
}

.top {
  flex-wrap: wrap;
}

.top a {
  white-space: normal;
}

.btn {
  white-space: normal;
}

input,
select,
textarea {
  max-width: 100%;
}

.teamrightmenu a,
.side a {
  overflow-wrap: anywhere;
}

.helpappearance,
.helpfeatures {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}

.helpfeatures summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}

.helpfeatures > details {
  margin: 8px 0;
}

.helpfeatures .planfeature {
  gap: 20px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e0e8f3;
  --muted: #a9b7c8;
  --line: #354357;
  --pale: #233e5a;
  --bg: #141d2a;
}

html[data-theme="dark"] body {
  background: #141d2a;
  color: #e0e8f3;
}

html[data-theme="dark"]
  :is(
    header,
    .brandrow,
    .top,
    aside,
    .card,
    .banner,
    .nextstep,
    .planaccordion,
    .planincluded,
    .boardhero,
    .boardnav,
    .discussion,
    .agecard,
    .groupcontext,
    .welcomehero,
    .welcomecard,
    .resumebar,
    .teamrightmenu,
    .chatworkspace,
    .conversation,
    .chatheading,
    .chatmessages,
    .chatdetails,
    .teamview,
    .teamviewbody,
    .layout,
    main,
    .teamsub,
    .mobilebar,
    .boardtip,
    .guidewrap form,
    .typecard,
    .chatthreadpicker,
    .newchatthread,
    dialog,
    .planhead,
    .planbody,
    .planfooter,
    .helphead,
    .helpbody,
    .helpbottom
  ) {
  background: #192535 !important;
  color: #e0e8f3 !important;
  border-color: #354357 !important;
}

html[data-theme="dark"]
  :is(
    input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
    select,
    textarea
  ) {
  background: #263548 !important;
  color: #e0e8f3 !important;
  border-color: #4a5a70 !important;
}

html[data-theme="dark"]
  :is(
    .muted,
    .notice,
    .chatlocalnote,
    .pagehelplabel,
    .titlehelptoggle,
    .chatheading small,
    .teamtext small
  ) {
  color: #a9b7c8 !important;
}

html[data-theme="dark"]
  :is(
    h1,
    h2,
    h3,
    .chatidentity strong,
    .planname strong,
    .teamrow,
    .messageinfo
  ) {
  color: #e0e8f3 !important;
}

html[data-theme="dark"]
  :is(
    .btn.secondary,
    .threadtools button,
    .groupfilters button,
    .composer,
    .composer textarea,
    .attachbutton,
    .teamavatar,
    .chatsearchbutton,
    .bubble,
    .tag,
    .currentplan,
    .selectedhotel,
    .uniformtable th
  ) {
  background: #263b52 !important;
  color: #dbeaff !important;
  border-color: #415875 !important;
}

html[data-theme="dark"]
  :is(
    .side a.active,
    .teamrow.selected,
    .teamrightmenu a.active,
    .top a.active,
    .mine .bubble
  ) {
  background: #234e76 !important;
  color: #edf7ff !important;
}

html[data-theme="dark"]
  :is(main a:not(.btn), .teamrightmenu a, .top a, .side a) {
  color: #9aceff !important;
}

html[data-theme="dark"]
  :is(.top a:hover, .side a:hover, .teamrightmenu a:hover) {
  background: #2b415a !important;
}

html[data-theme="dark"] .toggle:not(:checked) {
  background: #67788c !important;
}

html[data-theme="dark"] .feature-switch span {
  color: #e0e8f3;
}
