:root {
  color-scheme: light dark;
  --bg-top: #eef3fb;
  --bg-bottom: #f7f1ea;
  --fg: #1d1d1f;
  --fg-2: #4a4d55;
  --fg-3: #8a8e97;
  --separator: rgba(0, 0, 0, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --panel: rgba(250, 250, 251, 0.94);
  --fill: rgba(0, 0, 0, 0.045);
  --fill-hover: rgba(0, 0, 0, 0.065);
  --blue: #007aff;
  --orange: #e8850a;
  --red: #e5372c;
  --green: #28a745;
  --claude: #d97757;
  --shadow: 0 1px 2px rgba(16, 20, 28, 0.06), 0 12px 40px rgba(16, 20, 28, 0.12);
  --menubar: rgba(255, 255, 255, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #141a26;
    --bg-bottom: #1c1714;
    --fg: #f5f5f7;
    --fg-2: #c4c6cc;
    --fg-3: #8d9099;
    --separator: rgba(255, 255, 255, 0.12);
    --surface: rgba(40, 42, 48, 0.62);
    --surface-strong: rgba(48, 50, 56, 0.9);
    --panel: rgba(30, 31, 35, 0.94);
    --fill: rgba(255, 255, 255, 0.06);
    --fill-hover: rgba(255, 255, 255, 0.09);
    --blue: #0a84ff;
    --orange: #ff9f0a;
    --red: #ff453a;
    --green: #30d158;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 48px rgba(0, 0, 0, 0.45);
    --menubar: rgba(30, 30, 34, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(165deg, var(--bg-top), var(--bg-bottom)) fixed;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.num {
  font-variant-numeric: tabular-nums;
}

.menubar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  padding: 0 16px;
  background: var(--menubar);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-size: 13px;
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tray {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 0;
  border-radius: 5px;
  background: var(--fill-hover);
  font-size: 13px;
}

.tray.off {
  background: transparent;
}

.tray-mark {
  width: 18px;
  height: 18px;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  padding: 72px 0 48px;
}

.app-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: var(--fg-3);
}

.lede {
  max-width: 30em;
  margin: 18px 0 26px;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  background: var(--fg);
  color: var(--bg-top);
  box-shadow: none;
}

.button.code {
  max-width: 100%;
  font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.copied {
  color: var(--green);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
}

.meta,
.muted {
  color: var(--fg-3);
  font-size: 13px;
}

.meta {
  margin: 16px 0 0;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--separator);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 10px 16px;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.avatar.me {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #5f7387, #2e3a46);
  font-size: 15px;
}

.who {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.login,
.stats {
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 400;
}

.name,
.stats {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.icon {
  padding: 2px 5px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--fg-3);
  font-size: 17px;
  line-height: 1;
}

.icon:hover,
.icon[aria-expanded='true'] {
  background: var(--fill-hover);
  color: var(--fg);
}

.refresh.spinning {
  color: var(--blue);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.menu {
  position: absolute;
  top: 46px;
  right: 10px;
  z-index: 1;
  width: 210px;
  padding: 5px;
  border-radius: 9px;
  background: var(--surface-strong);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--separator);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.menu[hidden] {
  display: none;
}

.menu a,
.menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: none;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}

.menu a:hover,
.menu button:not(:disabled):hover {
  background: var(--blue);
  color: #fff;
}

.menu a:hover kbd,
.menu button:not(:disabled):hover kbd {
  color: rgba(255, 255, 255, 0.8);
}

.menu button:disabled {
  color: var(--fg-3);
  cursor: default;
}

.menu kbd {
  color: var(--fg-3);
  font: inherit;
}

.menu hr {
  margin: 4px 8px;
  border: 0;
  border-top: 0.5px solid var(--separator);
}

.panel-closed {
  display: grid;
  place-items: center;
  min-height: 200px;
  margin: 0;
  padding: 24px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--separator);
  color: var(--fg-3);
  font-size: 14px;
  text-align: center;
}

.panel-closed[hidden],
.panel[hidden] {
  display: none;
}

.needs-you {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px;
  border-bottom: 0.5px solid var(--separator);
}

.needs-you[hidden] {
  display: none;
}

.needs-you .heading {
  margin: 0;
  padding: 4px 16px 2px;
  color: var(--fg-3);
  font-size: 11.5px;
  font-weight: 600;
}

.needs-you .heading .num,
.needs-you .age {
  color: var(--orange);
}

.waiting {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}

.waiting:hover {
  background: var(--fill-hover);
}

.waiting .dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.waiting .text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.waiting .who {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}

.waiting .what {
  overflow: hidden;
  color: var(--fg-2);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.waiting .age {
  flex: none;
  font-size: 11.5px;
}

.lede kbd,
.lane-card kbd {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--fill);
  font-family: inherit;
  font-size: 0.92em;
}

.tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 0.5px solid var(--separator);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 0 8px;
  border: 0;
  background: none;
  color: var(--fg-2);
  font-size: 13px;
}

.tab[aria-selected='true'] {
  color: var(--fg);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--fg);
}

.tab .count {
  color: var(--fg-3);
  font-weight: 500;
}

.tab .count.new {
  color: var(--green);
}

.list {
  height: 350px;
  overflow-y: auto;
  padding: 6px 0;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: calc(100% - 12px);
  margin: 0 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}

.row:hover {
  background: var(--fill-hover);
}

.row:not(.unseen) .avatar {
  opacity: 0.6;
}

.row .text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row .title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.row.unseen .title {
  color: var(--fg);
  font-weight: 500;
}

.row .detail {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--fg-3);
  font-size: 11.5px;
}

.row .detail span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chip {
  flex: none;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  --tone: var(--fg-3);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 16%, transparent);
}

