:root {
  color-scheme: light;
  --ink: #1b1a2d;
  --muted: #716f80;
  --subtle: #a7a5b2;
  --line: #e9e8ee;
  --soft: #f7f7fa;
  --canvas: #fbfbfd;
  --panel: #ffffff;
  --violet: #6755d9;
  --violet-dark: #5542c5;
  --violet-soft: #efecff;
  --green: #15866f;
  --header-height: 72px;
  --sidebar-width: 248px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: var(--header-height);
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

#topbar .start,
#topbar .end {
  display: flex;
  align-items: center;
}

#topbar .start {
  gap: 18px;
}

#topbar .end {
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #181629;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand .mark {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: var(--violet);
}

.brand .mark circle {
  fill: white;
}

#topbar .divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.workspace-switcher,
.user-menu,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.user-menu,
.icon-button {
  cursor: pointer;
}

.workspace-switcher {
  gap: 9px;
  padding: 6px;
  font-size: 13px;
  font-weight: 650;
}

.workspace-switcher .avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: #26223f;
  border-radius: 8px;
  font-size: 12px;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.icon-button:hover,
.user-menu:hover {
  background: var(--soft);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #63616d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.user-menu {
  gap: 9px;
  padding: 5px 7px;
  border-radius: 10px;
  text-decoration: none;
}

.user-menu .avatar,
.activity-item .avatar,
.contributor-card .avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

.user-menu .avatar {
  width: 31px;
  height: 31px;
  color: #4e3c52;
  background: #f2dfea;
  font-size: 11px;
}

.user-menu .name {
  font-size: 13px;
  font-weight: 650;
}

#menu {
  display: none;
}

#sidebar {
  position: fixed;
  z-index: 20;
  inset: var(--header-height) auto 0 0;
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid var(--line);
}

#navigation {
  height: 100%;
}

#navigation {
  display: flex;
  flex-direction: column;
  padding: 24px 16px 18px;
}

#navigation .body {
  flex: 1;
}

.eyebrow {
  margin: 0;
  color: #9a97a4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#navigation .eyebrow {
  padding: 0 12px 9px;
}

#navigation .eyebrow.manage {
  margin-top: 27px;
}

#navigation .link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  margin: 2px 0;
  color: #666471;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 570;
  text-decoration: none;
  transition: color 150ms, background 150ms;
}

#navigation .link:hover {
  color: #302b50;
  background: #f8f7fb;
}

#navigation .link[aria-current="page"] {
  color: #4f3dc1;
  background: var(--violet-soft);
  font-weight: 680;
}

#navigation .link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#navigation .link .count {
  min-width: 22px;
  padding: 2px 6px;
  margin-left: auto;
  color: #85828f;
  background: #f0eff3;
  border-radius: 20px;
  font-size: 10px;
  text-align: center;
}

#navigation .link[aria-current="page"] .count {
  color: #5d4bc6;
  background: #ded8ff;
}

main {
  min-height: 100vh;
  padding: calc(var(--header-height) + 39px) 42px 56px;
  margin-left: var(--sidebar-width);
  outline: 0;
}

main > section {
  width: min(1180px, 100%);
  margin: 0 auto;
  animation: page-in 220ms ease-out both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.heading,
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

main > section > .heading {
  gap: 30px;
  margin-bottom: 30px;
}

main > section > .heading h1 {
  margin: 7px 0 6px;
  font-size: clamp(27px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

main > section > .heading p:not(.eyebrow),
.focus > .heading p,
.panel > .heading p,
.team-actions > .heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  color: #fff;
  background: var(--violet);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 6px 15px rgb(103 85 217 / 18%);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms, background 150ms;
}

.primary-button:hover {
  background: var(--violet-dark);
  transform: translateY(-1px);
}

.primary-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.project-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(21 20 38 / 2%);
}

.metric-card {
  min-width: 0;
  padding: 18px 19px 17px;
  border-radius: 12px;
}

.metric-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.metric-card > strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.metric-card .change {
  color: #817f8a;
  font-size: 10px;
}

.metric-card.positive .change {
  color: var(--green);
}

.focus > .heading {
  margin: 34px 0 15px;
}

.focus > .heading h2,
.panel > .heading h2,
.team-actions > .heading h2,
.week-card h2 {
  margin: 0 0 5px;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #5c49c9;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

#projects .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  min-width: 0;
  padding: 19px;
  border-radius: 12px;
}

.project-card .top {
  display: flex;
  align-items: center;
  min-height: 23px;
}

.project-card .accent {
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 3px;
}

.status {
  padding: 4px 7px;
  color: #157563;
  background: #e6f5f1;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
}

.project-card .status.planning {
  color: #9b6130;
  background: #fff0df;
}

.project-card h3 {
  margin: 15px 0 6px;
  overflow: hidden;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card > p {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 19px;
  color: #85838e;
  font-size: 9px;
}

.progress-label strong {
  color: #595763;
  font-weight: 700;
}

.progress-track {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  background: #efedf3;
  border-radius: 5px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--violet);
  border-radius: inherit;
}

.project-card .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  margin-top: 15px;
  color: #888590;
  border-top: 1px solid #f0eff3;
  font-size: 9px;
}

