:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #302d39;
  background: #fcfbfd;
  font-synthesis: none;
  font-size: 14px;
  --muted: #8b8795;
  --line: #eceaf0;
  --violet: #7560af;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
.app {
  display: flex;
  min-height: 100vh;
}
#sidebar {
  width: 232px;
  flex-shrink: 0;
  background: #f5f4f7;
  border-right: 1px solid var(--line);
  padding: 30px 18px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  padding: 0 12px;
}
.mark {
  display: flex;
  gap: 3px;
  height: 26px;
  align-items: center;
  transform: rotate(-13deg);
}
.mark i {
  width: 5px;
  background: #8065b7;
  border-radius: 3px;
  height: 18px;
}
.mark i:nth-child(2) {
  height: 28px;
}
.mark i:last-child {
  height: 23px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 35px 8px 30px;
  font-size: 13px;
  font-weight: 600;
}
.workspace small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.workspace-icon {
  background: white;
  border: 1px solid #e2dfe9;
  border-radius: 9px;
  padding: 10px;
  color: #78608f;
}
.nav-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.1px;
  color: #96909f;
  margin: 0 12px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 11px 12px;
  gap: 10px;
  border-radius: 7px;
  margin-bottom: 4px;
  color: #77717f;
  font-size: 12px;
}
.nav-item b {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #9b95a4;
}
.nav-item.selected {
  background: #eae5f3;
  color: #70559d;
}
.nav-item.selected b {
  color: #70559d;
}
.nav-item:hover {
  background: #ece9f1;
}
.nav-item span {
  font-size: 17px;
}
.nav-section {
  margin-top: 35px;
}
.project-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #ad9bc9;
  margin: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-size: 12px;
}
.identity > span:last-child {
  margin-left: auto;
  color: #aaa;
}
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e5deee;
  color: #756187;
}
.shortcut-button {
  color: #a09aa8;
  font-size: 11px;
  margin-top: 22px;
  padding: 0 8px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
kbd {
  font: 10px inherit;
  border: 1px solid #e6e2ec;
  border-radius: 4px;
  padding: 2px 5px;
  color: #9992a2;
}
.main-shell {
  margin-left: 232px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 11px;
  color: #a29aaa;
}
.topbar strong {
  color: #67616f;
  font-weight: 500;
}
.slash {
  padding: 0 12px;
  color: #ccc7d0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #86aa92;
  border-radius: 50%;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 46px 42px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #a096ad;
  margin: 0 0 13px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 0;
}
.subtitle {
  color: #98919f;
  font-size: 12px;
  margin: 12px 0 0;
}
.primary {
  background: #7961aa;
  color: white;
  border: 1px solid #7961aa;
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 3px #47335c0d;
}
.primary:hover {
  background: #6a5199;
}
.primary kbd {
  color: #d3c5e8;
  border-color: #a08bbd;
  margin-left: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.views {
  display: flex;
  background: #f0edf4;
  padding: 3px;
  border-radius: 7px;
  gap: 2px;
}
.views button {
  font-size: 13px;
  padding: 6px 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #9a90a7;
}
.views button.active {
  background: #fff;
  border-radius: 5px;
  color: #6a587f;
  box-shadow: 0 1px 3px #44325412;
}
.views span {
  font-size: 11px;
}
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: #a298ae;
  background: white;
}
.search input {
  border: 0;
  outline: none;
  width: 150px;
  font-size: 11px;
  background: none;
  color: inherit;
}
.filter select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  font-size: 11px;
  color: #8c8296;
  padding: 8px;
  max-width: 130px;
}
.task-group {
  margin-top: 23px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 0 0 11px;
  font-weight: 550;
}
.status-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid #b5aeba;
  flex-shrink: 0;
}
.status-dot.active {
  border-color: #a28ac4;
  background: #a28ac4;
}
.status-dot.done {
  border-color: #87a491;
  background: #87a491;
}
.status-dot.blocked {
  border-color: #cb8d8c;
  background: #cb8d8c;
}
.status-dot.waiting-user,
.status-dot.waiting-external {
  border-color: #d3b77c;
  background: #d3b77c;
}
.status-dot.paused {
  background: #b0aab8;
}
.group-count {
  color: #a79fae;
  font-size: 10px;
  background: #f0edf4;
  border-radius: 4px;
  padding: 2px 5px;
}
.task-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 20px minmax(150px, 1fr) 120px 100px 85px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #f0edf3;
  padding: 16px 8px;
  cursor: pointer;
  min-height: 64px;
}
.task-row:last-child {
  border-bottom: 1px solid #f0edf3;
}
.task-row:hover {
  background: #f6f3fa;
}
.task-title {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-next {
  font-size: 10px;
  color: #a098a8;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-project {
  font-size: 10px;
  color: #9c91aa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #99909f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: #eee9f4;
  color: #8f7caa;
  font-size: 9px;
  flex-shrink: 0;
}
.priority {
  font-size: 9px;
  color: #a49baa;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 5px;
}
.priority:before {
  content: "⚑";
  font-size: 13px;
}
.priority.high,
.priority.urgent {
  color: #bc8582;
}
.priority.medium {
  color: #bfaa7c;
}
.task-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #b6aebd;
  margin-top: 27px;
}
.task-footer span:last-child {
  font-style: italic;
}
.empty {
  text-align: center;
  color: #9a91a5;
  padding: 70px 20px;
}
.empty h2 {
  color: #6f627d;
  font-size: 18px;
  font-weight: 500;
}
.empty p {
  font-size: 12px;
}
.board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 24px 0;
  min-height: 350px;
}
.board-column {
  width: 260px;
  min-width: 240px;
  background: #f5f3f7;
  padding: 14px;
  border-radius: 8px;
}
.board-column .task-card {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid #eae5ef;
  border-radius: 7px;
  margin-top: 10px;
  padding: 15px;
  box-shadow: 0 2px 3px #47335c03;
}
.task-card .task-title {
  white-space: normal;
  line-height: 1.6;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}
