.crew {
  --info: #5B9DF8;
}

.crew :is(.presence, .grade, .ev-ic) {
  --tone: var(--line-2);
}

.crew :is(.presence, .grade, .ev-ic).ok {
  --tone: var(--ok);
}

.crew :is(.presence, .grade, .ev-ic).warn {
  --tone: var(--warn);
}

.crew :is(.presence, .grade, .ev-ic).bad {
  --tone: var(--bad);
}

.crew :is(.presence, .grade, .ev-ic).info {
  --tone: var(--info);
}

.crew :is(.presence, .grade, .ev-ic).hot {
  --tone: var(--pa);
}

.crew .badge.info {
  --glow: var(--info);
}

.crew .badge.hot {
  --glow: var(--pa);
}

.crew .pill.info {
  --tone: var(--info);
}

.crew .pill.hot {
  --tone: var(--pa);
}

.crew .stat.info {
  --tone: var(--info);
}

.crew .bar-track.ok .bar-fill {
  background: var(--ok);
}

.crew .bar-track.warn .bar-fill {
  background: var(--warn);
}

.crew .bar-track.bad .bar-fill {
  background: var(--bad);
}

.crew .bar-track.info .bar-fill {
  background: var(--info);
}

.crew .small {
  font-size: 12px;
  color: var(--dim);
}

.crew .pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.crew .sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
}

.crew .sec-head h3 {
  margin: 0;
  font: 600 15px/1.2 var(--display);
  letter-spacing: -0.01em;
}

.crew .crew-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .crew-hint svg,
.crew .crew-hint .ic {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--dim);
}

.crew .crew-hint.warn {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  border-color: color-mix(in srgb, var(--warn) 26%, transparent);
}

.crew .crew-hint.warn svg,
.crew .crew-hint.warn .ic {
  color: var(--warn);
}

.crew .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  font: 600 11px/1 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.crew .rank-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font: 600 11px/1 var(--body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--tone, var(--muted));
  background: color-mix(in srgb, var(--tone, var(--muted)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--muted)) 30%, transparent);
}

.crew .presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.crew .presence i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 18%, transparent);
}

.crew .grade {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--tone);
}

.crew .grade b {
  font: 600 15px/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.crew .grade small {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
}

.crew .person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crew .person .who {
  min-width: 0;
}

.crew .person .rank-tag {
  margin-left: auto;
}

.crew .who-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

.crew .quota {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.crew .quota small {
  font-size: 11px;
  color: var(--dim);
}

.crew .quota small.ok {
  color: var(--ok);
}

.crew .quota small.warn {
  color: var(--warn);
}

.crew .quota small.bad {
  color: var(--bad);
}

.crew .quota small.info {
  color: var(--info);
}

.crew .vbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
  padding-top: 6px;
}

.crew .vbar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  height: 100%;
}

.crew .vbar-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 26px;
  flex: 1;
  border-radius: 5px;
  background: var(--surface-3);
  overflow: hidden;
}

.crew .vbar-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--pa), color-mix(in srgb, var(--pa) 65%, transparent));
}

.crew .vbar small {
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}

.crew .hero {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 24px;
  align-items: center;
}