.project-card .members {
  color: #5f5b70;
  font-weight: 730;
  letter-spacing: 0.02em;
}

.overview-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 15px;
  margin-top: 30px;
}

.panel {
  border-radius: 12px;
}

.activity-panel {
  padding: 20px 21px;
}

.panel > .heading {
  margin-bottom: 6px;
}

.activity-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 73px;
  padding: 13px 0;
  border-bottom: 1px solid #f0eff3;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #4e4b5d;
  font-size: 9px;
}

.activity-item .copy {
  min-width: 0;
  flex: 1;
}

.activity-item .copy p {
  margin: 0 0 5px;
  color: #777481;
  font-size: 11px;
  line-height: 1.45;
}

.activity-item .copy .person,
.activity-item .copy b {
  color: #34313f;
}

.activity-item .copy .person {
  font-weight: 720;
  text-decoration: none;
}

.activity-item .copy .person:hover {
  color: var(--violet);
  text-decoration: underline;
}

.activity-item .copy b {
  font-weight: 620;
}

.activity-item .copy time {
  color: #a19eaa;
  font-size: 9px;
}

.week-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 21px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgb(133 116 235 / 55%), transparent 36%),
    #26223f;
  border: 0;
}

.week-card h2 {
  margin-top: 8px;
  font-size: 18px;
}

.week-card .top > p:last-child {
  max-width: 260px;
  margin: 8px 0 0;
  color: #bdb9d0;
  font-size: 11px;
  line-height: 1.6;
}

.week-card .eyebrow {
  color: #aaa3d4;
}

.week-chart {
  display: flex;
  height: 105px;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.week-chart span {
  position: relative;
  min-height: 12px;
  flex: 1;
  background: #4b4666;
  border-radius: 4px 4px 2px 2px;
}

.week-chart .today {
  background: #8a78ef;
}

.week-chart i {
  position: absolute;
  inset: auto 0 -20px;
  color: #8f8aa7;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.project-toolbar {
  padding: 6px 0 20px;
  margin-top: -5px;
  border-bottom: 1px solid var(--line);
}

.project-toolbar > p {
  margin: 0;
  color: #96939f;
  font-size: 10px;
}

.filters {
  display: inline-flex;
  padding: 3px;
  background: #efeff3;
  border-radius: 9px;
}

.filters button {
  min-height: 30px;
  padding: 0 13px;
  color: #777481;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  color: #34313f;
  background: #fff;
  box-shadow: 0 1px 3px rgb(30 27 50 / 10%);
}

.project-toolbar + .content {
  margin-top: 20px;
}

.record-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 20px;
}

.record-toolbar > p {
  margin: 0;
  color: #777481;
  font-size: 11px;
  white-space: nowrap;
}

.record-list-wrap {
  max-height: 68vh;
  overflow: auto;
}

.record-list-header {
  position: sticky;
  z-index: 1;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.record-list-header button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  color: #514d5d;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.record-list-header button:hover {
  color: var(--purple);
}

.record-sort-indicator {
  margin-left: 4px;
}

