@font-face {
  font-family: Satoshi;
  src: url("/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  font-family: Satoshi, system-ui, sans-serif;
  color: #20243e;
  background: #f8f8fa;
  font-size: 14px;
  --navy: #0e1034;
  --coral: #fc8374;
  --muted: #747587;
  --line: #e7e6ec;
  --purple: #715aa4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: #67509a;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  line-height: 1.45;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.stack {
  display: grid;
  gap: 16px;
}
.button,
button {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
}
button:hover,
.button:hover {
  background: #f2eff7;
}
button.primary,
.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
button.coral {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--navy);
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.small {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a38ac8;
  outline-offset: 3px;
}
input,
select,
textarea {
  background: white;
  border: 1px solid #dbd9e1;
  border-radius: 7px;
  padding: 10px;
  max-width: 100%;
  min-width: 0;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
}
label small {
  font-weight: 400;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.form-error {
  color: #a03030;
  background: #fff0ed;
  padding: 12px;
  border-radius: 7px;
  white-space: pre-wrap;
  font-size: 13px;
}
.form-error:empty {
  display: none;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  padding: 28px 17px 18px;
  border-right: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 28px;
}
.brand img {
  width: 36px;
}
.brand strong {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  margin-top: 3px;
}
.workspace-name {
  background: #f7f6fa;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 12px;
}
.workspace-name span {
  display: inline-grid;
  place-items: center;
  background: #fce1db;
  color: #954538;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  margin-right: 8px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #9993a2;
  padding: 0 12px 9px;
}
.nav-item {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  color: #767485;
  margin: 2px 0;
  font-size: 12px;
  font-weight: 650;
  padding: 11px 12px;
}
.nav-item span:first-child {
  font-size: 18px;
  width: 22px;
  font-weight: 400;
}
.nav-item.active {
  background: #fff0ed;
  color: #a64b3c;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 8px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(140deg, #faf7ff, #fff8f5);
  padding: 14px;
  margin-top: 24px;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.profile {
  padding: 20px 4px 0;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5ddd7;
  color: #944b3b;
  font-size: 11px;
  font-weight: 800;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  font-size: 10px;
}
.workspace {
  margin-left: 222px;
}
.topbar {
  height: 73px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.topbar .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #63a87a;
  border-radius: 50%;
  margin-right: 6px;
}
main {
  padding: 32px 34px 36px;
  max-width: 1720px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.heading .eyebrow {
  margin-bottom: 10px;
}
.heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0 0 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.stat-icon {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f0eaf7;
  color: #8666a7;
  font-size: 19px;
}
.stat:nth-child(2) .stat-icon {
  background: #fff0dc;
  color: #aa7e2e;
}
.stat:nth-child(3) .stat-icon {
  background: #eaf3ed;
  color: #4d8b62;
}
.stat strong {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.stat small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pad {
  padding: 22px;
}
.toolbar {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.toolbar h2 {
  font-size: 17px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.filters input {
  flex: 1;
  min-width: 150px;
}
.filters select {
  font-size: 12px;
}
.segmented {
  padding: 3px;
  background: #f1eff5;
  border-radius: 8px;
  display: flex;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  box-shadow: 0 1px 3px #0001;
  color: var(--navy);
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekday {
  padding: 12px 8px;
  font-size: 10px;
  letter-spacing: 0.9px;
  color: var(--muted);
  text-align: center;
  background: #fcfcfd;
}
.day {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 126px;
  padding: 9px;
  overflow: hidden;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.other {
  background: #faf9fc;
  color: #c5c0cc;
}
.day-number {
  font-size: 11px;
  margin-bottom: 10px;
}
.day.today .day-number {
  background: var(--navy);
  color: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-top: -4px;
}
.calendar-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 3px solid #a38ac8;
  background: #f5f1fa;
  border-radius: 5px;
  padding: 8px;
  margin-bottom: 6px;
  min-height: 0;
}
.calendar-card strong {
  display: block;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 700;
}
.calendar-card small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.calendar-card.review {
  border-color: #d9a64f;
  background: #fff6e6;
}
.calendar-card.live {
  border-color: #6d9e7c;
  background: #edf6f0;
}
.aside-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.aside-head h3 {
  font-size: 13px;
}
.list-card {
  width: 100%;
  display: block;
  text-align: left;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: 0;
  font-size: 12px;
}
.list-card:last-child {
  border: 0;
}
.list-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 6px;
}
.list-card small {
  font-size: 10px;
}
.callout {
  padding: 16px 18px;
  border: 1px solid #e6dff0;
  border-radius: 10px;
  background: #f7f3fc;
  color: #6a587c;
  font-size: 12px;
  line-height: 1.65;
}
.callout.coral {
  background: #fff3ef;
  border-color: #f2d9d1;
  color: #8f5449;
}
.callout strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.empty {
  text-align: center;
  padding: 48px 25px;
  color: var(--muted);
}
.empty .empty-icon {
  font-size: 30px;
  color: #b2a4c5;
  margin-bottom: 14px;
}
.empty h3 {
  color: #3d3b56;
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  max-width: 420px;
  margin: 10px auto 18px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
  background: #f1eef5;
  color: #777083;
}
.badge.research {
  background: #edf2fb;
  color: #486b9d;
}
.badge.brief_review,
.badge.draft_review {
  background: #fff2dc;
  color: #a16b22;
}
.badge.drafting {
  background: #f0eafa;
  color: #7d61a2;
}
.badge.ready,
.badge.published {
  background: #eaf4ed;
  color: #477b59;
}
.tag {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8d8795;
  background: #fcfbfd;
  padding: 13px 17px;
}
td {
  padding: 16px 17px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
td.title-cell {
  min-width: 260px;
}
td .link {
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  font-size: 13px;
  text-align: left;
  font-weight: 700;
  justify-content: flex-start;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.content-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.content-card p {
  font-size: 12px;
  color: var(--muted);
}
.content-card .actions {
  margin-top: auto;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.theme {
  margin-bottom: 20px;
}
.theme-top {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, #fff8f5, white);
}
.theme-top .eyebrow {
  color: #a26b5f;
  margin-bottom: 9px;
}
.theme-top p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 20px;
}
.flow span {
  font-size: 11px;
  padding: 7px 10px;
  background: #efedf4;
  border-radius: 6px;
  color: #88818e;
}
.flow span.active {
  background: #fce6df;
  color: #934b39;
  font-weight: 800;
}
.flow i {
  font-size: 11px;
  color: #bab3c0;
  font-style: normal;
}
pre {
  padding: 18px;
  background: #f6f4f9;
  border: 1px solid #e7e0ef;
  border-radius: 9px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #4b425f;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  width: min(850px, calc(100% - 32px));
  max-height: 92vh;
  color: var(--navy);
  box-shadow: 0 25px 120px #0e103433;
}
dialog::backdrop {
  background: #0e103459;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-header h2 {
  line-height: 1.4;
  max-width: 640px;
}
.dialog-header small {
  display: block;
  margin-bottom: 6px;
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}
.tabs {
  display: flex;
  gap: 3px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  min-height: 44px;
  white-space: nowrap;
}
.tabs button.active {
  border-bottom: 2px solid var(--coral);
  color: #a25142;
}
.markdown {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.markdown > * {
  margin: 0 0 16px;
}
.markdown h1 {
  font-size: 26px;
}
.markdown h2 {
  font-size: 21px;
}
.markdown h3 {
  font-size: 17px;
}
.markdown ul,
.markdown ol {
  padding-left: 23px;
}
.markdown a {
  word-break: break-word;
}
.markdown blockquote {
  border-left: 3px solid var(--coral);
  padding-left: 16px;
  color: #7d6c81;
}
.record-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 23px;
}
.record-meta dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.record-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.timeline {
  padding-left: 19px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
  display: grid;
  gap: 22px;
}
.timeline h3 {
  font-size: 13px;
}
.timeline p {
  font-size: 12px;
  margin-top: 7px;
  white-space: pre-wrap;
}
.timeline small {
  font-size: 10px;
}
.long-text {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.editor {
  width: 100%;
  min-height: 360px;
  font:
    13px/1.65 ui-monospace,
    monospace;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--navy);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story .brand {
  padding: 0 0 65px;
}
.auth-story h1 {
  font-size: 48px;
  max-width: 480px;
  line-height: 1.2;
  letter-spacing: -1.7px;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--coral);
}
.auth-story p {
  color: #b5b2cb;
  margin-top: 24px;
  max-width: 420px;
  font-size: 15px;
}
.auth-form {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form > div {
  max-width: 390px;
  width: 100%;
}
.auth-form h2 {
  font-size: 27px;
}
.auth-form p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 26px;
}
.auth-form form {
  display: grid;
  gap: 19px;
}
.auth-form button {
  width: 100%;
}
.auth-footer {
  margin-top: 30px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border-radius: 9px;
  background: var(--navy);
  color: white;
  box-shadow: 0 8px 30px #0002;
  z-index: 10;
  max-width: 90%;
  font-size: 13px;
  display: none;
}
#toast.show {
  display: block;
}
.mobile-menu {
  display: none;
}
.progress {
  background: #ece7f2;
  border-radius: 5px;
  height: 6px;
  min-width: 110px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: #9e85b9;
}
.notice {
  padding: 10px 16px;
  background: #fff0da;
  color: #82581e;
  font-size: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.footer-note {
  font-size: 11px;
  color: #9990a1;
  text-align: center;
  margin-top: 28px;
}
.danger {
  color: #a44242;
}
details summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 12px;
}
details > div {
  padding: 15px 0;
}
.section-title {
  margin: 25px 0 14px;
}
.skill-read {
  font-size: 12px;
  max-height: 430px;
  overflow: auto;
  line-height: 1.8;
}
.status-failed {
  color: #a54438;
}
.token-list .row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.copy-value {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.check-row input {
  width: 16px;
  height: 16px;
}
@media (min-width: 1600px) {
  .day {
    min-height: 150px;
  }
  .calendar-card strong {
    font-size: 12px;
  }
}
@media (max-width: 1150px) {
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    width: 195px;
  }
  .workspace {
    margin-left: 195px;
  }
  main {
    padding: 26px 24px;
  }
  .day {
    min-height: 115px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
    width: 222px;
    box-shadow: 0 0 60px #0003;
  }
  .sidebar.open {
    display: flex;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
    height: 64px;
  }
  .topbar .optional {
    display: none;
  }
  main {
    padding: 23px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px;
    gap: 7px;
  }
  .stat-icon {
    display: none;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat small {
    font-size: 10px;
  }
  .cards,
  .two-col {
    grid-template-columns: 1fr;
  }
  .calendar-layout > aside {
    grid-template-columns: 1fr;
  }
  .calendar {
    min-width: 660px;
  }
  .calendar-scroll {
    overflow: auto;
  }
  .filters {
    padding: 12px;
  }
  .filters select {
    max-width: 135px;
  }
  .toolbar {
    padding: 12px;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .form > .full {
    grid-column: auto;
  }
  .dialog-header {
    padding: 18px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .dialog-body {
    padding: 18px;
  }
  .record-meta {
    grid-template-columns: 1fr 1fr;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 32px;
  }
  .auth-story .brand {
    padding-bottom: 30px;
  }
  .auth-story h1 {
    font-size: 32px;
  }
  .auth-story p {
    font-size: 13px;
    margin-top: 15px;
  }
  .auth-form {
    padding: 32px;
  }
  .auth-form h2 {
    font-size: 24px;
  }
  .button,
  button {
    font-size: 12px;
  }
  .calendar-card strong {
    font-size: 10px;
  }
}

.agent-setup {
  max-width: 820px;
}
.agent-setup h2 {
  margin: 0;
  font-size: 22px;
}
.setup-requirements {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 0;
}
.setup-prompt {
  background: #f8f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
  line-height: 1.7;
}
