:root {
  font:
    16px/1.45 Inter,
    Arial,
    sans-serif;
  color: #262334;
  background: #f8f8fb;
  --purple: #6642ba;
  --ink: #312841;
  --muted: #6d6979;
  --line: #e6e3eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  flex-shrink: 0;
}
button,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #986ed3;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: #6241a5;
}
input,
textarea,
select {
  color: inherit;
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
.appShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  background: #272136;
  color: #f6f3fa;
  padding: 27px 16px 15px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 760;
  font-size: 23px;
  letter-spacing: -1.1px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 43px;
}
.brand-mark {
  background: #c8f49a;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #2a2337;
  font-weight: 800;
}
.brand-mark span:first-child {
  width: 7px;
  height: 18px;
  background: #30243c;
  border-radius: 1px;
}
.brand-mark span:last-child {
  width: 12px;
  height: 18px;
  background: #30243c;
  clip-path: polygon(48% 0, 100% 0, 48% 47%, 100% 100%, 45% 100%, 0 52%);
}
.navheading {
  color: #bdb2c9;
  font-size: 11px;
  letter-spacing: 1.55px;
  font-weight: 720;
  padding: 0 12px;
}
.navitem,
.baseitem {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  color: #ddd5e7;
  font-size: 14px;
  min-height: 41px;
  border-radius: 8px;
}
.navitem svg {
  width: 18px;
  height: 18px;
}
.navcurrent {
  margin-top: 11px;
  background: #483a5c;
  color: white;
  font-weight: 600;
}
.sidehead {
  margin: 30px 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sideadd {
  color: #d5c9e2;
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
}
.baselist {
  min-height: 60px;
  overflow: auto;
}
.baseitem {
  padding: 6px 12px;
}
.baseitem.selected {
  color: white;
  font-weight: 650;
}
.baseitem.selected i {
  margin-left: auto;
  background: #cfedae;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.base-icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.bi0 {
  background: #59456a;
  color: #e8c6f7;
}
.bi1 {
  background: #4b4d40;
  color: #d0e7a5;
}
.bi2 {
  background: #414d63;
  color: #bed3fc;
}
.sidebottom {
  margin-top: auto;
}
.sidebottom > .navitem {
  margin: 2px 0;
}
.profile {
  margin-top: 17px;
  border-top: 1px solid #483d54;
  padding: 19px 6px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile i,
.personname i {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dfd3f0;
  color: #453456;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 740;
  flex-shrink: 0;
}
.profile span {
  min-width: 0;
}
.profile b,
.profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile b {
  font-size: 14px;
}
.profile small {
  color: #c1b6ca;
  font-size: 12px;
}
.mainarea {
  min-width: 0;
}
.topline {
  height: 65px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(20px, 3.8vw, 60px);
  font-size: 13px;
  color: var(--muted);
}
.topline > span,
.topline button,
.mainbtn,
.secondary,
.viewtoggle button,
.filter,
.search,
.actions,
.tgstatus,
.link,
.laneadd,
.connected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.topline b {
  font-weight: 560;
  color: var(--ink);
}
.tgstatus {
  border: 1px solid var(--line);
  padding: 7px 11px;
  margin-left: auto;
  border-radius: 20px;
  white-space: nowrap;
  color: #544762;
  background: #fbf9fd;
  font-size: 13px;
}
.tgstatus i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aca2b5;
}
.tgstatus.on i {
  background: #65a575;
}
.mobicon,
.navmask {
  display: none !important;
}
.workspace {
  padding: clamp(22px, 3.5vw, 54px) clamp(18px, 3.8vw, 60px);
  max-width: 1750px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 26px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  color: #756885;
  letter-spacing: 1.8px;
}
.rule {
  width: 19px;
  height: 2px;
  background: #9272b1;
}
h1 {
  font-size: clamp(34px, 3.1vw, 50px);
  font-weight: 680;
  line-height: 1.13;
  letter-spacing: -2px;
  margin-top: 8px;
}
.mainbtn,
.secondary {
  padding: 10px 16px;
  min-height: 41px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}
.mainbtn {
  color: #fff;
  background: #6943ac;
  border: 1px solid #63409e;
}
.secondary {
  background: white;
  border: 1px solid #dcd7e3;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 19px 2px;
  margin-bottom: 32px;
}
.summary > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(14px, 2.1vw, 32px);
}
.summary > div + div {
  border-left: 1px solid var(--line);
}
.sumicon {
  height: 42px;
  width: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.purple {
  background: #eee7fa;
  color: #784fac;
}
.gold {
  background: #faf0d7;
  color: #9e702c;
}
.green {
  background: #e8f2e5;
  color: #497453;
}
.summary small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.summary strong {
  font-size: 27px;
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -1px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.viewtoggle {
  display: inline-flex;
  background: #eae7ef;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.viewtoggle button {
  padding: 7px 11px;
  font-size: 14px;
  color: #686172;
  border-radius: 6px;
}
.viewtoggle .active {
  background: #fff;
  color: #3d334b;
  box-shadow: 0 1px 3px #30243816;
}
.search,
.filter {
  height: 38px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 0 10px;
  color: #716b7a;
}
.search {
  margin-left: auto;
}
.search input {
  width: 155px;
  border: none;
  background: transparent;
  font-size: 14px;
  min-width: 0;
}
.filter select {
  border: 0;
  background: transparent;
  max-width: 100px;
  font-size: 14px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23736b7e' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-position: right 7px center !important;
  background-repeat: no-repeat !important;
  padding-right: 25px !important;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(7, minmax(185px, 1fr));
  overflow-x: auto;
  padding-bottom: 10px;
  gap: 12px;
  align-items: stretch;
}
.lane {
  min-width: 0;
  background: #f0eef4;
  border: 1px solid #e6e2eb;
  border-radius: 11px;
  min-height: clamp(290px, 49vh, 720px);
  padding: 12px 10px;
}
.lane.drop {
  outline: 2px dashed #9977bb;
  outline-offset: -3px;
  background: #eae1f7;
}
.lanetitle {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 2px 16px;
}
.lanetitle > i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #9c85cd;
}
.lane1 .lanetitle > i {
  background: #deb267;
}
.lane2 .lanetitle > i {
  background: #83adb4;
}
.lane3 .lanetitle > i {
  background: #a2b899;
}
.lane4 .lanetitle > i {
  background: #259275;
}
.lane5 .lanetitle > i {
  background: #c47726;
}
.lane5 {
  background: #faf4ec;
  border-color: #e8d7c1;
}
.lane6 .lanetitle > i {
  background: #b57278;
}
.renew-rule {
  margin: 10px 0 4px;
  color: #745431;
  font-size: 14px;
}
.form .placement-fields,
.renew-summary {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9d1e2;
  border-radius: 8px;
  min-width: 0;
}
.placement-fields legend {
  font-weight: 600;
  padding: 0 4px;
}
.personcard .placement-date {
  color: #624a76;
  font-weight: 600;
}
.lanetitle h2 {
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 680;
  line-height: 1.17;
}
.lanetitle b {
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  background: #e5e1eb;
  color: #665c72;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.lanetitle button {
  margin-left: auto;
  padding: 2px;
  color: #837a8d;
  display: grid;
  place-items: center;
}
.laneadd {
  border: 1px dashed #d1cadb;
  border-radius: 7px;
  width: 100%;
  padding: 10px 2px;
  color: #766984;
  font-size: 13px;
}
.personcard {
  width: 100%;
  background: white;
  border: 1px solid #ddd7e5;
  border-radius: 9px;
  padding: 13px;
  margin: 0 0 9px;
  text-align: left;
  box-shadow: 0 2px 4px #33254106;
  overflow-wrap: anywhere;
  cursor: grab;
}
.personname {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}
.personname i {
  width: 29px;
  height: 29px;
  background: #ece9f2;
  color: #736283;
}
.personcard > span,
.personcard > p,
.personcard > small {
  display: block;
  margin-top: 8px;
  color: #72697b;
  font-size: 13px;
}
.personcard > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.personcard > small {
  display: flex;
  align-items: center;
  gap: 5px;
}
.listview,
.emptyfull {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px;
}
.listview > p,
.emptyfull {
  padding: 32px;
  color: var(--muted);
}
.listview button {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  padding: 14px 8px;
  text-align: left;
}
.listview button + button {
  border-top: 1px solid var(--line);
}
.listview span,
.listview small {
  color: #71667c;
}
.veil {
  position: fixed;
  inset: 0;
  background: #211c3290;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10;
}
.dialog {
  width: min(100%, 476px);
  max-height: 92dvh;
  overflow: auto;
  background: white;
  border-radius: 17px;
  box-shadow: 0 15px 95px #17112640;
  outline: none;
}
.dialog.wide {
  width: min(100%, 855px);
}
.dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 22px 15px;
  border-bottom: 1px solid var(--line);
}
.dialog h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.dialog h3 {
  font-size: 16px;
}
.iconbtn {
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f4f1f7;
  width: 31px;
  height: 31px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
}
.form.inner {
  padding: 0;
}
.form label,
.composer label {
  font-size: 14px;
  font-weight: 590;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form input:not([type="checkbox"]),
.form textarea,
.form select,
.composer textarea {
  width: 100%;
  border: 1px solid #d8d1e0;
  border-radius: 7px;
  background: white;
  padding: 9px 10px;
  font-size: 15px;
  font-weight: 400;
}
.form textarea,
.composer textarea {
  resize: vertical;
}
.form p,
.chatempty p,
.hint,
.muted {
  color: var(--muted);
  font-size: 14px;
}
.form footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}
.members {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.members button,
.hint,
.connected {
  background: #f3eef8;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 14px;
}
.members small {
  color: var(--muted);
}
.form fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form legend {
  color: #655c70;
  font-size: 14px;
}
.form .checkrow {
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.err {
  color: #952e39 !important;
  background: #fff0f0;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(95vw, 650px);
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 3px 20px #21132a26;
}
.toast button {
  color: white;
}
.cardlayout {
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
}
.chat {
  padding: 19px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #faf9fc;
  min-width: 0;
}
.chathead {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.chathead small {
  color: var(--muted);
}
.chaticon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #e8e2f0;
  color: #624a84;
}
.chatempty {
  text-align: center;
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 15px;
}
.chatempty > svg {
  color: #907aa8;
}
.messages {
  overflow: auto;
  max-height: 295px;
  min-height: 130px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.bubble {
  background: #ebe7f2;
  border-radius: 10px;
  padding: 8px 11px;
  max-width: 88%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.mine {
  background: #dfedda;
  align-self: flex-end;
}
.bubble time {
  font-size: 11px;
  color: #635c68;
}
.composer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  margin-top: 12px;
}
.composer label {
  width: 100%;
}
.authqr {
  text-align: center;
}
.authqr img {
  max-width: 100%;
}
.connected {
  color: #3f704c;
}
.link {
  padding: 0;
  color: #6942a3;
  text-decoration: underline;
}
.access {
  margin: 12vh auto;
  max-width: 420px;
  padding: 26px;
}
.access p {
  margin: 16px 0;
}
.access .mainbtn {
  margin-top: 10px;
}
@media (min-width: 1500px) {
  .appShell {
    grid-template-columns: 265px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 19px;
  }
}
@media (max-width: 1150px) {
  .appShell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .workspace,
  .topline {
    padding-left: 22px;
    padding-right: 22px;
  }
  .kanban {
    gap: 7px;
  }
  .lane {
    padding: 10px 7px;
  }
  .summary > div {
    gap: 9px;
  }
  .lanetitle {
    gap: 4px;
  }
  .lanetitle button {
    display: none;
  }
}
@media (max-width: 860px) {
  .appShell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .sidebar.mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 245px;
    z-index: 8;
  }
  .navmask {
    display: block !important;
    position: fixed;
    inset: 0;
    background: #211c3260;
    z-index: 7;
  }
  .mobicon {
    display: grid !important;
    place-items: center;
    padding: 5px;
    border-radius: 6px;
  }
  .kanban {
    overflow: auto;
    grid-template-columns: repeat(7, minmax(195px, 1fr));
    padding-bottom: 10px;
  }
  .workspace {
    padding-top: 25px;
  }
  .topline {
    gap: 8px;
  }
  .summary {
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  .workspace,
  .topline {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topline > span,
  .topline > svg {
    display: none;
  }
  .pagehead {
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 16px;
  }
  .pagehead h1 {
    font-size: 33px;
  }
  .mainbtn,
  .secondary {
    font-size: 13px;
    padding: 8px 10px;
  }
  .summary {
    padding: 12px 0;
  }
  .summary > div {
    padding: 0 9px;
  }
  .sumicon {
    display: none;
  }
  .summary small {
    font-size: 12px;
  }
  .summary strong {
    font-size: 22px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    flex: 1;
    min-width: 110px;
  }
  .search input {
    width: 100%;
  }
  .viewtoggle button {
    font-size: 13px;
    padding: 5px 7px;
  }
  .filter {
    width: auto;
  }
  .veil {
    padding: 8px;
  }
  .cardlayout {
    display: block;
  }
  .chat {
    border-top: 1px solid var(--line);
    border-left: none;
  }
  .form,
  .chat {
    padding: 15px;
  }
  .topline {
    height: 54px;
  }
  .actions {
    gap: 5px;
  }
  .listview button {
    grid-template-columns: 1fr 1fr;
  }
  .profile small {
    max-width: 155px;
  }
}

.logout {
  margin-left: auto;
  color: #c5b7d0;
  padding: 5px;
  display: grid;
  place-items: center;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar .filter select {
  max-width: 215px;
}
.facets,
.bulkbar,
.pager,
.candidatebuttons,
.importcounts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.facets,
.bulkbar {
  margin: 0 0 16px;
}
.facets label {
  font-size: 14px;
  color: #564e60;
  display: grid;
  gap: 4px;
}
.facets select {
  border: 1px solid #d8d1e0;
  border-radius: 7px;
  background-color: white;
  padding: 7px;
  max-width: 230px;
}
.bulkbar,
.pager,
.importsettings small {
  font-size: 14px;
  color: #615b68;
}
.checklist {
  max-height: 270px;
  overflow: auto;
  display: grid;
  gap: 9px;
}
.importform fieldset.importsettings {
  display: grid;
  gap: 12px;
  border: 0;
  padding: 0;
  min-width: 0;
}
.importform details,
.sourceinfo {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.importform summary,
.sourceinfo summary {
  cursor: pointer;
  font-weight: 600;
}
.sourceinfo dl {
  margin: 8px 0;
  max-height: 250px;
  overflow: auto;
}
.sourceinfo dt {
  font-size: 13px;
  color: #696273;
  margin-top: 8px;
}
.sourceinfo dd {
  margin: 2px 0 0;
  white-space: pre-wrap;
}
.previewreport {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.tablescroll {
  overflow: auto;
  max-height: 320px;
}
.tablescroll table {
  font-size: 14px;
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.tablescroll th,
.tablescroll td {
  border-bottom: 1px solid #e6e2eb;
  padding: 7px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.tablescroll th {
  position: sticky;
  top: 0;
  background: #f7f5fa;
}
.importcounts span {
  background: #f3f0f8;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 14px;
}
.personcard .reviewtag {
  color: #75500d;
}
.candidatebuttons {
  margin-top: 8px;
}
.kanban.organizers-board {
  grid-template-columns: repeat(4, minmax(185px, 1fr));
}