.crew .hero-who {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crew .hero-who .av {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  font-size: 22px;
}

.crew .hero-who h2 {
  margin: 0;
  font: 600 22px/1.15 var(--display);
  letter-spacing: -0.01em;
}

.crew .hero-who .row {
  gap: 8px;
}

.crew .dash {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

.crew .kudos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crew .kudo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .kudo-text {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.crew .meet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .meets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crew .meet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}

.crew .meet-row:hover {
  border-color: var(--line-2);
  background: var(--surface-3);
}

.crew .meet-open {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crew .mdate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  flex: 0 0 auto;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.crew .mdate small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.crew .mdate b {
  font: 600 18px/1 var(--display);
}

.crew .meet-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.crew .meet-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.crew .rsvp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crew .agenda {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.crew .agenda h5 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.crew .form-sec {
  margin: 6px 0 -2px;
  font: 600 13px/1.2 var(--display);
  color: var(--muted);
}

.crew .action-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr;
  gap: 8px;
}

.crew .board {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.crew .tcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.crew .tcol-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.crew .tcol-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crew .tcol-empty {
  margin: 0;
  padding: 14px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

.crew .tcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .tcard.late {
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
}

.crew .tcard-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crew .tcard-open b {
  font-size: 13px;
  font-weight: 600;
}

.crew .tcard-text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crew .tcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crew .ideas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crew .idea {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  width: 46px;
  padding: 7px 0;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: 0.15s;
}

.crew .vote:hover:not(:disabled) {
  border-color: var(--line-2);
  color: var(--text);
}

.crew .vote.on {
  color: var(--pa);
  background: color-mix(in srgb, var(--pa) 12%, transparent);
  border-color: color-mix(in srgb, var(--pa) 45%, transparent);
}

.crew .vote:disabled {
  opacity: 0.55;
  cursor: default;
}

.crew .vote svg,
.crew .vote .ic {
  width: 15px;
  height: 15px;
}

.crew .vote b {
  font: 600 13px/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.crew .idea-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.crew .idea-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crew .idea-open .row {
  gap: 8px;
  flex-wrap: wrap;
}

.crew .idea-open b {
  font-size: 14px;
  font-weight: 600;
}

.crew .idea-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crew .reply {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface-3);
  border-left: 2px solid var(--pa);
}

.crew .reply small {
  font-size: 11px;
  color: var(--dim);
}

.crew .cal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.crew .cal-wd {
  padding: 6px 0 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.crew .cal-day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 84px;
  padding: 5px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .cal-day.out {
  opacity: 0.4;
}

.crew .cal-day.today {
  border-color: color-mix(in srgb, var(--pa) 50%, transparent);
  background: color-mix(in srgb, var(--pa) 7%, transparent);
}

.crew .cal-num {
  align-self: flex-end;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.crew .cal-chip {
  display: block;
  width: 100%;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: var(--tone, var(--muted));
  background: color-mix(in srgb, var(--tone, var(--muted)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--muted)) 28%, transparent);
}

.crew .cal-chip.approved {
  --tone: var(--ok);
}

.crew .cal-chip.pending {
  --tone: var(--warn);
}

.crew .cal-chip.declined {
  --tone: var(--bad);
}

.crew .cal-chip.cancelled {
  --tone: var(--line-2);
}

.crew .cal-more {
  padding-left: 2px;
  font-size: 10px;
  color: var(--dim);
}

.crew .cal-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.crew .cal-legend .cal-chip {
  display: inline-flex;
  align-items: center;
  width: auto;
}

.crew .cell-week {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.crew .cell-week b {
  font-variant-numeric: tabular-nums;
}

.crew .evs {
  display: flex;
  flex-direction: column;
}

.crew .ev {
  display: flex;
  gap: 12px;
  padding: 2px 0;
}

.crew .ev.gone {
  opacity: 0.55;
}

.crew .ev-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
}

.crew .ev-ic svg,
.crew .ev-ic .ic {
  width: 15px;
  height: 15px;
}

.crew .ev-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.crew .ev:last-child .ev-body {
  border-bottom: 0;
  padding-bottom: 0;
}

.crew .ev-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crew .ev-top b {
  font-size: 13px;
  font-weight: 600;
}

.crew .ev-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.crew .ev-reply {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-3);
  border-left: 2px solid var(--pa);
}

.crew .ev-reply small {
  font-size: 11px;
  color: var(--dim);
}

.crew .ev-reply p {
  margin: 0;
  font-size: 12.5px;
}

.crew .ev-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.crew .strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.crew .strip > b {
  font: 600 14px/1 var(--display);
}

.crew .strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.crew .strip-item b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.crew .place {
  font: 600 14px/1 var(--display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.crew .invite-who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.crew .pick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crew .pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.crew .pick-row:hover {
  border-color: var(--line-2);
}

.crew .pick-row span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.crew .pick-row small {
  font-size: 11px;
  color: var(--dim);
}

@media (max-width: 1000px) {
  .crew .dash {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .crew .board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .crew .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .crew .action-row {
    grid-template-columns: 1fr;
  }

  .crew .cal-day {
    min-height: 64px;
  }
}
