/* Speak up page. Suggestion box purple and reply badges match the dashboard's Notes page. */
:root {
  --su-box: #8b5cf6;
  --su-line: #eee6dd;
}

/* the Speak up tab, as it looks in the employee app */
.su-speak {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: min(100%, 400px);
}
.su-speak .ui-meta {
  margin: 0;
}
.su-speak-title {
  font: 700 1.6rem/1.1 var(--display);
  letter-spacing: -0.01em;
}
.su-speak-sub {
  margin-top: -0.4rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--navy-2);
}
.su-field {
  min-height: 6.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--su-line);
  border-radius: 14px;
  background: #fbf8f4;
  font-size: 0.92rem;
  line-height: 1.45;
}
.su-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.su-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  width: fit-content;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  border: 1px solid var(--su-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.su-ai.is-on {
  border-color: var(--orange);
  background: var(--active-bg);
}
.su-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-2);
}
.su-toggle.is-on {
  color: #c25400;
}
.su-toggle i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: #e5ddd4;
}
.su-toggle.is-on i {
  background: var(--orange);
}
.su-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.su-toggle.is-on i::after {
  left: auto;
  right: 2px;
}
.su-send {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.su-note-hero {
  top: -3.1rem;
  left: 40%;
}

/* the confirmation screen after sending */
.su-thanks {
  justify-items: start;
  width: fit-content;
  max-width: 250px;
}
.su-thanks-tick {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--active-bg);
  transform: rotate(-4deg);
}
.su-thanks-tick .i {
  width: 22px;
  height: 22px;
}
.su-thanks-title {
  font: 700 1.35rem/1.1 var(--display);
}

/* old way: the open-door email */
.su-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4.5vw, 4rem);
  border-radius: 32px;
  background: var(--stage-coral);
}
.su-box-copy h2 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  line-height: 1.06;
}
.su-box-copy > p:not(.label-pill) {
  max-width: 46ch;
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--navy-2);
}
.su-box-copy strong {
  font-weight: 600;
  color: var(--navy);
}
.su-mail-wrap {
  position: relative;
  padding-bottom: 2.5rem;
}
.su-mail {
  transform: rotate(1deg);
}
.su-mail-msg {
  margin: 0 0.5rem 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1.45;
}
.su-mail-subject {
  font-size: 1.15rem;
  line-height: 1.25;
}
.su-mail-from {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.su-mail-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f4e8c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.su-mail-from b {
  display: block;
  font-weight: 700;
}
.su-mail-from p span,
.su-mail-from time {
  color: #5f6368;
  font-size: 0.75rem;
}
.su-mail-body {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0 0 2.6rem;
}
.su-mail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0 2.6rem;
}
.su-mail-foot span {
  padding: 0.3rem 0.85rem;
  border: 1px solid #c4c7c5;
  border-radius: 999px;
  color: #444746;
  font-size: 0.75rem;
}
.su-mail-foot b {
  margin-left: auto;
  color: #5f6368;
  font-size: 0.75rem;
  font-weight: 700;
}
.su-note-door {
  right: 2rem;
  bottom: -0.6rem;
}

/* the before-and-after of Rewrite with AI */
.su-rewrite {
  display: grid;
  gap: 0.75rem;
}
.su-rewrite .ui-meta {
  margin: 0;
}
.su-before {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--sand);
  color: var(--navy-2);
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: line-through;
  text-decoration-color: rgb(12 21 34 / 0.35);
}
.su-rewrite .su-field {
  min-height: 0;
}

/* the dashboard's Notes page, filtered */
.su-notes {
  display: grid;
  gap: 0.7rem;
}
.su-notes-title {
  font: 700 1.15rem/1.2 var(--display);
}
.su-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.su-filters span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--su-line);
  border-radius: 10px;
  font-size: 0.78rem;
}
.su-filters .is-on {
  border-color: #ffb680;
  background: var(--active-bg);
}
.su-filters .i {
  color: var(--navy-2);
}
.su-note {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--su-line);
  border-radius: 12px;
}
.su-note p {
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}
.su-note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--navy-2);
}
.su-type {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.su-type i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ede9fe;
}
.su-type .i {
  width: 11px;
  height: 11px;
  color: var(--su-box);
}
.su-badge {
  padding: 0.12rem 0.55rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}
.su-badge--wait {
  border-color: var(--orange);
  background: rgb(255 115 0 / 0.1);
  color: #c25400;
}
.su-badge--done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

/* feature card drawings; reaction colours match the dashboard's note card */
.su-chips {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}
.su-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem 0.38rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.su-chips .i {
  width: 1.3em;
  height: 1.3em;
}
.su-chips .is-on {
  background: var(--stage-peach);
  box-shadow: 0 6px 14px -8px rgb(12 21 34 / 0.3);
}
.su-rx-thanks {
  --c: #0891b2;
}
.su-rx-idea {
  --c: #ca8a04;
}
.su-rx-working {
  --c: #7c3aed;
}
.su-chips [class*="su-rx-"] {
  color: var(--c);
}
.su-draft {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 180px;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--surface);
}
.su-draft .badge {
  justify-self: start;
}
.su-draft i {
  height: 8px;
  border-radius: 99px;
  background: var(--sand);
}
.su-draft i:last-child {
  width: 62%;
}
.su-archive {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
}
.su-archive i {
  width: 100%;
  height: 14px;
  border-radius: 99px;
  background: #fff;
}
.su-archive i + i {
  width: 72%;
}
.su-archive span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  padding: 0.38rem 0.8rem 0.38rem 0.65rem;
  border-radius: 999px;
  background: var(--stage-peach);
  font-size: 0.82rem;
  font-weight: 600;
}
.su-archive .i {
  width: 1.3em;
  height: 1.3em;
}
.feature-cards li:has(> .su-stamp) {
  position: relative;
}
.su-stamp {
  top: -0.7rem;
  right: 1rem;
}

@media (max-width: 960px) {
  .su-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .page-hero-media.moment-media--centred:has(.su-speak) {
    padding-top: 4rem;
  }
  .su-note-hero {
    right: auto;
    left: 10%;
  }
  .su-mail {
    transform: none;
  }
  .su-mail-body,
  .su-mail-foot {
    margin-left: 0;
  }
  .su-note-door span {
    white-space: normal;
    max-width: 11rem;
  }
}
