/* main grid keeps the drawing area centered with columns aligned to it */
.layout {
  display: grid;
  grid-template-columns: 280px minmax(640px, 1fr) 240px;
  gap: 24px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.centerColumn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  width: 100%;
  justify-self: center;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.titleBlock {
  max-width: 800px;
}

.title {
  margin: 0;
  font-size: 1.5rem;
}

.description {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
}

.timerBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-width: 160px;
  gap: 8px;
}

.timerLabel {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.timerValue {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.extendButton {
  padding: 4px 8px;
  font-size: 0.85rem;
  line-height: 1.1;
}

.readyButton {
  padding: 6px 12px;
  font-size: 0.9rem;
  align-self: flex-start;
}

.pauseButton {
  padding: 6px 12px;
  font-size: 0.9rem;
  align-self: flex-start;
}

.rightColumn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: stretch;
  justify-self: start;
}

.rightButtons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.inspirationCard {
  width: 100%;
  max-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(55, 54, 161, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspirationText {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.4;
}

.inspirationButton {
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.userList {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.userList ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.userListItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.avatarImg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.userName {
  white-space: nowrap;
}

.avatarWrap {
  position: relative;
}

.readyDot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #1b583c;
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid #fff;
  box-sizing: content-box;
}

.leftColumn {
  width: 100%;
  max-width: 280px;
  justify-self: end;
  align-self: start;
}
