.xw-task-promo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 92px;
  padding: 12px 10px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #fbf8f2 0%, #ffffff 72%);
  border: 1px solid rgba(232, 220, 185, 0.55);
  box-shadow: 0 4px 18px -2px rgba(107, 93, 84, 0.05);
}

.xw-task-promo__copy {
  min-width: 0;
  flex: 1;
}

.xw-task-promo__kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #c9a86a;
  letter-spacing: 0.02em;
}

.xw-task-promo__title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2d2825;
  line-height: 1.3;
}

.xw-task-promo__sub {
  margin-top: 3px;
  font-size: 10px;
  color: #8a827b;
  line-height: 1.4;
}

.xw-task-promo__btn {
  flex-shrink: 0;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #564941;
  background: #fff;
  border: 1px solid #e4dfda;
}

.xw-task-promo__btn.is-dark {
  color: #fff;
  background: #2d2825;
  border-color: #2d2825;
}

.xw-task-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 14px 10px;
  box-shadow: 0 4px 18px -2px rgba(107, 93, 84, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.xw-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.xw-task-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: #2d2825;
}

.xw-task-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8a827b;
}

.xw-task-badge i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #efe8dc;
  color: #6b5d54;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.xw-task-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #f6f3ef;
}

.xw-task-row:first-of-type {
  border-top: 0;
}

.xw-task-ico {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f4f1ec;
  color: #6b5d54;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.xw-task-ico svg {
  width: 18px;
  height: 18px;
}

.xw-task-body {
  min-width: 0;
  flex: 1;
}

.xw-task-title {
  font-size: 13px;
  font-weight: 600;
  color: #2d2825;
  line-height: 1.35;
}

.xw-task-desc {
  margin-top: 3px;
  font-size: 11px;
  color: #8a827b;
  line-height: 1.45;
}

.xw-task-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #c9a86a;
  font-weight: 500;
}

.xw-task-rewards span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.xw-task-go {
  flex-shrink: 0;
  height: 30px;
  padding: 0 13px;
  margin-top: 3px;
  border-radius: 999px;
  background: #2d2825;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.xw-task-go:disabled,
.xw-task-go.is-done {
  background: #ece7e1;
  color: #b2aaa2;
}

.xw-task-more {
  display: none;
}

.xw-task-more.is-open {
  display: block;
}

.xw-task-more-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0 4px;
  font-size: 12px;
  color: #8a827b;
  font-weight: 500;
}

.xw-cal-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 12px 12px;
  box-shadow: 0 4px 18px -2px rgba(107, 93, 84, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.xw-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 10px;
}

.xw-cal-top h2 {
  font-size: 15px;
  font-weight: 700;
  color: #2d2825;
}

.xw-cal-hint {
  font-size: 11px;
  color: #8a827b;
}

.xw-streak {
  padding: 8px 8px 12px;
  border-radius: 14px;
  background: #faf8f5;
  margin-bottom: 10px;
}

.xw-streak__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.xw-streak__label {
  font-size: 12px;
  font-weight: 700;
  color: #2d2825;
}

.xw-streak__label em {
  font-style: normal;
  color: #c9a86a;
}

.xw-streak__note {
  font-size: 10px;
  color: #8a827b;
}

.xw-streak__track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xw-streak__nodes {
  flex: 1;
  min-width: 0;
}

.xw-streak__dots {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
}

.xw-streak__caps {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: #8a827b;
}

.xw-streak__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e8e2da;
  border: 2px solid #e8e2da;
  box-sizing: border-box;
}

.xw-streak__dot.is-done {
  background: #c9a86a;
  border-color: #c9a86a;
}

.xw-streak__dot.is-next {
  background: #fff;
  border-color: #c9a86a;
}

.xw-streak__line {
  height: 2px;
  background: #e8e2da;
  margin: 0 4px;
}

.xw-streak__line.is-done {
  background: #c9a86a;
}

.xw-streak__claim {
  font-size: 11px;
  font-weight: 600;
  color: #6b5d54;
  background: #fff;
  border: 1px solid #e4dfda;
  border-radius: 999px;
  height: 26px;
  padding: 0 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.xw-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  color: #b2aaa2;
  padding: 2px 0 6px;
}

.xw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 4px;
}

.xw-cal-cell {
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #2d2825;
  background: #f7f5f2;
}

.xw-cal-cell.is-done {
  background: #efe4c4;
  color: #6b5d54;
  font-weight: 600;
}

.xw-cal-cell.is-today {
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.xw-cal-cell.is-today.is-pending {
  background: #c9a86a;
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(201, 168, 106, 0.45);
  cursor: pointer;
}

.xw-cal-cell.is-today.is-done {
  background: #6b5d54;
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(107, 93, 84, 0.35);
}

.xw-cal-signin {
  display: none;
  width: 100%;
  margin: 10px 0 2px;
  height: 40px;
  border-radius: 12px;
  background: #6b5d54;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.xw-cal-card.is-unsigned .xw-cal-signin {
  display: block;
}

.xw-cal-card.is-unsigned .xw-cal-hint {
  color: #c9a86a;
  font-weight: 600;
}

.xw-cal-cell.is-makeup {
  background: #fff;
  border: 1px dashed #d9c9a3;
  color: #c9a86a;
}

.xw-cal-cell.is-muted {
  background: transparent;
  color: #d4cfc9;
}

.xw-cal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 2px 2px 0;
  font-size: 10px;
  color: #8a827b;
}

.xw-cal-legend {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xw-cal-legend b {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  font-weight: 400;
}

.xw-cal-legend b.done {
  background: #f3ead3;
}

.xw-cal-legend b.makeup {
  background: #fff;
  border: 1px dashed #d9c9a3;
  box-sizing: border-box;
}

.xw-cal-legend b.today {
  background: #c9a86a;
}

button.xw-cal-cell {
  border: 0;
  padding: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.xw-cal-cell.is-makeup {
  cursor: pointer;
}

.xw-cal-cell.is-makeup:active,
.xw-cal-cell.is-today.is-pending:active {
  transform: scale(0.96);
}

.xw-checkin-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  background: rgba(28, 28, 30, 0.45);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.xw-checkin-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.xw-checkin-dialog__panel {
  position: relative;
  width: min(100%, 320px);
  padding: 1.35rem 1.2rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(45, 40, 37, 0.35);
}

.xw-checkin-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #8a827b;
  font-size: 20px;
  line-height: 1;
}

.xw-checkin-dialog__title {
  font-size: 17px;
  font-weight: 700;
  color: #2d2825;
  margin: 4px 8px 8px 0;
}

.xw-checkin-dialog__kicker {
  font-size: 13px;
  font-weight: 700;
  color: #c9a86a;
  text-align: center;
  margin-bottom: 10px;
}

.xw-checkin-dialog__text {
  font-size: 13px;
  color: #8a827b;
  line-height: 1.55;
}

.xw-checkin-dialog__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.xw-checkin-dialog__ok,
.xw-checkin-dialog__ghost {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.xw-checkin-dialog__ok {
  background: #2d2825;
  color: #fff;
}

.xw-checkin-dialog__ghost {
  background: #f3f1ee;
  color: #6b5d54;
}

.xw-checkin-prize {
  position: relative;
  width: 132px;
  height: 176px;
  margin: 0 auto 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(107, 93, 84, 0.45);
}

.xw-checkin-prize img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xw-checkin-prize__tier {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: #6b5d54;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xw-checkin-prize__name {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #2d2825;
  margin-bottom: 4px;
}

.xw-checkin-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 95;
  transform: translateX(-50%) translateY(8px);
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(45, 40, 37, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.xw-checkin-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