.chip.red,
.tile.red {
  --tone: var(--red);
}

.chip.orange,
.tile.orange {
  --tone: var(--orange);
}

.chip.blue,
.tile.blue {
  --tone: var(--blue);
}

.chip.green,
.tile.green {
  --tone: var(--green);
}

.tile.claude {
  --tone: var(--claude);
}

.tile {
  --tone: var(--fg-3);
  background: var(--tone);
}

.age {
  flex: none;
  color: var(--fg-3);
  font-size: 11.5px;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
}

.row.unseen .dot {
  background: var(--green);
}

.card {
  margin: 4px 10px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fill);
}

.card .title {
  font-size: 13px;
  font-weight: 500;
}

.card .detail {
  margin: 2px 0 8px;
  color: var(--fg-3);
  font-size: 11.5px;
}

.card .mini {
  margin-right: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--fill-hover);
  font-size: 11.5px;
}

.card .mini.primary {
  background: var(--blue);
  color: #fff;
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px 10px;
  border-top: 0.5px solid var(--separator);
  color: var(--fg-3);
  font-size: 12px;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-2);
  font-size: 12px;
}

.link[hidden] {
  visibility: hidden;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 56px;
}

.lane-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lane-card:hover,
.lane-card[aria-pressed='true'] {
  background: var(--surface-strong);
}

.lane-title {
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
}

.install {
  padding: 8px 0 56px;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.install-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.install-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 15px;
}

.install-label {
  width: 96px;
  color: var(--fg-3);
}

.inline-code {
  max-width: 100%;
  padding: 4px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 0.5px var(--separator);
  font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  text-align: left;
}

.site-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 0.5px solid var(--separator);
  color: var(--fg-3);
  font-size: 13px;
}

.site-foot p {
  margin: 0 0 8px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 48px;
  }

  .panel {
    width: 100%;
    max-width: 420px;
  }

  .lanes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  main {
    padding: 0 16px;
  }

  .menubar-left {
    display: none;
  }

  .menubar {
    justify-content: flex-end;
  }

  .install-label {
    width: 100%;
  }

  .site-foot {
    padding: 24px 16px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .refresh.spinning {
    animation-duration: 2.5s;
  }
}
