/* Identity pages share the workspace palette and controls. */
.id-access {
  --id-forest: #20483b;
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(360px, 1.06fr);
  min-height: 100svh;
  background: #fbfcfa;
  color: #1d302a;
  font-family: Manrope, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.id-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  padding: clamp(38px, 6vw, 94px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: #f1f6e9;
  background:
    radial-gradient(ellipse at 95% 95%, #315f46 0, transparent 58%),
    var(--id-forest);
}
.id-story:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(
    145deg,
    transparent 0,
    transparent 43px,
    rgba(228, 247, 193, 0.08) 44px,
    transparent 45px
  );
  mask-image: linear-gradient(35deg, transparent 30%, #000);
}
.id-story-top,
.id-mobile-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: 0.01em;
}
.id-story-top img {
  padding: 3px;
  background: #f8f8ee;
  border-radius: 8px;
}
.id-story-text {
  margin: clamp(55px, 9vh, 100px) 0 40px;
}
.id-story-text p {
  margin: 0 0 14px;
  font-size: 16px;
  color: #d1e0d2;
}
.id-story-text h2 {
  color: #f3fae9;
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.05em;
  font-size: clamp(42px, 4.4vw, 74px);
  font-weight: 620;
}
.id-slip {
  width: min(345px, 100%);
  padding: 22px 25px 24px;
  border-radius: 13px 13px 9px 9px;
  background: #f9fbef;
  color: #213d30;
  box-shadow: 9px 10px 0 rgba(13, 44, 31, 0.33);
  transform: rotate(-3deg);
  margin: 0 0 2vh;
}
.id-slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.id-slip-head span + span {
  font-size: 12px;
  padding: 2px 9px;
  background: #e7ecd8;
  border-radius: 5px;
}
.id-slip-label {
  font-size: 13px;
  color: #536658;
  margin: 25px 0 2px;
}
.id-slip-sum {
  font-variant-numeric: tabular-nums;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.06em;
  font-weight: 650;
}
.id-slip-sum small {
  font-size: 0.49em;
}
.id-slip-stats {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-top: 1px dashed #aebda3;
  padding-top: 13px;
  margin-top: 17px;
}
.id-slip-stats {
  justify-content: flex-start;
}
.id-slip-stats button {
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  background: #d5e7fb;
  color: #345f91;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
}
.id-slip-stats button:nth-child(2) {
  color: #755497;
  background: #ecdcf9;
}
.id-slip-stats button:nth-child(3) {
  color: #9c5a26;
  background: #fae2c8;
}
.id-slip-stats button[aria-expanded="true"],
.id-slip-stats button:hover {
  border-color: currentColor;
}
.id-slip-output {
  font-size: 13px;
  line-height: 1.55;
  color: #37523c;
  margin: 9px 0 0;
}
.id-slip-output[hidden] {
  display: none;
}
.id-access-side {
  display: grid;
  place-items: center;
  padding: 60px 35px;
}
.id-access-form {
  width: min(376px, 100%);
}
.id-access h1 {
  font-size: clamp(32px, 3.5vw, 47px);
  line-height: 1.16;
  letter-spacing: -0.055em;
  color: #1d302a;
  margin: 0 0 10px;
  font-weight: 700;
}
.id-mobile-brand {
  display: none;
}
.id-lede {
  font-size: 16px;
  color: #586c60;
  margin: 0 0 30px;
  line-height: 1.55;
}
.id-stack {
  display: grid;
  gap: 17px;
}
.id-stack .field {
  display: grid;
  gap: 7px;
  min-width: 0;
  line-height: 1.5;
}
.id-stack .field > span,
.id-stack .id-invite-field > label,
.id-stack > h3 {
  font-size: 14px;
  font-weight: 650;
  color: #293e33;
}
.id-stack input:not([type="checkbox"]),
.id-stack select,
.id-filters input,
.id-filters select {
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 43px;
  padding: 10px 13px;
  border: 1px solid #cad4cb;
  border-radius: 8px;
  color: #213b2d;
  background: #fff;
}
.id-stack input:focus,
.id-stack select:focus,
.id-filters input:focus,
.id-filters select:focus {
  outline: 2px solid #81a877;
  outline-offset: 1px;
}
.id-access .btn,
.id-dialog .btn,
.id-demo-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd4ca;
  background: white;
  color: #294838;
  border-radius: 8px;
  min-height: 37px;
  padding: 7px 13px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.16s,
    transform 0.16s;
}
.id-access .btn:hover,
.id-dialog .btn:hover,
.id-demo-buttons .btn:hover {
  background: #f0f5ea;
}
.id-access .btn.primary,
.id-dialog .btn.primary {
  background: #214d3e;
  border-color: #214d3e;
  color: white;
}
.id-access .btn.primary:hover,
.id-dialog .btn.primary:hover {
  background: #163f31;
}
.id-stack .id-submit {
  width: 100%;
  padding: 12px;
  margin-top: 2px;
}
.id-switch {
  text-align: center;
  font-size: 14px;
  margin: 19px 0 0;
  color: #69786b;
}
.id-switch a,
.id-text {
  color: #295944;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.id-demo {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #d9e1d6;
}
.id-demo h3 {
  font-size: 13px;
  font-weight: 600;
  color: #607361;
  margin: 0 0 12px;
}
.id-demo-buttons,
.id-actions,
.id-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.id-demo-buttons .btn {
  font-size: 14px;
  padding: 7px 12px;
  background: #f3f6ef;
}
.id-error {
  padding: 8px 10px;
  color: #873f24;
  background: #fff0e8;
  border-radius: 5px;
  font-size: 14px;
  margin: 0;
}
.id-error[hidden] {
  display: none;
}
.id-error:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.id-invite-field #invite-status {
  color: #586c60;
  font-size: 13px;
}
.id-invite-field #invite-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.id-invite-field #invite-status[data-state="valid"] {color: #295944;}
.id-invite-field #invite-status[data-state="invalid"],
.id-invite-field #invite-status[data-state="unavailable"] {color: #873f24;}
.id-stack .id-invite-field input[aria-invalid="true"] {
  border-color: #a85433;
  outline-color: #a85433;
}
.id-access button:disabled,
.id-dialog button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.id-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.id-page-head p,
.id-section-head p,
.id-hint {
  margin: 4px 0 0;
  color: #627267;
  font-size: 14px;
  line-height: 1.55;
}
.id-block {
  padding: 22px;
  margin: 0 0 16px;
}
.id-payout { max-width: 570px; }
.id-payout .id-hint { margin: 0; }
.id-payout-status {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}
.id-block h2,
.id-section-head h2,
.id-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.id-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}
.id-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.id-block th,
.id-block td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid #e3e9e2;
}
.id-block th {
  color: #66796d;
  font-weight: 550;
}
.id-block td small {
  display: block;
  color: #647367;
  margin-top: 3px;
}
.id-block .table-wrap {
  overflow: auto;
}
.id-text {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
}
.id-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.id-kpis > div {
  padding: 19px 22px;
}
.id-kpis span {
  font-size: 14px;
  color: #5b6e61;
}
.id-kpis strong {
  display: block;
  font-size: 31px;
  line-height: 1.35;
  color: #234734;
  font-variant-numeric: tabular-nums;
}
.id-filters {
  margin: 0 0 13px;
}
.id-filters input {
  flex: 1;
  min-width: 150px;
}
.id-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e2e8df;
}
.id-channel p {
  margin: 3px 0;
  color: #68776b;
  font-size: 14px;
}
.id-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e6f2da;
  color: #375b41;
  font-weight: 700;
}
.id-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(470px, calc(100% - 30px));
  max-height: 88dvh;
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid #d8e2d5;
  border-radius: 16px;
  color: #20372a;
  background: #fbfcf9;
  box-shadow: 0 20px 90px #152d2433;
  padding: 0;
}
.id-dialog::backdrop {
  background: #17271f70;
}
.id-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px 12px;
}
.id-close {
  border: 0;
  background: #edf2e9;
  border-radius: 6px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  font-size: 21px;
  color: #455849;
}
.id-dialog > div {
  padding: 8px 22px 24px;
}
.id-dialog summary {
  font-size: 14px;
  color: #47634f;
  cursor: pointer;
}
.id-dialog details .field {
  margin-top: 10px;
}
.id-preview {
  margin-top: 18px;
  border-top: 1px solid #d6e0d2;
  padding-top: 16px;
}
.id-preview p,
.id-problems {
  font-size: 14px;
  margin: 6px 0;
  color: #47604e;
}
.id-option {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 820px) {
  .id-access {
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  }
  .id-story {
    padding: 42px 30px;
  }
  .id-slip {
    padding: 17px;
  }
  .id-slip-stats {
    gap: 4px;
  }
  .id-slip-stats span {
    font-size: 12px;
  }
}
@media (max-width: 680px) {
  .id-stack input:not([type="checkbox"]), .id-stack select {font-size: 16px;}
  .id-access {
    display: block;
    min-height: 100svh;
  }
  .id-story {
    display: none;
  }
  .id-access-side {
    min-height: 100svh;
    box-sizing: border-box;
    padding: 36px 24px;
    align-items: center;
  }
  .id-mobile-brand {
    display: flex;
    margin: 0 0 36px;
    color: #214d3e;
  }
  .id-page-head,
  .id-section-head {
    flex-wrap: wrap;
  }
  .id-actions {
    width: 100%;
  }
  .id-kpis {
    gap: 6px;
  }
  .id-kpis > div {
    padding: 13px 10px;
  }
  .id-block {
    padding: 15px;
  }
  .id-block table {
    min-width: 510px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .id-access button {
    transition: none;
  }
}