.task-card .task-project {
  margin-top: 10px;
}
#notice {
  font-size: 12px;
  color: #a46060;
  margin-top: 14px;
}
#notice:empty {
  display: none;
}
#overlay {
  position: fixed;
  inset: 0;
  background: #28203033;
  z-index: 20;
  backdrop-filter: blur(2px);
}
#drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 520px;
  max-width: 100%;
  background: #fcfbfd;
  z-index: 21;
  overflow-y: auto;
  box-shadow: -12px 0 50px #34204412;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px 27px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9f95ab;
}
.icon {
  font-size: 17px;
  padding: 6px;
  border-radius: 5px;
}
.icon:hover {
  background: #eee8f4;
}
#task-form {
  padding: 28px;
}
.drawer-heading h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 10px 0 25px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #8d8299;
  margin-bottom: 20px;
}
.field input,
.field textarea,
.field select,
#note {
  border: 1px solid #e6dfed;
  border-radius: 6px;
  background: white;
  padding: 10px;
  color: #53475f;
  font-size: 12px;
  width: 100%;
  line-height: 1.6;
}
.field textarea,
#note {
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder,
#note::placeholder {
  color: #b5aabb;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.form-actions span {
  font-size: 10px;
  color: #a097a9;
}
#source {
  font-size: 10px;
  overflow-wrap: anywhere;
  background: #f1edf6;
  padding: 12px;
  border-radius: 6px;
  color: #93819f;
}
#form-error {
  color: #b46c6c;
  font-size: 12px;
  line-height: 1.6;
}
.secondary {
  border: 1px solid #e2daec;
  border-radius: 6px;
  font-size: 11px;
  padding: 8px 12px;
  background: white;
  color: #8b759d;
}
#activity {
  border-top: 1px solid var(--line);
  padding: 25px 28px;
}
h3 {
  font-size: 12px;
  font-weight: 550;
}
#event-count {
  font-size: 10px;
  color: #a89baf;
  margin-left: 5px;
}
#note-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin: 20px 0;
}
.event {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #8e809c;
  line-height: 1.7;
}
.event-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.event time {
  font-size: 9px;
  color: #b2a9b9;
}
.event p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #776981;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 5px;
  left: 250px;
  background: white;
  padding: 10px;
  z-index: 50;
}
.mobile-only {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  color: #6f5b80;
  box-shadow: 0 20px 100px #35204426;
}
dialog::backdrop {
  background: #28203033;
}
dialog h2 {
  font-size: 20px;
}
dialog p {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  font-size: 12px;
  margin: 20px 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 1100px) {
  #sidebar {
    width: 200px;
  }
  .main-shell {
    margin-left: 200px;
  }
  main {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .task-row {
    grid-template-columns: 20px minmax(100px, 1fr) 90px 85px;
  }
  .task-row > .task-project {
    display: none;
  }
  .filter select {
    max-width: 105px;
  }
  .search input {
    width: 115px;
  }
}
@media (max-width: 760px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    z-index: 15;
    box-shadow: 8px 0 30px #35204416;
  }
  #sidebar:not(.open) {
    visibility: hidden;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-only {
    display: inline-block;
  }
  .topbar {
    padding: 0 20px;
    height: 58px;
    justify-content: flex-start;
    gap: 12px;
  }
  .topbar-right {
    margin-left: auto;
  }
  main {
    padding: 30px 20px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    margin-bottom: 28px;
  }
  .primary kbd {
    display: none;
  }
  .primary {
    padding: 10px 12px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search {
    order: 3;
    width: 100%;
    margin: 5px 0 0;
  }
  .search input {
    width: 100%;
  }
  .views {
    margin-right: auto;
  }
  .filter select {
    max-width: 105px;
  }
  .task-row {
    grid-template-columns: 15px minmax(80px, 1fr) 65px;
    gap: 8px;
    padding: 15px 3px;
  }
  .task-row > .assignee {
    display: none;
  }
  .task-footer span:last-child {
    display: none;
  }
  #drawer {
    width: 100%;
  }
  .board-column {
    min-width: 240px;
  }
  .subtitle {
    font-size: 11px;
  }
  .topbar-right {
    font-size: 10px;
  }
  .form-grid {
    gap: 0 12px;
  }
}
.event p {
  max-height: 320px;
  overflow: auto;
}
.task-title {
  color: #463b50;
}
.priority {
  color: #81758b;
}
.task-key {
  font-size: 10px;
  color: #756b81;
  font-weight: 500;
  margin-right: 9px;
  font-variant-numeric: tabular-nums;
}
.task-next,
.task-project,
.subtitle {
  color: #756d7a;
}
.task-row > div {
  min-width: 0;
}

[hidden] {
  display: none !important;
}
.session-gate {
  max-width: 420px;
  margin: 15vh auto;
  padding: 28px;
}
.session-gate h1 {
  margin-bottom: 12px;
}
.session-gate form {
  margin-top: 24px;
}
#login-error,
#token-error {
  overflow-wrap: anywhere;
}
#token-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
}
#token-dialog p {
  line-height: 1.6;
}
#token-secret {
  margin: 20px 0;
  padding: 16px;
  background: #f4eff7;
  border-radius: 8px;
}
#token-value {
  font-family: monospace;
}
.token-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #e9e1ed;
}
.token-row div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.token-row small {
  display: block;
  margin-top: 6px;
}
#token-list {
  margin-bottom: 20px;
}
.event p,
#source {
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .session-gate {
    margin: 8vh auto;
    padding: 24px;
  }
  .token-row {
    align-items: flex-start;
  }
}

.agent-guide {
  color: #59458a;
  text-decoration: underline;
}