.record-list {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.record-row {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.record-row:nth-child(even) {
  background: var(--soft);
}

main > section > .heading .count {
  padding: 7px 11px;
  color: #5e4cc6;
  background: #efecff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.member-directory {
  overflow: hidden;
}

.member-directory > .heading,
.member-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) 110px 150px;
  align-items: center;
}

.member-directory > .heading {
  grid-template-columns: 44px minmax(180px, 1fr) 110px 150px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.member-directory > .heading > div {
  grid-column: 1 / 3;
}

.member-directory > .heading h2 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -.015em;
}

.member-directory > .heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.member-directory > .heading > span {
  color: #96939f;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.member-row {
  min-height: 67px;
  padding: 11px 20px;
  border-bottom: 1px solid #f0eff3;
}

.member-row:last-child {
  border-bottom: 0;
}

.member-row .avatar,
.member-profile-card .avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #4e4b5d;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 750;
}

.member-row .identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.member-row .identity a {
  width: fit-content;
  color: #34313f;
  font-size: 11px;
  font-weight: 730;
  text-decoration: none;
}

.member-row .identity a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.member-row .identity span,
.member-row .team,
.member-row .role {
  overflow: hidden;
  color: #8c8995;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row .team {
  color: #6e6a78;
  font-weight: 650;
}

.team-actions > .heading {
  margin-top: 30px;
}

.team-actions .forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 23px;
}

.team-form > .heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.team-form > .heading h2 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -.015em;
}

.team-form > .heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.team-form > .heading .icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #5b48c9;
  background: #ece8ff;
  border-radius: 10px;
}

.team-form > .heading .icon.orange {
  color: #a55c2d;
  background: #fff0e5;
}

.team-form > .heading .icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #4d4a56;
  font-size: 10px;
  font-weight: 700;
}

.field em {
  margin-left: 4px;
  color: #a09da8;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dedce5;
  border-radius: 9px;
  outline: none;
  font-size: 11px;
  transition: border-color 150ms, box-shadow 150ms;
}

.field input,
.field select {
  height: 40px;
  padding: 0 12px;
}

.field textarea {
  min-height: 75px;
  padding: 11px 12px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa7b1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #a99fed;
  box-shadow: 0 0 0 3px rgb(103 85 217 / 10%);
}

.field input[aria-invalid="true"] {
  border-color: #c64b57;
}

.field input[aria-invalid="true"]:focus {
  border-color: #c64b57;
  box-shadow: 0 0 0 3px rgb(198 75 87 / 12%);
}

.field .error {
  color: #b43f4b;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
}

.team-form > .primary-button {
  align-self: flex-start;
  margin-top: auto;
}

#profile {
  width: min(720px, 100%);
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #5d4bc6;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.member-profile-card {
  padding: 28px;
}

.member-profile-card .header {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.member-profile-card .avatar.large {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  font-size: 14px;
}

.member-profile-card .header h1 {
  margin: 5px 0 4px;
  font-size: 25px;
  letter-spacing: -.03em;
}

.member-profile-card .header > div > span {
  color: var(--muted);
  font-size: 11px;
}

.member-profile-card .bio {
  max-width: 560px;
  margin: 22px 0;
  color: #656270;
  font-size: 12px;
  line-height: 1.65;
}

.member-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.member-details > div {
  padding: 14px;
  background: var(--soft);
  border-radius: 9px;
}

.member-details dt {
  margin-bottom: 7px;
  color: #96939f;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.member-details dd {
  margin: 0;
  overflow: hidden;
  color: #4f4b59;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.member-details a {
  color: #5d4bc6;
  text-decoration: none;
}

.member-details a:hover {
  text-decoration: underline;
}

#toasts {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(320px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  width: 100%;
  min-width: 240px;
  align-items: center;
  gap: 10px;
  padding: 13px 13px 13px 14px;
  color: #f5f3ff;
  background: #29253e;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 11px;
  box-shadow: 0 14px 35px rgb(25 21 45 / 22%);
  font-size: 11px;
  font-weight: 650;
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in 190ms ease-out both;
}

