:root {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  font-synthesis: none;
  --blue: var(--hl);
  --muted: var(--ink-3);
}
* {
  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 {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  color: inherit;
}
button:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--blue);
}
.primary {
  background: var(--blue);
  color: var(--hl-ink);
  border-color: var(--blue);
}
.primary:hover {
  background: var(--hl);
  color: var(--hl-ink);
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface-panel);
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.7px;
  padding: 0 10px;
}
.brand img {
  width: 30px;
  height: 30px;
}
.workspace {
  font-size: 12px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 39px 12px 15px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  justify-content: space-between;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 550;
  padding: 13px 12px;
}
.nav button.active {
  color: var(--surface-raised);
  background: var(--surface-raised);
}
.nav button .count {
  color: var(--ink-3);
  font-size: 13px;
}
.nav .active .count {
  color: var(--surface-raised);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.sidebar-bottom button {
  text-align: left;
  border: 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.main {
  min-width: 0;
}
.topbar {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.topbar .actions {
  display: flex;
  gap: 9px;
}
.page {
  max-width: 1240px;
  margin: auto;
  padding: 37px 42px 60px;
}
.demo-banner {
  background: var(--surface-raised);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  padding: 11px 15px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 30px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 8px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0;
}
p {
  line-height: 1.55;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.owner-filter {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 7px;
  max-width: 230px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 31px;
}
.stat {
  padding: 20px 23px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.stat strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat span {
  font-size: 14px;
  color: var(--muted);
}
.stat:first-child {
  border-left: 3px solid var(--blue);
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
}
.section-label h2 {
  font-size: 16px;
}
.section-label span {
  color: var(--muted);
}
.task-list {
  display: grid;
  gap: 11px;
}
.task {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 23px;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 14px;
  transition: border-color 0.15s;
}
.task:hover {
  border-color: var(--line-strong);
}
.check {
  width: 23px;
  height: 23px;
  padding: 0;
  border-radius: 50%;
  margin-top: 4px;
  color: var(--blue);
  font-size: 14px;
}
.task-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
}
.task-title {
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  text-align: left;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.task-title:hover {
  background: none;
  color: var(--blue);
}
.due {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}
.due.urgent {
  color: var(--signal);
  font-weight: 600;
}
.why {
  font-size: 14px;
  margin: 7px 0 14px;
  color: var(--ink-2);
}
.task-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.metadata {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.pill {
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-3);
}
.pill.inferred {
  background: color-mix(in srgb, var(--attention) 12%, var(--surface-panel));
  color: var(--attention);
}
.owner-select {
  font-size: 13px;
  border: 0;
  background: var(--surface);
  color: var(--ink-2);
  padding: 5px 7px;
  border-radius: 4px;
  max-width: 180px;
}
.task-actions {
  display: flex;
  gap: 7px;
}
.task-actions button {
  padding: 5px 9px;
  font-size: 13px;
  border-color: transparent;
  color: var(--ink-3);
}
.task-actions button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.task-actions .cut:hover {
  color: var(--signal);
  background: var(--danger-bg);
}
.empty {
  padding: 60px 25px;
  text-align: center;
  background: var(--surface-raised);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}
.empty h2 {
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  max-width: 490px;
  margin: 0 auto 20px;
}
.footnote {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}
.setup {
  max-width: 620px;
  margin: 10vh auto;
  padding: 35px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.setup .brand {
  padding: 0;
  margin-bottom: 30px;
}
.setup h1 {
  font-size: 30px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.error {
  color: var(--signal);
  background: var(--danger-bg);
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}
.loading {
  padding: 40px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 100px color-mix(in srgb, var(--ink) 20%, transparent);
}
dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-head button {
  font-size: 22px;
  border: 0;
  padding: 2px 8px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  margin: 16px 0;
}
input,
textarea,
select {
  min-width: 0;
}
label input,
label textarea,
label select {
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--ink);
  width: 100%;
}
textarea {
  resize: vertical;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.evidence {
  border-left: 3px solid var(--agent);
  background: color-mix(in srgb, var(--agent) 5%, var(--surface-raised));
  padding: 12px 15px;
  margin: 12px 0;
  font-size: 14px;
}
.evidence p {
  margin: 0 0 8px;
}
.evidence a {
  font-size: 13px;
}
.history {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 20px;
}
.row-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.connection {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.connection strong {
  display: block;
  margin-bottom: 4px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--hl-ink);
  border-radius: 8px;
  padding: 13px 20px;
  box-shadow: 0 5px 25px var(--line);
  display: none;
  z-index: 20;
  font-size: 14px;
  max-width: 90vw;
}
.run {
  padding: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}
.run h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.run p {
  font-size: 14px;
  color: var(--muted);
  margin: 3px 0;
}
.privacy-note {
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface);
  padding: 12px;
  border-radius: 6px;
}
@media (min-width: 1450px) {
  .page {
    padding-top: 45px;
  }
  .task {
    padding: 23px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .brand {
    font-size: 18px;
  }
  .page {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .summary {
    gap: 9px;
  }
  .stat {
    padding: 15px;
    display: grid;
    gap: 2px;
  }
  .task {
    padding: 18px;
  }
  .task-head {
    flex-wrap: wrap;
    gap: 5px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 16px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 15px;
    gap: 4px;
  }
  .nav button {
    white-space: nowrap;
    gap: 10px;
    padding: 10px;
    font-size: 13px;
  }
  .topbar {
    height: auto;
    min-height: 66px;
    padding: 12px 17px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .topbar .actions button {
    font-size: 13px;
  }
  .page {
    padding: 25px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 30px;
  }
  .summary {
    gap: 7px;
  }
  .stat {
    padding: 13px 10px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 12px;
  }
  .task {
    padding: 16px 13px;
    gap: 8px;
    grid-template-columns: 27px 1fr;
  }
  .task-title {
    font-size: 16px;
  }
  .task-foot {
    gap: 12px;
  }
  .task-actions {
    margin-left: -8px;
  }
  .demo-banner {
    margin-bottom: 24px;
  }
  .two-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .setup {
    margin: 30px 16px;
    padding: 24px;
  }
}

/* Orchard PAPER theme, reused from orchard-dashboard. */
.shell {
  background:
    radial-gradient(
      ellipse at 85% 0%,
      color-mix(in srgb, var(--win) 8%, transparent),
      transparent 50%
    ),
    var(--surface);
}
.sidebar,
.topbar {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.brand {
  font-family: var(--font-wordmark);
  font-size: 24px;
  letter-spacing: -0.9px;
}
.brand img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.workspace {
  font-family: var(--font-mono);
  letter-spacing: 1px;
  font-size: 12px;
  margin-top: 32px;
}
.nav button.active {
  background: var(--metal-ink);
  color: var(--surface-raised);
  box-shadow: inset 0 1px 0 var(--sheen);
}
.nav button.active .count {
  color: var(--surface-raised);
}
.stat {
  background:
    linear-gradient(145deg, var(--sheen), transparent 65%),
    var(--surface-raised);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  border-radius: 12px;
}
.stat strong {
  font-family: var(--font-numeral);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.stat span,
.eyebrow,
.section-label > span,
.due {
  font-family: var(--font-mono);
}
.task {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--glass-edge);
  background: var(--surface-raised);
}
h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -1.4px;
}
.task-title {
  font-weight: 600;
}
.primary {
  box-shadow: inset 0 1px 0 var(--sheen);
}
.primary:hover {
  filter: brightness(0.93);
}
.demo-banner {
  background: var(--glass-bg);
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.evidence {
  color: var(--ink-2);
}
a {
  color: var(--info);
}
.pill {
  font-family: var(--font-mono);
}
.theme-button {
  font-size: 14px;
}
.connection-ready {
  color: var(--win);
}
.checkbox-label {
  display: flex;
  align-items: center;
  font-weight: 400;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
}
.connection-prompt {
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-raised);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}
.connection-prompt p {
  margin: 0;
}
.signin-domain {
  font-family: var(--font-mono);
  font-size: 12px;
}
.topbar .actions {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  h1 {
    font-size: 30px;
  }
  .stat strong {
    font-size: 30px;
  }
  .stat span {
    font-size: 12px;
  }
  .connection-prompt {
    align-items: start;
    flex-direction: column;
  }
}