.toast .icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #2f285c;
  background: #a99af8;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.toast > button {
  width: 24px;
  height: 24px;
  padding: 0;
  margin-left: auto;
  color: #aaa5bd;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.toast > button:hover {
  color: #fff;
  background: rgb(255 255 255 / 8%);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, .65fr);
  gap: 18px;
}

#activity .activity-panel {
  padding-top: 17px;
}

.activity-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1px 0 4px;
  color: #8d8997;
  font-size: 9px;
  font-weight: 730;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.activity-date .line {
  height: 1px;
  flex: 1;
  background: #eeedf1;
}

.activity-summary {
  display: grid;
  align-content: start;
  gap: 15px;
}

.summary-card,
.contributor-card {
  padding: 20px;
}

.summary-card > strong,
.summary-card > span {
  display: block;
}

.summary-card > strong {
  margin-top: 12px;
  font-size: 32px;
  letter-spacing: -.04em;
}

.summary-card > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.mini-bars {
  display: flex;
  height: 58px;
  align-items: flex-end;
  gap: 5px;
  margin-top: 19px;
}

.mini-bars i {
  flex: 1;
  background: #dcd6ff;
  border-radius: 3px 3px 1px 1px;
}

.mini-bars i:nth-child(5) {
  background: var(--violet);
}

.contributor-card {
  display: grid;
  gap: 13px;
}

.contributor-card > div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
}

.contributor-card .avatar {
  width: 28px;
  height: 28px;
  color: #494653;
  font-size: 8px;
}

.contributor-card .avatar.purple {
  background: #e8e4ff;
}

.contributor-card .avatar.green {
  background: #dff5f1;
}

.contributor-card .avatar.orange {
  background: #ffe8de;
}

.contributor-card a {
  width: fit-content;
  color: #34313f;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.contributor-card a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.contributor-card em {
  color: #96939f;
  font-size: 9px;
  font-style: normal;
}

#backdrop {
  display: none;
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #overview .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #overview .project-grid > :last-child {
    display: none;
  }

  .overview-lower {
    grid-template-columns: 1fr;
  }

  .week-card {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  #topbar {
    padding: 0 14px;
  }

  #menu {
    display: inline-flex;
  }

  .brand span,
  #topbar .divider,
  .workspace-switcher,
  .user-menu .name {
    display: none;
  }

  #topbar .start {
    gap: 8px;
  }

  #sidebar {
    z-index: 40;
    top: 0;
    width: min(280px, 84vw);
    box-shadow: 12px 0 35px rgb(22 18 51 / 14%);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  #navigation {
    padding-top: 25px;
  }

  #shell.nav-open #sidebar {
    transform: translateX(0);
  }

  #backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    visibility: hidden;
    padding: 0;
    background: rgb(24 20 48 / 35%);
    border: 0;
    opacity: 0;
    transition: opacity 200ms, visibility 200ms;
  }

  #shell.nav-open #backdrop {
    visibility: visible;
    opacity: 1;
  }

  main {
    padding: calc(var(--header-height) + 30px) 22px 45px;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  main {
    padding-right: 16px;
    padding-left: 16px;
  }

  main > section > .heading {
    align-items: flex-start;
  }

  main > section > .heading .primary-button {
    width: 39px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    gap: 0;
    white-space: nowrap;
  }

  main > section > .heading .primary-button svg {
    flex: 0 0 auto;
    color: #fff;
    stroke: #fff;
  }

  .metric-grid,
  .project-grid,
  .activity-layout,
  .team-actions .forms {
    grid-template-columns: 1fr;
  }

  .member-directory > .heading {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .member-directory > .heading > div {
    grid-column: 1 / -1;
  }

  .member-directory > .heading > span {
    display: none;
  }

  .member-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .member-row .team {
    display: none;
  }

  .member-row .role {
    max-width: 110px;
  }

  .member-details {
    grid-template-columns: 1fr;
  }

  #overview .project-grid > :last-child {
    display: block;
  }

  .project-toolbar,
  .record-toolbar {
    align-items: flex-start;
    gap: 13px;
    flex-direction: column;
  }

  .activity-summary {
    grid-template-columns: 1fr 1fr;
  }

  .activity-item {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .activity-summary {
    grid-template-columns: 1fr;
  }

  #toasts {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 32px);
  }

  .toast {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
